HNHacker News
TopNewBestAskShowJobs

llao

570 karma · joined September 10, 2017

submissionscomments
llao··on Portal for the C64
Here is a full playthrough: https://www.youtube.com/watch?v=FdxjHjFXvwM
llao··on Eagle.js: A hackable slideshow framework built with Vue.js
I use reveal.js a lot and hack around with plain html and css if needed.
llao··on How We Mapped 1.3M Data Points Using Mapbox
Depends on the kind of data. Check out cartopy, descartes, rasterio, geopandas.
llao··on How We Mapped 1.3M Data Points Using Mapbox
Yes, ask me anything and I will try to help you.

Can you try to categorize what you hate about it? If it are specific things and not the general hurdle of figuring where goes what and what means what.

llao··on How We Mapped 1.3M Data Points Using Mapbox
My OP was very negative, sorry.

Absolutely! Solving what you are set out to do is a great result and I am super happy for them and their end result!

But this state of documentation (as you call it, I would also/rather consider all the needed background knowledge and lingo to be a hurdle) is all the more reason to just document their goal, their data(s), their abilities and capabilities and ask an expert for 15 minutes of their time for input and pointers. That is so much more efficient!

llao··on How We Mapped 1.3M Data Points Using Mapbox
Next time they better talk to experts for their own sanities' sake...!

> We set the interpolation process running in QGIS on a Mac Pro and, a mere 11 days later, found ourselves the proud owners of a raster 250m2 grid layer

Probably done in minutes to hours with a properly setup PostGIS database and one query. "Data Journalists" seem to love it when things take long, thinking they are doing something super innovative and novel. Often it's just that they were using the wrong hammer...

> 1. Don’t use GeoTIFFs for geometric visualization

What? I am not sure what exactly the image is supposed to show but it seems like some rescaling/filtering. Not the fault of GeoTIFF.

Why not render the raster tiles locally? gdal2tiles or Tilemill can do that for you.

Why does Mapbox recommend LZW for compression? DEFLATE is usually much smaller and with the horizontal differencing predictor it should be even more smaller.

> 2. Your GeoJSON can probably be way smaller

Does Mapbox not support TopoJSON? That helps a lot for local data with quantisation.

> Because nothing in GIS is straightforward, attempting to round the values of 2.7m polygons using the field calculator in QGIS invariably resulted in the application crashing, even on a high-end Mac Pro. After several attempts using QGIS 2.16, 2.18 and 3.2,

Did they ask the community or even just provide a bug report? This should not happen from a QGIS fault.

llao··on Feedify is compromised with code mirroring Magecart
If you embed third-party code, you expose your users to dangers like this. Please at least use Subresource Integrity (https://developer.mozilla.org/en-US/docs/Web/Security/Subres...) but best host the code yourself, as that also protects your users' privacy.
llao··on Project Python – Free Interactive Book That Introduces Python Programming and CS
Glad to, as I need to learn Pandas in more depth than I currently know.

Also, I noticed something very very dangerous you did:

.describe() will return a DataFrame with all those statistics. One column per numeric column of the input. One row per statistical value (like mean, std, etc). If you call .mean() on THAT DataFrame, you will get the mean of the statistical values per column, so e.g. the mean of columnA's count, mean, std, etc values. Definitely not what you want!

Instead, use either .mean() directly on your "data DataFrame" (not the one returned by .describe()). Or access the specific value from the result via .describe()['columnname']['mean'].

llao··on Project Python – Free Interactive Book That Introduces Python Programming and CS
Ok, this was more complex than I thought. I hope I got it right and this gives you some pointers how I investigated. :)

Use type() to see what you are getting:

    >>> type(df.describe().mean())
    <class 'pandas.core.series.Series'>
    >>> type(df.describe().mean)
    <class 'method'>
Something without parenthesis cannot be a method call, at least not from a normal viewpoint. Instead you are trying to access the attribute "mean" of the result of describe() if you run df.groupby(df.var1).describe().mean. This attribute might very well be a method itself (a method object).

Last in that chain was describe(), so let's look at that: https://pandas.pydata.org/pandas-docs/stable/generated/panda...

It returns a "summary: Series/DataFrame of summary statistics", so calling .mean() on that, will call https://pandas.pydata.org/pandas-docs/stable/generated/panda...

Accessing .mean will instead return that method object itself.

By default pandas will return a string describing the data itself when printing a method:

    >>> df.describe()
           numeric   n2
    count      3.0  3.0
    mean       2.0  3.0
    std        1.0  1.0
    min        1.0  2.0
    25%        1.5  2.5
    50%        2.0  3.0
    75%        2.5  3.5
    max        3.0  4.0
    >>> df.describe().mean
    <bound method DataFrame.mean of        numeric   n2
    count      3.0  3.0
    mean       2.0  3.0
    std        1.0  1.0
    min        1.0  2.0
    25%        1.5  2.5
    50%        2.0  3.0
    75%        2.5  3.5
    max        3.0  4.0>
    >>> df.describe().mean()
    numeric    2.00
    n2         2.75
    dtype: float64
I assume this is what threw you off? You are not using the "results" of .mean in further code but were just looking at them, right?
llao··on Amazon is stuffing its search results pages with ads
Huh, I can confirm GP. Nothing by Apple, no Airpods. https://i.imgur.com/LymtHOnr.jpg (sorry about the quality, I thought Imgur was lossless...)
llao··on Why Are Newspaper Websites So Horrible?
> The decentralised platform for trusted news applications

> The NewsBlocks token sale is planned for Q4 2018. The token sale will fund the creation of the NewsBlocks blockchain, seed the content, and fund application development.

Spam your scam elsewhere.

llao··on Tell HN: Using Gmail? You will be force logged into Chrome
For everyone looking: Hamburger menu -> Customise -> at the bottom Density -> Compact.

Thanks!

llao··on The Mellotron In Action [video]
Could you link an non-sexualised clickbait alternative? :\
llao··on Show HN: Clipboard Plus, free and open-source clipboard manager for Windows
> synchronized between devices clipboard

Holy hell, that sounds like the utmost crazy privacy problem. Is it end-to-end encrypted?

llao··on A time in 1994 when Steve Jobs got to use a device like an iPhone
I gave up utterly confused and annoyed at "page 5".
llao··on Twitter meets TensorFlow
> Machine learning enables Twitter to drive engagement, surface content most relevant to our users, and promote healthier conversations.

One that wants to manipulate your mind, one that echochambers your discovery, one that censors arbitrarily.

llao··on Avoid FIFA World Cup CDN Issues
It is P2P so you would be both.
llao··on Half of all adults in the world have less than $2,300 in wealth (2016)
I only read the headline but does this use local purchasing power in $ equivalents? If not, I don't see what use that number could be.
llao··on What we just learned about the Magic Leap One's hardware
Clickbait you can skip without missing out on anything.

All they learned is irrelevant details, sadly they did NOT say anything about the color of the top or the exact haptic feel of the third knob from the right.

Nothing about the vapourware tech to learn.

Skip and keep watching from your safe distance.

llao··on Archive.org and California to start a data sharing and preservation project
Check out and contribute to https://www.archiveteam.org/index.php/INTERNETARCHIVE.BAK :)
llao··on Bayer to retire Monsanto name
I managed to get through school just fine, thank you. Zyklon-B is well known to me.

How does one company name from 70 years ago matter in the big picture anyways? Please don't assume that the rest of the world uses the same history syllabus like your US school might have. Did they at least also teach you who fabricated Agent Orange if they focused on manufacturers so much?

llao··on Bayer to retire Monsanto name
I am German and "IG Farben" means nothing to me. Monsanto on the other hand is popular to hate and omnipresent on and off the web.
llao··on A Wikipedia editor's long-running campaign
> it lasted for a few weeks.

Citation needed...

llao··on How I targeted the Reddit CEO with Facebook ads to get an interview at Reddit
"Growth hacking". Perfectly fits the VC-funded startup spirit.
llao··on Yubico sent marketing email to address submitted for product replacement
No one is being forced to let their start-ups be dictated by venture capitalists. Everyone is responsible for their own actions.
llao··on User IDs probably shouldn't be passed around as ints
If trying more or less random URLs of your service is an issue for you, you have an issue.
llao··on ML turns video of a 360° turn into 3D model of a person
Oh how I hate marketing speech.

First of all, the title should include "video of a predefined 360° turn".

And then they say something along the lines of "average accuracy of about 5mm" for joining the constructed modeled joints to their model, while you see the body wobbling around happily.

This is an impressive demo, but gah!

llao··on TweetDelete – Automatically delete your posts that are older than a maximum age
Should compress nicely though.
llao··on TweetDelete – Automatically delete your posts that are older than a maximum age
The internet says there are about 500 million tweets per day. If we assume 500 bytes for storing each, this would be 250 Gigabytes per day.
llao··on TweetDelete – Automatically delete your posts that are older than a maximum age
Thank you, I was just going to ask for something like this.
← PreviousPage 3 of 4Next →