Hacker Newsnew | past | comments | ask | show | jobs | submit | jotaass's commentslogin

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


Right, I should have said clever code golf.

I think I would have written it like that:

    def parse(line):
      p = line.split(",")
      return ((int(p[0], 16), int(p[2], 16))
    (parse(line)) for line in fp)
And when it was still cool: map(parse, fp)


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!


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?


It's a ux improvement over manually managing profiles. You can tell it to always open certain tabs in their own containers for example, or you can reopen your current page in a new container all from the same browser window


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 :)


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.


That's odd. I wasn't aware of that shortcut. It also doesn't work for me (and my layout is already en-US AFAIK)


This reminds me of the excellent tv.js. The same, but running in your browser (plus node.js)

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


There's a torrent of the video available here

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


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.


And this has never happened in small towns where merchants know everyone's business and gossip. There's always a backchannel of data when you are out in public.

The pregnant teenager outlier certainly made for an interesting and headline-worthy story. Hopefully future big data projects like this put a bit more thought into the human side of the equation, but never count on it I suppose.


In fairness, they probably didn't know she was underage. They just knew someone in the house was likely pregnant.

They've since stopped sending pure "baby" coupons and instead mix those in with other coupons to avoid the creepy factor.


Yeah... But we used to gossip about regulars and what they were buying (and why) all the time when I worked retail. We weren't as efficient as an algorithm of course, but we did use that knowledge (hunch) to recommend things as well. It's just weirder when a computer does it, rather than a person -- which is fair enough, and kinda interesting to think about!


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.


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


OpenDocument Format isn't just one format, it's a collection of formats. The one that corresponds to doc and docx is OpenDocument Text:

  site:gov.pt filetype:odt (1330 results)
Edit - For spreadsheets:

  site:gov.pt filetype:xls (2290 results)
  site:gov.pt filetype:xlsx (394 results)
  site:gov.pt filetype:ods (2 results)
Looks like they have a lot more work to do.


Thanks for the clarification. Glad to see it's not so bad afterall.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: