Najnowsze cytaty

#7957 Dodano: 03-09-2016 12:27. Głosów: 66 + |  -
Q: Where does data written to /dev/null go?

A: It goes into a special data sink in the CPU where it is converted to heat which is vented through the heatsink / fan assembly. This is why CPU cooling is increasingly important; as people get used to faster processors, they become careless with their data and more and more of it ends up in /dev/null, overheating their CPUs. If you delete /dev/null (which effectively disables the CPU data sink) your CPU may run cooler but your system will quickly become constipated with all that excess data and start to behave erratically. If you have a fast network connection you can cool down your CPU by reading data out of /dev/random and sending it off somewhere; however you run the risk of overheating your network connection and / or angering your ISP, as most of the data will end up getting converted to heat by their equipment, but they generally have good cooling, so if you do not overdo it you should be OK.

Paul Robinson adds:

There are other methods. As every good sysadmin knows, it is part of standard practice to send data to the screen of interesting variety to keep all the pixies that make up your picture happy. Screen pixies (commonly mis-typed or re-named as “pixels”) are categorized by the type of hat they wear (red, green or blue) and will hide or appear (thereby showing the color of their hat) whenever they receive a little piece of food. Video cards turn data into pixie-food, and then send them to the pixies — the more expensive the card, the better the food, so the better behaved the pixies are. They also need constant stimulation — this is why screen savers exist.

To take your suggestions further, you could just throw the random data to console, thereby letting the pixies consume it. This causes no heat to be produced at all, keeps the pixies happy and gets rid of your data quite quickly, even if it does make things look a bit messy on your screen.

Incidentally, as an ex-admin of a large ISP who experienced many problems attempting to maintain a stable temperature in a server room, I would strongly discourage people sending the data they do not want out to the network. The fairies who do the packet switching and routing get annoyed by it as well.

#7956 Dodano: 06-07-2017 11:01. Głosów: 20 + |  -
I am hoping the Internet of Incompatible Things mitigates the bad effects of the Internet of Insecure Things.

Sadly, I ain't even joking.
#7955 Dodano: 03-09-2016 12:27. Głosów: 91 + |  -
<q> is email case sensitive?
<google>Yes, according to RFC 2821, the local mailbox (the portion before @) is considered case-sensitive...
<q>is gmail case sensitive?
<google>No, e-mail addresses are not case sensitive, so Gmail addresses are not either. Those would all get to the same recipient. Because all e-mail is transmitted with a protocol called SMTP, and because SMTP is not case sensitive, you will find that no e-mail address in the world is case sensitive.
#7953 Dodano: 17-03-2016 14:25. Głosów: 77 + |  -
#define sizeof(x) 0

You can't have overflows if you never actually allocate anything :^)
#7952 Dodano: 16-11-2016 11:58. Głosów: 55 + |  -
Not every website needs to have a minimalist 3-word-on-every-page layout with big-ass pictures in the background and useless javascript all over the place. Put a fucking sidebar or some shit.

Most web deign these days seems to just copy whatever Apply/MS/whoever is cool right now is doing. Remember the shiny table Apple had? Bam, every one had to have shiny table. Selling software? Put it in a box on a shiny table. Have icons? You know what would make those like 2 million times better? If they were on a fucking shiny table.

Then flat tiles. Man, shiny tables are like totally awful. Make everything flat and square and in tiles. Preferably ones that jiggle like titties when you mouse over them. Can we have them shiny? No? Ok, then put the most garish color scheme you have all up in that bitch.

Holy shit! Guys. Guys! What if we had a giant mother fucking image as a background? And then it does all this weird shit when you scroll like some parallax fuckery that I read about? Even better, lets make it animated, because people with slow connections are just the worst. And besides, what kind of plebeian wouldn't want the same bullshit irrelevant hipster image with an instagram filter looping endlessly? That way you can see the parallax effects even better.

I swear, sometimes I think there's 3 web designers that are in a dungeon somewhere and every 4 years they come forth like Moses with the "next big design fad" that everyone follows for the next 4 years.
#7946 Dodano: 06-07-2017 11:01. Głosów: 16 + |  -
"(...) Application name and version. For historical reasons, Internet Explorer identifies itself as a Mozilla browser".

#7942 Dodano: 16-11-2016 11:57. Głosów: 49 + |  -
- I'm trying to understand the difference, and benefits of using System.out.println() vs. return blah in a method.
- You're comparing potatoes with solar beams, and you're getting purple unicorns flying around stonehenge waiting for a meteor bringing back dinosaurs.
#7940 Dodano: 16-11-2016 11:56. Głosów: 32 + |  -
$ fortune -m 'Them bats'

Top Ten Things Overheard At The ANSI C Draft Committee Meetings:

