Profile

Cover photo
Sam Vilain
Works at Hearsay Social
Attended Ecclesbourne Infants, UK
Lives in San Francisco, CA
1,227 followers|354,209 views
AboutPostsPhotosYouTube+1'sReviews

Stream

Sam Vilain

Shared publicly  - 
 
Non-Restartable System Calls: does anyone have any idea as to why system calls like recv(2) would not be restartable on sockets with timeouts?  Surely it wouldn't be that hard to make this work...
Signal dispositions Each signal has a current disposition, which determines how the process behaves when it is delivered the signal.
2
Arthur Vilain's profile photo
 
I'm guessing the setting for hold state on power cycle \ loss of supply, shot in the dark there

Did see this though,
"If a signal handler is invoked while a system call or library function call is blocked, then either:
*
the call is automatically restarted after the signal handler returns; or

*


the call fails with the error EINTR.

Which of these two behaviors occurs depends on the interface and whether or not the signal handler was established using the SA_RESTART flag (see sigaction(2)). The details vary across UNIX systems; below, the details for Linux."

Also I would check that the correct architecture is identified.

"Standard signals

Linux supports the standard signals listed below. Several signal numbers are architecture-dependent, as indicated in the "Value" column. (Where three values are given, the first one is usually valid for alpha and sparc, the middle one for x86, arm, and most other architectures, and the last one for mips. (Values for parisc are not shown; see the Linux kernel source for signal numbering on that architecture.) A - denotes that a signal is absent on the corresponding architecture.)"

Not sure if I helped or not but I hope I did

Arthur
Add a comment...

Sam Vilain

Shared publicly  - 
 
I wish Hollywood would make disaster movies that actually prepare people with actual things to watch out for.  This trailer shows off its complete disregard for physics; just look at the building falling over as if it were a tree in this video (at 34s, the link below should be cued).  There's just no way a building would detach from its base, pivot on an edge, and stay in shape long enough to fall over sideways like that.  Even a small lean on a 30+ storey skyscraper is an immense torque that will simply result in an immediate failure of any piece.  After that, the building will fall down largely inside its footprint (and Richard Gage will show up and give talks on it being an inside job).

The real thing to watch out for is falling debris from the building next to you, not worry about whether a skyscraper a block away is going to topple sideways.
1
Liz Quilty's profile photo
 
You  think thats bad, check out San Andreas Quake - its a b grade version of this :D
Add a comment...

Sam Vilain

Shared publicly  - 
 
"It can fit on the wall in your garage—to power your Tesla, of course" - actually an entry-level Tesla (~US$70k) would need about 6-7 of the large versions of these to charge an empty battery, about US$25k. Assuming 5 full charges a month, about 350kWh, you'd need to add another 2.2kW (at least - that's for Arizona) of solar panels to your house to trickle charge that lot, which is about 7 6'x3' panels. But assuming you've got the roof space, that part's cheap: about $3000.

Then again, perhaps being able to do a full charge isn't important: a top-up for a daily commute would also be useful. So how many solar panels would you need to make sure you can drain the 10kWh completely every day before you leave? A bit less than 2kW.

That's an interesting figure: right now, for every $1 you spend on solar panels, if you spend another $1 on Tesla's batteries, you can smooth your power use for a day.
Tesla unveiled a new product line at its design studio in LA tonight. It’s called Tesla Energy and it’s a suite of batteries for homes and for businesses. The existence of the batteries has been one of the worst kept secrets of all time. But we are here at the announcement event and finally have some details. And they’re pretty damn cool.
2
Add a comment...

Sam Vilain

Shared publicly  - 
 
Ah, the joy of realizing after a long test debugging session that the reason the test is failing this time is because it hit that "if 0" you inserted, thinking "if this doesn't break the tests, the tests are broken"
1
Add a comment...

Sam Vilain

Shared publicly  - 
 
Today the internet and many other functions weren't working on my phone.  I tried to use a browser, but instead of the page I wanted, it downloaded a file called "NsIV6w0t.exe" (other pages would download differently named files).  I tried Firefox and Chrome: same thing.  Crap, I thought... this must be some kind of evil malware.  I certainly won't click on those files, even though I know that Android isn't shipping with EXE binary compatibility :-).

Finally, when I got to work... I transferred one of these EXE files from the phone to my computer and picked it apart.  It looks like the response AT&T sends you when your account has become persona non grata, like for instance your prepay data credit ran out.

I have no idea what response the browser received from AT&T to cause this redirect to be downloaded as a file.  Perhaps there were double headers.  But where did the filename come from?  Well, I restarted the phone and now the problem is gone.  All very odd.
1
Sam Vilain's profile photoMartin Atkins's profile photo
3 comments
 
Oh hah I didn't spot those! Faulty pointer arithmetic, then. Good thing those were nulls and not some random noise left in memory.
Add a comment...

Sam Vilain

Shared publicly  - 
 
I don't want to go outside, the fake bokeh looks awful
2
Add a comment...

