HNHacker News
TopNewBestAskShowJobs

boterock

257 karma · joined August 15, 2014

submissionscomments
boterock··on In Mexico, cartels are hunting down police at their homes
About that last sentence: "former U.S. Ambassador [...] said in April that López Obrador views the fight against drug cartels as a distraction ... So he has basically adopted an agenda of a pretty laissez-faire attitude towards them, which is pretty troubling to our government, obviously.”

Not from Mexico, but from Colombia, where we also have a very hard time with drugs. The real problem with drugs has never been here. It is always because the US which always pushed us to fight drugs from this side, while they don't seem to do much from their side, this way they push the war to this side. while they get to enjoy the benefits of unregulated markets.

The true solution to the problem is regulated drug market, where the country people can make a profit out of it, and every link of the chain pays its due taxes. But cocaine is so big of a business that mafias aren't letting that happen.

US doesn't even care about cocaine, otherwise they would be doing a far better job at eliminating the trafficking. It is just that if they're not the ones making a profit, then no one should make a profit.

Typical case of a northern country exploiting a southern country.

boterock··on The complexity that lives in the GUI
I was doing something like that with Godot [1], the approach I took was setting some global "dragged_item" when the drag started, and then each drop target would check if the dragged_item was compatible and if the mouse was within its bounds. This way each drop target would do the check instead of some drag manager having to check whatever was under the cursor.

[1] https://github.com/0xafbf/aether/tree/master/addons/godot_im...

boterock··on Godot Shaders: View and Share Shaders for Godot
Godot shading language is GLSL with some syntax sugar. The nice thing about the Godot visual shader editor is that you can start from nodes, and then open the generated code panel, copy it and continue from there in a code shader.

I think that although Godot doesn't have as much nodes, I like it over unity's or unreal's editor. It doesn't try to be as smart, so you get separate vertex and fragment stages, and you may find issues like getting local coordinates in vertex stage and normalized device coordinates in the fragment stage, instead of world coordinates (like ue4 does). Which may bite you at first, but it is actually nearer to what happens under the hood.

boterock··on Godot Shaders: View and Share Shaders for Godot
From what I've seen on computer graphics, most of the algorithms are tricks and hacks... I think that in the end a good engine should acknowledge that it is hard to support everything, so just having a hackable interface is good enough.
boterock··on Colombia is considering legalizing its cocaine industry
I would like to deepen a bit on "guerilla" and "paramilitaries":

* Guerilla is a movement born and driven by farmers, where they weren't receiving aids from the central government, so they got into this business so they could afford themselves some security and sovereignty over the government that wouldn't care less about these country people.

* Paramilitaries are more like mercenaries. They would basically be the guys that would do the dirty work of killing people that there is no reason to kill legally (i.e. enemies that the army should fight). These paramilitary groups have been hired (or created) by corrupt politicians and big companies to seize lands rich in gold or oil from their rightful owners. These groups would also end up being part of the trafficking networks.

The current president has been demonstrated to have relationship with these paramilitary trafficking groups. That is why the president isn't pushing any effort that would affect the way the cartels work. Congress is pushing in this direction, but the government party is still majority in the congress, so it has been a challenge.

A government entity that manages Cocaine networks would be a big opportunity for growing businesses, as it happens with some of the liquor brewers in the country. But that is directly against the interests of the current president. We all hope to change this in the next elections, as the current cartels are so powerful that they buy out, blackmail and kill almost any judge, senator, entity or individual that tries to fight back.

boterock··on Colombia is considering legalizing its cocaine industry
War on drugs is what corrupts do to divert politics from fighting the corruption on politics. They just keep blaming the country problems to cocaine, otherwise the blame would fall on themselves.
boterock··on Colombia is considering legalizing its cocaine industry
Not only the economic costs, but also the human lives lost with the "fight against drugs". Thousands of people have been killed in this fight. It has also led to perverse politics such as rewarding military officers based on how many drug farmers or dealers they kill.

