blind
|
still alive
|
|
|
|
Рег.: 16.01.2004
|
Сообщений: 23127
|
Из: Хамовники
|
Рейтинг: 16481
|
|
|
|
blind
|
still alive
|
|
|
|
Рег.: 16.01.2004
|
Сообщений: 23127
|
Из: Хамовники
|
Рейтинг: 16481
|
|
|
сортировку с коммутативным компаратором я уже встречал
а вот теперь недетерминированная хэш-функция
code: function createHash() {
var var1 = Math.floor(9999999999999 * (Math.random() % 1));
var var2 = Math.floor(9999999999999 * (Math.random() % 1));
var var3 = Math.floor(9999999999999 * (Math.random() % 1));
var hash = var1.toString(16)
+ var2.toString(16)
+ var3.toString(16)
return hash;
}
Обсуждение этого сообщения (5)
|
13/37 =) |
|
xdeller
|
nerd
|
|
|
|
Рег.: 01.12.2006
|
Сообщений: 939
|
Из: cloud
|
Рейтинг: 319
|
|
|
Суть опенсорца
Quote:
Gentoo's official logo originates from a Blender file [1] created by Daniel Robbis over 8 years ago. He used Blender 2.04 and Python 1.6 at that time.
When rendering that .blend file with Blender 2.49b (or a more recent version), Blender does not apply the reflection texture needed [2] to give the metal look that you know. I don't know why that is. All I know is that Blender does find the file: it's not about the location.
Trying Blender 2.04 binaries on a Windows VM, it turned out that Blender 2.04 is still able to render our logo as expected. In my eyes rendering our logo should not depend on a proprietary operating system or binary blobs. The source tarball of Blender 2.04 is hard to find (if available at all), the available sources of 2.03 [7] are incomplete. Binaries of 2.04 [8] are 32bit only and crash on startup on my system. ...
далее
Обсуждение этого сообщения (1)
Редактировал DarkGray (05.05.2011 12:35)
|
|
exc
|
|
|
|
|
Рег.: 23.01.2003
|
Сообщений: 11433
|
Из: дефолт сити
|
Рейтинг: 3348
|
|
|
обычно встречал прикольные комменты индусов в софте оракла, но и логи у них оказывается тоже эмоциональные
code: if (g_print_debug) then
fa_debug_pkg.add(l_calling_fn,'calling','fa_journals_pkg.update_gl_info');
fa_debug_pkg.add(l_calling_fn,'THIS IS NOT','GOOD!!!!!!!!!!');
fa_debug_pkg.add(l_calling_fn,'NOT GOOD','AT ALL!!!!!!!!!!');
...
Обсуждение этого сообщения (2)
|
количество пиратов, грабящих суда, обратно пропорционально эффекту от глобального потепления |
|
blind
|
still alive
|
|
|
|
Рег.: 16.01.2004
|
Сообщений: 23127
|
Из: Хамовники
|
Рейтинг: 16481
|
|
Re: some quotes
[re: exc]
17.05.2011 10:10
|
|
|
|
blind
|
still alive
|
|
|
|
Рег.: 16.01.2004
|
Сообщений: 23127
|
Из: Хамовники
|
Рейтинг: 16481
|
|
|
|
vissi
|
|
|
|
|
Рег.: 30.09.2007
|
Сообщений: 9275
|
|
Рейтинг: 8222
|
|
|
Sparked by some comment somewhere or other, I have decided to compose The Ten Commandments for C Programmers. Here's what I came up with. Note that this is addressed to C, not Unix or programming in general, and that I have no hope of attacking all the different sins that C programmers commit - I just want to cover the ten worst ones.
------------ .TL The Ten Commandments for C Programmers .AU Henry Spencer .IP 1 Thou shalt run \fIlint\fR frequently and study its pronouncements with care, for verily its perception and judgement oft exceed thine. .IP 2 Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end. .IP 3 Thou shalt cast all function arguments to the expected type if they are not of that type already, even when thou art convinced that this is unnecessary, lest they take cruel vengeance upon thee when thou least expect it. .IP 4 If thy header files fail to declare the return types of thy library functions, thou shalt declare them thyself with the most meticulous care, lest grievous harm befall thy program. .IP 5 Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. .IP 6 If a function be advertised to return an error code in the event of difficulties, thou shalt check for that code, yea, even though the checks triple the size of thy code and produce aches in thy typing fingers, for if thou thinkest ``it cannot happen to me'', the gods shall surely punish thee for thy arrogance. .IP 7 Thou shalt study thy libraries and strive not to re-invent them without cause, that thy code may be short and readable and thy days pleasant and productive. .IP 8 Thou shalt make thy program's purpose and structure clear to thy fellow man by using the One True Brace Style, even if thou likest it not, for thy creativity is better used in solving problems than in creating beautiful new impediments to understanding. .IP 9 Thy external identifiers shall be unique in the first six characters, though this harsh discipline be irksome and the years of its necessity stretch before thee seemingly without end, lest thou tear thy hair out and go mad on that fateful day when thou desirest to make thy program run on an old system. .IP 10 Thou shalt foreswear, renounce, and abjure the vile heresy which claimeth that ``All the world's a VAX'', and have no commerce with the benighted heathens who cling to this barbarous belief, that the days of thy program may be long even though the days of thy current machine be short. ------------ - "Mir" means "peace", as in | Henry Spencer @ U of Toronto Zoology "the war is over; we've won". | {allegra,ihnp4,decvax,utai}!utzoo!henry
Обсуждение этого сообщения (1)
|
|
|
unkulunkulu
|
unkulunkulunkulu
|
|
|
|
Рег.: 12.11.2006
|
Сообщений: 18453
|
Из: 13000
|
Рейтинг: 11759
|
|
|
Отрывок из диплома (посоветовал вчера другу):
Quote:
string key; while ((key = GenerateRandomKey()) == "ХУЙ") {} // Чтобы не попасть в глупое положение на презентации
Обсуждение этого сообщения (7)
|
|
SlaveN
|
follow the sign
|
|
|
|
Рег.: 24.09.2006
|
Сообщений: 11693
|
Из: default city
|
Рейтинг: 17201
|
|
|
|
dtbeaver
|
латентный вантузоид
|
|
|
|
Рег.: 04.01.2005
|
Сообщений: 7267
|
|
Рейтинг: 8188
|
|
Re: юмор в этом разделе
[re: SlaveN]
25.05.2011 11:27
|
|
|
читаю исходники pthreads под win32 и вижу: code:
int
pthread_equal (pthread_t t1, pthread_t t2)
/*
* ------------------------------------------------------
* DOCPUBLIC
* This function returns nonzero if t1 and t2 are equal, else
* returns nonzero
Обсуждение этого сообщения (4)
|
|
|
heggy
|
Веселый еж
|
|
|
|
Рег.: 21.06.2006
|
Сообщений: 3781
|
Из: Moscow
|
Рейтинг: 7053
|
|
|
|
Sevurrrra
|
Хранитель маяка
|
|
|
|
Рег.: 10.09.2007
|
Сообщений: 2045
|
|
Рейтинг: 2759
|
|
Re: юмор в этом разделе
[re: heggy]
08.06.2011 16:04
|
|
|
http://download.oracle.com/javase/tutorial/getStarted/applic...
/*
* Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* - Neither the name of Oracle or the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/**
* The HelloWorldApp class implements an application that
* simply prints "Hello World!" to standard output.
*/
class HelloWorldApp {
public static void main(String[] args) {
System.out.println("Hello World!"); // Display the string.
}
}
Обсуждение этого сообщения (2)
|
|
vissi
|
|
|
|
|
Рег.: 30.09.2007
|
Сообщений: 9275
|
|
Рейтинг: 8222
|
|
|
|
Bachan
|
god's pee
|
|
|
|
Рег.: 26.10.2002
|
Сообщений: 37551
|
|
Рейтинг: 5335
|
|
Re: юмор в этом разделе
[re: vissi]
17.06.2011 08:21
|
|
|
|
YonBrover
|
олигархъ
|
|
|
|
Рег.: 19.02.2003
|
Сообщений: 14344
|
|
Рейтинг: 21620
|
|
Re: юмор в этом разделе
[re: Bachan]
24.06.2011 11:33
|
|
|
|
orion
|
снебазвездохват
|
|
|
|
Рег.: 21.11.2003
|
Сообщений: 1642
|
|
Рейтинг: 3225
|
|
|
|
dtbeaver
|
латентный вантузоид
|
|
|
|
Рег.: 04.01.2005
|
Сообщений: 7267
|
|
Рейтинг: 8188
|
|
|
Если посчитать суммарную стоимость всех нелицензионных копий Windows, то получится, что население земного шара обворовало Microsoft на сумму, сопоставимую с бюджетом цивилизации лет за сто: Году эдак в 2029 Microsoft подаст в суд на все человечество за пиратство, и выиграет процесс: Роботы под управлением Windows Sparta будут гонятся за оставшимися в живых людьми требуя возместить ущерб, нанесенный корпорации их предками: И, вот, чтобы спастись, человечество посылает в прошлое, того, кто напишет свободную Операционную Систему:
Начать обсуждение
|
|
|
Sevurrrra
|
Хранитель маяка
|
|
|
|
Рег.: 10.09.2007
|
Сообщений: 2045
|
|
Рейтинг: 2759
|
|
|
|
vissi
|
|
|
|
|
Рег.: 30.09.2007
|
Сообщений: 9275
|
|
Рейтинг: 8222
|
|
|
|
heggy
|
Веселый еж
|
|
|
|
Рег.: 21.06.2006
|
Сообщений: 3781
|
Из: Moscow
|
Рейтинг: 7053
|
|
|
|