Friday 14 December 2012

The New Facebook for Android Has Been Rebuilt from Scratch, Is Twice as Fast as the Old App

The New Facebook for Android Has Been Rebuilt from Scratch, Is Twice as Fast as the Old App:
The New Facebook for Android Has Been Rebuilt from Scratch, Is Twice as Fast as the Old App Android: Facebook just took the wraps off of a new version of its Android app today, and you'll want to download it. It's much, much faster than the previous version, mostly because Facebook has rewritten the app from the ground up, ditching HTML5 and optimizing the app for Android.
Speed is the only major change here—everything else is essentially identical to the old app. After updating, you'll notice pretty quickly that the app loads, scrolls, and just works faster than the previous version. Photos even load faster, liking and commenting on friends' posts is faster, and even scrolling feels more smooth.
There are a few new features: Facebook has added the ability to single-tap photos to open them directly so you can like and comment, and added a "New Stories" bar so you can see more news without refreshing your feed. Grab the new app now at the link below.
Facebook (Free) | Google Play via Android Police and Facebook Engineering

Tuesday 11 December 2012

Trauma Center

Trauma Center:
Paul's first day at Redacted Commodities and Trading, LLC. started with a coffee and a muffin, and ended with trauma leave.

New Blood


He was greeted at reception by Manny, one of the upper-level directors. He got the tour-- reception, sales, call center-- and ended up in the kitchen. Over a free breakfast of free coffee and free muffins (all free), they signed the HR paperwork. Once he had creamed and sugared his "I"s and "T"s, Paul was shown to The Center.
"It's the lifeblood of IT," Manny said, "Development, IT, R&D-- it all flows through here."
The Center was a converted corner office just off the main hallway. Though it might have once been large and sunny, three of the walls were now packed floor to ceiling with computers. There was everything from off-lease black boxes from the big blue company to spatterings of various shades of sun-stained beige, all in various states of apparent disassembly. There were CRTs, two-button mice, and keyboards without that proprietary key between CTRL and ALT. "This...graveyard is where the lifeblood of development flowed through?", Paul nearly thought out loud.
"Don't you have problems scaling the code up from development machines to the production servers?" Paul asked, speaking over the distant clackity-clack of a lone developer on a Model M.
"How do you mean?"
"You know," Paul prompted, "You can only stress test so much on the jalopy, so you never know if the code will handle the load the production servers can drum up."
"Oh, I see," Manny said, "No, the environments are identical for both. We use the same hardware, all the way from development to production."
Paul couldn't choke a response past the realization of that the production servers were also a cube farm of desktops with turbo switches. He didn't want to see what the server room looked like. He took a sip of coffee to cover his shocked expression.
Manny waved at the developer at the other end of The Center, and she waved back. "Well, you just grab one of the Development computers, and get yourself familiar. Janice there will come up with your first assignment, and the rest of the team will be in shortly."
Paul looked about, trying to pick a PC. He did on on-the-fly min/max calculation of closest to the lone window versus least covered in dust. He put down his coffee on the desk/ledge, and stabbed the power button.
The shrill shriek of the manager cut through him-- but a millisecond too late.
"DON'T TOUCH THAT COMPUTER!"
Paul froze. He'd already pushed the POWER button, but hadn't let it go. Only then did Paul see the tiny, envelope label stuck to front of the case. On it was handwritten:
PRODUCTION SERVER - TRADER 001
Manny was suddenly at his side. "If you let that button go, the company loses ten million dollars!"

A Second Opinion


