Najnowsze cytaty

#7957 Dodano: 03-09-2016 12:27. Głosów: 88 + |  -
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: 47 + |  -
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: 105 + |  -
<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: 96 + |  -
#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: 64 + |  -
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: 30 + |  -
"(...) 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: 53 + |  -
- 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: 86 + |  -
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: 61 + |  -
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: 147 + |  -
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: 95 + |  -
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: 47 + |  -
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: 81 + |  -
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: 122 + |  -
"This code is so ugly, it looks like Java."
#7899 Dodano: 30-11-2015 15:49. Głosów: 34 + |  -
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: 101 + |  -
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: 117 + |  -
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: 59 + |  -
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: 73 + |  -
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: 66 + |  -
>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: 49 + |  -
<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: 63 + |  -
>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: 112 + |  -
$ 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.
#7839 Dodano: 06-07-2015 15:53. Głosów: 116 + |  -
<antoszka> ironia jest taka, ze mamy "przenosny" (hue hue hue) kod w javie, ktory odpalamy w cygwinie w emulatorze windowsa w niby-unixie jakim jest os x
#7838 Dodano: 29-06-2015 15:06. Głosów: 73 + |  -
MongoDB announced 10,000,000 downloads! Or, as their other two partitions reported, 9,999,323 and 10,001,403 downloads.
#7837 Dodano: 29-06-2015 15:06. Głosów: 80 + |  -
<audiodef> Is there a graphical or curses-based manager for package.* files?
<EmaRsk> Vim is curses-based

Random question on emerge asked at gentoo forums
#7835 Dodano: 29-06-2015 15:06. Głosów: 58 + |  -
/dev/null to taki write-only memory
#7829 Dodano: 21-05-2015 16:19. Głosów: 82 + |  -
Q: Why military officers fail as OOP programmers?
A: Because they don't like to make things public and they have lots of privates under them.
#7828 Dodano: 11-05-2015 11:07. Głosów: -93 + |  -
Przychodzi ciało do lekarza.
Lekarz: Niestety nie mogę Pana przyjąć.
Cało: .... Dlaczego???
Lekarz: Pan nie ma właściwych ideałów.
#7820 Dodano: 11-05-2015 11:07. Głosów: 105 + |  -
<yahoo89> Jednym z formatów, w których w Windowsie 7 możemy wyeksportować certyfikat CA jest "Certyfikat X.509 szyfrowany algorytmem Base-64"
#7819 Dodano: 11-05-2015 11:07. Głosów: 108 + |  -
<i> i wanted to learn what a "tty server" is so i typed just that into google
<google result> Tired of this ****tty server - League of Legends Community
#7816 Dodano: 15-04-2015 21:28. Głosów: 83 + |  -
Państwem domkniętym nazywamy kraj z którego nie da się uciec przez przejście graniczne.
#7814 Dodano: 09-05-2015 07:22. Głosów: 124 + |  -
<Timbo_KZ> What is the most high-level language? Alternatively, what is the highest level a programming language can reach?
<FUZxxl> The highest level programming language has exactly one instruction, the !, pronounced “do what I mean.”
<rbemrose> Bug report:
"Program did what I meant, but not what I wanted."
Developer notes:
"Cannot reproduce. I wanted exactly what I meant."
"User error. Replace user and try again."
#7812 Dodano: 09-05-2015 07:22. Głosów: 9 + |  -
public abstract String defaultValue
The default value to use as a fallback when the request parameter value is not provided or empty. Supplying a default value implicitly sets required() to false.
#7810 Dodano: 15-04-2015 19:24. Głosów: 149 + |  -
** 2006-10-31: The default prefix used to be "sqlite_". But then
** Mcafee started using SQLite in their anti-virus product and it
** started putting files with the "sqlite" name in the c:/temp folder.
** This annoyed many windows users. Those users would then do a
** Google search for "sqlite", find the telephone numbers of the
** developers and call to wake them up at night and complain.
** For this reason, the default name prefix is changed to be "sqlite"
** spelled backwards. So the temp files are still identified, but
** anybody smart enough to figure out the code is also likely smart
** enough to know that calling the developer will not help get rid
** of the file.
# define SQLITE_TEMP_FILE_PREFIX "etilqs_"
#7803 Dodano: 13-04-2015 11:57. Głosów: 149 + |  -
Unix does not model the world, for example in real world you rather shouldn't be waiting for a zombie.
#7799 Dodano: 10-04-2015 22:55. Głosów: 117 + |  -
"You know, when you have a program that does something really cool, and you wrote it from scratch, and it took a significant part of your life, you grow fond of it. When it's finished, it feels like some kind of amorphous sculpture that you've created. It has an abstract shape in your head that's completely independent of its actual purpose. Elegant, simple, beautiful.
Then, only a year later, after making dozens of pragmatic alterations to suit the people who use it, not only has your Venus-de-Milo lost both arms, she also has a giraffe's head sticking out of her chest and a cherubic penis that squirts colored water into a plastic bucket. The romance has become so painful that each day you struggle with an overwhelming urge to smash the fucking thing to pieces with a hammer."
Nick Foster
#7798 Dodano: 10-04-2015 22:55. Głosów: 14 + |  -
Z recepty boost w OpenEmbedded:

# Sometimes I wake up screaming. Famous figures are gathered in the nightmare,
# Steve Bourne, Larry Wall, the whole of the ANSI C committee. They're just
# standing there, waiting, but the truely terrifying thing is what they carry
# in their hands. At first sight each seems to bear the same thing, but it is
# not so for the forms in their grasp are ever so slightly different one from
# the other. Each is twisted in some grotesque way from the other to make each
# an unspeakable perversion impossible to perceive without the onset of madness.
# True insanity awaits anyone who perceives all of these horrors together.
#7795 Dodano: 07-04-2015 01:09. Głosów: 148 + |  -
<Xone> Hi, I would like to get some comments:
<Xtwo> "Some changes" is a fantastic commit message
<Xtwo> builds real confidence in the maintainer
<Xone> haha, i have just made small changes
<Xtwo> its great because it lets you distinguish those commits from the commits that dont have some changes
#7792 Dodano: 26-03-2015 18:15. Głosów: 123 + |  -
If you ever want the public to use your site, always design it to handle errors in a way that will allow them to continue using it if possible. If it's not possible and the site really is broken, make sure that you find out so that you can fix it. die() by itself won't do either.

If a supermarket freezer breaks down, a customer who wanted to buy a tub of ice cream doesn't expect to be kicked out of the building.
#7788 Dodano: 07-04-2015 01:08. Głosów: 68 + |  -
Similarities between machine language and assembler are a feature, not a bug
~Gerhard Schmidt
#7787 Dodano: 26-03-2015 18:14. Głosów: 31 + |  -
You can recover from Microsoft and its suppliers only direct damages up to U.S. $5.00.
#7781 Dodano: 22-03-2015 22:02. Głosów: 218 + |  -
Czy tylko ja uważam, że siostra Elsy powinna nazywać się Ifa ?
#7780 Dodano: 22-03-2015 22:02. Głosów: 49 + |  -
What non malicious uses are there for ping's flood (-f) option?

You can watch the dots from across the room while wiggling the cables to find the faulty connection.
#7775 Dodano: 07-03-2015 23:29. Głosów: 131 + |  -
RTDD: acronym often resolved as "Reversed Test-Driven Development" or "Real-Time-Driven Development", a common variation of TDD process (see, where developers are short on time and choose to write tests in the end, instead of starting with them. In this approach tests may be carefully tailored to avoid dangerous paths in the code, what in general speeds up application deployment. Not to be confused with very popular RTLDD ("Remember-to-Test-it-Later-Driven Development").
#7770 Dodano: 07-03-2015 22:29. Głosów: 92 + |  -
<Weng> The cause of the issues this morning has been officially determined as "dunno".
#7762 Dodano: 21-02-2015 14:47. Głosów: 183 + |  -
<A> Jakie mieliście tematy projektów?
<B> Napisanie "symulatora świata". Rosną sobie roślinki, zwierzątka je wpierdalają, walczą z innymi zwierzątkami i się gżdżą na potęgę. Każda roślina/zwierze ma jakieś swoje specjalne zdolności no i tak to sobie się symuluje.
<C> U mnie żółw wpierdolił lwa na oddaniu ;(
<D> "Trawa zjada lwa. NULL się rozmnaża" :D
#7756 Dodano: 04-02-2015 08:06. Głosów: 200 + |  -
Javoviec jakimś cudem spłodził dziecko. Miał wymyślić imię dla dziecka. Na wszelki wypadek przygotował 2, jakby urodziły się bliźniaki. Na nieszczęście urodziły się trojaczki i dostały imiona: Jaś, Staś, ArrayIndexOutOfBoundsException.