Sam Vilain

Shared publicly  - 
 
This article just saved me from the indignity of burning an install CD for an in-place Arch to Debian reinstall :-)
If your GRUB 2 bootloader gets borked, use these tricks to rescue your system.
1
Add a comment...
Have them in circles
1,227 people
Jonathan Duff's profile photo
Smith-Kandal Insurance & Real Estate's profile photo
Matthew Hunt's profile photo
Jayne Wallis's profile photo
Simon Elliott's profile photo
Ailson Lima's profile photo
Marylise Oura's profile photo
David Thompson's profile photo
maria handry's profile photo

Sam Vilain

Shared publicly  - 
 
I need to set up a tech blog so I can write about this.  But it's pretty cool stuff; I've been touching on ideas like this for some time in the far recesses of my technical imagination :)
In last six months, we have transitioned most of Facebook on Android to use FlatBuffers as the storage format.
4
1
David Michael Barr (barrbrain)'s profile photoPaul Bennett's profile photo
 
It reminds me of a long abandoned patch series to add similar primitives to git-core.
Add a comment...

Sam Vilain

Shared publicly  - 
 
So much win in these answers.  A+
 
If kids aren't allowed to swear when answering a worksheet like this, where they're supposed to be learning to assert their independence and refuse bullshit excuses against condoms, then schools are throwing out babies with the bathwater.

At most the teacher should have requested that the student use f*** or an equivalent.  And fine, she can lose a point for not putting her own responses on the back as directed.  But her responses are perfect as they stand and should be applauded.

Don't ask for people's voices if you don't want to hear how they choose to speak.

http://happyplace.someecards.com/sex-education/a-14yearold-girl-was-suspended-for-these-hilariously-snarky-answers-to-a-sexed-quiz/
One Imgur user says he's still proud of his sister, who was suspended two years ago after turning in this handout at school.She should do marketing for a condom company. (via Imgur)This is a perfect e
28 comments on original post
3
andrew mcmillan's profile photo
 
Very impressive. FWIW I just read these to my #2 son and he thinks they got better near the end. That's all he would say, but I was impressed.
Add a comment...

Sam Vilain

Shared publicly  - 
 
One of my favorite brewing hacks: take a 1 Gallon (about 4L) glass bottle of pasteurized apple juice, drink about two cups' worth, add about 1 tsp of yeast nutrient (potassium phosphate crystals), and regular ale yeast.  Stop the bottle with an airlock, and a few weeks later, you've got (hard) apple cider ready to bottle!  (with bottling sugar/dextrose)
4
2
Sam Vilain's profile photoGreg Bodnar's profile photoSteve Bellamy's profile photoAlexandre Lymberopoulos's profile photo
4 comments
 
We have a well-abused juicer, basically a shredder. While the filter is clean, the yield is high, but it clogs up quickly and the pulp contains more and more juice. A press would be welcome. We just clean often.

We've done about 250l of cider from apples to date and the juicer still works.
Add a comment...

Sam Vilain

Shared publicly  - 
 
Tonight I replaced my screen in my phone. It's new again! Saved something like 85% in getting the kit ($20) vs taking it to a third party ($150-ish). But it wasn't easy removing the old screen: it involved heating the phone with a hairdryer until the glue softens enough to pry open. Then you have to work a wire down between the glass and the LCD, keeping it warm as you go. For this stage I switched to a butane heat gun. Removing the remnants of the glue with alcohol was also tricky... a bit like removing remains of a sticky label. Finally there was double-sided sticky tape and the new screen was adhered. Took the guy in the video 18 minutes... and me about 2 hours. But it worked!
6
Jun Yamog's profile photoSam Vilain's profile photoPaul Makepeace's profile photo
6 comments
 
Personally I just like having done it myself!
Add a comment...

Sam Vilain

Shared publicly  - 
 
