skysight-inc/HackerNews huggingface dataset:
the point of the exercise is to understand how a copy works, and stylistic issues aside, the point is made.

if you supply a function with inputs outside of it's specification (NULL-terminated strings), then undefined behaviour is (by definition) going to happen.

besides, what's to stop someone from calling safercopy like so;

safercopy(strlen(str1), str1, strlen(str1), str2);

then strlen will fail (albeit a bit more safely - perhaps).

it's a safe bet, that in production code, we'll not be working with fixed length strings. so we need to get the length of the string somehow. all his safercopy does identify a problem that he himself already points out is impossible to solve - how do we differentiate from a NULL-terminated string, and one that isn't?

the only real solution (i can think of) is a string class, where the constructor is guaranteed to return valid (or no) strings. then (assuming other functions can't overwrite our memory - already an unsafe assumption) we could guarantee a safe string copy.

programming is hard.
I think this proves that what Sencha has done is incredibly effective link bait. It has not proven anything about HTML5. Sencha makes a great tool for building HTML5 apps. There are still plenty of issues with building HTML5 web apps.

Also, part of the reason HTML5 keeps "getting better" is Moore's Law. If we keep adding processing power and webkit keeps improving, then HTML5 keeps "getting better" which is not exactly true. On 2-3 year old hardware how does it run?

I like writing HTML5 mobile apps, but what Sencha has done is overblown. Good marketing, that's it.
"C is a ghetto"
The problems are mostly in business administration. A Japanese CA would need staff who can communicate in every foreign language that could be encountered in a 'hostile' nation. And they'd presumably have to get those employees from the Japanese population, because otherwise if you hire all Turkisk nationals at a Japanese CA, what's the point? Then they'd have to be willing to accept payment in the currency of all the hostile nations, etc.

Not to mention the difficulties of defining hostile nations. That would just further encourage countries like China and the US, which both want to intercept traffic, to negotiate with each other to get mutual access.
The beauty of libertarian ideas are that you don't have to have ever been involved in anything to understand them. In fact, it helps if you haven't. http://raikoth.net/libertarian.html
Perhaps it's a little silly to expect your every need and desire worthy of fulfillment.
Shell alias to stop writing `bundle exec`
Spitefully blocking Windows Mobile's browser because Microsoft is insufficiently humble in its competition against Android is a raging dick-move.
when I looked at the site url the first thing I read was wo-meninas-astronomy, and meninas in portuguese is little girls. Ah :P funny
Should I call it 'My Account' or 'Your Account'?
Ordering the vegetarian meal? There's more animal blood on your hands
Topic drift is one thing and it's fine in internet discussions, but not turning everything to about an idée fixe
I like the concept! What kind of work are you doing on it?
Number of first-time house buyers hits a five-year peak
Watch the original video lectures from the 1980s on MIT's site:

http://ocw.mit.edu/courses/electrical-engineering-and-comput...

I feel like it's important to watch the above videos because the professors are on a level that I have never seen in my entire life in terms of smartness / the way they can explain difficult concepts so elegantly.

Then after each lecture read up to that point in the book (it won't quite match up with SICP edition 2, but that's ok, it's close enough) and make sure to do the exercises.

It's pretty math heavy IMO so you will likely struggle and might not be able to finish some of them.

This isn't a book that you can blow through in 3-4 days and come out a wizard. It will take many months to go through the book properly.
Someone PLS help this skillful 16 years old boy to get to Cali
Someone PLS help this skillful 16 years old boy to get to Cali!
Yes, they should. More importantly though, they should offer options.

When you call your cellular carrier to complain about something, you surely want them to apologize and offer you options. If they told you 'We experienced an error. What's next?' you'd be rightfully pissed. Why should software be held to inferior standards?

Controlling how your company communicates with customers in person is hard. If you want good results, you'll have to hire great service talent and let them give customer cases lots of attention. Contrast that to putting more thought into how your app fails. Even a few days of focus on friendly, empowering failures will give you much of the same results.

Take one easy win. Instead of 'Error: looks like you have a network problem', try 'Sorry, looks like you have a network problem. Can we help you somehow? [Email us]'

With one more line of text and a button, you've given your customer a clear sense that you're there for her when she has problems. We've been doing this for years. The feedback we've gotten, and the relationships we've established with customers have been invaluable.
Android is built on Java so learning Android programming is as simple as learning the ins and outs of an Android program rather than a whole new language.

Android won't necessarily increase your market value more than Ruby but it will be a much easier thing to learn considering you already know Java.
enable "import on the fly" from settings.
Anesthesia and consciousness
Ironically, I most likely wouldn't hire Kernighan or Ritchie because of their poor programming style.
Even if the topic is not something you care about the techniques and methods gwern uses are not often talked about here and useful for a variety of text processing tasks.

His methodical analysis and scientific rigor is always what I wish other posts could have. If nothing this is a post which will motivate others to write better.

The cluster analysis is cool - not seen that before. Wonder what the results of Latent Dirichlet Allocation might have gotten...
Suggestion:

http://berbaquero.github.com/reeddit/<Insert-reddit-name...; should work!
I recently tried an experiment in downsizing everything to an iPad. On one hand, an iPad + good keyboard cover (e.g. Zagg Keys Pro) makes for a very capable machine. You have to adopt a less schizophrenic workflow, but the basics are all there: e-mail correspondence, reading documents, light composition/editing of documents, etc.

On the other hand, it's not a super enjoyable platform for programming just yet. Emacs-ing into an AWS account works great, but the 10" isn't big enough for two buffers side-by-side. A 13" screen is just perfect for two 80x25 buffers.

I ended up getting an Air to supplement. It doesn't replace my iPad--reading and marking up PDF's (which I do a lot while researching cases) is just a joy on an iPad between the Retina display and touch manipulation.

This arrangement doesn't achieve the dream of consolidation, but: 1) together they're no heavier than my 13" MBP; 2) it's super handy to have the second screen.

I'm not thrilled about the combo devices. They all involve substantial compromises, which is why I assume Apple has stayed away so far. And as a practical matter, I think a 3 pound MBA + 1.5 pound iPad, with a combined 16+ hours of WiFi-enabled battery life, is more manageable in practice than a 3.5 pound convertible with 4-5 hours of battery life.

Out of the combo devices, I think the dockables actually have the most promise, though there isn't a good one yet. I'd love to see something like the Asus TF810C (dockable Clovertrail Windows 8 machine), except without the garish spun metal backing and with a Retina-class display: http://www.microsoftstore.com/store/msstore/en_US/pd/ThemeID....
Sorry, but there won't be a "perfect computer", if by perfect computer you understand the convergence of smartphones, tablets and laptops.

Smartphones are too small for a lot of tasks now, tablets are mostly used for consumption and when you're mostly static, not mobile, hybrids have a lot of compromises between weight, mobility, price, size, etc, and laptops will be mainly used for work. Plus, look at this trend - we've been using more devices, not fewer.

If anything the ultimate computer will end up being the smartphone, because you have it all the time with you, if certain technologies make it a lot more flexible in what you can do with it in the future, like say holographic stuff. But by the time the smartphone can do that, we may see those technologies in totally new devices, like smart glasses or watches, or who knows.

If you look at the whole computing industry since mainframes until smartphones, we can see at least 3 trends that seem to always be true, with each new generation of "computing device". They are cheaper, smaller, and easier to use. So the next generation of computing devices, whatever that is, should also have those three attributes. And with each generation, we'll probably continue to use the past 2-3 generations for stuff the new one isn't very capable of, although less and less.
It’s not a research institute. It gives grants to researchers (it’s the biggest organization in Germany giving research grants), it’s a foundation. As such it is also often mentioned in scientific papers. (“This study was funded in part by a grant from the …”)
At this point in time "Data Scientist" seems to be very loosely defined. I've seen everything from "must know Excel" to "must hold a PhD". You'll find lots of blog posts where people try to pin it down, but I don't think one definition will suffice. A more likely outcome is that we'll recognise specialisms within data science just like we have front-end, back-end, and other specialisms within programming.
I am also a fan of "X in pure CSS" in moderation, particularly the ones that model things that I've needed to do to implement certain simple embellishments in ways where using images makes the site harder to change/maintain/retina-fy. For example, speech bubbles, arrows, engraved text, rounded objects, some types of icons, etc.
SEEKING WORK - Remote Web designer and front-end developer

-------------------------

Name: Gilli Sigurdsson

Email: hello@gilli.me

Website: http://gilli.me

-------------------------

About me:

I am a freelance web designer from Iceland with 5 years under my belt.

I mostly design websites and code them in HTML5, CSS3 and jquery. But I am very interested in getting into the mobile world.

-------------------------
This is a bit pedantic, but elastic in design context usually refers to a design element that changes with respect to the user's font size. Reedit, has a few elements where that is the case, but I think the term that's more descriptive is responsive, meaning the layout changes with respect to the client's window size.

Saying it was elastic actually had my interest piqued, because you don't see many layouts that really respond to text size any more.
You should add a link to return to the original post then.
Looks good. I'm always looking for better ways to read reddit. I don't like their UI.

I've been experimenting with the best way to read reddit. My first idea was a specialized browser that has 5 tabs open. When you close one tab, another automatically opens with the next unread story from the current subreddit. That way, as fast as you could smack Ctrl+W, you'd get the the next unread story, already loaded. It worked ok, but wasn't great.

https://github.com/FigBug/Allochthon
https://github.com/downloads/FigBug/Allochthon/allochthon-se...

My next idea was the command line. Now I just type 'r subreddit_name' and it opens up to 30 unread links. Seems the fastest way to read reddit.

https://github.com/FigBug/r
I'm gathering the goal of this is to be a polyfill, for older browsers, as ES6 comes online, allowing for a faster transition. If that's the case it seems to be well ahead of the curve...
The short answer is: yes.

The medium answer is: media = real life

The longer answer is there's an interesting an influential bit of scientific work that might shed some light on this issue, and incidentally, it is also not mentioned in the stackexchange link above.

The book is "The Media Equation: How People Treat Computers, Television, and New Media Like Real People and Places." by Byron Reeves [0]. The follow-up work to this is found in "The Man Who Lied to His Laptop: What Machines Teach Us About Human Relationships", also with Clifford Nass and Corina Yen.

It is often the case that psychology studies simply confirm what our own intuition tells us. How often have we looked at a psychology study and said, "Duh! Of course that would be the case." It is much rarer to see psychology studies that would yield results completely contrary to what we would expect, and this is what makes the work of Nass et. all so exciting. The most surprising thing about these experiments were that participants, even expert computer users, were adamant that they could not possibly be influenced by a computer who has a female voice vs. a male voice, or a computer that praises versus criticizes, or heck, a computer that has the same physical color that is the favorite color of the user, but it turns out that they are.

It is not that people anthropomorphize computers; they clearly recognize that computers are not in fact people -- but hundreds of thousands of years of evolution have hard-wired many of our responses, which are often largely automatic even when our interactions are with computers instead of other humans.

As others have indicated, there is a fine line, however. Do you recall the sad Mac? [1] This was an example of the Media Equation that was applied well -- you and I and even naive computer users know that computers don't __actually__ get sick, but you can't help but think so as your first reaction when you see that icon; you might even feel a little sympathetic. Simultaneously, have you ever seen the Clippy Office Assistant? [2] It's notorious for being one of the worst examples in history of affective computing design; unlike the sad Mac, it actually will elicit anger, the opposite of what we would want in a computing experience.

[0] http://en.wikipedia.org/wiki/The_Media_Equation

[1] http://en.wikipedia.org/wiki/Sad_Mac#Sad_Mac

[2] http://en.wikipedia.org/wiki/Clippy
Deconstructing Zed's K&R2 Deconstruction
I don't know what point of mine you are trying to disagree with, or what you are getting at. You seem to be missing the forest for the trees.

Everything you have asked about has a very straightforward answer, but you lack the philosophical context to see that.

It's like asking a chemist to explain molecular bonds, when you don't even know that atoms exist.

As I've said, the proper principle of government is to protect individuals from the initiation of force by others.

Since the reasons for this principle are out of the scope of this discussion, yes, you could certainly find some way to appear to pick on it and score points, yet actually fail to do so successfully.

Nonetheless, correctly applying this principle means that if something is always a poison to everyone, it's not a legitimate product. There is no legitimate use. Producing it and selling it is simply initiating force.

On the other hand, if something is a legitimate food, it's fine to sell it.

There is a separate question about allergens. It is an allergic person's responsibility to make sure they don't ingest allergens.

The government forcing people to label things is an initiation of force and a violation of rights.

Absent such regulation, there would still be plenty of food producers who make information about food content publicly available, since it is needed by their customers who have allergies, and for other reasons.

In the cases where food producers do not publish their ingredients (in which case, probably nobody should consume the food...), people with allergies would just be out of luck.
But using a language like Ruby or PHP, for instance, doesn't really lead to fewer bugs, or more advanced software, or cheaper software, or fewer security concerns in practice.

What it often actually leads to is untalented developers creating a lot of bug-ridden and vulnerable code extremely quickly. It's efficiency in all the wrong ways.

Do you remember that Diaspora social networking project that received a lot of hype a couple of years ago? It was a Ruby on Rails app, and the early releases were absolutely filled with some particularly nasty bugs and security flaws. The only reason they were eventually fixed is because the code was made public, and people pointed out these flaws. There is a lot of Ruby code out there, for instance, that isn't public, yet is still riddled with the same types of problems.

That's not to say that the same isn't true for Python, or Java, or C#, or C++, or any other language. But we shouldn't be claiming that using a language like Ruby or Python somehow leads to more secure code. It doesn't, and it's dangerous to think that it does.
Over Deliver
Relatedly, see also the Youtube access blocking on Windows Phone http://www.wpcentral.com/youtube-access-and-windows-phone-mi...
The real order is this one...

http://en.wikipedia.org/wiki/ETAION_SHRDLU
TL;DR: anecdotally, "internet dating has made people more disposable"
My prediction is that Haswell will free up enough power budget on the next MBA to fit in a Retina screen.
I'm seeing the code for the presentation, but not the grails and play code - is that in github anywhere?
Shaw mischaracterizes K&R by making anachronistic assumptions about its intended audience and ignoring the context in which it was written.

When it was written, a beginning C programmer was most likely coming from a background in assembly and accessing the computer as a professional in the workplace or a student with substantial privileges. The intended audience was sitting near the cutting edge and was assumed to be sophisticated. Data validation could be left as an exercise for the reader in good conscience.

This audience is distinctly different from those who learned programming typing code from magazines and Shaw's current audience for whom he is simulating that experience.

Editorially, K&R has chosen to remain a slender tome. It has let others create fat cookbooks and "for idiots". Forty years on, Shaw criticizes the Wright Flyer by the criteria of Second World War aviation.

We don't hold K&R on a pedestal because of its pedagogical methods, but because of the power of the language it describes. The C Programming Language was a byproduct of creating a language.

Kernigan and Ritchie were programming. Their book is properly judged by different standards than Shaw's educational project.

None of which is to suggest that Shaw"s project may not achieve a comparable level of esteem
You can MITM any HTTPS site in the world with an invalid certificate right now. Killing this CA won't change anything in that respect, so I still don't understand what you're getting at, or how killing this CA would make some sites less secure for a period.
Google, competition and the perfect result
MS blocked Firefox from Hotmail for a while back in ~2001. Changing the useragent to IE would make it work.
The Short Story of SMK Pandan Mewah Forums and Facebook Page
As an enterprise sysadmin, I concur that Java is focused for long term code maintenance. Reliability of the JVM is for another discussion :)

We do have Rails and other "fun" language applications, but there are few people who know how to write or debug them. Mostly it'd be the small internal teams that use it. Larger teams would still be using Java. Phone application development is a similarly rare skill, hence the outsourcing.

Besides Java, we use copious amounts of .NET. That could be another area you want to focus on in addition to Java if you want to stay in the enterprise space.
Never Mind E-Books: Why Print Books Are Here to Stay
"Trading schemes add a lot of unnecessary complexity and potential for abuse..."

I believe that's exactly why they are "preferred" by our political system. Whenever the political body starts to consider laws about pollution, the lobbyists for the polluters go into high-alert to influence the outcome. They don't want a straight tax, because that'll become a simple cost which is difficult to avoid. Instead they prefer a complex scheme that can be sold as if it has the same impact as the straight tax, but in reality it will provide ways to game the system to either avoid the costs or even make a profit for the polluting companies.
I don't have a CS degree nor did I attend a school that even offered a CS degree so my college experience was quite different.

I attended Emerson College where most of the degrees are in the arts and communications and everything there was focused on not becoming a corporate stooge but often an entrepreneur.

Most work was project based often with the idea that your work would help to build your portfolio. Most importantly, your work outside of the classroom working on films, recording bands, writing marketing campaigns with clubs or on your own was just as much of the curriculum, possibly more so. I learned that only a small percentage of knowledge was coming from my professor at the front of the room but from the people around me and the work I was doing on my own. If I didn't take that "work outside of the work" attitude from college I think I would have had are a hard time getting motivated to learn to program and do other ventures like doing freelance work or working on passion projects on my own.

Sorry but college is what you make it.
I use Stackoverflow very often. I've done tutorials at Codeacademy, Udacity, as well as others (Club Treehouse comes to mind). I'm not a beginner with web development anymore; I'm looking to go the next level.

I will look into clarity.fm, thank you.
I had considered this, but it would also require the other end of it. RPython is basically compiled to C which is compiled to machine code. The ultimate output format for this needs to be JavaScript, something like the form specified by https://github.com/dherman/asm.js. So we need JavaScript (ES6) coming in one end and asm.js coming out the other end. At this point the only remaining usable pieces from PyPy are the processing that happens in the middle. Admittedly this is a huge part of it and would still be very valuable to have access to, but there's probably a better approach to this than having to redo both ends of the pipeline, and losing the ability to self-host the compilation process in a JavaScript engine (browser).

Perhaps pairing PyPy with emscripten would be the ideal solution for this, but that would have to be a completely new project because nothing that's currently in Continuum would be useful for that (except probably the standard library that's written in ES6 and executed in the VM).
If people want to use WP8, they can use bing maps.
More details about how he painted it: (it's linked in the article) https://plus.google.com/113761354606401247247/posts/K8RQu5xu...

I like the images. He says that the climate of each area is not chosen very scientifically. I don't like some of the assumptions, but I don't know enough about climate to make something better. (For example, the mount Olympus is very high: should you put some snow there like in the Kilimanjaro?)

A few weeks ago there was an article in xkcd:whatif http://what-if.xkcd.com/10/
that analyze the climate of the Earth with the landmasses rotated 90°. This analysis in xkcd is apparently more correct and scientifically based.

It would be nice to have a mixture of the two approaches. Images of "Wet Mars" and "Rotated Earth" that look nice and are based in climate science
I'm looking to have a lot of flexibility. I'm not interested in following a curriculum. I want to learn specific areas in web development (server-side programming, webcam chatting are two).
Why Felix won't take off...