HNHacker News
TopNewBestAskShowJobs

amarraja

188 karma · joined October 7, 2012

submissionscomments
amarraja··on Ask HN: Keyboard and Mouse for daily use?
I use a Logitech Wave at the office. It's not a fully ergonomic keyboard, but has a slight, well, wave. It's comfortable to use all day, but isn't too drastically different to affect my typing style on a laptop keyboard when I get home.
amarraja··on Monzo: All payments are failing temporarily
It was. Happened to me in a bar once too, but I got the decline notification so went back (since it was my local haha!)
amarraja··on Firefox 52 released
Thank you! I've been eagerly awaiting containers for a while, but didn't want to switch to nightly
amarraja··on Monzo: All payments are failing temporarily
I got a push notification about the issue, but didn't read it. On paying for a coffee this afternoon either my payment worked or the barrista didn't read the decline message - a little lesson for both of us to read and not assume :)

Also from the status page:

    If you have incurred FX fees because you were unable to use your Monzo card, we will reimburse you for those fees. Please get in touch once this issue has been resolved. 
Just makes you love them that little bit more!
amarraja··on Ask HN: What is your favorite hot sauce?
Encona hot pepper sauce.

It has a great kick to it, but also a really deep and unique flavour. At university I went through a bottle a week!

amarraja··on Product Hunt moved from Ruby on Rails to Express/Node
It seems they are very react heavy, but they also render server side for when js is disabled. I'd imagine the backend isn't an overly complex app so it made sense to just use JS everywhere
amarraja··on Ask HN: Remote workers. Do you use/need a portable monitor?
It will change your workflow and may slow you down to start, but I found reducing from two to one actually helped me focus a little more since the only thing on my screen is the thing I'm supposed to be looking at.

Get familiar with multiple desktops (crtl + <left>/<right>), then group your apps, e.g. 1) editor + term, 2) browser, 3) spotify, 4) email and you'll soon forget about an extra monitor

amarraja··on Node.js 5.0 Released
We use node on Windows for our asset minifiers, hopefully the new version of NPM will make this a little more pleasant!

Your dependencies will now be installed maximally flat. Insofar as is possible, all of your dependencies, and their dependencies, and THEIR dependencies will be installed in your project's node_modules folder with no nesting. You'll only see modules nested underneath one another when two (or more) modules have conflicting dependencies.

amarraja··on Show HN: Flexbox.io – a free video series on learning CSS Flexbox
Aah I see. You can tell my frontend knowledge is dire! I'll start on the basics first
amarraja··on Show HN: Flexbox.io – a free video series on learning CSS Flexbox
Thanks! So it will be enough to learn just flexbox without any "legacy" css? (Assume I won't be maintaining / porting any old code)
amarraja··on Show HN: Flexbox.io – a free video series on learning CSS Flexbox
Things have changed since I was doing frontend dev (<table>), and I want to brush up on modern CSS techniques. Could someone answer the following for me?

1. Is flexbox the way to go (i.e. the new standard?)

2. Is there a css primer to help with all this? I tried centering a div with CSS once, it didn't end well!

amarraja··on Ask HN: How to take personal care when you are in front of screen for 16 hours?
One of the firsts apps I install is f.lux [1]

I put it on the "slow" setting, and it gradually adjusts my screen during the day. I stopped noticing it, however whenever I look at a co-workers screen, it feels like I am staring into the sun!

[1] https://justgetflux.com/

amarraja··on Test Pilot Admits the F-35 Can’t Dogfight
The Boeing wasn't without its issues however. The main reason it lost to Lockheed was the thrust vectoring used for STOVL was flawed and could cause the engine to overheat which was a large showstopper. Funnly enough, I recently read about F35 overheating while in STOVL as well!
amarraja··on Get rid of boolean function parameters
In an old job, I saw some code like this

    refunder.Refund(orderId, customerEmail, true, false, payment=="visa", order.shipping == 0, true, true, order.day == "sunday")
Not verbatim, but you get the idea -- and yes, the refund method was even more confusing than then invocation
amarraja··on Ask HN: Does IOT mean anything to you?
Until the day comes where I can't use my toilet because the internet is down, then no.
amarraja··on Ask HN: What are you reading?
Added to my reading list, will report back :)
amarraja··on Ask HN: What are you reading?
I'd love to completely wipe 1984 from my head, just for the pleasure of reading it again! You will not look at the world in the same way once finished.
amarraja··on Ask HN: Distributed transactions from mobile app to web server
Not sure if this is a recommended approach, but I did something similar recently.

I create a guid on the client, and send this with the request. If I get a connection error or no response, I re-query with my client side id to see if the transaction succeeded.

I'm sure there are downsides to this, however for now it's simple and seems to be working well.

amarraja··on Ask HN: How to avoid giving a scathing code review?
Totally agree.

I'll spare the details, however a long time ago a junior developer asked me to do a code review which happened to be on a critical part of the system which handles money -- not only was the code bad, it was incorrect as well.

