HNHacker News
TopNewBestAskShowJobs

calloc

1,131 karma · joined September 3, 2010

submissionscomments
calloc··on Web Standards
NaCl is not part of WebKit.
calloc··on How many gallons of gasoline would it take to charge an iPhone?
You really need to specify whether that 50 miles per gallon is in US or UK gallons ...

US gallon is 3.78 Liters, UK gallon is 4.54 Liters.

US gallons: 50 MPG = 21.26 km/liter UK gallons: 50 MPG = 17.70 km/liter

50 MPG (UK) is 41.6 MPG (US).

In my Hyundai Accent (Korean) I get 34 - 36 MPG (US) depending on how I drive it. It is not nearly as efficient as a Renault Twingo or my grandma's Toyota Aigo (awesome little car).

calloc··on How many gallons of gasoline would it take to charge an iPhone?
My commute is mostly highway, at 65 Mph. The most common use case for my vehicle is thus very different from yours. Your vehicle would add extra time to my commute, and would not be useful for me in any situations where I am travelling long distance (120 km/h is the norm in Europe, that is about 75 Mph) I want to go faster, I don't want my trip to take even longer.
calloc··on Canonical will no longer fund Kubuntu
PC-BSD is KDE based. Then again I guess FreeBSD isn't just a distribution of Linux and doesn't count.
calloc··on The cause for all your Mac OS X mouse annoyances
My Microsoft Laser Mouse 6000 which I have had for ages and I've never had a lag problem with is set to be polled at 10 ms.
calloc··on The cause for all your Mac OS X mouse annoyances
Apple has the worlds most terrible mouse product designs, but if there is one thing they got right it was the touchpads. I will not be purchasing a Windows laptop until I can get one with the exact same touchpad with the exact same surface and feeling to it. I've spent countless hours with my Mac and just the touchpad, I wouldn't even dream of doing the same with my Lenovo IdeaPad or any other laptop I have played with to date.
calloc··on XFS: the filesystem of the future?
How does XFS stack up with ZFS when it comes to speed, reliability and protecting my data?
calloc··on Why, oh why, do those nutheads use vi?
FreeBSD. Although it is mapped to nvi instead, ever since 4.4BSD.
calloc··on Show HN: Fed up with WebEx, so we built a way to screen share in under 20 sec.
If you are going to use an URL shortening service, please go with one that is universally recognised by most tech people, such as bit.ly. I've never heard of tweak.tk and I've never seen it come across my Twitter feed.
calloc··on Hetzner introduces new server product with insane parameters for 59 EUR/mth
I had two failing drives in my Softlayer box (was about three years after they were put in service ... so not bad), and Softlayer insisted on running the HD diagnostics on our machine taking it down for an hour.

We just ended up purchasing a new box, migrating over and letting them take the old one offline. We ended up paying less per month for twice the specs...

calloc··on Understanding the bin, sbin, usr/bin , usr/sbin split
Except that /usr is where /usr/local lives (all software installed through the FreeBSD ports tree) and I don't want that on my / partition, so now I have to create a partition just for /usr/local? How about the various other files under /usr, they now have to be moved to / as well? On FreeBSD /usr also houses /usr/home. /home/ is a symlink to /usr/home!

/ on a FreeBSD system is generally kept small. It doesn't have softupdates on when using UFS2 since it is also the location where your kernel lives, along with rescue utilities and your main /bin. Nothing else.

The proposal as put forth is misguided (talking about Fedora's in this case) and I don't think that the system should be re-engineered just because that is the default use case these days. I remember when I first started using Linux and I created a separate, /boot, /, /usr, /home, and /tmp. Just because udev and others now fail to work correctly doesn't mean it isn't a good idea to keep those separate...

This is just going to cause more trouble, more fragmentation between unix/unix-like systems and Linux and it's various distributions.

calloc··on Coding Horror: Separating Programming Sheep from Non-Programming Goats
I worked as a TA at my university for a while (under-grad TA too ... was a blast, me and the prof got along really well, and I knew the material extremely well and could teach) and the hump mentioned is true. I once used to believe that everyone could learn how to program, if you can write down steps for making toast in the morning you know how to program, but some people just couldn't get it.

There was some mental disconnect that didn't allow them to grasp certain key features required for programming. No matter how you explain it to them, no matter how you tried to change the model to help them. I spent a lot of time with the professor I was TA'ing for trying to understand why, trying to understand what we were missing that could help these students understand. Stuff like scope, pointers, references were some of the difficult topics, which to me come almost naturally they felt it hard to wrap their brains around.

There were students that didn't get it but they could fake the knowledge required and could get the end result but not understand why that was the end result. They did okay on the programming questions, but when it came to knowledge of what was going on they couldn't explain it.

I felt terrible having to fail students, I felt even more terrible when I could see on their face that they had tried their absolute best. I don't think I could go into teaching unless I taught uper-level classes so that I didn't have to deal with the great disappointment and filtering of students. The look on a students face as he was sitting in my office during TA hours and he still wasn't able to grasp the concept of pointers made me feel really sad. I don't think I can deal with that again.

calloc··on Understanding the bin, sbin, usr/bin , usr/sbin split
It would break FreeBSD's single user mode when using the defaults during installation for partitioning.

FreeBSD's default install creates: /, /usr, /tmp, /var and swap space.

When you boot in single-user mode all you get is / and nothing else. If everything was in /usr you wouldn't be able to mount /usr ... :P

calloc··on Understanding the bin, sbin, usr/bin , usr/sbin split
I still have various partitions: /, /var, /usr, and /tmp (on a single slice). When I am in single user mode the only binaries I have available are in /bin. Unless I mount /usr that is all I have access to, so the split still makes perfect sense.

A lot of Linux distributions by default suggest using the entire disk and creating a single partition named /. In that case it doesn't make sense to have the various different locations since mounting / means you have /usr/bin as well.

I don't want a user being able to fill up the hard drive stopping me from writing my logs, stopping me from logging in or various other things (yes, i've filled up my / partition at one point and was unable to log in because SSH was failing to log something or other). There are also security reasons and being able to set various security flags on mount makes it easier to secure a machine as well (such as noexec on /tmp and or /var).

