Profile

Cover photo
Richard Fabian
Works at 22cans
Lives in Guildford, UK
1,628 followers|334,061 views
AboutPostsPhotosYouTube

Stream

Richard Fabian

Shared publicly  - 
 
Just spent a few minutes wondering why go install hell wasn't working. Finally figured out it was because the go install is for windows, but I'm using cygwin.

export GOPATH=C:\\cygwin64\\home\\fabs\\gocode

fixes all my issues. FFS windows.
1
Add a comment...

Richard Fabian

Shared publicly  - 
 
I love this. Makes me want to use javascript more. https://blog.andyet.com/2014/04/07/nerdsniping
3
Isaac Kuo's profile photoRichard Fabian's profile photo
2 comments
 
I think he just meant his solution wouldn't have worked.
Add a comment...

Richard Fabian

Shared publicly  - 
4
Add a comment...

Richard Fabian

Shared publicly  - 
3
David Oliver's profile photoMartin Zeme's profile photo
2 comments
 
And the best part is that it actually works!  Sort of.
Add a comment...
 
If I am rich at any point in the near future, I'm getting one of these. With this update, I'm thinking that I'm not wrong.

http://www.teslamotors.com/blog/tesla-adds-titanium-underbody-shield-and-aluminum-deflector-plates-model-s
33
1
Віктор Михайлов's profile photoBruce Achterberg's profile photo
 
Slowly the Model S is becoming The Tumbler. 

Excellent. :D
Add a comment...
In his circles
2,333 people
Have him in circles
1,628 people
Nauka Znanost's profile photo
colin oconnor's profile photo

Richard Fabian

Shared publicly  - 
 
C++ wtf challenge

int main() {
int a;
if( a == 1 && a == 2 && a == 3 ) {
printf( "a==1 && a==2 && a==3\n" );
}
}

Make it print "a==1 && a==2 && a==3".

Rules: You can't change main (this code), but you can add whatever you like above it.

This should be quite easy in C++, but I'd like to see some alternatives to what I came up with. Post source!
1
Michael Bosley's profile photoRichard Fabian's profile photoTomasz Górecki's profile photoJames O'Hare's profile photo
13 comments
 
My first thought was what +Michael Bosley has suggested - a function with static variable. But here's another way:

int main()
{
   int a;

   a = 0;
#define a (++a)

   if (a == 1 && a == 2 && a == 3)
   {
      printf( "a==1 && a==2 && a==3\n" );
   }
}

It seems to work. :)
Add a comment...

Richard Fabian

Shared publicly  - 
 
This is how we don't do science, kids!

http://www.kvoa.com/images/news/2014-04/LUNARECLIPSE.jpg

How many stupid errors can you count?
1
Add a comment...

Richard Fabian

Shared publicly  - 
 
Arduino and Fizzy, and pink cylon lights.
1
Add a comment...

Richard Fabian

Shared publicly  - 
 
Beware the problems with wind power!

If it wasn't for all the wind turbines in the UK, then this would never have happened. You've seen the build-up of dust on the fans on your PC or laptop, and now you're seeing the result of the many and much larger fans we run all over the UK. Other countries, such as the U.S., who don't have as many wind farms, have not been affected by this. Damning proof if ever I saw it. I guess that explains the global warming too, too many solar panels!

http://www.independent.ie/weather/wet-mud-residue-on-cars-following-recent-rainfall-is-sand-from-sahara-desert-met-eireann-30139526.html
A simple explanation has been given for the red-brown sandy residue left on cars across the east and south of the country following last night’s rainfall.
1
Add a comment...

Richard Fabian

Shared publicly  - 
 
I feel I cannot not share this. Beware, triggers and oh god.

Why Rape Is Sincerely Hilarious
3
Add a comment...
People
In his circles
2,333 people
Have him in circles
1,628 people
Nauka Znanost's profile photo
colin oconnor's profile photo
Work
Occupation
Computer Games Programmer
Employment
  • 22cans
    Programmer, 2012 - present
  • Rockstar London
    Gameplay Programmer, 2010 - 2012
  • Frontier
    Senior Programmer, 2009 - 2010
  • Broadsword Interactive
    Senior Programmer, 2001 - 2009
  • Blue52
    Junior Programmer, 2000 - 2001
Basic Information
Gender
Male
Relationship
Married
Other names
fabs();
Apps with Google+ Sign-in
Story
Introduction
I was born in London, unable to fend for myself and didn't even know the language, but I managed okay with the help of some relatives. Moving to another country when I was 23 was a little less scary because they all spoke my language (apart from the sausage salesman). Many years and one wife later, I was ejected back to London to work as an officer in the Tar and Rocks corporation, until I opened a can of worms.

I write games.
Bragging rights
Had that yellow Goldwing in Aberystwyth
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Guildford, UK
Previously
London, Merton - London, Stratford - Cambridge, Cambridgeshire, UK - Aberystwyth - Llanon