HNHacker News
TopNewBestAskShowJobs

kh_hk

1,163 karma · joined December 2, 2012

"Not craftsmen, my lord," he said. "I have no use for people who have learned the limits of the possible."

    ― Terry Pratchett, The Last Hero
submissionscomments
kh_hk··on Ask HN: Best Command-Line Applications?
peerflix - https://www.npmjs.com/package/peerflix

A streaming torrent client. I guess there are similar ones.

Watching a torrent becomes:

    peerflix <magnet> --mplayer -t subtitle
kh_hk··on Show HN: Gmail Classic – CSS for Reverting Gmail's New Look
It works with wine just fine
kh_hk··on Trump Administration Approves a Plan to Drill for Oil in the Arctic
> Who owns / controls the Arctic?

All arctic coastal states: Russia, Norway, Iceland, Greenland, Canada and the US.

> Is it within American jurisdiction?

Since this is 6 miles off the Alaskan coast, that's included within the US continental shelf, which goes up to 200 nautical miles.

kh_hk··on How IBM’s ThinkPad Became a Design Icon (2017)
The 25th anniversary edition should just be an X62.
kh_hk··on Hayabusa2 Now
fluxbox, awesome or any other tiling windows manager plus conky can be very near to this interface. Of course, that's just the windowing system and not the GUI itself.
kh_hk··on Disney, please sell the rights to Monkey Island back to its creator Ron Gilbert
I wonder if there is any other complexity involved by Disney also owning the rights to "On Stranger Tides" by Tim Powers, which also inspired Monkey Island.
kh_hk··on The Dawn of PC Multimedia: Laser Discs and CD-ROMs (2013)
About CD burners, I remember sharing one with a friend from the same building I was living, by encasing it on an external SCSI box. 4x speed, no less! It took me a while to realize that walking around on my room whilst burning a CD produced corrupted copies.
kh_hk··on CityBikes: bike sharing networks around the world
In case you mean the dot just next to London, that's a town named Slough, with their own bike share system. By clicking on the dots you can actually zoom in on the systems. Here are some links with these zoomed in:

- https://citybik.es/map/santander-cycles

- https://citybik.es/map/cycle-hire-slough

kh_hk··on CityBikes: bike sharing networks around the world
Seems Stockholm's system in Citybikes were the remnants of a test project by JCDecaux, which was providing the data. The actual project on Stockholm is run (or at least used to be) by ClearChannel.

Actually, many years ago we supported Stockholm's system but stopped doing so after receiving a C&D by, apparently, a sole guy that had permission to use the data in exchange for providing the apps. Most possibly the situation has changed (this was more than 5 years ago) but it left an aftertaste that has stopped me from adding it. A PR to the project for adding Stockholm would be welcome, though.

// Disclaimer: citybikes

kh_hk··on Ask HN: What are the Madrid and Barcelona tech scenes like?
Something interesting is that in Madrid you need Spanish to survive, compared to Barcelona where most people (at least on tech circles) can speak English fluently. So yes, if it's for Spanish fluency, definitely Madrid.
kh_hk··on Ask HN: What are the Madrid and Barcelona tech scenes like?
(born in Barcelona, lived on both cities): these two are really different places. Tech scene is also clearly different. As I see it, Barcelona is smaller and cozier, tech scene might be hotter, but that might be from my own bias. Madrid is big, active and noisy. There are plenty of jobs on Madrid, compared to Barcelona, although I still think the hot stuff is on the latter.

Being both cities relatively near, why don't you take a week to visit them both? Register to some meetups, visit tech hubs, incubators, etc, and see for yourself which one feels like the place you want to be in. Now is a good time to visit, as the weather is calm. I would stay away from Madrid on august.

As for freelancing, I wouldn't recommend unless you are going to work for foreign clients.

kh_hk··on I spent two weeks delivering for Uber Eats and made $4.40 per hour
Several things the article does not mention:

- Some workers are pressured to rent a scooter or an e-bike. Having bike carriers is cool, but they prefer faster and long ranges. They rent from companies that have a deal with the parent company. This makes it even more difficult to earn a profit.

- On some countries, you must register as self-employed or freelance. Taxes and you also pay for social security.

- This highlights something interesting. These companies have a pool of riders at zero risk

- The part about few orders really depends on the city and the part of the day you work. Busiest hours can give you a solid 7 - 10 deliveries on a 3 hour period.

kh_hk··on I spent two weeks delivering for Uber Eats and made $4.40 per hour
If you deliver with a scooter you get a little more for every delivery and can access more delivery zones, but you pay for gas.
kh_hk··on New APIs to power customer engagement in Direct Messages
Omitting the obvious remarks on Twitter and APIs, this is clearly a good move. Most companies have a twitter handle and the public has already absorbed that fact, so it just seems more natural to offer a bot through twitter DM service than, let's say, telegram. I wonder what took them so long, considering that bots have also been natural to the twitter ecosystem for many years.

