HNHacker News
TopNewBestAskShowJobs

jotaass

91 karma · joined November 28, 2012

submissionscomments
jotaass··on Spot the bug in this Python code (2023)
I don't think it's clever, it's quite unintuitive and ugly. To me anyway. If the author really wanted to cram everything into a list comprehension, the logical way to think about it is:

    (
        (int(tsc, 16), int(pc, 16))
        for tsc, _, pc, *_ in (line.strip().split(",") for line in fp)
    ),
Which is, of course, almost as ugly. Just use a for loop and yield
jotaass··on Tell HN: You are not alone this Christmas
Yeah, that's true, that day will come. Just like there will come a day you will go outside for the last time, have your favorite meal a last time, listen to a song for the last time or breathe for the last time. It's a sobering thought. But until that day you have plenty of opportunities to do all those things, and that includes loving new people!
jotaass··on Firefox 95 Released
I never used this feature personally. Do you think it’s better than a separate profile which you can launch with -p flag or a profile switcher extension?
jotaass··on Ask HN: Who wants to be hired? (September 2021)
Location: Portugal

Remote: Yes

Willing to relocate: No

Technologies: Python (inc. common Data & ML tools), Node, SQL, Spark, Docker, Linux, ElasticSearch, MongoDB, Kafka, Cassandra

Résumé/CV: https://www.jgsousa.com/files/cv.pdf

Email: jobs@jgsousa.com

Hi, I'm a Data Scientist with experience building and maintaining all kinds of Data and AI products for e-commerce (recommender systems, search, ranking, computer vision). I consider myself a generalist, so I'm interested and have experience in multiple different aspects of a modern AI/ML solution, including data gathering and analysis, data pipelining, large scale processing, model building and tuning, model serving, distributed systems, etc. In summary, I love building software for AI/ML :)

jotaass··on Show HN: ParseHub – Extract data from dynamic websites
Yeah, I'm having the same problem. It might be related to the fact that Ctrl + ] is also the keyboard shortcut to nagivate back in firefox [1], so when I try it I end up going back to the previous page. Ctrl + [ does nothing.

Or it might be that in my keyboard layout, [ and ] requires pressing RIGHT ALT + 8 and RIGHT ALT + 9, respectively.

[1] https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perf...

PS: Indeed changing the layout to en-US fixes the problem, but that not a real solution.

jotaass··on Popcorn Time Is So Good at Movie Piracy, It’s Scary
This reminds me of the excellent tv.js. The same, but running in your browser (plus node.js)

https://github.com/SamyPesse/tv.js

jotaass··on A Christmas Message From Edward Snowden [video]
There's a torrent of the video available here

http://pirateproxy.net/torrent/9395395/Channel_4_Alternative...

jotaass··on Target stores hit by data breach affecting 40 million cards
This reminds of a story that ran in the news last year.

http://www.forbes.com/sites/kashmirhill/2012/02/16/how-targe...

It is not ok for a retail company to profile your underage daughter, find out that she is probably pregnant (before you do!) and then do targeted advertisement. That is wrong and more than a little creepy.

jotaass··on If a Drone Strike Hit an American Wedding We'd Ground Our Fleet
I think the point is that those jihadists in Yemen are the direct result of this sort of thing happening in their home towns. It's very easy to recruit someone when they just saw a whole bus of their friends and family being blown off by reasons they can't understand, from a robot in the sky, being controlled by someone miles away.

It's a whole chicken and the egg thing.

jotaass··on Portugal's prescribed open standards - full list
Thanks for the clarification. Glad to see it's not so bad afterall.
jotaass··on Portugal's prescribed open standards - full list
This is interesting. It has been almost a year since the deadline for the implementation. I have no indication that anything changed at all. Take the following google search experiment

  site:gov.pt filetype:doc (90k results)
  site:gov.pt filetype:docx (451 results)
  site:gov.pt filetype:odf (0 results)
Maybe that's not fair, as the final deadline is actually in July of next year. I guess, as a portuguese, I should know better than to expect things to get done before the very last moment.

Edit: formatting

jotaass··on It's practically impossible for regular people to buy Bitcoin
How about a Bitcoin ATM machine? https://lamassu.is/
jotaass··on How many people are in space right now?
I think most of us are probably behind several layers of concrete, glass, wood, etc.
jotaass··on Your name is way too long for your ID
It's quite usual to have two family names, one from your mother's side and another from your father's. Usually the father's family name comes last, but it's by no means a rule, more of a social norm (and somewhat fading).

Additionally, it's also perfectly reasonable to have two or more "first names".

The consequence of all of this, and having four names myself, is that I'm always confused what I'm supposed to fill in as my first and last names. I end up using just my very first and very last, but i always feel like I'm being disrespectful towards my mother's family for the omission.

jotaass··on Ads in Gmail displayed as normal emails?
In which case I'm sure Google will provide an unsubscribe option.
jotaass··on Android saves wifi passwords in plaintext to the cloud
I too found the replies to be somewhat dismissive. You would think this sort of report would be dealt with much more urgency or, in the very least, some concern.