Paul instantly had to fight a war on two fronts against reverse psychology and morbid curiosity. It took all his concentration to resist letting go. He had to distract himself. He took a deep breath, removed all the profanity from the question running through his mind, and edited it down into a single word.
"Why?"
"The computers are only supposed to reboot at night!" Manny exclaimed, sweating profusely. "Only at night! You'll shut us down for the whole day!"
"I'm sorry," Paul said, sincere-- realizing that he'd just become That Guy Who Screws Up on his first day. "I didn't think any of these were production. It won't take that long to reboot--"
"ONLY AT NIGHT!"
Paul closed his mouth, and counted to ten. At the six second mark, the computer was still on. No ACPI. Small blessings from old hardware.
When he finished, Janice, the head programmer, was at his side. She seemed calm, collected-- or at least had a good poker face. She looked down at Paul's finger, then back up again.
"How long does it take to reboot?" Paul asked, getting a bit worried now.
"A few minutes," Janice said, "Don't matter, though. Can't let it shut down now. Servers are scripted to reboot at night, after trading closes. When the server software boots up, it sets the trading calendar to the next day. Once that happens, we can't do any trading until the clocks match again with the exchange."
"Millions," Manny interjected meekly.
"A whole day of trading would be lost," Janice confirmed. "This machine can't shut down until after 8pm."
"No," Paul said, suddenly hit by the realization the only thing that will keep this server running for the next twelve hours was his finger, "You don't mean I'm going to have to hold this button all day-- no."
"You pressed it," Janice said, "You hold it."
"But--"
Manny shook off his fiscal daze. "If you let go, not only will I fire you, but I'll sic the legal team on you for the losses you caused!"
"I caused?" Paul stammered, his voice raising. "Maybe if you had proper servers, and kept them in a proper room! And bothered to label them properly!"
"No one else has ever had a problem seeing the labels," Janice said, folding her arms.
"Of course not, because if you had, the company would already be out of business!" Paul shouted. He took a deep breath-- yelling wasn't going to accomplish anything. "Look, sorry, just that all day is a long time-- maybe someone can switch out with me-- if we're quick enough--"
"I dunno," Janice said, leaning over, putting her finger next to his. "I can't even reach the switch. You've got kinda beefy fingers."
"Maybe if--"
"No," Manny said firmly, cutting him off. "We're not going to risk anyone not being fast enough. No switching. You're on button duty. Period."
Paul's mind raced-- desperately trying to come up with some solution. Maybe an on-the-fly patch to the trading system? A live trading system that probably hadn't been upgraded since RAM had to be installed in identical pairs? Not a chance. Okay, maybe if they clipped and shorted the power-on pin-- live surgery on a production server? Come on, man!
The rest of the team-- a dozen or so programmers-- had arrived at The Center. They were all gathered around, staring at the scene. He could see it on all their faces. Seeing where his finger was, working out it would mean to let go-- following the horrible consequences to their logical conclusion. He was the new guy, and he'd screwed up big. Millions in lost revenue. Never mind his job, which was as good as gone... how many of their jobs were at his finger tip?
He sighed, trying not to slump-- as depressed as the power button was.
"Alright," he said, resigned, "I'm in for the whole day. You can count on me."
"You better," the manager threatened.
"Stow it, stuffy!" Janice retorted, "I didn't hear you fire him. He's still part of my team, and we don't need any naysayers here. Paul, you just focus on holding that button. We're here to help you through this. Right, team?"
The group of programmers let out a collective cheer. Paul smiled-- and tried his best to ignore the growing tremble and aches through his whole body.

Trauma Team


One by one, the team came over and introduced themselves. Paul apologized for not shaking hands.
Within the first hour, the team had scoured the building for anything they could find to help. Someone brought him a bar stool. Another raided the Company Swag box for a beach ball, and inflated it just enough to support his arm. Someone set up their iPad.
By the second hour, things were good. The muscle tremors had subsided. He had plenty of distractions to keep his mind off worrying about letting go. Things were going good...until the fourth hour.
Daryl, the coder with the wavy hair, came up to him-- hesitated, steeled himself, then spoke.
"Uh, Paul," he said meekly, "I-- ah-- couldn't help but notice-- umm-- that cup of coffee on the desk?"
Paul had completely forgotten about it. It was cold now. Separated cream floated on top of the half-empty cup. The stale cup of coffee tickled his nose, stinking like a stale cup of coffee that had been sitting in a hot server room for four hours.
"Yeah, if you could toss it, that'd be great," Paul said. The smell was in his nose now, and he wouldn't be able to ignore it. "No need for a refill, though. I don't want to--"
Paul stopped, but it was too late. He thought it, and now the thought was firmly in his head. He tried to think of anything else, other than coffee, and liquid, and-- THINK OF SOMETHING ELSE!
He crossed his legs-- and thought of the bran muffin.
"Yeah--" Daryl continued, "So-- uh-- I asked Custodial to bring a bucket. And a curtain."
And only after he'd used the bit bucket did he realize something else: unless the team wanted The Center filled with a stench much worse than a stale cup of coffee, someone would have to be assigned to clean up the new guy's mess. In one movement, all the team support he'd garnered got flushed away.

