Skip to content

u/iio7

In this archive from Sep 2015 to Jun 2024

22
posts
53
comments
1
media
357
score
5 saved before deletion

Top posts

PHP password_hash terminates on null byte character

For some reason the documentation does not mention this, but if you succeed in sending the null byte character to password_hash with the default Bcrypt algortihm, PHP with exit the application with a ValueError. Normally the browser will encode the input, but you can force the issue using e.g. cURL:...

23 points16 comments
Open on Reddit

How to avoid non-free packages

I have noticed that Arch Linux haven't got a non-free (as in closed source) repo but instead mixes packages together. How do you prevent installing non-free software by mistake or as a dependency (if any, perhaps codecs)? Update: to anyone interested, this can be accomplished with a hook in pacman:...

17 points13 comments
Open on Reddit

How to recognize fake 4K's?

So, I had just upgraded my storage and wanted to "update" some of the content from old encoded rips to remux or untouched versions. Then I discoveret that a lot of the so-called 4K stuff is really only upscaled 2K. How do you recognize the "fake" stuff so you can stick to the best quality? Is a real...

11 points26 comments
Open on Reddit

Top comments

There is no irrelevant stuff in the Arch wiki. There is relevant stuff and less relevant, but even the less relevant stuff should be read. Don't skim anything.

21 points

Having been programming for about 31 years I can tell you that it's a "phase", you'll get over it and eventually strike a somewhat balance between just doing what works (sometimes in really ugly hacks) and what is the "right" thing to do. Eventually you get your own experience - having tried to do things in a bunch of different ways - that you just "know" what is a good way and what is a bad way, because often times in programming: There is no one right way! It all depends on circumstance, needs, environment, usage, and a whole lot of other stuff.

People who try to tell you about the "right" way are often extremists who end up making applications overly complicated and just plain idiotic!

Hope I make sense.

11 points

I have been using just about all the terminals available on Linux and FreeBSD in 20+ years. From st to xterm to rxvt to gnome-terminal and all the others.

The terminal I really would like to use among them all is xterm, it's just the fastest, the best maintained, and the best supported across platforms.

However, the terminal I always end up using is the one I have found that least gets in the way, works across every single installation, is extremely easy to setup and that just always works and keeps me very productive, is funny enough xfce4-terminal. All the other terminals always end up getting in my way - where I end up spending more time fixing the terminal rather than getting actual work done.

7 points

Because it is mostly the truth. PHP isn't designed, it's "hacked" together and with each release more and more crap gets added to the language rather than fixed correctly. If you really need to understand this issue, you need to look into the core of PHP. http://phpsadness.com/ just take a look at #44 on that page. Try making the same mistake in any other language. The language has improved as Phils mentions, but the rest of his rant only shows how ignorant he is about the issue and real trouble with PHP. Try learning about how Go was designed and be prepared to be amazed.

7 points

This is not related to Arch Linux, but is a general and increasing problem with Firefox. Lots of people are migrating to Chromium due to Firefox being too slow and too sluggish. I also suggest using both Midori and Epiphany.

6 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.