This can increase their growth and possibly, if a company bot goes over their future non specified limits, they can cash in. Sorry, could not help myself :)

kh_hk··on Reasons YouTubers keep imploding, from a YouTuber
Are we going to pretend none of this is done, including the article, just for the sake of creating drama and gossip?

Maybe I am trying to look too much into it, but it's pretty clear there's a network of content producers behind the scenes of all the famous Youtubers, doing all the editing, selecting 'crappy' thumbnails, and playing the videogames on which the stars will later put their own voice over.

Doesn't this make a lot more sense than assuming some youtubers are supernatural and can churn out content by the hour?

kh_hk··on Catching a Real Ball in Virtual Reality
The change on strategy with no simulated ball between predicted trajectory and target catching point is pretty interesting, although it would also have been interesting to have an speed estimate on target catching to assert how fast the ball is approaching you, either an ETA or a color change?
kh_hk··on What are some things you wish you knew when you started programming?
Since I see no mention on wages (maybe OT) I will chime in:

Value your work, even if you think you are "still learning". I spent way too much time on under-market salaries writing good code. I wish someone had told me I could be earning 5x whilst still at uni.

kh_hk··on Building a Hackintosh Pro
I consider an operating system that randomly includes ads on their OS tools far from 'not bad'.
kh_hk··on Mapzen's new OpenStreetMap-powered bike map based on safety
Also note that https://www.opencyclemap.org/ has been available for quite some years, based on OSM data too.
kh_hk··on GitHub commit search: “remove password”
Seems this goes back to 1989 :)

https://github.com/weiss/original-bsd/commit/0e1066151c90a80...

kh_hk··on Leaflet: An open-source JavaScript library for mobile-friendly interactive maps
We do offer an API through https://api.citybik.es with as many feeds as we can gather. Note though that no more than 10% of the feeds on citybikes are what one would consider 'open data'.

If you are interested in the actual sources, these are available on the data files that compose pybikes[1]

[1]: https://github.com/eskerda/pybikes/tree/master/pybikes/data

kh_hk··on Leaflet: An open-source JavaScript library for mobile-friendly interactive maps
As a note, these are not OSM tiles but mapbox. Last I checked I couldn't use vector tiles from mapbox using upstream leaflet, so decided against it for now until I find a better solution.
kh_hk··on Leaflet: An open-source JavaScript library for mobile-friendly interactive maps
Hey, thanks!

The numbers are real, although the timing might not be. There's an endpoint diffing our data by the minute and distributing the changes over that minute to give it the real-ish impression. A green explosion means somebody took a bike from an station, and a red one means somebody left one.

From experience working with these endpoints, data is reliable at around a window of 5 minutes.

kh_hk··on Leaflet: An open-source JavaScript library for mobile-friendly interactive maps
My bad, the site does not degrade correctly to mobile devices. There's a nasty hack for hijacking focus on the map in order to keep it as a hero and being able to scroll down that has not been tested enough. Also note this is keeping a websocket connection open and receives streaming data for changes.

Maybe a direct map works better https://citybik.es/map/citi-bike-nyc

In any case, I just wanted to show how markers with 'DivIcon' [1] as they are called in leaflet can be used to create cool looking marker styling without resorting to images / svg / canvas.

[1]: http://leafletjs.com/reference.html#divicon

kh_hk··on Leaflet: An open-source JavaScript library for mobile-friendly interactive maps
Works for me with chromium / ghostery / uBlock Origin
kh_hk··on Leaflet: An open-source JavaScript library for mobile-friendly interactive maps
In my experience the best thing about Leaflet is the possibility of using CSS to style, transform and animate markers.

Shameless plug, see for instance this map using css 'explosions': https://citybik.es

kh_hk··on If your code accepts URIs as input, filter out “file://”
What about

    u = urlparse(url)
    if u.scheme not in ['http', 'https']:
        return 400
kh_hk··on Moving to GitLab: Yes, it's worth it
That is a different case than configuring a different remote on config and pushing to another host which is what I interpreted reading your comment, my bad.

Out of curiosity, does the import process include all issues, PR and comments?

kh_hk··on Moving to GitLab: Yes, it's worth it
Not wanting to diminish what GitLab is doing, but what you mention is an inherent characteristic of git itself that applies the same way to GitHub, Bitbucket and a self hosted git bare repository. Any git host should expose a git interface for it to work as a git repository.
kh_hk··on George Orwell would have voted to leave the European Union
It is as worthless as the candidates one votes for.

More education on the importance of what gets discussed on the EP would make people demand more from the candidates they vote for.

Politics and media have an incredible adaptation to mass-demands, because they either live of their vote or their audience. It is a graveyard because nobody cares about it being a graveyard, and for the same reason it's not on newspapers or the TV, because the majority does not care (or, alternatively, the majority is already busy enough with internal politics).

← PreviousPage 8 of 14Next →