He tried to ignore the bucket, but try as he might, all he could think of was the pink elephant standing on his bladder. The curtain may have blocked line of sight, but it certainly didn't provide any privacy.
The team avoided him the best they could-- at least, until the end of the day. Some stayed late, presumably to watch if he'd keep his finger on the button. He suspected some of them had placed bets.
At 7:50pm, the world seemed to go in slow motion. Every single minute felt as long as the entire twelve hours. Now was the time to choke spectacularly. His finger trembled.
He nearly let go...but everyone was watching him. It'd be just so easy to let go and let someone else sort out a possibly borked hard drive. What if it fried the old machine entirely? How late would Janice have to stay to rebuild all that, just because he wanted to cut the last corner?
And then it was 8pm. Paul never heard an entire room let out a collective sigh.
"You're done," Manny congratulated, "Power it down, Paul."
Janice assured, "I'll make sure the hard boot doesn't corrupt anything."
When he finally let go, he couldn't bend his finger. His legs were rubber but they worked well enough to rush to the bathroom. Later, Janice and Manny escorted him out. It took a few minutes for it to sink in that it was only them escorting him-- not security.
"You did good," Janice said, "It was a screw up, no doubt about that but, you saw it through."
"See you next Tuesday," Manny said.
And so Paul's first day at Redacted Commodities and Trading LLC ended, with trauma leave-- a week's paid time off "for trauma recovery". He spent his time off designing his first project-- signs identifying each computer, in extra large font, printed on stiff cardboard-- to be mounted on the face of each and every server, directly over top of the power button.
[Advertisement] New Relic is the only SaaS based Application performance monitoring software that gives you full stack analytics. Monitor your Browser, your App, and your Servers all with just a few lines of code. Try it Free today and get a free shirt.

Tuesday 4 December 2012

XBMC Unveils an Official Beta for Android Devices

This looks really cool.

XBMC Unveils an Official Beta for Android Devices:
XBMC Unveils an Official Beta for Android Devices If you've been waiting to get your hands on XBMC for Android but weren't thrilled at the idea of compiling it yourself or suffering through a nightly, the team behind XBMC have taken the wraps off of an official beta release that you can try.
Of course, the XBMC for Android beta is still a build of the version we love on our media centers, so it'll be all but impossible to use on small screens, no thanks to the tiny menu options and buttons. The new version does support touchscreens and multi-touch gestures, and even supports the XBox 360 controller as an input option. If you have an Android device in your home theater or are planning on adding one (Raspberry Pi? Hacked Google TV?) or would love XBMC's interface on your Android tablet, now you can have it. It works pretty well, although there's plenty of work to be done still.
It's worth noting that only Android devices that support the NEON extension are compatible with the beta. If you don't know what that means, check and see if your device is on this list. If it is, you're good to go.
XBMC 12 Frodo - Beta 2 Now with Android! | XBMC via Android Police

Friday 30 November 2012

Soulver Solves Complicated Math Problems in Plain English, Is 50% Off This Weekend

Looks like its only on mac but a cool little tool.

Soulver Solves Complicated Math Problems in Plain English, Is 50% Off This Weekend:




OS X: Soulver is an awesome calculator app that lets you write out your math problem with words, list, and other real language to get a real, useful answer without confusing equations.
We've talked about Soulver once before, and it really is a cool way to solve real life math problems that require lists, real units of measurement, and other elements in English that you don't want to forget. It's usually $20, but this weekend it's on sale for 50% off. So, if you've been looking for an easier calculator to help you solve real life problems, now's a good time to check it out.
Soulver | Mac App Store

Tuesday 27 November 2012

Set Up a Raspberry Pi as a Personal Web Server

Set Up a Raspberry Pi as a Personal Web Server:

