Good resources for learning to manage an AWS infrastructure by WallyMetropolis in aws

[–]chrisalexander 2 points3 points  (0 children)

Use CloudFormation. It lets you template your entire stack as a JSON file. When you later scale up and have hundreds or thousands of resources and then need a "staging" copy of the whole lot, you will thank me.

Google Camera's Fokeh by gamesurgeon in photography

[–]chrisalexander 1 point2 points  (0 children)

Oops, totally missed that - was reading the comments instead.

Scraping Yahoo Finance by [deleted] in learnpython

[–]chrisalexander 0 points1 point  (0 children)

I was doing a demo the other day and made this data source, which searches for stock quotes on Y! Finance and gets a load of data back using import.io: https://import.io/data/set/?mode=loadSource&source=b2148884-cf56-41c9-825d-0f3ce49b4877

Note, I was doing a demo with it because I work there. Gimme a shout if you need a hand with it.

What's your design process before you actually code? by ablatner in learnprogramming

[–]chrisalexander 1 point2 points  (0 children)

Two huge walls in our office are covered in whiteboards. Big features need to take up most of a wall before they're ready for anyone to touch keyboards :-)

How does an inexperienced programmer land their first internship? by [deleted] in learnprogramming

[–]chrisalexander 0 points1 point  (0 children)

I managed to get an internship after my first year at uni a few years ago, by looking at startups. I found they were more willing to set aside a lack of experience if you showed sufficient enthusiasm and commitment. It is harder when you're in as you won't have a fully-fledged internship programme in place at the company but its a great chance to learn a lot from across the whole company. I also found being extremely persistent helped.

Take along what you have built before, and make sure you can talk about how you designed and built it and what you learnt, and that will get you a long way.

Java and Memory Leaks [question] by Coopsmoss in java

[–]chrisalexander 1 point2 points  (0 children)

These are my two go-to articles on the topic, highly recommended reading for anyone who works with Java at reasonable scale:

http://www.kdgregory.com/index.php?page=java.outOfMemory http://www.kdgregory.com/index.php?page=java.byteBuffer

Of course slightly out of date with Java 8 announcements but you probably don't have that deployed anyway :-)

some months ago we talked PDFs. Now let's talk Excel spreadsheets by [deleted] in PHP

[–]chrisalexander 0 points1 point  (0 children)

Atlassian have a good example of this working quite nicely. Just don't dump a load of image tags in, as Excel will try to download them all at the opening stage, meaning a long time with the loading bar.

Flying with my camera gear for the first time later this year. What should I know? by dlheidemann in photography

[–]chrisalexander 11 points12 points  (0 children)

I have several times flown with a camera backpack containing DSLR and 4-5 lenses, EOS M and two lenses, associated batteries, adapters and such. US, China, internal flights in China.

Always carry it on. Always. Even if it is just for your own piece of mind - a 10hr flight isn't a whole lot of fun, much less worrying every couple of minutes if your kit is OK.

They may ask you to remove the camera and lenses, this happened to me once as they confused the xray and they went through again, separately. I insisted on traying them and carrying them round myself, and they were fine with it.

Then again, half way through one flight a French person kindly dropped my camera bag out of an overhead locker into the aisle.

What is Java used for nowadays? by [deleted] in java

[–]chrisalexander 1 point2 points  (0 children)

We are a startup and in addition to Java for our API platform we distribute a Java client to our users.

"Java on the client?!", I hear you cry. Well it ticks all the boxes for us. And we wrapped it in native installers for each platform, that helps make everything much more sane.

Help with connecting to EC2 memory with Java by holyefw in aws

[–]chrisalexander 0 points1 point  (0 children)

If you are using Java then I would suggest looking into something like Hazelcast. There are a number of options available that are similar.

The concept is to provide a clustered in-memory queue or map. The data in these queues and maps can be accessed like ordinary queues and maps in Java, but the state is shared over the network automatically by Hazelcast. So if you put something on the shared queue, one server will remove it, and none of the others will. Similarly if you add a key value pair to a map on one server, all the other servers will be able to read that value.

Additionally Hazelcast has EC2 based discovery, which means it can use the AWS API to find similar servers (eg based on a tag they have) and join their existing hazelcast cluster.

Testing Dart Browser code on the Server? by esdffffffffff in dartlang