I decided to skip some meetings and I spend a few hours with him. We did a pair programming session, cleaned up the code and we discussed the merits of each approach while we were doing it.

He didn't say anything at the time, however I found a blog post from him a few years later where he described the experience as invaluable and a driver to help him to try and improve his craft.

amarraja··on Remote Kernel Code Execution Via HTTP Request In IIS On Windows
Have tried on all our production facing domains (with and without CDN and get 200 responses also.

One server (our development server) has proven vulnerable. Maybe reverse proxies are sanitizing the results?

    $ curl -v 10.100.0.40/ -H "Host: irrelevant" -H "Range: bytes=0-18446744073709551615"
    * About to connect() to 10.100.0.40 port 80 (#0)
    *   Trying 10.100.0.40...
    * Adding handle: conn: 0x1d83278
    * Adding handle: send: 0
    * Adding handle: recv: 0
    * Curl_addHandleToPipeline: length: 1
    * - Conn 0 (0x1d83278) send_pipe: 1, recv_pipe: 0
    * Connected to 10.100.0.40 (10.100.0.40) port 80 (#0)
    > GET / HTTP/1.1
    > User-Agent: curl/7.30.0
    > Accept: */*
    > Host: irrelevant
    > Range: bytes=0-18446744073709551615
    >
    < HTTP/1.1 416 Requested Range Not Satisfiable
    < Content-Type: text/html
    < Last-Modified: Wed, 27 Aug 2014 14:56:23 GMT
    < Accept-Ranges: bytes
    < ETag: "885fe5117c2cf1:0"
    * Server Microsoft-IIS/7.5 is not blacklisted
    < Server: Microsoft-IIS/7.5
amarraja··on Paternoster
I'm sure there was one in the Aston Webb building too, however it's far too long ago for me to remember.

Interestingly, the removal of the paternoster lift from the main library was cited as a reason not to give it listed status: http://list.historicengland.org.uk/resultsingle_print.aspx?u...

amarraja··on Canned Emails – a minimal site with prewritten emails
Slightly tweaked your script to display inline

    $("h2 a").each(function(){
       var email = decodeURIComponent(this.href).slice(13).split("&subject=");
       var subject = email[1];
       var body = email[0].replace(/\n( )+/g, "\n");
       var parent = $(this).parent("h2")
       parent.after($("<div />").text(body));
       parent.after($("<h4 />").text(subject));
    });
amarraja··on Ask HN: What do you do while compiling?
I currently work on a large C# app, and even though we got the compile times down to sub 30 seconds, I suffer from the same issue.

Nowadays, I will usually work on a feature in isolation in a new project so I get a nice focused feedback loop. It doesn't stop the procrastination when I have longer compiles, but it reduces the frequency at least.

amarraja··on Docker and Microsoft partner to drive adoption of distributed applications
Looks interesting, but our problem is more a separation of operation and development teams. It's not ideal, but we're a dev house and clients like to keep their operations in house for a number of reason (PCI compliance is one of them).

From my point of view OS configuration for app level concerns (web servers, services etc), should sit in the development realm, ready for operational teams to distribute and monitor.

Scripting systems does help, but it is not the final solution when you have mixed, varying talent teams. As a side note, every time I have tried scripting Windows systems I get an extra gray hair!

amarraja··on Docker and Microsoft partner to drive adoption of distributed applications
Haha, my bad. They run on Windows
amarraja··on Docker and Microsoft partner to drive adoption of distributed applications
We are running a fairly old version (two years old, haven't upgraded yet) and I would wholeheartedly recommend it!
amarraja··on Docker and Microsoft partner to drive adoption of distributed applications
Git -> Teamcity -> Octopus -> Server.

We also use database migrations to keep everything updated. It's a simple process but works well.

Code and deployment is all fine, it's maintainaing server configurations across environments (IIS, permissions, ports, ips, firewalls to name a few, a different issue every time and on every env!). Likely this is more to do with having completely seperated operations and development, however bring able to control the apps environment will allow us to deliver more, faster.

amarraja··on Docker and Microsoft partner to drive adoption of distributed applications
Sure, it's a large ecommerce app and I work with a development firm (operations is handled by another company).

Our dev process is quite nice, we have fully automated builds and deployments which are feature branch aware, allowing us to run several features side by side.

On the ops side however, most of the work is done either manually or the scripts are unreliable (again, external company nothing much we can do about it). Setting up new environments can take months. Many times we want to introduce new services but the time it would take to get our infrastructure updated usually outweighs any benefits.

Being able to ship configured containers as smoothly as we can ship code would be nothing short of revolutionary!

amarraja··on Docker and Microsoft partner to drive adoption of distributed applications
Current client is a Windows/.NET shop. There are some parts which use Linux, but that is more infrastructure, all the apps run Windows -- and rather well too!
amarraja··on Docker and Microsoft partner to drive adoption of distributed applications
This is hands down the best news I have heard in the MS development space in a long long time.

We have 3 apps over 32 servers and 5 environments, and operationally it's like pulling teeth. This has the chance to change everything!

← PreviousPage 2 of 3Next →