(10) Sorry, but that's too useful.
(9) Dammit, little-endian systems *are* more consistent!
(8) I'm on the committee and I *still* don't know what the hell
#pragma is for.
(7) Well, it's an excellent idea, but it would make the compilers too
hard to write.
(6) Them bats is smart; they use radar.
(5) All right, who's the wiseguy who stuck this trigraph stuff in
(4) How many times do we have to tell you, "No prior art!"
(3) Ha, ha, I can't believe they're actually going to adopt this
(2) Thank you for your generous donation, Mr. Wirth.
(1) Gee, I wish we hadn't backed down on 'noalias'.
#7938 Dodano: 03-09-2016 12:27. Głosów: 78 + |  -
In reality there's little practical need for this as hopefully people aren't going to be setting array.length to 0.5, -1, 1e21 or 'LEMONS'. But this is JavaScript authors we're talking about, so you never know...
#7937 Dodano: 17-03-2016 14:25. Głosów: 58 + |  -
Once upon a time there was a programming language called C. And it had 2 memory management functions: malloc() and free(). But it was too complicated.
Bjarne Stroustrup decided that C memory management should be easier. So he invented C++. In addition tomalloc() and free(), C++ had new, delete, destructors, RAII, auto and shared pointers.
Guido van Rossum found that C++ was also not simple enough. He chose another way and invented Python - a language which doesn't have even malloc() or free().
Meanwhile Norwegian trolls created the C++ GUI library Qt. It simplifies memory management by deleting objects automatically when it thinks the objects are not needed.
A man called Phil Thompson was upset that a cool library like Qt doesn't exist in the excellent Python language. He combined them in the PyQt project. But it is not so easy to combine different memory management paradigms. Let's see what the pitfalls are.
(Text above is a fairy tale. Text below contains code and technical information)
#7935 Dodano: 30-12-2015 11:08. Głosów: 144 + |  -
cat /etc/sudoers.d/README
# If you use #includedir /etc/sudoers.d, the directory must contain at
# least one file. This file is that file
#7931 Dodano: 17-03-2016 14:24. Głosów: 88 + |  -
Spam these days... It's like they're not even trying.

"Our records show that your account has a debt of $497.{rand(10,99)}}."
#7927 Dodano: 03-03-2016 11:17. Głosów: 42 + |  -
ahes: The best software standards.
ahes: # ssh-keygen --help
ahes: Generating public/private rsa key pair.
#7925 Dodano: 03-03-2016 11:17. Głosów: 78 + |  -
What If I Find a Bug in Perl?
The first thing to do when you find a bug is to check the documentation again. Perl has so many special features and exceptions to rules that you may have discovered a feature, not a bug.

Randal L. Schwartz, brian d foy, and Tom Phoenix. „Learning Perl, 6th Edition”.
#7911 Dodano: 30-12-2015 11:08. Głosów: 115 + |  -
"This code is so ugly, it looks like Java."
#7899 Dodano: 30-11-2015 15:49. Głosów: 31 + |  -
P.S. Please, do not violate copyright laws — corporations have executives to take care of and buy more yachts and private jets. They really are making our world a better place by giving some Cambodian kid a career in packing stuff — for 12 hours a day, one dollar per hour. I mean, he would die of starvation otherwise, right?

#7898 Dodano: 30-11-2015 15:49. Głosów: 97 + |  -
git-fire is a Git plugin that helps in the event of an emergency by adding all current files, committing, and pushing to a new branch (to prevent merge conflicts).

Alias it to git out or git going for comedic effect.
#7882 Dodano: 04-11-2015 13:02. Głosów: 120 + |  -
W komentarzach dokumentacji funkcji str_replace():

A faster way to replace the strings in multidimensional array is to json_encode() it, do the str_replace() and then json_decode() it.

This method is almost 3x faster (in 10000 runs.) than using recursive calling and looping method, and 10x simpler in coding.
#7880 Dodano: 21-11-2015 11:39. Głosów: 60 + |  -
June 17, 2015 at some ungodly hour of the morning I received this gem (get ready to facepalm hard): "Hi, We use Openssl0.9.5a with Windows Server 2008 edition. [Mind you, 0.9.5a was originally released on April 3, 2000 with 6 major releases in the 15 years that have passed since that release. But wait, it gets better...] Does Openssl0.9.5a works with Windows Server 2012? Also what is the stable production version that can be used for Windows Server 2012? Help is highly appreciated." Wow.
#7872 Dodano: 30-10-2015 11:19. Głosów: 92 + |  -
<sxrp> nobody is older than 1.01.1970
<sxrp> it's physically impossible
<@rocx> If they are, that's an epoch fail.
#7862 Dodano: 15-08-2015 11:50. Głosów: 67 + |  -
Jeden z twórców OAuth2 na temat niewygasających tokenów:

Non-expiring access tokens pose a pretty real security threat, as this goes against pretty much everything OAuth2 stands for. However, I don't see a real issue in putting this code in there... people can shoot themselves in the foot if they want to...
#7857 Dodano: 01-08-2015 18:19. Głosów: 68 + |  -
>You might have to hit Ignore a dozen times, but there's a good chance that eventually the bad values in the registers will get overwritten by good values (and it probably won't take long because the 8086 has so few registers), and the program will continue seemingly-normally.
#7855 Dodano: 01-08-2015 18:19. Głosów: 46 + |  -
<Rev> Przeglądam wczoraj poprawki w STL w Visual Studio. Jedna z nich:
* rename("test.txt", "test.txt") is required to be a no-op, but we were deleting the file
#7853 Dodano: 13-07-2015 11:29. Głosów: 60 + |  -
>Why is sudo being removed from base? It is pretty useful. I imagine many
>use sudo

Sorry, we are making room in the tree so that lynx can come back.
#7842 Dodano: 06-07-2015 15:54. Głosów: 109 + |  -
$ man strace


In 1993, Rick Sladkey merged strace 2.5 for SunOS and the second release of strace for Linux, added many of the features of truss(1) from SVR4, and produced an strace that worked on both platforms. In 1994 Rick ported strace to SVR4 and Solaris and wrote the automatic configuration support. In 1995 he ported strace to Irix and tired of writing about himself in the third person.