HNHacker News
TopNewBestAskShowJobs

jventura

1,604 karma · joined February 4, 2016

https://joaoventura.net/
submissionscomments
jventura··on Ask HN: What did you work on in 2017?
Lots of things but regarding side projects I built http://mockrest.com which allows people to implement json APIs for testing. It doesn't have much traction but works by itself and I use it for my web development classes..
jventura··on Implementing Malloc: Students and Systems Programming [pdf]
Hi there, I'm assuming TA means Teaching Assistant. I'm a CS teacher on a small polytechnic university and I'm looking for ways to transition some of my current courses from lecture-based with labs to project-based like this one seems to be.

Could you expand a little bit on your experience? Like, was all the course divided in 3-4 week-long projects, was there theoretical classes, how were the students graded (i.e., did they have exams as well, homework, etc.)? What were the other projects?

jventura··on LibreOffice 5.4.4 has been released
Could it be that it happens only on Macbooks? Maybe someone with a Macbook will still read this and answers..
jventura··on Dozens of Companies Are Using Facebook to Exclude Older Workers From Job Ads
> This mentality is the reason why...

The way I see the post you're replying to is either you learn to cope with these things or you'll burn out faster.

Since there's no accountability, if you want to do things the right way, you'll have to do it by yourself and be prepared to swim against the tide..

jventura··on Artists and writers whose works enter the public domain in 2018
Done, thanks!

https://github.com/standardebooks/tools/issues/63