It's an important problem, and the feeling I get from that thread is that they are more concerned where the bug should be filled. I appreciate organization as much as anyone, but the proper response should be frantic running around and hair pulling.

jotaass··on Being an excellent robot (Erica Goldson Graduation speech)
That's a very insightful post. Thank you.
jotaass··on Google paid AdBlock Plus to get its ads whitelisted
Here: https://news.ycombinator.com/item?id=5897682
jotaass··on Bolivia to file UN complaint over airspace blockade
As an european this disgusts me to no end. It can really hurt your patriotism and sense of pride in your country when you realize it's not actually a country at all, just a subservient state, willing to do anything to avoid drawing the attention of the big fat bully. In the end we're all afraid to fight for anything when life is too hard already, I guess.
jotaass··on Mozilla and Partners Prepare to Launch First Firefox OS Smartphones
Nevermind the fact that in order to qualify for unemployment benefits you must have worked and contributed in the last few years. As it turns out, most unemployment in Spain, and countries in the same situation, is from fresh out of college students who never had a chance.

Well, you can argue that there is always a choice. And most of them take it, by leaving everything behind and moving to Germany or other central european country. Until they don't want them there anymore.

jotaass··on This Really is Big Brother: The Leak Nobody's Noticed
That's exactly the environment in my country in the 40's to mid 70's. You were obliged to inform the state of suspicious activities of your fellow citizens (things like reading the wrong sort of books or indulging in private gatherings) and were promptly compensated when you did so, whether you were being truthful or just really didn't like your neighbor. The infamous PIDE (secret police) is considered one of the most effective police forces in history, partially because of these sorts of tactics and how they managed to creep their way into every aspect of society. This is not something I'm proud to be associated with our history.

Of course that was dictatorship era Portugal. More than 40 years ago. I wasn't even born. But things have a way to come around again, one way or another, when we let ourselves get too comfortable and forget history or just trust too much on the competence of others.

jotaass··on What happens when you give 4chan images of the Boston Marathon?
Yes, but now is on the front page of Hacker News. They may just have ruined this guy's life, even if they didn't mean it. And based on what? The pictures prove nothing. In fact, they're not even suspicious! "Backpack seems to be missing"? The picture only shows his head!

This is bad, and very wrong.

jotaass··on How I got robbed of 34 btc on Mt.Gox today
Well, he did put a space there. I'd give him a pass.
jotaass··on My divorce from Google - One year later
Submitter here. I did search for it first, but I clearly did a poor job. Apologies for that.
jotaass··on Watsi (YC W13) and the Future of Patronage
I wish all the best to the team at Watsi. They have an amazing concept. It's captivating how straightforward it really is. They offer the possibility for anyone to make a difference to the lives of real people, and watch that happen, in almost real time.

I don't know what these kinds of projects will do to the "future of patronage" but it gets people aware of the problems, gets them involved and brings in real results, with little effort. That can't be a bad thing.

jotaass··on Python data tools just keep getting better
f2py is a remarkable tool. And it's much easier than the documentation would lead you to believe. It's literally as simple as doing

f2py foo.f -c -m foo

Which creates a foo python module with easy access to whatever functions you put in foo.f, with proper type checking and conversion from python objects to fortran arrays. It is also clever enough to remove some unecessary inputs which are common in old fortran. For example, in fortran you usually define an extra input argument to be the length of an input array. f2py determines that this variable is uncessary as it can be determined from the length of the python object and makes it optional.

If you write fortran90-95 it's even better, as you can mark a variable as output and f2py puts it on the left side automatically.

I wish they would update it to support pointers and custom types, though. That's about the only thing it lacks right now.

It's the best and quickest way I know of linking python and native code. Scipy's weave is also nice.

jotaass··on Fernando Pérez of IPython fame wins the Free Software Foundation Award
I'd just like to add my voice to the others to say I love IPython. It's absolutely essential for my daily work, and it freed me from the shackles of Matlab. Python is a lovely language on its own, but it really shines when you add a good interactive prompt.
jotaass··on Namecheap now officially accepts Bitcoin
I'm honestly not sure, but I was under the impression that bitcoin wasn't really anonymous. All transactions are publicly logged to prevent double spend, so you can trace a coin from the first time it was used. If you happen to know that an address maps to a specific someone, you can begin to create a pretty identifiable picture.

See, eg: https://bitcointalk.org/index.php?topic=241.0

jotaass··on Ask HN: Best books you read in 2012
This year I decided to dive into the Game of Thrones* series, having discovered it through the TV show. Those were some intense 3 months! These books are the very definition of immersive. While they can get repetitive and slow at times, that is more than compensated by the whole setting, atmosphere and, well, "major events".

* or, for the pedantic out there, A Song of Ice and Fire.

jotaass··on Ask HN: Best books you read in 2012
Definitely read the other Hitchhiker's books. At least, the second one, which is as good as the first, if not better. Also, absolutely recommend the radio series. Even after you read the books, it's different enough to keep you entertained, and worth it for Marvin's lines alone.
Page 1 of 2Next →