HNHacker News
TopNewBestAskShowJobs

jmpe

333 karma · joined October 25, 2013

submissionscomments
jmpe··on YouTube Addresses Massive Spam Problem Following Rollout of Google+ Commenting
Remember the 90s? More specifically Windows & Linux? One was completely network oriented but sucked for graphics/sound on the desktop, the other was the complete opposite. Both moved towards each other, but with massive growing pains - some of which still linger today, a few decades later.

Google does ads. FB does social. They're moving towards each other. These G+ problems? Mark my words: Google's Achilles heal for ever.

jmpe··on Nerdalize: warm house, cheap datacenter
I think Google uses a technique that could be put in this setup: heat the water in the toilet cistern, flushing disposes the collected energy.
jmpe··on Mozilla’s reliance on Google is increasing: 90% of 2012 revenue
w3schools is relatively small but their stats are good:

http://www.w3schools.com/browsers/browsers_stats.asp

And there's also Google trends.

jmpe··on This Google ad has moved people to tears across India and Pakistan
I'd like to suggest adopting something akin to the Dewey decimal system for your bookmarks. You don't have to create folders and subfolders but just prepend the number to the bookmark title. That way they get ordered in an alphabetic list.
jmpe··on Google launches Portable Native Client
I'll allocate some time for it. Where should I submit?
jmpe··on Google launches Portable Native Client
ouch, sorry, misread your last sentence.
jmpe··on Google launches Portable Native Client
I have it somewhere, also still have that laptop. It wasn't a benchmark but a poc for an algorithm.

I did some serious optimization when I wrote it. There was a "best practices" for V8 that shedded some light on the background of JS variable allocation, I followed it and got a serious boost. Also did lookup tables instead of runtime math with exp/log functions. But in the end: hit several worst case images that took more than 12s, which was a gap that couldn't further be reduced through optimization.

But you're absolutely right, I should redo it in PNaCl.

jmpe··on Google launches Portable Native Client
yeah, but think of the pro: "you can help pay for this website by pressing this button and leaving this window open for an hour". You could help SETI by just visiting a URL.

By fertile pasture I mean that both malevolent and benevolent communities will support this. This could see a lot of optimization if open sourced (is it?).

jmpe··on Google launches Portable Native Client
The "significantly faster" is your answer. A 10 second visit on JS vs PNaCl is a whole new game.

Edit: to elaborate: do a simple simulated annealing on a 200x200 array in JS - it's measured in seconds on my laptop. I wrote a program in JS that did this (image segmentation, fg/bg seperation for recognition) and abandoned it because of speed issues.

jmpe··on Google launches Portable Native Client
This could also be a fertile pasture for distributed computing on the fly. Suppose you have a website that attracts 1k visitors per day on chrome, how many MIPS could you harvest? Could you let them mine bitcoins or fold proteins in the background without attracting attention?
jmpe··on Bill Gates: My Plan to Improve Our World, and How You Can Help
Click his handle, check the profile.
jmpe··on Samsung, Nokia say they don’t know how to track a powered-down phone
Sorry, you're wrong.

Samsung Galaxy S1:

http://www.techinsights.com/uploadedImages/Public_Website/Co...

The internal battery is located at the top-right - a circular coin cell soldered to the board.

Samsung Galaxy S2:

http://i295.photobucket.com/albums/mm148/rprosperojr/IMG_120...

The internal battery is located at the center-top

Edit: In case of the SGS2 it's located next to the WLan/BT module.

jmpe··on Preferred number
The feature length in integrated circuits.
jmpe··on The Quality of Embedded Software, or the Mess Has Happened
I know a few good firmware engineers. A reason why they, too, produce "crap" is:

- Many of them come across hardware errors or suboptimal designs during a later stage in the FW development. In most cases they hack a workaround that doesn't involve a redesign to be able to move on with the next item on the list. Folks higher up the chain of command see this as an excuse to avoid a redesign: "we're not going to do a redesign for that, Mark fixed it in software". Examples: pretty much every ARM System Board out there.

- Someone picked a device that was available during the design phase, but went EOL a few months later before production. It happens.

- Someone found a cheaper device than originally planned but it doesn't really do what it says on the box. Typically peripheral stuff like ethernet or usb.

- And here's the big one: !!Crappy Datasheet!! Some companies, some really really big IC companies produce crap datasheets. Yo get accustomed to the fact that this new Cortex-M µC will probably have an errata or updated datasheet every few months.

- the redesign fixed their EMC problem to get the certificate, someone fixed the power supply. But now you get into trouble if you drive this and that device because the voltage takes a dip.

But I'd like to add: I agree with your post.

jmpe··on Fourier Toy
I learned about Fourier this way from an old "American Scientist" book. The writer had a very powerful remark at the end. He explained how Ptolemeus first used epicycles as a base model to explain planetary motion [edit: their paths]. The criticism that led to the demise of this model was basically "yeah, well, you can make planets have square paths this way". If someone connected the dots at that point we could have had Fourier transform a couple of hundred years earlier. Maybe we did, but the documents disappeared.
jmpe··on Swiss forensic report on Arafat's death
You might want to check out Adam Curtis, if you don't know him yet. Start with "all watched over by machines of loving grace". It's a series available for download on archive.org.
jmpe··on Programmable 6,000-Part Drawing Boy Automaton Built 240 Years Ago
This was featured on HackaDay a while back. Some cool documentaries in the comments:

