HNHacker News
TopNewBestAskShowJobs

ola

380 karma · joined April 7, 2008

submissionscomments
ola··on Show HN: My weekend project to end Go/TypeScript boilerplate hell
Here is a link directly to the example https://github.com/turborpc/turborpc?tab=readme-ov-file#exam...
ola··on How Twitter poisoned politics
I phrased that badly, these aren't individuals inside the company but people we play against or play with if we don't have enough for full teams.
ola··on How Twitter poisoned politics
It's not only Twitter or politics. I've been playing some Heroes of the Storm as team building with my company and when we are not a full team the toxicity can get intense, with some people going far beyond just in match flaming to harassing with death and rape threats in direct messages long after the match is over.

Mind you this in a no-stakes free to play game and the phenomenon seems common. Sometimes I think our culture is not ready for a substantial part of our communication not to be face to face.

ola··on Cryptographers Urge People to Abandon IOTA After Leaked Emails
It still baffles me that the official response from the IOTA foundation is that the vulnerability was inserted intentionally as copy-protection.

And even more baffling that their flagship partner Bosch does not seem to have problem with this practice.

ola··on MIT Media Lab's concerns about the cryptocurrency IOTA
> The first explanation was that the flaw was intentional—that it was meant to serve as a form of “copy protection.” If anyone used this code in their own work, he said, the IOTA developers would be able to exploit the flaw and damage other systems that were using the hash function.

Is this a common practice in the cryptocurrency community? Seems sort of pointless to put flaws and bugs in an open source project as copy protection instead of just keeping it closed source.

ola··on Why You Shouldn’t Use ReactJS for Complex Projects
This article purposefully misrepresents React in favor of the author's own framework Binding.scala, all the criticism are either superficial like class being className (which is a good thing because JSX is not HTML) or has nothing to do with React like JavaScript's dynamic typing system and handling of asynchronous updates.

He also seems to believe that React is framework when it's a library, if his knowledge of React is so shallow that he didn't even read the first sentence on the React website I can't take his opinions on it seriously.

I don't like these kinds of articles which are only thinly veiled advertisements that do not offer any thoughtful criticisms, what I would really like is to hear from someone who has actually worked on a huge project which includes React and what troubles if any they ran into.

ola··on Show HN: Alter – convert text/code to an image
I am of the same opinion, always go for correctness before performance, efficiency can be tuned later if it's even needed.
ola··on Create React Apps with No Configuration
I created something similar a month ago

https://github.com/olahol/reactpack

Doesn't seem like this project differs that much, although this looks to have the backing of core React developers.

ola··on Has article 50 been invoked?
> If the Article 50 was not sent today, the very day after the Leave result, there is a strong chance it will never be sent.

https://twitter.com/DavidAllenGreen/status/74644174247232307...

ola··on Show HN: Reactpack – one command to build your React front end
It's just an example to show what type of code `reactpack` builds, ES6 and JSX with style loading in this case. If you want a more minimal React-like build you can switch out React with lightweight alternatives like Preact or React-lite.
ola··on Show HN: Reactpack – one command to build your React front end
Thank you :) I made it in gnome-paint, the shrubbery symbolizes okayish development practices.
ola··on Show HN: Reactpack – one command to build your React front end
Just a small utility for people who are tired of remembering what babel presets or Webpack loaders they need to build a relatively up to date React project.
ola··on Dsxyliea
You are loading things over HTTP instead of HTTPS (Mixed content warning). Change

http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.mi... => //cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js

ola··on Mixpanel Lays Off 18 Employees
The analyzer is just for show, this is the code that runs it:

http://pastebin.com/w00xTRrU

If you look at max_errors there looks to be always at least 7 errors.

I think a better way of doing it would be to make the error generation deterministic on the url input.

ola··on Webwatch
It's using the standard `flag` package that comes with Go, as for why `flag` parses args this way I don't know.
ola··on Webwatch
Useful tool for what is a very common task, nice work jgrahamc!
ola··on How David Hume Helped Solve My Midlife Crisis
My favorite passage from David Hume's work `An Enquiry Concerning Human Understanding`

