skysight-inc/HackerNews huggingface dataset:
Ask HN: The right way to store settings in a webapp
A couple of collegues and I have been wondering for a while now what the right way is to store settings in a webapplication (like a wamp or lamp stack).

The MySQL database isn't supposed to do this, tables are to store a variable number of rows with a fixed number of columns. Storing settings you would either set the variablename in the columnname and the value in a row, or create 2 columns (variable and value) and store variables in rows. Either way, the number of rows is constant. Not immediately a bad thing, but not ideal either.

There is also the lack of hierarchy this way, currently we have a filesystem-like path in use. The variable in the database will be something like "/modules/twitter/username". This is a custom system though, and it works but doesn't really feel right either. Unlike a table, files can be placed in the directory along with the right module (part of the application, they can be added or removed as needed).

Lastly a problem with a database is that you can use one table for all settings, or a new settings table for different modules. Using a single table, you would have to clean it up every time you add or delete a module. Using multiple tables, you get a long list of tables in the database, often to store only a few variables per application.

Settings files (ini, json, or another format) feel a lot more like how it should be done, but to open and parse a settings file every pageload seems not too great for performance either. Or even if it performed well enough, settings are something that can be loaded into the RAM and only written to the disk when changed. MySQL can keep file handles opened, doesn't use an interpreted language to read or write the data, and even caches stuff so there is often no disk interaction at all on reading.