http://hackaday.com/2013/10/29/retrotechtacular-automata/

jmpe··on History of the browser user-agent string
Off course it still has its use. It comes in handy when you forget your d-link router password.
jmpe··on Google bots follow SQL-injected URLs from third party sites
How would one differentiate between a legitimate query and one that traps? Seriously, suppose I link to a search result page for MySQL [on some site] for info on such a query, wouldn't it look the same?

Not looking for work atm, so my advice: this is not your problem.

jmpe··on 6TB helium-filled hard drives bump capacity, decrease power use
So you think this isn't a viable step or you have doubts about the long term?
jmpe··on Google Search Now Includes Etymology
Amen.

If you need an example, Google "TFK426". No, it's not a tuning fork, it's an 8-pin DIL.

Same goes for the brokers: "SAA1084P".

Those are just 2 examples I found last Friday. They're components on an old PLC I need to fix and they're just laughing in my face. I suspect they're opamps but I'll probably never know and I'll end up telling someone to just buy a new system.

jmpe··on 6TB helium-filled hard drives bump capacity, decrease power use
"the main issue being finding a way to reliably keep the helium from leaking out of the devices"

http://gizmodo.com/5943238/helium+filled-hard-disks-less-dra...

I don't think it took them 10 years to figure it out. It's probably only now that the cost is justifiable when compared to other techniques that increase capacity.

jmpe··on Smart Air
AFAIK you could introduce mosses (Vesicularia and the likes) instead of higher plants, they're not as CO2 dependent. Every aquarium tutorial I ever read tells me that air pumps lower the CO2 content and you need injection as you explain.
jmpe··on Chuck Moore's Creations
For embedded problems where speed/energy is a tradeoff you can't make. Then you start looking at solving it with parallelization.

Take this straight forward camera sensor:

https://www.sparkfun.com/products/retired/8668

If you look at the datasheet, there's a control interface (I2C), various clocks and a data interface (DOUT0-7). The clock minimum is ~6 MHz, so no biggy and suited for embedded systems. Until you start to work out the details: you need to send commands, read in a hefty datastream and do something with it (like writing to storage). That means you either write out the pixels as they come in, or you buffer an entire picture (or large part) and then write it out.

The first solution means that you'll need an embedded system with a clock that has an integer amount times the minimum clock for the sensor (you need to do stuff between different moments when data comes in).

The second solution means a large amount of RAM (think order MBit).

Embedded systems never scale the way you'd like them to, typically everything scales in one go. You want more internal RAM? Well, we also scaled this and that even though you won't need it, and it's 32-bit now instead of 8- or 16-bit. You want external RAM? Well here's an IC with the extra pins and an FSMC but it also has more Flash than you'll need and it comes with USB hardware you won't need. Result: more $ per unit even though you'll only need 40% of its functionality.

There's also an additional problem: This type of control from one single-core system will mean that you're going to write very dense code loops that won't be very happy about exceptions (e.g. flash write delays).

What you need in this kind of systems is a parallel approach:

- 1 core to do the I2C (very low requirement)

- 1 core to check the timing for your output stream (straight forward logic)

- several cores to read/process/filter the incoming stream (follow the datasheet)

- several cores to store everything in temporary external RAM on the fly (lockstep)

- one or more arbiters to tie everything together (the challenging part)

An 144 core system like this would be severely underemployed for this type of camera sensor. You could scale up the sensor to very high performance cameras.

jmpe··on Smart Air
A cheap air pump for an aquarium will produce enough pressure for a string of air stones. I have a 10$ pump (2W) on my desk here that blows 4 stones and I still have to limit the flow a bit or the display looks more violent than soothing. More expensive pumps not only have more power but will also have a better design with less noise.
jmpe··on Smart Air
Use aquarium air stones. The smaller the bubbles and higher the column of water the better.
jmpe··on Smart Air
I've used HEPA filters when I built an IV glove box a couple of years back. Don't recall the numbers, but I needed a fair bit of pressure from the air pump to get a decent flow rate. Somehow I don't think a fan will do it.
jmpe··on Mysterious Mac and PC malware that jumps airgaps?
webcam <-> screen: QR codes?

accelerometer: is very low bandwidth (think ~10-1000 measurements per second). The noise is ~100μg/√Hz - with 12 bits samples I'm not sure you'll pick up HDD vibrations (but rather easy to test).

Someone should lend the people researching this an oscilloscope.

jmpe··on Why does the alarm clock snooze button give you nine extra minutes, not ten?
Oh, there are a few more like that:

- there's a very good chance that the touch-pad in your new laptop uses the PS/2 protocol to communicate with the system

- why do I need to address cylinders/heads/sectors in a flash block device? I can understand sectors (block addressing) but cylinders and heads? It's FAT/EXT4 legacy, but the translation layer is still there in many OS-es.

- I recently wrote a driver for an LCD. I could have sworn I was accessing a CRT: front porch, h-sync pulse, back porch, v-sync, ...

jmpe··on Java Virtual Machine in pure Node.js
With GWT you can translate the Java application to standalone JavaScript files ... and with this implementation you can run Java in a Javascript environment.

Which one would perform best?

← PreviousPage 4 of 5Next →