News for hackers. Stuff that matters.

BattyMilk

Re:Centering in CSS on Friday December 18, 2020 @03:47AM (#25465139)
Floats and clearfixes everywhere
Re:Museum of Bad Album Covers on Friday December 11, 2020 @04:29AM (#25383879)
This just brought back almost 20yr old memories of the Rock and Roll Confidential Hall of Douchebags which is sadly no longer online but does exist in the archive:

https://web.archive.org/web/20060819005942/http://www.rockan...

Ask HN: Documentation and diagrams versioned with code – how to handle diagrams?

We store our software technical documentation along with the code in markdown files in the git repository - our definition of done requires that developers keep this documentation up to date.Often, documentation needs supporting diagrams and we don't really have a clear defined way on how keep our diagrams up to date. As a result, documentation in some repositories link to a gliffy diagram and...

( Read More... | 7 comments | 7 points | on HN )
Re:Apps for Bicycle Directions on Thursday July 30, 2020 @12:00PM (#23999663)
For the most part, city riding is pretty well served by Google maps IMO.

A few years ago, following Google maps cycling directions me and a couple of friends on road bikes were led through muddy forest trails, old rail road tracks and green lanes on a London -> Paris <24hr attempt (we took 26hrs).

The difficulty with cycling directions is that there's not a 1 size fits all solution, a roadie needs smooth road but would prefer it quiet and scenic, a mountain biker would rather those trails we found and a commuter/hybrid would be fine on those in short bursts but probably prefer the speeds of the roads.

If I'm doing something of an "epic" route these days I'll spend a bit of time trying to find a suitable GPX that I can sync to my watch for directions - usually that'll come from Movescount, OS maps, Garmin or just someone's blog of a route. For most other things, Google maps works fine.

Re:Appearances vs. Experiences: What Makes Us Happy on Monday July 27, 2020 @04:45AM (#23963298)
I disagree that commuting by car is a waste of time vs public transport (depending on the person).

I'm someone who cherishes a little piece of solitude every day. I'd be much happier self sufficiently making my way to my place of work in the nice private bubble of a car (even if that means crawling at 3mph in traffic), listening to whatever music or podcast I enjoy, or just being able to think without many distractions, than having to jostle my way on public transport with no privacy or personal space.

(disclaimer: I cycle to work, not drive, though I'd rather walk the 3hrs it would take me than the hour on tube and/or busses)

Until about a year ago I was working as a FE developer for a major intenrnational bank.

All the processes and knowledge were in place to make sure all considerations were taken with our software with regards to security. But... all that good work and intention goes out the window when the marketing and analysis teams could pretty much, on a whim dump any old JS onto a production page via GTM. During my 18 months there, there were numerous issues (thankfully not security issues - at least that we know of) indroduced via this method inc a full outage of the customer onboarding journey.

Re:Ask HN: What's your quarantine side project? on Thursday May 14, 2020 @10:32AM (#23180000)
More love for TrailRouter here. Especially love that you can export a GPX for a watch. I get stuck running the same unimaginative routes so even the ability to be able to have it plan a round trip from my house is amazing. Even more so that it finds out green space. Thanks for this!
Re:New MacBook Air on Wednesday March 18, 2020 @12:35PM (#22618467)
I'm a FE developer (Mainly React/Node/React Native Development) and I'm still using a 2012 13" Macbook air (8Gb) as my daily driver at home. There's a noticable difference between it and my work (granted still relatively old) 2017 MBP 17". Running builds and an entire test suite maybe take twice as long but it's overall very usable and I see no reason yet to upgrade.
Am 5'11". Married a girl I met on Tinder
Maybe if you bet on Burnley to win the premier League next season you will win a fortune. All signs, experience and educated opinions, however point to this being a losing bet
Re:Widespread and sometimes drastic marine oxygen declines on Tuesday February 26, 2019 @04:25AM (#19253015)
RE protein. We need far less than we're led to believe. Unless you're an elite athlete then you probably don't need to worry.

I'm no elite athlete but I've been vegan 3 years. In those 3 years I've completed 2 Ironmans with no meat/eggs/dairy, no protein supplementation and no issues whatsoever.

Walking burns a lot more calories than not walking.

"You can't out run a bad diet"

If you're time starved and trying to work out like this, you're doing it wrong. There are much more time efficient ways to get some exercise.

Rather than driving 20 minutes each way to the gym, just put on some shoes and run/walk from your front door. You've saved 40 minutes and a bunch of money. Plus, if your goal is to lose weight, you've a far more effective workout.

Walk/run/bike to work. I've completed 2 Ironman triathlons and 75% of my training was done on my commute (my shortest route to work is 8 miles but I can take different routes and make it as long as I want) with hardly any impact (other than exhaustion) on my personal or professional life.

Re:China lands Chang'e-4 on far side of Moon on Thursday January 03, 2019 @05:06AM (#18814065)
Thank you for the good explanation!! Cheers!
Re:China lands Chang'e-4 on far side of Moon on Thursday January 03, 2019 @04:54AM (#18813996)
Thank you for taking the time to explain. Very helpful :)
Re:China lands Chang'e-4 on far side of Moon on Thursday January 03, 2019 @04:29AM (#18813884)
Apologies in advance for the (hopefully not) stupid questions from a layperson...

How constant is the L2 point for the relay satellite's orbit? If I understand correctly, this is the "balance" point between the earth and sun's gravity. Does the moon's gravity affect this? If so the L2 point will shift as the moon moves towards and away from this point?

As the moon orbits the earth, presumably the relay satellite would stay put and not follow the moon in its orbit. This would mean that communication from the lander and rover to the satellite is only possible when the moon is in a particular position (between the earth and the sun), correct?

Re:UFOs spotted off Irish coast under investigation on Tuesday November 13, 2018 @06:19AM (#18440167)
Since we're all giving our UFO encounters I'll chip in with mine.

About 25yrs ago as a teenager and utterly obsessed with the supernatural and the unexplained, my family were on a fly drive holiday on the west coast of the US.

One night in a roadside motel in the Nevada desert, I was woken up by a strange, loud, rythmic, droning sound outside. Absolutely convinced that it was a UFO landing and terrified that if I moved or made a noise I'd be abducted, I laid still, sweating with my heart racing for hours until the sun came up.

Turned out to be a dodgy air conditioning unit.

Re:Migrating away from Google Maps and cutting costs on Tuesday November 06, 2018 @12:27PM (#18393000)
Cheers, I'll take a read. I'm looking for ground level (I use it to calibrate the barometer on my watch at the start of a hike/trail run/climb)
Re:Migrating away from Google Maps and cutting costs on Tuesday November 06, 2018 @09:46AM (#18391406)
Piggy backing off this thread for my own question.

I've a small webapp to show me my elevation based on my lat/lon. I built it with Google's API as I've used it before and it's what I know. It doesn't get much traffic so it's unlikely to ever cost much once my free credit expires but I'd like to explore other options.

What alternative (preferably free) services are there out there? I need to be able to pass lat/lon and get back the elevation above sea level of that point on earth.

Re:How I became friends with an octopus on Monday November 05, 2018 @06:23AM (#18381463)
I can't decide if I think it's real or fake. It's a very good doc and Timothy's footage could absolutely be real but the people interviewed, every single one of them, just come across as fake and very very bad actors.

Whenever the film comes up on Reddit I scan the comments and I've done a tiny bit of googling but it seems I'm in the minority with this opinion which I find strange since I can't fathom the interviewees are even close to genuine.

Re:GitHub's game jam returns next month on Tuesday October 16, 2018 @05:00AM (#18227818)
I did some work at my previous job building a slot machine game in Phaser 2. I'd never done game dev prior to this but found it really simple to pick up.

From the knowledge I gained in this, I was able to make a simple infinite scrolling game, package it up with cocoon and release it into the iOS and Android stores all within a day from my bed on a Sunday. It wasn't the best game ever but amazing to be able to get something out there so fast (I am a JS dev)

I've not done any game dev since but may use this jam as an excuse to take a stab at Phaser 3

Re:Phaser 3.0: HTML5 game framework on Wednesday February 14, 2018 @06:35AM (#16375071)
Of course! Though, I just tried to launch it on my phone for the first time in a year or so and it just crashes at the title screen YMMV (OnePlus3 running 8.0.0)

https://play.google.com/store/apps/details?id=com.fraserhart...

Re:Phaser 3.0: HTML5 game framework on Wednesday February 14, 2018 @05:15AM (#16374814)
I built a (very simple) game in Phaser a couple of years ago and used cocoon (https://cocoon.io/) to package it up into an Android and iOS app. Basically it packages the HTML/JS/CSS app into a native webview.

Phaser is a great framework. I managed to conceive, write the game from scratch and have it in the app store within a day.

It's no longer on the iOS store as I didn't continue to pay my dev licence, but happy to share the play store link if anyone is interested.

Re:London City Airport Shut as WW2 Bomb Found in Thames on Monday February 12, 2018 @04:57AM (#16357663)
He was, yes. He received a 9 month sentence suspended for 2yrs.
Re:London City Airport Shut as WW2 Bomb Found in Thames on Monday February 12, 2018 @04:45AM (#16357613)
There's a lot of this stuff around! About 10yrs ago, my dad caused a lengthy shutdown of the channel tunnel after a piece of metal (he'd assumed it was a machine gun barrel) he picked up on the Somme battlefield was found in the boot of his car during a random search. It was a live WW1 mortar. They closed the tunnel and detonated it at the terminal.

As farmers work on the fields in northern France they regularly find artifacts from the war and just toss them aside as an annoyance.

I'm in the same as you. I've been dumping a few hundred a month into BTC, ETC and LTC for a few months and at the time of writing (BTC is currently hovering around 14k) my investment is worth 3x what I've put in.

While I'd love to see crypto disrupt the current financial system, it's just fun to be a part of the ride. I see this as play money. It's fun to track the price up and down.

It will have to do a repeat of the 2012-today run up for me to make huge money - something I'm not expecting - and unless it does this, I'll not be cashing out. If it happens then awesome, if it crashes tomorrow then I've spent a bit of money for a bit of added excitement in my day.

Also back in the 90s, a friend of mine - who was interested in reptiles - used a much less sophisticated method to steal books about snakes. He'd drop them out of an open window and go outside and pick them up.
Re:The new £1 Coin on Monday March 27, 2017 @12:23PM (#13969041)
Yeah. I got a NZ$1 in my change the other day. Didn't bat an eyelid. Time for a trip to NZ I guess
Re:What Happens to Your Body on a Thru-Hike on Thursday February 23, 2017 @07:20AM (#13713307)
Run, walk or cycle to - or part of the way to - work. Problems solved

Older »