The leading example of this is the "False positives" scandal [1], which consisted in the kidnap and assassination of thousands of innocent civilians from the poor suburbs of many cities, to add them to the lists of guerilla killed and inflate their rewards. this was made by the very same Colombian army meant to protect the civilian.

Just think about it, the army massacring innocent people to claim rewards, being paid by the taxes of these same people. We're literally paying to be killed. All of this was orchestrated by the president at that time. Alvaro Uribe Velez, which unsurprisingly, has been found related to a lot of drug trafficking and violence.

All of this was greatly reduced when the peace accord was restarted about 8 years ago. When Uribe's successor was elected president. He started proposing legalizing drugs, and signing peace, which Uribe didn't like, so he started picturing him as a traitor (much in the way that Trump manipulates people).

Still, Uribe's influence is so great (as he has a lot of power from drugs and from having it's own paramilitary, all of this is a widely known "secret") that he got to set another president (as he also has his very own political party). This extremely right wing politics has resulted in spikes in violence and violations of the peace agreement from the side of the government.

Just to synthesize, these $800 million have been deceptively spent in killing innocents, claiming bonuses, and covering up that the Colombian right wing politics are grossly involved in trafficking and violence.

If you want a name, is Alvaro Uribe Velez the person who twisted media, politics, war and trafficking, and set himself as the hero, in the deadliest chapter of this country so far.

If you consume cocaine occasionally, I invite you to stop, not because of health issues or whatsoever. It is because in being a consumer you're contributing to this giant violence network, which kills social leaders and kicks out innocent farmers from their lands.

[1] https://en.wikipedia.org/wiki/%22False_positives%22_scandal

boterock··on 7GUIs
Would love to see immediate mode GUI toolkits like Dear ImGUI [1] in the implementations section.

[1] https://github.com/ocornut/imgui

boterock··on Emacs Survey
Hmmm, I've never used other flavors of Emacs, but in vanilla, whenever you press C-x C-f the prompt literally says "Find file:"
boterock··on Assorted Thoughts on Zig and Rust
I lost interest when I tried it and it wouldn't compile code with tabs. (Don't know if it is still the case though)
boterock··on Split Keyboard for Professionals
If you're using Windows, you can download the portable version that shows a small overlay in the screen. MacOS comes with a builtin keyboard viewer.

I don't think grinding is a good approach, you need to learn it and make it part of your life, just like going through a dictionary won't teach you a language.

Just keep in mind it will always be hard at first, and you won't see the benefits until you have more or less the same fluency as you had with qwerty.

People sometimes think that it will make you faster, and it _can_ make you faster, but the real reward is being just as fast, but enjoying much more using the keyboard.

boterock··on Split Keyboard for Professionals
If you're looking for keyboards, you may also be interested in keyboard layouts. I've been using Colemak for 5 years now, and I recommend everyone to try it out. https://colemak.com/
boterock··on No More Coffee
Reminded me of those stories of war people taking drugs because the environment triggered the desire in them.

If being outside was the trigger, staying inside would make it easy to quit. On the other hand, going outside again would trigger again the addiction, so it never went away in the first place.

boterock··on Ask HN: Which tools have made you a much better programmer?
I've been using the Leechblock extension on Firefox. It lets you set browsing quotas per website. It has been good for reducing time wasting habits.
boterock··on Godot Editor running in a web browser
I think although it is missing that layer of polish, the underlying foundation layer is so much better built.
boterock··on OMG: Our Machinery Guidebook
it would still be an offset much less than the loss of precision by storing int milliseconds. There are also some techniques for dealing with the time inaccuracies, although I feel those aren't widely known.
boterock··on Generating a Java program with 90% less code
I've always felt that having "private" fields by default (thereby suggesing it is the right way to code), making all code live inside classes, and thinking everything as an object, are dogmatic assumptions that make you write a lot of boilerplate as you move forward (getters/setters, constructors, etc...)