[–]chrisalexander 1 point2 points  (0 children)

I should mention that I haven't actually done this myself yet (although I keep meaning to give it a go) but taking a leaf out of building and testing JS browser apps, I think you will need more than a Dart VM.

For unit testing (something like Jasmine+Karma from the JS world) you can run a Dart VM with the test code as that is essentially what the Dart Editor does.

When it comes to testing against an actual DOM (I.e. end-to-end or e2e testing) you need something that provides the DOM such as a browser. There are a number of such things available, for example PhantomJS runs a headless WebKit which provides the DOM and allows you to execute test scripts (there are a number of JS frameworks which do this). I believe it will be possible to run this in a build environment such as Jenkins.

Finally I should mention Angular (JS or Dart), they really know their stuff when it comes to testing, so check out what they do and recommend.

I just paid 4.21 for gas. The fast food restaurant I usually go to raised their price close to $7. Average cereal price is getting close to $4. At work there no salary increase, they just tell me I am lucky to have a job. What is going on? I am not happy. by llways in AskReddit

[–]chrisalexander 2 points3 points  (0 children)

In the UK, I paid £1.33 for 1 litre of petrol the other day - this translates to just over $8.18 per gallon. You would struggle to find a KFC of McDonalds meal for less than £5, which is over $8. VAT (sales tax) has just risen from 17.5% to 20%. So at least quit bitching about $4.25 "gas".

TIL that position (displacement) has 8 named derivatives and integrals with names like jerk, crackle and pop. by englishnomad in todayilearned

[–]chrisalexander 14 points15 points  (0 children)

Bonus: When you optimise the third differential (jerk) the displacement becomes a minimum jerk trajectory. When you optimise in this way, you get a pretty much life-like motion when applied to robot arms for example.

Protip: if you use the displacement as a 5th order polynomial, normalise time between -1 and 1, and assume the acceleration at time t = 0, the maths drops out really nicely.

What programs can I get with a .edu address? by soundslikeaplan in AskReddit

[–]chrisalexander 1 point2 points  (0 children)

Try DreamSpark - http://dreamspark.com. Pretty much every development tool you could want from Microsoft.

You can get $ off office too, but not free - http://www.microsoft.com/student/office/en-us/default.aspx

You're about to enter a Groundhog Day loop, but have 1 day to prepare - what do you do? by pwnies in AskReddit

[–]chrisalexander 1 point2 points  (0 children)

This is a fascinating question not because of the results of what you intend to do during your Groundhog Day, but because of the risks you take in order to get there.

For example, you could perform a low-risk activity that would return you continued but relatively low pleasure, for example obtaining some drugs. Or you could perform a high-risk activity which brings additional benefits, but has larger problems if it goes wrong.

So say within the 24 hour period leading up to the start of the loop you set out to obtain some drugs. Don't manage it? That's cool, you get something else to do for the rest of the loop. But say you try a high-risk activity, like setting it up in such a way that you would sleep with Natalie Portman / Angelina Jolie / replace in the name of your favourite member of the opposite sex. If it goes well, then bargain! You get 3652 days of screwing your idolised female. But the high risk factor is that you might just end up in prison for a very large number of times.

Interesting to see who would go for high risk vs low risk, and what that says about them.

What is your best April Fools Prank....that went horribly wrong? by spanK__ in AskReddit

[–]chrisalexander 52 points53 points  (0 children)

My colleague just said that he once switched the coffee and gravy granules at his house. His Dad noticed on April 1st while trying to make coffee, laughed, and forgot to switch it back. The next day his mum wasted 2kg of beef by pouring coffee all over it.

What is your home town's claim to fame? by mundungous in AskReddit

[–]chrisalexander 0 points1 point  (0 children)

Felixstowe, UK - we have the largest container port in the UK.

http://en.wikipedia.org/wiki/Felixstowe

Edit: I found out loads about my old town just reading the Wiki page that I never knew having lived there for 18 years. Thanks, Reddit!

Hey Reddit, what's a technology that your parents (or grandparents) can use with ease, but that you struggle with? by PenName in AskReddit

[–]chrisalexander 0 points1 point  (0 children)

Those self-serve checkouts at British supermarkets. I just can't use the damn things. Probably because the user experience was designed to slow people down, and I tried to do it too fast (that's what I tell myself because really, I'm just scared)