jventura··on LibreOffice 5.4.4 has been released
Thanks for your suggestion. So I've tested on a Xubuntu 16.04 installation on VirtualBox, and it takes 3-4 seconds to boot LibreOffice Writer. It has something to do with macOS X...
jventura··on LibreOffice 5.4.4 has been released
I have been using LibreOffice for three years on my Mac (retina MacBook Pro 13", ssd and all) and it usually takes more than 20 seconds to start. It has been happening ever since the change to the new GUI. Is it just me?

I've since installed and reinstalled macOS X from scratch at least two times, and it always takes lots of time to start.

jventura··on Artists and writers whose works enter the public domain in 2018
Thanks for your project, I've downloaded some ebooks and it was great to read them. I would just like to let you that, at least on my ereader (sony prs t1), the book covers do not show at all. I looked at the epub source and I think I saw some svg in the cover, it was probably that.. It's an old ereader..
jventura··on Neighbor's house alarm triggers when I put my car in reverse
Yours remind me when I was also a radio aficionado many years ago, one night my upstairs neighbor called me because each time I pressed the button to talk, my voice would come out from her TV. I was basically ruining her favorite soap opera!
jventura··on Ask HN: What to do if you hate working for someone else and arent an entrepreneur?
> This thinking is hurting me though because it makes every job I ever had barely tolerable, slowly creeping towards miserable after enough time.

Profound changes in life are not easy, and feeling miserable is a sign that you probably have to change something.. Personally, I believe that people that are willing to change their lifes when circunstances ask for it are courageous. Most people will keep feeling miserable by inertia and fear of change.

As a little bit of more practical advice, have you considered going freelance or teaching? Something similar to what you're feeling now also happened to me, then I went freelancing and am currently teaching. I'm immenselly happier and get to learn lots of new things so I can be a better teacher..

Wish you good luck!

jventura··on The Big Vitamin D Mistake
> Bad sleep (I now use the calculator at sleepyti.me and have had great results)

Interesting site, didn't knew about it!

I've checked it out, and as I wake everyday at 7am, it suggests me four different hours: 10pm, 11:30pm, 1am and 2:30am. What I find interesting is that none of it matches exactly the 8h average sleep value. As you say that you have had great results, could you comment a little bit on that?

Thanks!

jventura··on As a solo developer, I decided to offer phone support
> Support brains and developer brains are actually not that different.

Others have already commented on this sentence, but I would like to add that the real problem is context switching. For instance, because I know I take too much time switching contexts on my mind, I always have to plan accordingly, like reducing the number of different tasks everyday, or plan some time between very different tasks..

jventura··on Facebook’s New Captcha Test: 'Upload a Clear Photo of Your Face'
Most of my facebook "friends" didn't even noticed I've quit some months ago. For those that ask, I say that it consumed too much battery..
jventura··on Learn C programming and the rest will come
In my opinion, and assuming the author is talking about learning C as first language, my answer is that it depends. It depends on what you're trying to do with what you're learning, and what you will do after.

Basically, if you're studying to be an electronics engineer, I say that C is a good first language to learn the constraints of electronic devices. But if you're studying to be a mechanical engineer, I guess you want to learn programming to solve "data" problems (equations, graphical plots, etc). For the latter ones, something like Python with packages like numpy, matplotlib, etc., is probably more adequate.

In a nutshell, I think of learning C first as the bottom-up approach, and learning something like Python the top-down approach. Choosing one or another depends on how down or up you want to go..

jventura··on Station X Linux Machines
It seems quite good but I'm very intolerant of 16:9 screens. It's a no-go for me..
jventura··on Modern Media Is a DoS Attack on Free Will
> I really don't know how to use the internet these days.

Same for me. Nowadays when I get bored and have some unproductive time to kill, I usually surf hacker news because I can't think of any other website to read as I quit other social media websites.

It's the same happiness/sadness you mention, although the lack of options on the internet has been turning out to be more positive than negative as I've been reading much much more.

jventura··on A Guide to Natural Language Processing
I worked with NLP for my research, and I used to build my corpora from wikipedia documents. Here's a tool that I've built to do it: https://github.com/joaoventura/WikiCorpusExtractor
jventura··on Firefox 57.0 Released
Thanks! By the way, for those who read this, to change the theme is menu > customize > theme.. These things are not easy to find!
jventura··on Firefox 57.0 Released
Can't seem to find where it is in firefox preferences. Could you please extend your solution?
jventura··on Firefox 57.0 Released
I have similar remarks. On OSX, the tab and the url bars are too big, they seem out of place.. Also, the black tab bar seems strange to me as I have a black OSX menu bar..
jventura··on A Beginner´s Guide to Getting Things Done
I searched for the quote and did find it in "Technology and Courage", by Ivan Sutherland (https://www.seas.harvard.edu/profdev/spring09/TechnologyCour...). It's a very interesting reading, sometimes quite illuminating things are hidden among other, more common, things.. Thanks for the quotation!
jventura··on You Will Not Understand This
For me it was information overload. Not that I care what my neighbour ate for lunch yesterday, but don't throw it in my face. I thought that such stupid information would be innocuous, and in a sense it is, but as they say, ignorance is bliss. I simply don't know what the current trend is on social media (are people still dropping water from buckets over themselves?) and I'm happier. In other words, I was once ignorant and I guess I'm happy because I now know how to be ignorant again! :)
jventura··on Exploring different microcontrollers less than $1
Thanks for your input, I briefly checked those links and they seem to be stores and quite overwhelming in their range of products and tutorials. What I'm looking for is mostly project tutorials or books at a basic level, as in "how do I start?". For instance, the nerdkit had me build a temperature sensor from the most basic parts and display the temperature in a LCD (bundled with the kit).

Any other suggestions?

Edit: typos

jventura··on Exploring different microcontrollers less than $1
Maybe is not the best topic to ask, but does anyone know good sources (websites, books, kits) for playing with and learning a bit more about microcontrollers and electronics? I would prefer structured sources (those that take newbies by hand) than unstructured ones..

I used to play a little bit with the nerdkits (http://www.nerdkits.com) and really enjoyed their approach but they seem to have gone out of business and their content has not been updated for some years..

jventura··on I have no side code projects to show you
I think the key to your answer is in the parent's text: "This showed dedication and interest as well as some measure of intelligence."

My reasoning is that if someone is very good in his line of work, some of that work starts to spill out to the public, either by research, teaching, articles, blog posts, etc.. If a person is not a pure introvert, working all by himself, and is quite good, invariably someone will notice it..

jventura··on Fewer than 10k people have the skills necessary for AI research?
Well, where I took my PhD degree (I'm not in the US), I was the only one working on Text-mining and Information Retrieval (besides my professor), and I think there was only three or four other PhD students working on AI - one on SOM (Self-Organizing maps), one on automatic translation, and the others I can't recall exactly on what they were working on.

So, although 10K seems too few to me, I would say that the magnitude may be right..

jventura··on Why we switched from Python to Go
I also recommend Java Spark for a minimalist framework. I would say that is quite similar to Flask in Python. But unlike Flask, Spark does not have a templating language. FOr something simple, I would recommend freemarker..
jventura··on Some Insights from a Julia Developer
Probably he is saying developers as professional programmers..
jventura··on Ask HN: How do you keep your brain in the tonus?
As a CS professor, I have to create lots of exercises for my students so I keep my brain occupied with these kind of things, trying to simplify my examples on each iteration. I find that it is very hard but very gratifying to simplify things. Also, much easier to explain to students.

Also, when I come across algorithms such as the Sieve of Erathostenes which was discussed recently here on HN (https://news.ycombinator.com/item?id=15408506), I do them to keep my skills and reasoning up to date..

Other times, I do some project euler problems, etc.. In even other times, if a blog post is interesting I try to implement the algorithms or examples there. For instance, there was quite recently a discussion about the little book of Operating Systems, and I've built the bootloader example and learned a little bit more about 2nd stage bootloaders and NASM Assembler.. Things like that..

I find that it is more efficient to learn lots of small things and join them with what you already know previously in your brain, than trying to learn bigger things..

jventura··on Sieve of Eratosthenes in Python (2015)
> Also, where's the check whether `i` is actually prime before you start crossing of multiples? You don't need to cross off multiples of composite numbers.

You are absolutely right as the original method seems to specify that. I've edited my answer to show it.

So the function would be something like (untested):

  void sieve()
  {
      for (int i = 2; i*i < n; i++)
          if (p[i] == 1)
              for (int j = i*i; j < n; j += i) p[j]++;
  }
There's the problem, as other posters are saying, that if p[j] == 1 is because it was cleared as non-prime, but I've just tested p[i] == 1 for primality for coherence with the original author.
← PreviousPage 10 of 19Next →