If you could write your functions out of any class, you get 3 lines an an indent level less, which I think reduces the cognitive load. you could change your private fields to be by convention instead of forced just by prefixing m_varName or whatever...

I dislike java because I feel the language somehow doesn't trust the developer to know well the system he is coding. It is like handing a blunt knife to a chef expecting he doesn't know how to handle it, making his work annoying, but if he has to work for more time, he can bill more hours right?

boterock··on Godot 3.2 beta 1
I have been using Godot since recently and I sincerely think that Godot has one of the finest programming experiences, not only for games, but for any kind of visual programming.

It is easy and has a flexibility that is unmatched, and some things that are cumbersome to do in other engines are a breeze to do here.

I sincerely recommend that anyone with a mild interest try it, it only is a 60mb download with no installation needed, it comes with its own text editor and docs, so it comes with everything you need to start tinkering.

boterock··on You may never see Studio Ghibli’s movies on streaming services
the theatrical setting is going out of the house and having something physical to turn in and get a show in return
boterock··on Blender 2.80
If you are into opengl guis, you can check ImGui, it is a joy to work with it. although it doesn't have any fancy font stuff afaik. Also there is UE4 slate, which has a funny way of doing stuff.
boterock··on Epic Games Supports Blender Foundation with $1.2M
Shameless self plug: If you use Unreal Studio and Blender, please check out the project I am working on: https://github.com/0xafbf/blender-datasmith-export
boterock··on Public Sans – A strong, neutral typeface for text or display
I would make a distinction between typography and font rendering. MS has some nice type faces, made with a lot of love and care.

But after reading this http://www.antigrain.com/research/font_rasterization/index.h... you can only conclude that font rendering could be a lot better... I bet it isn't because of 'legacy'

boterock··on Public Sans – A strong, neutral typeface for text or display
This is exactly what I mean, also, if you try to make them look better with that lousy truetype wizard, it tries to make you choose what looks better without any context, and if you pick some wrong choices you fuck up the whole font rendering in the OS, and there is no clear way to revert to defaults... nasty experience nonetheless
boterock··on Public Sans – A strong, neutral typeface for text or display
It is sad that any nice font looks like crap with Windows font rendering.
boterock··on Apple updates its iMac line
I find interesting that you say "especially on macOS", personally I feel that macOS has the highest memory requirements of the major OSs, but I haven't used macOS in a while, so that may have changed...
boterock··on RemedyBG: Replacing the Visual Studio Debugger
I guess that the author started it to avoid relying on the IDE to be able to debug anything. He says that Visual Studio gets to use about 80% of the debug info available in the debugging files, I am curious to see what that 20% extra is about.
boterock··on Google proposes changes to Chromium which would disable uBlock Origin
I don't think companies should ever get the benefit of the doubt. If they are doing something people think it's bad, they are bad until they have their defense. That's why big companies have PR people. People may have the benefit, but companies shouldn't.
boterock··on Programming Fonts – Test Drive
I recently found a font named "NSimSun" when customizing the windows console, and I am currently using it for programming. It looks like a serif font but it has finer details like a non-monospace font. I think it is because it was made for asian text, and each latin character does half the width of an eastern character.

Here is the docs for the font: https://docs.microsoft.com/en-us/typography/font-list/simsun...

It feels unsupported overall, but I set it up in the terminal and text editors and I am happy with it, It looks like a proper font, and not a dumbed-down-to-align-to-pixels font.Also there are some missing glyphs like áéíóú, but maybe if more people use it, MS will improve the font =)

boterock··on Syncthing graduation day
Lately, I find myself looking for the github icon before anything else in a website. I find a github readme much more readable than any landing website.
boterock··on “12 years ago today, I finished writing Hacker News”
Unless it is the most upvoted comment
← PreviousPage 2 of 5Next →