u/b3k - 17 Archived Voat Posts in v/programming
u/b3k
  • home
  • search

u/b3k

0 posts · 17 comments · 17 total

Active in: v/programming (17)

  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››
Comment on: Where should I migrate my projects to (from Github)?

I run Gogs on a Digital Ocean VPS. $5/month (plus $12/yr for the domain), dead easy, and stupid simple.

1 23 Jul 2015 16:23 u/b3k in v/programming
Comment on: Does Voat have a python API?

Requests even has a feature to automatically parse the JSON.

2 15 Jul 2015 20:16 u/b3k in v/programming
Comment on: Open Source Web Crawlers, any advice?

I used Nutch to map a corporate intranet and feed the data into Elasticsearch. Nutch, to me, seems like a better tool when you don't have specific sites targetted, though it can work for that.

Everything apart from the title was in the content tag as one long string.

It's been a year since I used it, but I don't remember this being a problem. Like I said, I fed the data right into ES. There was already a plugin (either for Nutch or ES) for parsing that data properly into the index.

0 09 Jul 2015 15:38 u/b3k in v/programming
Comment on: Open Source Web Crawlers, any advice?

I used Nutch for a project last year. There is a little learning curve and it requires some configuration, but as you said it's mature. It works quite well for webcrawling and can be setup for automatically pulling metadata and full text out of crawled documents and can easily dump the crawl results into an index like Elasticsearch.

That being said, it sounds like you're targeting a single website looking for specific information, which seems like more of a scraping task than a crawling task. I'd look at Scrapy.

2 08 Jul 2015 21:43 u/b3k in v/programming
Comment on: Schneier: If we only use encryption when we're working with important data, then encryption signals that data's importance

Every time you use encryption, you're protecting someone who needs to use it to stay alive.

Best line from the article.

12 24 Jun 2015 23:21 u/b3k in v/programming
Comment on: Anybody own a Raspberry Pi? Care to share any cool projects you've done on it?

I have one I've used as:

  1. a main desktop
  2. a personal journal
  3. a wifi router
  4. a target to learn how to do cross-compilation
  5. a PirateBox
  6. an IRC bot

It's great to have a cheap-to-buy, cheap-to-run computer around for doing random stuff. I also want to collect a few RPis to prototype an idea I have for a distributed system, but I'm not giving that one away yet.

2 23 Jun 2015 23:23 u/b3k in v/programming
Comment on: My Top 100 Programming, Computer and Science Books: Part One

this one people literally think is the "C Bible".

In a way it is, isn't it? It was written by the people who invented the language. The first edition was the first published standard for the language. The second edition was close to a standard. (Though ANSI C was a thing by then.)

Sure there are other good books about the language. There are other, better books for learning it that include the decades of improvements in the language and ecosystem since then. But, K&R was first, it was the best of its time, and it remains a great example of technical writing, even if it is no longer the 'best' book about C, objectively speaking.

1 19 Jun 2015 16:24 u/b3k in v/programming
Comment on: The Web is getting its bytecode: WebAssembly

Is this supposed to fully replace JS, with access to the DOM and all that? I would love to not have to use JS when coding website interaction. I didn't think that's what NaCl was intended for, but that's how the article reads.

2 18 Jun 2015 20:35 u/b3k in v/programming
Comment on: The Web is getting its bytecode: WebAssembly

How long will it take for Apple and co to add proprietary APIs to this, breaking the Web (again!).

From the promoted comment in TFA:

This is exactly how the system is supposed to work: individual teams try to advance the state of the art, and eventually all those lessons learned are incorporated into a new and better system. See e.g. SPDY -> HTTP2. WebAssembly draws on both the past work and the experience of all those involved, and wouldn't be what it is without them.

As long as there is robust browser competition between 3+ major vendors, those individual browser mutations allow the whole browser population to evolve.

3 18 Jun 2015 20:32 u/b3k in v/programming
Comment on: Language of choice?

Not really. The bottle docs are good and the framework is simple enough that I didn't need to look for any other walkthroughs.

All I did on my last one was set up the interface points with bottle, as in the docs. For each point, get data from the request, decode it with json, prep the sql statement, run the query/update with sqlite3, serialize the result with json, and return the result with bottle. Later I added user/password authentication with passlib for salting/hashing and random for generating tokens.

For all of this, I just looked at docs of each component then glued the pieces together.

0 18 Jun 2015 19:56 u/b3k in v/programming
Comment on: Language of choice?

For serious number crunching Fortran (yes people still use it)

Absolutely! The whole scientific Python stack is built on top of Fortran libraries BLAS and LAPACK. I'm lucky enough to never have had to do any custom work at that level, though.

1 18 Jun 2015 03:09 u/b3k in v/programming
Comment on: Language of choice?

I've never liked Oracle. There's a reason LibreOffice and MariaDB forked when Oracle bought Sun. They've been pretty hostile to the open source communities they acquired (OpenOffice.org, MySQL, VirtualBox, Java).

But when it comes to Android, Google is big enough to stand up to Oracle and keep the individual Android devs safe.

1 17 Jun 2015 23:09 u/b3k in v/programming
Comment on: Language of choice?
  1. Use Python3 if you don't already. It's the future and it's better. And, if your favorite module is one of the few that only supports Python 2.x, it shouldn't be your favorite anymore.

  2. Use IPython instead of the default REPL if you can. It has tab completion and remembers what you typed in previous sessions. It's nice.

4 17 Jun 2015 20:42 u/b3k in v/programming
Comment on: Language of choice?

Exactly, using bottle, json, and sqlite, I can have a CRUD microservice set up in about 5 minutes. Then 2 minutes later, I can have a script consuming that service with requests. I don't think I like python for very large scale projects (though it gets used for them), but there's no quicker language for me to prototype anything.

3 17 Jun 2015 19:41 u/b3k in v/programming
Comment on: Language of choice?

Relevant XKCD

2 17 Jun 2015 19:37 u/b3k in v/programming
Comment on: Language of choice?

Like best to use? Python. It's quick and easy to turn my thoughts into code. Also, the Scipy stack is superb for my data work.

Have to use most? Java. It's mature. It's capable. It's everywhere. It's not C++.

Most want an excuse to use? Golang. Faster than Python. Still seems easy to write. Cool concurrency primitives.

8 17 Jun 2015 16:08 u/b3k in v/programming
Comment on: Learn about Python, the language that wraps itself around a problem to squeeze out a solution, swallowing it whole.

This article was last updated two weeks after Bill Clinton beat Bob Dole, the Monica Lewinsky scandal was still 1 year an a half away, Ross and Rachel were still together the first time, and Python was still on the 1.x series.

I'm not sure this article is relevant.

3 15 Jun 2015 20:36 u/b3k in v/programming
  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››

archive has 9,592 posts and 65,719 comments. source code.