1,852 karma · joined Nov 10, 2008 (18y ago) · 533 submissions
513.
Native JSON Support in Firefox 3.1(blog.mozilla.com ↗)
6 points · by Scriptor · 17y ago · discuss
comment 17y ago · link · parent
"I don't know how they're gonna do it, but...but...they're bad...'cause they're gonna hurt competition, so they'll find some way of not hurting themselves, they have to!"
Besides, the hashmark is a standard of its own when it comes to Ajax applications. Google isn't doing anything suspiciously new with that.
comment 17y ago · link · parent
comment 17y ago · link · parent
comment 17y ago · link · parent
The average person doesn't trust computers, automobile mechanics or lawyers
Hello? Statistics? Data? Evidence? I guess those are obsolete too now that we have the cloud. You see Dare, unlike with automobile mechanics, people have an alternative with things like storage. They have plenty of easily available storage right on their computer. Also, people don't trust mechanics with charging a fair price. To apply the mechanics analogy to clouds, it would be like a mechanic that goes out of business and takes your car with him, never to return again.
Given the massive adoption of the Web from search engines and e-commerce sites to Web-based email and social networking services, it is clear that the average computer person trusts the cloud enough to part with their personal information and their money.
Search engines have nothing to do with giving up personal information. Web-based email has been successful because people associate email is very much associated with the web (think of all the sites that need to email you in some way). In what sense are social networks cloud-like?
the average computer user doesn't have a data backup strategy than it is likely to occur if their information is stored on some Web company's servers
Another unjustified claim. Giving a personal anecdote is not proof.
Articles like these make me more and more confused about what the cloud really is. Is it just about storing information online? In that case, this entire phenomenon is hyped up several degrees more than "web 2.0" and should be thought of as nothing more than marketing-speak. Storing information online is nothing to be excited about, how sexy does "cloud" sound when you realize it just means some data is saved on a network of servers somewhere.
comment 17y ago · link · parent
It is because of this that major new features seem to be dirtily patched on: Namespace separators require a completely new syntax, anonymous functions that inherently can't behave like closures. Also, the language just seems like a meddle of things that have to be forcibly patched together to work together. For example:
array(1,2,3)[0]
(new FooObject())->some_method();
Neither of those work, yet the equivalent works in other languages. Personally, I like the idea of a language where new features emerge out of smaller bits bit put together in different ways. This is clearly not how it works in PHP.comment 17y ago · link · parent
I've posted a Pastie of the Javascript code here: http://pastie.org/369649. It does use jQuery though. The w variable points to the window object of the external page that's loaded, so you can pass it around to other functions. Note that 'pageframe' is the ID of the iframe element.
As for the server side code, I used Django, with Python's urllib2 to load the page and BeautifulSoup to turn relative urls into absolute urls. If you end up using BeautifulSoup, note that even though it's supposed to handle invalid HTML, there are some pages that still won't work because Python's HTMLParser library isn't robust enough.
comment 17y ago · link · parent
I am a freshman in college with my first semester finished. In high school, I had about 3 good friends I enjoyed hanging out with. Besides them, I rarely had any social interaction. I was rarely (maybe once or twice?) invited to anything by anyone other than those 3 friends. The end of my senior year especially was depressing. I got to see everyone else, including my good friends, get invited to a good number of graduation parties while I stayed home. Weekend nights on the computer (like this one now) were common.
Enough about myself, but hopefully that gives you an idea of where I'm coming from. This advice is from very recent experience. I understand what you mean by having people you only have a specific interest with. While others say this is normal, I don't think they git it. If every time you're with them, the conversation turns to just computers or whatever, it's not real friendship. One piece of advice is that you could try doing something or going somewhere with people, so it's not all about a conversation. I also know that living in certain towns (like my hometown) finding something to do can be near impossible.
Now, for making new friends. Honestly, this is hard in high school, but not impossible. Friendships ebb and flow, and all of my friendships have seen different levels. Joining clubs is one good strategy. You could even try starting a club with someone else. For example, if you know someone who enjoys programming and you do too, you could both start a programming club. Why when I just said that only talking about computers is not frienship? Because having a club means you have to interact with people and it can bring in situations for meeting other people. Often, just having a good time with someone is a good sign.
Now, for the advice that is probably most important, what will happen at college. I'm a geek, and I chose NYU, a college that I'm pretty sure is not very geeky at all. I did this on purpose, because I wanted a clean slate and an environment that actively pushed me to become more social. Here's some tips:
- You have to do whatever you can to meet random people in the beginning. Sit with people at lunch, talk to people before class, join clubs, go out with floormates. I didn't do this at all, and now I regret that my only friends are from my floor. You just have to take advantage of this critical period when socializing is extremely open.
- I was extremely depressed during my first few days at college. Many others seemed to have something amazing about them, playing an instrument, photography, acting, etc. Everyone else also seemed much more sociable while I stayed quiet most of the time. I often thought whether I made the right college choice. But after those few days, I suddenly fit in well enough. I was still very much the same person, but after all the stuff about "whoa! you play guitar!" or "dude, you've got so many movies", personalities became more dominant. I wasn't an asshole, and I could be funny on occasion, and I danced like an idiot, but a funny idiot. So the moral of this is, do something in high school that you can show off to other people so those first few college days won't be as painful. Otherwise, just be a nice guy and if you come up with something funny, clever, or interesting, say it!
- After a few weeks of college, you will notice that everyone seems to have an individual label. I don't mean prep, jock, goth, or things like that. More like, everyone has a few personality traits that make them who they are. Somebody might be the big, outgoing guy, or the californian Asian dude, or the quiet we-need-to-get-this-guy-a-date nerd (guess who I am). Whatever happens, don't be the awkward guy. This will mean being natural and casual. If you don't think you can hold a one-on-one conversation with a girl, even if she's just a floormate, then frankly, don't. Large groups are your safest bet.
To return to your high school troubles, here's one last piece of advice. Even though the guy who might be good at acting or talking to girls has his own kind of smartness, make sure that both you and other people respect you. Don't mix with people who disparage science if you're into science. Find people who are willing to be intellectual.
I'm afraid that much of the above was too long, off-topic, or just weird. I'm pretty much writing this as stream-of-consciousness. Just remember: Be yourself. You can change yourself. You have to like what you change into.
comment 17y ago · link · parent
Je le mange - I eat it.
Je tu le donne - I give it to you.
'le' means 'it', and 'tu' means 'you'. So literally, the first example would be "I it eat", and the second would be "I to you it give".
I don't know Spanish very well, but I pulled this off of Google translate:
Yo lo vi - I saw it
I'm assuming 'lo' is 'it', and 'vi' is 'saw'.
comment 17y ago · link · parent
My first language, Bengali, an Indo-European language spoken in Bangladesh and thus distantly related to Latin, is S-O-V. I'm assuming from this that Hindi and other Indian subcontinental languages are as well.
I think S-O-V makes sense when communicating visually. Say someone kicks a ball. Initially you see a person and a ball. Then you see the person kick it. The action comes after the presence of the two objects. You don't see a person, see him kick, and only then see the ball.
comment 17y ago · link · parent
comment 17y ago · link · parent
Good Javascript programming requires coding differently than you would in Python and C, you have to understand and use strange but cool features like closures and prototypal objects.
comment 17y ago · link · parent
comment 17y ago · link · parent
For example, console games don't suffer as much from pirating, but what if hypothetically it was as easy to pirate a game for your Wii or 360 as it was for your PC? I very much doubt that people would continue to buy the games.
So basically, the very presence of pirated games available for free is taking sales away from the game makers, people are simply choosing the free option.