Set Up a Raspberry Pi as a Personal Web ServerWant to set up your own web server for a landing page or portfolio, but don't feel like paying a monthly fee? Blogger Jeremy Morgan shows off how to set up a Raspberry Pi as a limited, but cheap web server.

Obviously the Raspberry Pi can't handle a lot of traffic, but it could work great as a private place to store your resume or personal landing page so you don't have to pay monthly fees anywhere. The process itself is remarkably easy, and once you get the Raspian Wheezy image set up, you only need to run a couple lines of code to set up the server software. From there, you can build your own web site and run your own very private little server or even a Dropbox clone. Head over to Morgan's blog to see the full guide for doing this yourself.

Tutorial: How to Set Up a Raspberry Pi Web Server | Jeremy Morgan

Saturday 17 November 2012

Sunday 11 November 2012

Try this superquick pyromaniac trick with candles

Try this superquick pyromaniac trick with candles: Try this superquick pyromaniac trick with candles:




This trick, called "the traveling flame" or "flame dropping" is a quick fix for anyone who is feeling their inner pyromaniac getting restless. And it's a fun way to play around with those nice candles your family puts out for Thanksgiving.
Ever wonder why the smoke rises so high when a candle is extinguished, when there's almost no smoke while the flame is actually burning? It's because what you see rising from a recently extinguished candle isn't smoke, it's vaporized wax. When the flame is going, the wax gets burned up before it can escape. Some people are even able to tell their candles have been extinguished without looking because the scent of wax rises so sharply. It's how I know my Halloween pumpkin candles have gone out.
Because the wax is still in the air, and still in vapor form, it can still catch fire. All it needs is a spark. Grab a candle, light it and let it burn for a bit, and then blow it out. All the wax that was hot enough to vaporize rises up overhead. Touch a flaming match to it, and the flame will drop down again, and relight the candle. You can have some fun with this and try to light the candle with twirling smoke, or try different candles to see how far away you can light one from. (As long as they're supervised, this is a fun experiment to do with kids. Encourage your young firebugs, people.)
Via Science Off Center.

The Most Adorable Zombie Ever: Check out the first Warm Bodies trailer!

The Most Adorable Zombie Ever: Check out the first Warm Bodies trailer!: The Most Adorable Zombie Ever: Check out the first Warm Bodies trailer!:




Yesterday, we witnessed the zombie apocalypse in full-on Hollywood tentpole style, with the World War Z trailer. So today, here's a chance of pace — the genuinely sweet-looking zombie romance Warm Bodies, in which X-Men First Class's Nicholas Hoult is R, a zombie with a heart of... well, heart. It's based on the novel by Isaac Marion, and the trailer has a lot more genuine laughs and tenderness than I was expecting. Yay for Rob Corddry zombie action!
Here's the synopsis:
A funny new twist on a classic love story, WARM BODIES is a poignant tale about the power of human connection. After a zombie epidemic, R (a highly unusual zombie) encounters Julie (a human survivor), and rescues her from a zombie attack. Julie sees that R is different from the other zombies, and as the two form a special relationship in their struggle for survival, R becomes increasingly more human - setting off an exciting, romantic, and often comical chain of events that begins to transform the other zombies and maybe even the whole lifeless world.

Friday 9 November 2012

1 year ago. (OK, it's a bit more then that)

1 year ago. (OK, it's a bit more then that):
On Oct 21, 2011 I said this.



About a week later Google shut down the share feature and got rid of your followers. I wrote code and had a replacement sloppily built shortly after. Which I then tried to refine, over the course of the last year (with some interruptions due to anxiety and job work keeping me busy). Realized It wasn’t going so hot, and started over.


Hivemined.org is now on it’s 3rd rewrite. I have been calling it Return of the Jedi(v3). The 1st version was just as fast as I could type it, that frantic weekend and couple days last Oct and Nov. Then v2, ( where the infamous 81% came from ) a front end speed up and redesign. After beating my head trying to make it better for quite a while it then dawned on me that I was approaching this the wrong way from a architecture stand point and the code was never gonna get better. That brings us to v3.


Return of the Jedi(v3) is a complete rewrite. All new code written from the ground up with all the knowledge I have now from v1 and v2. It’s super fast, and robust. The feeds updates in real time (pubhubsubbub). It can handle nearly all feeds, whatever error they might have or other weirdness. Works on nearly any language. My testing feeds have 50’ish Arabic(left to right text), 20’ish Chinese / Japanese / Korean, and a dozen in other languages (not to mention 1000’s of other feeds in English ).


The feed engine and ‘reader’ side are done’ish ( backend:99%, frontend: 50% ). Sharing/Social is the next thing after that gets all finished. ( Backend: 30%, fronend: 0%)


I’m invested in hivemined.org a 100%. It will be done or I think I might go mad, lol. I want it to be real, complete and to use it. Nearly every day I am checking my reader and there is at least one story I still move the mouse to click share :( I am slowly pushing my way to a finished, at least base line of features done, product. As soon as I have something worth users, I plan on sending out a ton of invites and letting everyone know. It’s gonna be awesome.


Here some stats and other cool info.

Lines of python:

Hive-v2:                     6099

Return of the Jedi:  11085

These are numbers without extra libraries. This is the code that powers the site currently.
Lines of Javascript:

Hive-v2:          a lot

Return of the Jedi:   even more

Both have too many Javascript lines to count with the all the libraries.

I had a hard time getting counts without jquery/backbone/etc.. getting in the way. Let’s just say there is a lot of javascript going on.
Site and Followers:

1,224 visitors to the lander page last month. (avg 40ish a day)

1,855 followers on twitter (awesome)

5,544 people on the email list. (awesome!!)


I get 3 to 5 emails a week about hive and its status

I may not respond to them all, but I read them and it makes me feel awesome.

Closing



You guys and girls are awesome. Keeps me going that other people want and need this everyday. When Hive comes it’s gonna be awesome! Built for sharing, community and content. The same community who has stuck by me and this project. For those who still know the best way to share and comment on things and wish for it back.


For the 1000+


(someone made this and I found it, lol)



Some extra Francis info:

In the last year. I have:
  • Worked on hive, and when not working on it I thought about it every day.
  • Reconnected with lady college friend.
  • Convinced mentioned lady to move across the country and move in with me
  • Did tons of work for my real job. (work for consulting company)
    • Finished 2 projects for a $4 billion public traded company
    • Had a work related site featured on techcrunch, mashable and a ton of other tech blogs
    • Went on some business trips.
    • Made some mobile apps.
    • A bunch of other web apps.
  • Woke up one day and rented a car and drove 13 hours to the Grand Canyon. (Never seen it before. It’s amazing)
  • Drove down the amazing California coast from SF to LA
  • Drove from Seattle to SF. Through the amazing mountains of Washington and Central Oregon.
  • Got a button machine and have been making buttons for friends and people on the Internet. (with the help of my lovely lady friend)
  • Tons of bands live.
  • Bunches of other stuff.
  • Lived and enjoyed my life and friends. No one wants to look back at there late 20’s and say I wish I worked more.



Also, I learned a ton. I am a much stronger programmer, designer, UX/UI, server admin, information architect, etc.. Allowing me to now build the best possible hivemined I can, for the best possible people on the planet.










PS: You’re beautiful. Thanks for reading all that.

A Very Special Trip to Disneyland

A Very Special Trip to Disneyland:














In light of the recent Lucasfilms buyout, this only seems appropriate.
Submitted by:
Unknown

Thursday 8 November 2012

The Useless Web

The Useless Web

also

http://www.leekspin.com.au/

Stupid Sexy Flanders

Stupid Sexy Flanders:


Stupid Sexy Flanders











Feels like I'm wearing... nothing at all!
Submitted by:
Unknown

Round 1: FIGHT!

Round 1: FIGHT!:














YouTube filmmaker Patrick Boivin, the cool dad who made a viral splash a couple years ago with an Iron Man parody video starring his baby girl Marguerite, presents yet another baby warrior action short featuring Iron Baby's little brother Romeo as the "Dragon Baby."
Submitted by:
Unknown

Wednesday 7 November 2012

Misheard Song Lyrics

some of these are amazing!

Misheard Song Lyrics:














Missed Opportunity: CCR's "There's a bathroom on the right." In all honesty, I thought those were the real lyrics to Bowie's Sufferagette City.
Submitted by:
Fatalyze
(via Pleated Jeans)

Just Don't.

Just Don't.:


Just Don't.












Submitted by:
Unknown

Tuesday 23 October 2012

Add a Shutdown Button to the Windows 8 Start Menu

WTF? why would you need this?

Add a Shutdown Button to the Windows 8 Start Menu:




With Windows 8's radical user interface many familiar windows elements are not present or must be accessed differently. If you're missing the shutdown button and don't want to use the new charms bar you can add back your shutdown button the start menu manually.
Educational weblog WonderHowTo shares that, to make a shutdown button for your start screen, you must first create a desktop shortcut (right-click, new shortcut) and enter this line of code in the location field:
Shutdown.exe —s —a 00
Name the desktop shortcut Shutdown and click Finish. Finally, right-click on that shortcut and choose Properties then Change Icon and from the menu that pops up you will pin the shortcut to your start menu. The video above shows you how to complete each step.
How to Add an Actual Shutdown Button to the Windows 8 Start Screen | WonderHowTo

Wednesday 17 October 2012

CodeSOD: The White Flag

CodeSOD: The White Flag:
Handling dates is hard. Kevin sends us this attempt at building it from scratch, found in a third-party library. It was shaped with a Tab key that wishes nightly for death.

Protected Shared Function dateTimeFromJavaXml(ByVal dt As String) As DateTime  
   Dim datetime1 As DateTime = DateTime.get_Now()  
   If (dt.EndsWith(" GMT-12:00")) Then
       dt = dt.Replace(" GMT-12:00", "-12:00")  
   ElseIf (dt.EndsWith(" GMT-11:00")) Then
       dt = dt.Replace(" GMT-11:00", "-11:00")
       GoTo label1
       If (dt.EndsWith(" WSST")) Then
           dt = dt.Replace(" WSST", "-11:00")
       ElseIf (dt.EndsWith(" SDT")) Then
           dt = dt.Replace(" SDT", "-11:00")
           GoTo label2
           If (dt.EndsWith(" NUST")) Then
               dt = dt.Replace(" NUST", "-11:00")
           ElseIf (dt.EndsWith(" GMT-10:00")) Then
               dt = dt.Replace(" GMT-10:00", "-10:00")
               GoTo label3  
'SNIP: Let's skip ahead, retaining the indenting…      scroll that way ->                                                  ->                       keep going                                               ->                                                                        and going                                                oh, there it is!
                                                                                                                                                                                                                                                                                                                                                               If (Else.EndsWith(" TOST")) Then
                                                                                                                                                                                                                                                                                                                                                                   dt = dt.Replace(" TOST", "+13:00")
                                                                                                                                                                                                                                                                                                                                                               ElseIf (dt.EndsWith(" GMT+14:00")) Then
                                                                                                                                                                                                                                                                                                                                                                   dt = dt.Replace(" GMT+14:00", "+14:00")
                                                                                                                                                                                                                                                                                                                                                                   GoTo label88
                                                                                                                                                                                                                                                                                                                                                                   If (Else.EndsWith(" LINST")) Then
                                                                                                                                                                                                                                                                                                                                                                       dt = dt.Replace(" LINST", "+14:00")
                                                                                                                                                                                                                                                                                                                                                                   Else
                                                                                                                                                                                                                                                                                                                                                                       dt = dt.Substring(0, (dt.LastIndexOf(" ") - 1))
                                                                                                                                                                                                                                                                                                                                                                   End If
                                                                                                                                                                                                                                                                                                                                                               End If  

'SNIP: we'll just skip past the sea of End Ifs and hope to find shore  
End If  
   Try
       label1:
       label2:
       label3:
       label4:
       label5:
       label6:
       label7:
       label8:
       label9:  
'SNIP  
       label88:
         datetime1 = DateTime.Parse(dt)  
   Catch exception As Exception
       exception  
   End Try  
   Return datetime1  
End Function

When you scroll through the code, it waves back and forth across the screen, just like the white flag your brain will wave if you make any attempt to parse its horrors. It should be projected on the wall of a modern art museum, where it can live happily with other simple motifs beaten and stretched beyond comprehension by people who would like to convince you they were attempting something “bold” and “edgy.”