<3 my new ISP!  :)
Most ISPs were quick to denounce President Obama's net neutrality plan in apocalyptic terms on Monday, which isn't too surprising considering they were really looking forward to being able to charg...
1
Add a comment...
People
Have them in circles
1,227 people
Jonathan Duff's profile photo
Smith-Kandal Insurance & Real Estate's profile photo
Matthew Hunt's profile photo
Jayne Wallis's profile photo
Simon Elliott's profile photo
Ailson Lima's profile photo
Marylise Oura's profile photo
David Thompson's profile photo
maria handry's profile photo
Work
Occupation
Free software developer
Employment
  • Hearsay Social
    Web Infrastructure Architect, 2013 - present
  • Say Media
    PaaS developer, 2011 - 2013
  • Open Parallel
    Research Developer, 2010 - 2011
  • Catalyst IT NZ
    Senior Perl Developer, 2005 - 2010
  • Marketview NZ
    Data Mining & Intranet Developer, 2004 - 2005
  • EasySpace UK
    Perl Developer, 2001 - 2003
  • Solnet NZ
    Solaris Specialist, 2000 - 2000
  • Unisys NZ
    Solutions Architect, 1997 - 1999
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
San Francisco, CA
Previously
London, UK - Wellington, NZ - Hamilton, NZ - Tallahassee, FL, USA - Thornton Heath, UK and Upper Hutt, NZ - Guildford, UK
Story
Tagline
Computer Programmer and Occasional Freedom Evangelist
Introduction
I'm a British Kiwi (ie, born in England, raised in New Zealand) from Wellington, who now lives in San Francisco, California.
Bragging rights
Converted Perl to Git, Reformed Climate Change Skeptic, First to 168°E 47°S with 2 others, first ever Moose talk at a major Perl conference. Up to 4th Grade (red with Brown Tips) in Chan's Martial Arts Kung Fu style and graded 1st part of 42 form in Sing Ong Tai Chi. 3rd = in 5th Form NZ National Maths Contest at age 14.
Education
  • Ecclesbourne Infants, UK
  • Rudiger Road Runners, FL, USA
  • Winterbourne Primary School, UK
  • Fergusson Intermediate, NZ
  • Heretaunga College, NZ
  • Victoria University, NZ
  • NZ School of Acupuncture & Traditional Chinese Medicine
Sam Vilain's +1's are the things they like, agree with, or want to recommend.
How to Rescue a Non-booting GRUB 2 on Linux | Linux.com
www.linux.com

If your GRUB 2 bootloader gets borked, use these tricks to rescue your system.

iPhone like Tabs in Android.
adilsoomro.blogspot.com

Hi all! While developing Android application we needed Iphone like tab bar at the bottom of the screen, so Googled and find usefull links bu

Arctic thaw significantly worsens global warming risk - environment - 18...
www.newscientist.com

As Arctic sea ice retreats, the Earth's ability to soak up the sun's heat is boosted by twice as much as we thought, compounding the greenho

Installing M2Crypto in a Python virtualenv on Ubuntu 13.10 Saucy
blog.rectalogic.com

There are two bugs that prevent the python M2Crypto 0.21.1 package from being pip installed from pypi in a virtualenv on Ubuntu 13.10. First

Bye, Bye, Apple Pie: US intransigence in a war-weary world | Scoop News
www.scoop.co.nz

It actually shouldn’t be that much of a shock. For the last twelve years at least, Americans have watched their country drift into the shado

ZArchiver Donate
market.android.com

ZArchiver Donate - a special version of the program for donate to project. At the moment different from the free version only in the applica

New Yorkers get juiced with solar charging stations
www.treehugger.com

"My battery died!" may no longer be a valid excuse for missing an important text or phone call, thanks to new public cell phone charging sta

How much out of whack is the UAH temperature data set?
blog.hotwhopper.com

I see that Anthony Watts has a post up on WUWT with a chart from Roy Spencer and John Christy that compares UAH data to CMIP5 model runs. I'

Fred Barnes Is Always Wrong
mediamatters.org

Fred Barnes sees an Obama presidency in trouble. That's probably good news for President Obama. The Weekly Standard executive editor and Fox

New MRI Images Reveal Acupuncture Point Specificity
www.healthcmi.com

New MRI imaging reveals that acupuncture has specific medicinal actions involving activation of the brain.

Matt Ridley has joined the real climate debate
www.guardian.co.uk

Myles Allen: The climate sceptic's interpretation of my study as final endorsement of his position means we can move on

MP on Google tax avoidance scheme: 'I think that you do evil'
www.guardian.co.uk

Google and Amazon face fresh attack over claims that their multibillion-pound UK-facing businesses should not be taxed

Google+
market.android.com

Real-life sharing rethought for the web, wherever you are. Google+ for mobile makes sharing the right things with the right people a lot sim

House Kills SOPA
www.examiner.com

In a surprise move today, Representative Eric Cantor(R-VA) announced that he will stop all action on SOPA, effectively killing the bill. Thi

Gardenista: Sourcebook for Cultivated Living
gardenista.com

Gardenista is a one-stop sourcebook for cultivated living guiding readers through the garden design and renovation process with inspiration

World of Goo
market.android.com

------------ "Game of the Year" -MetaCritic, IGN, TouchArcade, Rock Paper Shotgun, GameTunnel - Best Games for Android lists - NYTimes, tech

How Not to Shoot School Portraits
www.petapixel.com

Here's a cute and funny little short by filmmaker Nick Scott about school portraits, children, life and innocence....

Organizational Charts | Bonkers World
www.bonkersworld.net

Organizational Charts. Posted on 2011/06/27 by Manu. Tweet. This entry was posted in Uncategorized and tagged amazon, apple, facebook, googl

This restaurant has plenty of room and is my favorite spot to pick up a bread bowl of clam chowder. They have plenty of room, making it a quiet escape from the chaos of Fisherman's Wharf and have a good beers selection.
Food: Very GoodDecor: Very GoodService: Excellent
Public - 2 years ago
reviewed 2 years ago
2 reviews
Map
Map
Map