So... what else could or should we use? NoSQL perhaps (I'm rather unfamiliar with that)? Or is there simply no optimal solution and should we continue to (ab)use the database for this?
Black listed url in Facebook. Support not replying.
thx - can you give me some examples of "gambling-like features in some of the popular games out there today"?

have you tried? any other insight?
In some countries (EU?) you're required to do a confirmation-email step.
"Do i look fat?"
It's a trap! If we say 'No' then the bloat continues. And if we say 'Yes you're fat' she runs away crying. And the bloat still continues.

Honestly, Yes. You're still fat. But some progress has been made. Keep going. Stop when you hear the first complaint about too skinny.
Walks And Walking - The National Trust Membership And Shop Offers
Sort of. Unicode is designed to unify all character sets, eventually. 2% of the world's population using a character set (granted, not traditional characters here but it still counts) is enough.
脑梗
"Writing efficient programs requires complex tricks."

Says who?
Red Dwarf!
早期肝硬化能治好吗
Harga Blackberry per Maret 2012
Solusi BlackBerry terdiri dari smartphone yang terintegrasi dengan perangkat lunak yang memungkinkan akses ke berbagai data dan layanan komunikasi. Tetap terhubung dengan semua yang penting bagi Anda saat Anda sedang bepergian dengan smartphone BlackBerry. Email, telepon, organizer, aplikasi, games, Internet dan banyak lagi.
HTMLPurifier? That thing should only be used if you are accepting html as input (eg: wysiwyg). Just escape everything in the view layer (not in the DBAL. There you only escape to avoid sql injection, not XSS!)
Because there's 256 possible byte values. Like there's 65536 possible short values. (Using short to mean 2 bytes here, I'm aware it varies)
Byte Swapping Header
By now I think it's well-known to every Firefox user that in the case of Firefox, the memory used is mostly leakage.
In general it seems like this is a tail wagging the dog problem

I agree but in reverse. You're willing to give up a trivially parseable syntax just to avoid typing a few braces?
Amazingly fun video to watch, it seems like you have a great team! Would you consider H1B?
ASCII in fact is the completely safe text encoding for HTML - and thanks to HTML entities, you do not lose any international character support. You can have a Unicode-using HTML document encoded in ASCII - it's just quite big.
Yes, it really depends on your goals. Maybe this can help? http://thinkvitamin.com/business/how-to-track-six-key-metric...
Cabanova sitebuilder (flash / html5) launch of portuguese version
you can't spare 5 USD for potentially many hours of monthly entertainment?
Android is the world's most popular smartphone OS.

Most users use it because it is the OS that powers the phone that they thought best fit their needs when they bought it, not because they have any special loyalty to a 'community'.

Why wouldn't they flock to a popular service that lots of people say is fun?
depending on the wording of the warrant and previous case law, any information found not directly relating to the specific target or anything found because of that information could be inadmissible as evidence.
How to Handle Negative Online Reviews of Your Business
Keep trying. This post raises all sorts of questions from my end.

How many of these cold emails have you sent?
To what extent have you varied the copy in those emails?
Are you just asking for something, or are you offering something as well?
Have you gotten advice from other successful hustlers (concretely, talk to some seed stage founders for hustle ideation; abstractly, read How to Win Friends & Influence People at least once per year) on what you might want to put in the email?

What about non-email channels?
Have you gone through Twitter (This is how I've met multiple investors and advisors, totally cold, with no friendly introduction.)?
How about crawling toward them meticulously through LinkedIn?
How about networking via HN?
Have you tried hanging out on relevant IRC channels?
Have you contributed to their questions & answers on Quora?

I don't mean to be overly critical here. The OP is a great example of inbound marketing hustle, and I commend you guys for it. Two of the key ingredients in startup success are determination and resourcefulness. Clearly you're resourceful, now crank up the determination a notch. Right now it sounds a bit like you've found good excuses not to keep trying. If you can't land a Skype call with someone who might be able to help you get noticed by YC, what evidence do we have that you're going to land a Skype call with a key distribution partner in six months?

Keep trying. Keep swinging and striking out. You'll see patterns. You'll improve. Eventually, you'll start making contact.
Instagram is a photo sharing social network. How would you expect it to work without creating an account?
You need two variables anyway to make any sense into the code.

Where would you get the value of 'i' if you didn't have 'data' and what would you do with the value read from 'data' if you didn't have 'i' or some equivalent?
Hibernate Tips: hbm2ddll.auto property
Indeed, one of the main advantages of having the primary key indicate the layout of your data on disk is that you can optimize access to your data for the least amount of filesystem page cache misses by making the primary key be the column (or combinations of columns) that you know you're going to have predictable batch access to.

Benchmarking that can be tricky for the same reason that benchmarking anything that reduces cache expiration can be tricky. If you reduce cache expiration your query might not benifit, but if you take a holistic approach to it and apply it to the whole database it'll benefit as a whole.

Any big MySQL powered application is likely to make wide use of this. Which goes to show that doing any benchmark comparisons between databases is often meaningless. You can't benchmark the same schema/queries between databases because they'll be optimized for the database you started out with.
In most parsing comparisons I have seen, tnetstrings[1] is probably one of the faster textual formats to parse (and rather "safe" too). I have started using tnetstring (python module) for some backend message formats where I commonly use json, and it has been pretty great so far. (esp with gzip, snappy, bzip, lzma, or whatever compression fits your needs/tradeoffs)

[1]: https://github.com/j2labs/cerealization
Microsoft makes list of top 20 Linux kernel contributors
Strömungswächter
Grubatec ag- [Strömungswächter] Diese Maschinen können aufgrund ihrer Eigenschaft nahezu überall eingesetzt werden. Strömungswächter Sie haben eine hohe Messgenauigkeit und einen sehr weiten Messbereich Durchflussmesser.
In most parsing comparisons I have seen, tnetstrings[1] is probably one of the faster textual formats to parse (and rather "safe" too). I have started using tnetstring[2] (python module) for some backend message formats where I commonly use json, and it has been pretty great so far. (esp with gzip, snappy, bzip, lzma, or whatever compression fits your needs/tradeoffs)

[1]: http://tnetstrings.org/
[2]: http://pypi.python.org/pypi/tnetstring
[3]: https://github.com/j2labs/cerealization
nethercote discuss their actions about extensions memory leaks

http://blog.mozilla.com/nnethercote/

he also published some notes about the history of memory analysis in firefox http://blog.mozilla.com/nnethercote/2012/01/17/notes-on-redu...

pdf direct download : https://wiki.mozilla.org/images/9/93/LCA2012.pdf
The compiler comment is pretty strange for a company that is (or was) aggressively Pushing OpenACC [1].

[1] http://www.nvidia.com/object/openacc-gpu-directives.html
That would make some people happy. Quite many, think Brazil ;)
Why does the way we naturally measure complexity stop working when we apply it to programming?

Lots of projects that have nothing to do with programming end up taking longer than expected or are over budget.
Google Scholar Metrics for Publications
Histopath Cytopath Information Software
Histopath Cytopath Information Software, histopathology cytology software, digital pathology information system, CAP -college of american pathologists
Media Share Online
yOuShiE, Media Share Online, Artikel, Cinta, Berita, Handphone, Cheat, SEO, Software, Intertainment, Kesehatan, Lowongan, Kerja, Motivasi
Dude. You did NOT leave Google in good standing.
DICOM Software Histopathology cytology
A system for computerizing histopathology cytology lab records using a commercial data processing histopath-lab system is described.contact us at info@birlamedisoft.com
"Impro: Improvisation and the theatre"

disregard the seeming lack of relevance.
This is exactly why we need blend modes (at least multiply+screen) in CSS.
Try about:memory, it's pretty good.
Knowing nothing about GSM internals, I wonder if it is possible to create an application (Androind and/or IPhone) which will let you track the keys of the GSM towers, whitelist them, and alert when they are changed/altered?
Titanic treasures big and small are going on the auction block
In say 5 years, might it be optimal for web browsers to initiate TCP connections to multiple web endpoints, and go with the first to initialise?

In fact, browsers do something like this today to deal with broken IPv6 implementations, under the name "Happy Eyeballs": http://tools.ietf.org/html/draft-ietf-v6ops-happy-eyeballs-0...

The idea is that if a IPv6 connection isn't established after 300ms then the browser just starts a duplicate connection over IPv4 and uses whichever one comes back sooner.
The smallest questions always cause the most heated debate.

It doesn't really matter much how the possible byte order swap is done: what matters that these ifdefs aren't littered around the code and byte-order swapping is limited to the lowest level where data is actually read from an external source.

I would personally go with his byte array reads as it's less confusing but I would still wrap the functionality inside inlined functions like these:

uint32_t inline read_be32 (void*);
uint32_t inline read_le32 (void*);

And then use these whenever reading 32-bit integers from big-endian or little-endian data source.
PDO vs MySQLi performance comparison
http://www.namecheap.com/products/freedns.aspx

Not ideal, but not terrible either.
As I recall, T stands for Talos, which is the name of the Mozilla performance suite. TP5 is the 5th version of one particular benchmark which takes pages from the "current" eb (hence the need for new versions every few years). I guess 'P' is for performance, but I forget.
> less predictable

Alas, it is, because there's no communication between the kernel scheduler and the user-space scheduler. The resulting interaction has non-intuitive results.

Here's an old paper about some of the measured consequences: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.50....
沈阳治抑郁好的医院
It not a trade-off. Consumer and HPC GPUs are using the exact same silicon... Nvidia artificially cripples, in software/firmware, the double precision performance of consumer GPUs: http://forums.nvidia.com/index.php?showtopic=204025
Germany's Samwer Brothers Rumored to Launch a Square Clone Soon
New posts are where you can participate in conversations. Posts on the frontpage are mostly done conversation wise. They are all talked out and you seldom get answers on your comment.
Nokia Map Suite 2.0 is out of beta version
Research Proposal Abstract| How to Write
Learn how to write research proposal abstract
Most web-app frameworks use an INI file or JSON, etc. In Django, the settings is just a python file with a series of arrays and constants, meaning you can change them programmatically (e.g. in response to the server environment, whether you're on production / dev, etc).

Remember, an extra call to a database each request isn't very performance-friendly. Your best bet would be to use a JSON/INI/etc (or go down Django's route) and then cache it in memcached or APC or similar.
Indeed, free users are notified to upgrade their account upon hitting quota.

We are not collecting CC information as we chose Avangate to process our orders. Dealing with CC it's a big hassle, we wanted to allocate more time for the service itself, maybe in the future it will make more sense.

Thank you for your suggestions!
The whole story:

We have our main URL black listed by Facebook for almost half a year now. What can we do in order to get some reply from the support team ?

We're a sitebuilder: http://www.cabanova.com. We give our users a free url: username.cabanova.com. One of our users got us black listed in Facebook about half a year ago. We acted very quick and disabled / removed the spammy user site. Nevertheless we noticed that we could not post anything with our url: http://www.cabanova.com in Facebook.

We tried to contact Facebook support several times even sent an official letter, but we got NO reply. What can we do ?

Facebook is really important to us.

Please advise.
There is something called a cellid which uniquely identifies a cellsite. Can someone confirm if the Android/iPhone API tells you the current cellid ?

EDIT : Quick search indicates that the data is available.
Slightly off-topic, but—how mercilessly correct he is about physics of our space-time. We all know the universe is expanding, but many consequences of this phenomenon are not obvious—such as that after some time we'll be unable to see (and therefore ever reach) even nearby galaxies, since they're constantly getting farther and farther away.

We'll be completely alone forever, and future scientists would have completely wrong picture about universe in such an absence of information. Thinking about that, we already miss a lot of information because of red shift… There're facts potentially explaining the eternal question ‘about universe and everything’, but they are slipping away from us, crossing the event horizon never ever to be learned about. Not a fun thing to know.

Personally for me that was a discovery thanks to the explanation by Lawrence Krauss in his ‘A Universe From Nothing’ popular talk (http://www.youtube.com/watch?v=7ImvlS8PLIo).
I've tried to tackle this issue at https://github.com/alexchamberlain/byte-order.
no, I mean that in SPARK you are able to state that some program will not grow it's memory usage indefinitely (I believe you also have worst case time analysis).

AFAICT this requires forbidding recursion, unbounded loops and use of heap allocators or types/procedures which in turn have access to such facilities.

Or somewhat equivalently: the SPARK subset of Ada is statically verifiable by not being turing complete, so bits of the code can be verified, and elsewhere the full Ada language can be used.

I am not sure if Rust can emulate this.

(Again, I am not an Ada/SPARK developer so all of what I wrote may be wrong, do not take life decisions based on what I write)
Preinstalls discourage other operating systems for two reasons:

1. they set a functionality mark that a on-preinstall OS needs to surpass in order to interest someone in switching (especially if the new OS costs money),

2. they enable inaction. What I mean by this is that you may find the features of a new OS interesting enough to want to try it, but doing so actually will take some effort. If you procrastinate, you've still got the old OS.

Before Win95, the preinstalls were generally either DOS, or DOS + Win3.

When Win95 came out, it was an immediate hit via retail sales. On launch day, many stores were open at midnight to sell it as soon as they could, and people lined up to buy it. I don't have the numbers handy, but I'd be surprised if Win95 on the first day of availability did not surpass OS/2.

This shows that there was a significant number of people in August 1995 for whom an OS of Win95's level could entice them to want to try it sufficiently to get them to actually go out and buy it and install it.

If IBM had properly marketed OS/2, those people could have been their customers. IBM could have established themselves as the preferred 32-bit PC OS before Win95 got out of the gate, and vendors would have been rushing to sell preinstalled OS/2 systems.

One can make a good case that after Win95 came out and was getting preinstalls, no amount of effort by IBM could have overcome that--Win95 was good enough that OS/2's advantages probably were not enough to overcome procrastination. But by the time Win95 was getting preinstalls, Microsoft had already won from IBM's indifference pre-Win95.
Lots of downvotes... Do you disagree? If so, why? Or do you think it is insignificant?

I've sat and watch C++ compile for 5 hours... Compile time performance is important too!
Manage emotional eating & Eating To Feed A Feeling
I know that, but "over 99% ASCII" = "not ASCII". For many users, UTF8 is over 99% ASCII, but it is not ASCII.
"...the computer's byte order shouldn't matter to you one bit. Notice the phrase "computer's byte order". What does matter is the byte order of a peripheral or encoded data stream"
The Ethics of SEO
For various reasons this cannot be done for most traditional extensions that introduce advanced functionality (e.g. AdBlock Plus), since they can override the browser's functionality without limitation. Add-on SDK extensions are another matter but those are comparatively very limited in what they can do.
A corrupted sqlite database file could do that.
Brilliant. So much for 'just take whatever I tell you and multiply it by three'.
I've tried to write a program (https://gist.github.com/392445) which would be affected by this. It seems it should be `'); DROP TABLE servertypes; --` to actually drop any tables. All I was able to get now is syntax error.
"But it brings up another more interesting question: why does the way we naturally measure complexity stop working when we apply it to programming?"

Ah and I had high hopes for that next paragraph,

There are two fundamental differences between, lets say, estimating how long it will take to make a sandwich, and estimating how long it will take to create an online noticeboard for your village.

The first difference is that one task is manufacture, the second task is design. Writing code IS design, and it is inherently much harder (or even logically impossible) to estimate because implicitly you do not know what done means.

The second difference is that (broadly) how satisfactory a sandwich or other real world object is, is proportional to how long it takes to make. This is not true for software, because it is not a physical entity. It can be tripped up by a single incorrect character, and then, forget tasty - your software sandwich doesn't even exist.
Also:

http://areweprettyyet.com/

https://wiki.mozilla.org/Platform/AreWeFunYet

http://areweplayingyet.org/ (from SoundCloud)

The irony (or maybe that's the point) of using this meme is that you'll never get to the end of the rainbow. A browser's work is never done.
I noticed ifdefs like this when I inherited some C code back in 2001. I'd always worked on x86 systems, so never really encountered machines with different byte orders. The code was fugly, and I didn't like it, so I studied it some and it hit me that it didn't matter what the byte order was. If I constructed a 32 bit int and assigned it to a 32 bit int, the compiler would take care of the byte order. All I needed to know was the byte order of the network protocol we were using.

Tested new code on my x86 box and it worked. Then just committed to sourceforge CVS and told the rest of the world to test. It worked. My code looked a lot like Rob's.
Contract Mobile Phone Deals UK Official With All Networks & Cost To You Lowest
The Best Contract Mobile Phone Deals UK Official! Cost Lowest. Free gifts and latest offers Nokia, Samsung, Sony Ericsson, Blackberry, HTC, LG, Apple, Motorola cheap largest range with O2, Vodafone, Orange, T-Mobile, Virgin, Three Networks UK.
You can say about Rocket internet what ever you want, but in terms of strategic and tactical execution they are really good. They almost completely lack on the innovation part of it.

To me. they seem like the guys producing Transformers 13, they play it save on the idea side. On the other hand they exploit almost every hole the find in the execution of these ideas. Wether that will pay of or not in the long run, I'm not sure. It definitely payed of monetary already.

Funny thing is we still have people in Germany complaining about the Chinese stealing other peoples ideas...
Bad advice on preventing government snooping
Daily Diet Plan 
Learn how to reduce the body weight by following some steps and there are tips to loss the belly stomach fat which leads to the healthy life
I actively use it for last 3-4 months and it's definitely my nr1 tool to receive news!!

give me a heads up on twitter if you need an invite @zappika ;)
Just glancing at that essay it's pretty awfully written and repeatedly wrong. And my physics is extremely poo. Ever heard of a heatsink and then releasing it later? Decoys of simple complexity but same mass are as cheap to make as real ships of complexity? Nope.
"Examples include hidemyass.com, anonymouse.org, Guardster, Proxify, IDzap and Megaproxy."

Does anyone else also think it might be a really really bad idea to login to your email account using any of these services?
How to create Calendar using jQuery and CSS3 [Tutorial]
In this tutorial we will code the jQuery and CSS3 Calendar that you can find in Futurico UI Pro made by Vladimir Kudinov.
How would you distribute the work of a virtual machine? It has to execute instructions in sequence, just like a non-virtual machine. Any parallelism needs to be extracted at a much higher level of algorithmic abstraction, i.e. by a programmer.

Imagine trying to make a virtual machine that would rewrite any bubble sort as a quicksort. Parallelizing algorithms is much more difficult than even that.
Totally agree, I kept my beta UO account up this whole time but the last DEV regime really lost a lot of players.. new producer seems to have priorities right. We will see. Create a better sandbox game and we'll see another game last 15 years.