“Where am I, or what? From what causes do I derive my existence, and to what condition shall I return? ... I am confounded with all these questions, and begin to fancy myself in the most deplorable condition imaginable, environed with the deepest darkness, and utterly deprived of the use of every member and faculty.

Most fortunately it happens, that since Reason is incapable of dispelling these clouds, Nature herself suffices to that purpose, and cures me of this philosophical melancholy and delirium, either by relaxing this bent of mind, or by some avocation, and lively impression of my senses, which obliterate all these chimeras. I dine, I play a game of backgammon, I converse, and am merry with my friends. And when, after three or four hours' amusement, I would return to these speculations, they appear so cold, and strained, and ridiculous, that I cannot find in my heart to enter into them any farther.”

ola··on AirConsole – Your browser is the game console, your smartphone is the gamepad
I wrote something similar to this for playing NES games, just start the server and navigate to it with a desktop and mobile and it should work out the box.

https://github.com/olahol/greasyphone

ola··on What’s Hot in the Art World? Algorithms
Very beautiful, the notation looks similar to Frege's concept script https://www.math.uwaterloo.ca/~snburris/htdocs/scav/frege/fr...
ola··on Show HN: Multiplayer NES Server in 77 Lines of Go
I think that would be a beyond the scope of this project which is to demo Go websockets, I wanted to keep it as simple as possible and not hack the JSNES source code.

Although it would be a cool thing to make a production ready web hosted multiplayer NES.

ola··on Show HN: Multiplayer NES Server in 77 Lines of Go
It's a higher level framework built on top of github.com/gorilla/websocket . Some features include

* Clear and easy interface similar to net/http or Gin with event handlers.

* A simple way to broadcast to all or selected connected sessions.

* Message buffers making concurrent writing safe.

* Automatic handling of ping/pong and session timeouts.

ola··on Show HN: Multiplayer NES Server in 77 Lines of Go
The server works by using HTML5 Websockets (https://developer.mozilla.org/en-US/docs/WebSockets) which allows browsers to do full duplex communication with the servers (they can push and receive messages without having to poll).

The implementation of the multiplayer itself is very simple and consists of these steps:

* Pair up players using a map from one session to another.

* Start an instance of https://github.com/bfirsh/jsnes on Player 1

* Screenshot the canvas of JSNES using toDataUrl.

* Send the screenshot to Player 2 and render it into a canvas.

* Send Player 2's keyup and keydown event's to Player 1.

The communication over the WebSocket is very fast, the screenshot is being sent at 30 frames per second.

Melody is just a small framework to make WebSockets easier to work with.

ola··on Show HN: Hnplain, output Hacker News in plain text
I trivial tool I wrote that outputs Hacker News in nice plain text, I use it to send myself and email at lunch time with the top stories on HN.
ola··on Riot – A React-like, 2.5K user interface library
Ok, now I understand, sometimes there are several javascript projects with same name.
ola··on Riot – A React-like, 2.5K user interface library
Is this the same Riot.js as the 1kb framework or is this just named the same?
ola··on Show HN: Number Duck - a programming library to read and write Excel files
Very cool, could have used something like this at my last workplace where excel was the lingua franca.
ola··on A Programming Language, now in HTML (50th anniversary)
Just browsing through I'd say an introductory course in linear algebra and one in discrete mathematics should be enough. I'm not an expert on mathematics or APL so take my advice with a grain of salt.
ola··on Getting to Know Americans
I'm European and I do this all the time too, I think it has more to do with the individual than with cultural norms.
ola··on [dead]
http://paste.lisp.org/display/65257

Brainfuck generated from:

    ,48i-:1i=["All the rage!"s[.]_10i.!]_:2i=["Worst product e-v-e-r"s[.]_10i.!]_:3i=[32i.10i.!]
Funny, I wrote the language yesterday to familiarize myself with Parsec, didn't know I'd find a use for it so fast. The day has to be entered manually.
ola··on The forgotten Americans who ended in the gulag
I guess "One Day in the Life of John Smith" didn't sound as interesting.
Page 1 of 2Next →