calloc··on Is My MacBook Pro Always Listening?
You can still insert a barrel jack, this time with 4 rings instead of 3 at which point the microphone is disabled.

For example, Apple headphones for your iPhone can be plugged in and used for that purpose...

calloc··on Reeling MPAA declares DNS filtering "off the table"
All of it is double speak. The bill can be revived at a moments notice, when we finally let up and go back to being complacent it will be pulled from the shelve and passed as quickly as possible.
calloc··on FreeBSD now available on all EC2 instance types
Any chance of getting Amazon to make these AMI's the same price as the Unix/Linux ones?
calloc··on Google Fires Back at Twitter: You Took Yourself Out of Search
Twitter is returning it's pages with all of the links marked as rel=nofollow. This means Google can't index the content that is linked by Twitter users.
calloc··on Why I Hate Android
In the USA both the caller and the callee pay for airtime.

In Europe the caller pays for air time.

While I vacation in Europe (Netherlands) I have a pay as you go SIM card that I use. I've used it the past 4 years, I've put no money on it since I bought it and I've used up all of the minutes, I get 10 free texts. When people want to get ahold of me they can call me and I can answer my phone, even-though I have no "minutes" left on my SIM card. I can receive text messages, and it won't count against my 10 free texts. I can use those 10 free texts to prompt people to call me.

That is beautiful. In the United States if I get a pre-pay sim card the money on it expires after 90 days if I don't use it, and at that time the number becomes invalid too. Unless you pre-pay $100 dollars onto the pre-pay card. I've had the same number for the last 4 years now, in The Netherlands, and it hasn't expired.

calloc··on The Mozilla Public License version 2.0 is out - and GPL-compatible
Now I can no longer recommend the MPL to people that don't want to license as GPL and don't want their code to suddenly become GPL'ed because someone used it in their project.
calloc··on WordPress has left the building
Why? Just because he is no longer using it for business purposes doesn't mean it isn't still perfect for what it was designed to do, blogging.
calloc··on The anatomy of a ripoff
I keep a savings account around with a minimum balance of $5000. The only reason I have that money sitting there and I am not using it as a down payment for a car I so desperately need is because I need it for my high deductible plan. I also have an HSA (health savings account) that I am slowly adding money to every month, which at the moment is mainly used to pay for prescriptions and the like.

Now, one could suggest that I change my plan to a non-high deductible one so that I don't have to keep that money sitting around in savings, but then my costs per month would go up $300, whereas my high deductible plan is entirely paid for by the company I work for. I don't go to the doctors nearly enough to that the extra money I spend per month would counter-act the amount I am paying out of pocket now because I never reach my deductible.

calloc··on Insidious C Behavior
In example two there is no \0 that is being removed by the compiler to do the concatenation. In the C language this is perfectly valid:

  "Testing something" ": more";

  "Testing something"
  ": more";
This is still only considered one string, whether there are newlines in between or not. The translation unit is from the last semicolon to the next semicolon (overly simplified), so the compiler see this:

  "Testing something"": more";
Now it sees that there is no operator between the two "strings" and simply makes them a single string.
calloc··on A simple guide for getting started with git
That one has been mostly abandoned by the author, for one that is regularly updated take a look at https://github.com/laullon/gitx which is a fork of the original GitX.
calloc··on A simple guide for getting started with git
Mac OS X Lion ships with Git by default. So no need to download Git for that platform.

Also, brew is a better choice for installing and keeping git up to date.

calloc··on Damn Cool Algorithms: Fountain Codes
Seems the website has gone over quota. Shame, because the content is absolutely fantastic. Had it opened and had begun reading it on my computer at home.
calloc··on TVs are all awful
This behaviour is the same on Windows. If Windows doesn't receive a DHCP address is will assign one in the self-assigned range first. After about a minute or so it too will re-request an IP address from the DHCP server and if it receives one it will assign that to the interface.

What Windows does do wrong is that it then also drops the self-assigned IP address which may already be in use for communication, this can cause issues with other hosts that are communicating with it over zeroconf.

calloc··on TVs are all awful
This depends off course on how you create the wireless network. If you create one by routing another network such as using Network Sharing a DHCP server is set up since now it acts as a router.

You are correct for Ad-Hoc networks.

calloc··on STRIP Act targets TSA uniform: End 'impersonation' of 'real cops'
I was watching some TSA employees that were on "break" at one of the lanes since it was not busy at all and it was extremely unprofessional, loud, and they were making fun of various people that were going through the machine, laughing at how fat someone was, or how their outfit looked hideous.

These are the people we expect to catch terrorists! These are people we allow to go through our luggage and bags on their word alone that they saw something on the X-Ray monitor. It made me incredibly sad that we are entrusting these miscreants with securing airports.

calloc··on TVs are all awful
You can simply ask Mac OS X to request another DHCP address when it comes up with Self-assigned IP. The Self-assigned IP address is actually in a range that is specified in the RFC 3927 [1]. This is mainly done so that if it joins a network without a DHCP server it can still communicate with other hosts on the network, just not the outside.

Also, in my experience Apple's DHCP agent will re-request an IP address after having assigned itself a self-assigned IP address. This generally takes about a minute or so, in that time the DHCP server can then reply once again. I've never had issues with this at all.

[1] http://www.ietf.org/rfc/rfc3927.txt

← PreviousPage 4 of 19Next →