Sometimes I stumble upon pages with stuff that looks like this:
These are actually links.
I'm not sure who did that (most likely the author of this website just used some library or engine which already had this), but this problem is very common nowadays.
So, let me help you to understand what these circles actually stand for:
I have no idea what were they thinking, perhaps they are not thinking at all (brain death is a common reason to become a UI designer). When you are creating an interface, there are several things you have to think about:
And much more, actually. But these ones are actually essential if you want your website not to suck. Color-blind people might not see your flat buttons in the way you are seeing it. They might confuse it with decorative elements or even not see it at all.
Blind people might have better luck, since some screen readers will read the link out loud.
And it does not matter if you style your circles differently or not. Text-based browsers don't understand this shit at all, because there is no text to represent these circles. These circles, however, are rendered… as circles! At least that's how it looks like in w3m:
You can actually follow these links! Either place your cursor into the right spot or use tab to get to it.
Although I prefer textual buttons, I'm OK with all kinds of pictograms or other visual elements.
But this is just complete nonsense, I have to hover over every button to find one that I actually need. I don't even know which links are there before I hover over all of the links.
This is just nuts.
The first question that pops up in your mind when you see this – what is going to happen if I hover over these buttons? Maybe the icon will appear?
This does not really help to find the right link you are looking for, since you still have to hover over these buttons. But it could make your life a little bit easier, right?
This is what happens when you put your mouse over one of the buttons:
Now guess what happens when you hover over other buttons.
…
Yes, they become yellow.
Please design your websites consciously.
It seems like there was a bug when the icons were not being loaded if you used https. That's good. It means that the author did not do that shit on purpose – it's just a bug! This, however, does not really make it better. See HTML Hell section “menus made entirely from image maps”. You see, today even text-based browsers can display images. BUT NO, NOW WE DO ICONS WITH CSS. And what this CSS does? Sure, it loads a custom font! Nothing has changed… In other words, if every icon on that website had a little text near to it, then there would be no such blog post.
“You really should research something like that before writing an entire article on bashing someone.” says the author. And he is right! He is so right that I've even deleted this post. But it is a wiki, so someone reverted it back. I find this post funny so I would not delete it again. :)
1.5 years later and the problem is still not fixed. That being said, if you have an ad blocker (and you're retarded if you don't), then you will see “AROUND THE WEB” without any circles. Nothing around the web.
Hahaha
-- AlexSchroeder 2015-09-01 12:00 UTC
This is old, but if you haven't seen it (like I did) then check it out:
Just stop that, guys. Unreadable text does not make your website look cooler.
Ironically, this website has a low contrast. It seems like it is acceptable for black backgrounds? White text on black background shines like a light bulb, you do not want that.
Note: there is a high chance that you already know some of that stuff. In that case just skip to the next point, sorry for spending two seconds of your life.
And don't forget to be conscious. The problem with degrees, time and calendar could have been solved hundreds of years ago.
This post was extracted from https://alexschroeder.ch/wiki/Comments_on_2014-06-23_Oddmuse_Migration
It all started like a simple bash refactoring, but look! This time was special because someone decided to post a link to google style guide and claimed that it is a "nice resource". Well... I just had to explain everything. At first, I didn't think that my answer is worth a blog post. But hey, it seems like a lot of people worship these guides... So I decided to extract it into my blog.
It is plain bullshit.
Well, I can quickly go through most of the mistakes:
for dir in ${dirs_to_cleanup}; do
Clearly $dirs_to_cleanup is not quoted, this indicates that there is something wrong. Better use array and "${dirs_to_cleanup[@]}"
.
Also, what is the point of using curlies like ${var}
everywhere??? They'd better teach to put quotes everywhere. Such style is propagated only by Google style guide (a guide written by people who think that you're stupid enough not to understand the two exceptions when ${} is actually required, but at the same time these guys don't even know how to quote variables correctly). If that made any sense then we would be doing the same thing in perl and php, but we don't.
rm "${dir}/${ORACLE_SID}/"*
That's rm without --
. Well, not a huge issue, but that's a styleguide or what?
if [[ "$?" -ne 0 ]]; then
Funny. Left side of the expression is quoted when it does not have to be. But even if it had to be quoted, what would be the benefit to quote $?
? It is always an integer. Oh, and if it is an integer, then it would be better to use (( ))
for arithmetic expressions, like: if (( $? != 0 )); then
case "${expression}" in
Does not have to be quoted, actually, but at least it does not hurt.
while read f; do
echo "file=${f}"
done < <(ls -l /tmp)
WHOA! Holy sh...!!! That's amazing... Bash pitfall #1, parsing ls, read without -r. It just couldn't be worse.
# -z (string length is zero) and -n (string length is not zero) are
# preferred over testing for an empty string
if [[ -z "${my_var}" ]]; then
do_something
fi
But hey, it is as simlpe as if [[ ! $my_var ]]; then
, why would they complicate things so much?
# Instead of this as errors can occur if ${my_var} expands to a test
# flag
if [[ "${my_var}" ]]; then
do_something
fi
What??? Which error?? Am I missing something?
zip_version="$(dpkg --status zip | grep Version: | cut -d ' ' -f 2)"
A rule of thumb is that you should never pipe any of these commands together: sed, awk, grep, perl, cut and some others. The reason is that we usually need such functionality that is present in most of them, and indeed with a little trickery these tools will usually do each others' job. However, they use completely different approaches.
In this particular case you can use grep with -P flag (perl regexes! Woohoo!). Like this:
zip_version=$(dpkg --status zip | grep -Pom1 'Version: \K.*')
But there are other solutions as well.
if ! mv "${file_list}" "${dest_dir}/" ; then
Just look at that variable. It says "file list". Aha, sure, this would definitely work.
addition=$((${X} + ${Y}))
Stupidity all over the place. This should be:
((addition = X + Y))
At least that "$file_list"
example will give me a good laugh for the next few days. 😂
Also, I feel like this post is lacking some image. Well, you can look at this image, if you wish.
A lot of people ask me, "how did you spend your summer?". Well, here is how:
Yes, I had a lot more fun than those dumbasses who were exposing their bodies to the sun radiation.
Seriously, what's the point? Why would somebody want to do that? Some people claim that they require rest. Well, okay, a rest from what? That's a shitty excuse for your procrastination. My body requires constant intellectual activities and learning. Shame on you if your doesn't.
Maybe I can understand that if you were doing something useful for the whole year, you might want to take your female/male somewhere and spend a day or two together, just enjoying your lives and doing something fun and interesting. But shit, three months? That's ridiculous! And why summer? You can do that on any weekend.
It does not represent any precise information about my productivity (for example, it does not show commits to the projects that do not use github), but I still like that graph. I don't find it necessary to fill every block of the graph, it is just a good motivation to make at least something small every day. Sometimes I don't feel like doing anything at all, but after I make a few simple changes just to fill this graph, I get caught on it and end up programming for the whole night. Well, sometimes I don't, but even small changes to readmes and help messages or tiny refactorings are better than no progress at all.
Even if you're not a software developer, you can use that trick for anything else. Like "do at least one push-up every day" or "read at least one page of a book". You can keep the same graph on a paper calendar, if you wish. In that sense github is a bit better because it is more strict, it will not allow you to fill missed days without any dirty tricks.
Please be conscious.
I was challenged by Anatoli Belski. Here is the video:
I nominate Steve Jobs, Osama bin Laden and Jesus Christ. Remember, you have only 24 hours.
While morally unprepared people from all over the world are washing their raw heads with cold water, I am trying to cope with my sadness about the disaster we are all heading for.
Sure, I am glad for researchers, scientists and thieves who will get this raised money, and I have no doubt that this is going to have a positive impact on ALS research too. But how is this going to help globally?
And why ALS? Lets look at what they say:
"It is estimated that ALS is responsible for nearly two deaths per hundred thousand population annually."
Oh, that's why it is so important.
Wait...
2/100000 ?
That's 0.002%, right?
Don't get me wrong, I am glad that some people who usually spend hundreds of dollars on computer games will now donate 10 bucks for ALS research. But I am not sure if this low-efficiency short-term trend will cause more benefit than harm in a long run. Just imagine, all these noncaring heaps of meat now have a justification for their lives. They've done something potentially useful, now they can peacefully procrastinate till their deaths. It is like no one can shame them anymore.
But shame is good. It makes us not to do silly stuff and for some people it is a great motivation to start doing something smart.
However, some people have no shame:
Surprisingly, all of these videos were removed. What a coincidence.
https://www.youtube.com/watch?v=4EnqAHbUViE – completely or partially naked chicks showing off their breasts
https://www.youtube.com/watch?v=54aWEQjSRwA – partially naked chicks showing off their breasts
https://www.youtube.com/watch?v=Y0UaUTdiSsE – partially naked chicks showing off their breasts
And some people are just plain stupid:
https://www.youtube.com/watch?v=WQlvW0aFnKo – lots of people hurting themselves. Because it is so damn hard to turn a bucket over.
https://www.youtube.com/watch?v=YEGZXT5SLvE – lots of people hurting themselves. Because it is so damn hard to turn a bucket over.
I thought that the days of chain letters are over, but it seems like I did not take into account that there is a new generation of youngsters who don't even know what is a "letter".
Please be conscious.
Hahaha.
-- AlexSchroeder 2014-09-12 15:38 UTC