|
126
|
Main Area and Open Discussion / Living Room / Re: Bitwise gems - fast integer math
|
on: June 28, 2007, 09:39:17 AM
|
"This is about 600% faster." - I love people making bold claims without making any reference to which platform they tested it on :] (ah, following the link they mention AS3 - flash actionscript?) [...] Keep in mind that decent compilers know a bunch of these tricks already, which is good reason you wouldn't do ">> 2" to divide by four in C. hehe yes! exactly the only reason why some of those bitwise ops are that much faster has to be a bad intermediate compiler / interpreter. after all you want the script to start running, not compile for 5 minutes. nevertheless, this list shows how to do some nice operations in bitwise and being who i am (someone who enjoys obfuscated c and perl and fancy/different ways to approach simple tasks) i appreciate websites like this one just for the fact that they list the operations ;-) it's like a work of art or maybe i already studied too much comp sci :x I'd highly recommend everyone learning why those gems work. It would teach you a lot about how computers represent numbers and that could lead you to understand when and where those trick are really applicable.
true indeed
|
|
|
|
|
127
|
Main Area and Open Discussion / Living Room / Bitwise gems - fast integer math
|
on: June 28, 2007, 03:42:32 AM
|
Fast modulo operation using bitwise ANDIf the divisor is a power of 2, the modulo (%) operation can be done with: modulus = numerator & (divisor - 1); This is about 600% faster. Every programmer should know about the simple shift-left, shift-right for base2 multiplication and division (if you don't, you're missing something). This page, however, lists a couple of real gems (as the title suggests) like the one quoted above. Enjoy!
|
|
|
|
|
128
|
Main Area and Open Discussion / Living Room / Re: DMZ Linux Cursors For Windows
|
on: June 23, 2007, 04:00:41 PM
|
Thanks for your comment oh wise one. [attach]
well, at the end of the day you distribute by posting it on a forum that is available to the public. adding "please don't re-distribute" wont help. just saying. it's not that i'd care ps. i like the ubutu cursors ;-) the way cursor is pretty nice
|
|
|
|
|
129
|
Main Area and Open Discussion / Living Room / Re: DMZ Linux Cursors For Windows
|
on: June 23, 2007, 04:37:34 AM
|
TESTING ONLY: Please to not redistribute as I have not yet included all the proper credits.
well, you shouldn't distribute it in the first place if the cursors are gpl, then just include the gpl text as "LICENSE.TXT" into the rar, and maybe the installer if you have one.
|
|
|
|
|
130
|
Main Area and Open Discussion / General Software Discussion / Re: Making the Switch-05: Ten Great Ideas of GNU/Linux
|
on: June 21, 2007, 10:57:21 AM
|
ps. I hope you also do a "10 Horid Ideas of GNU/Linux" blog, if you can think of them -- I think it would help complete the picture.
haha, well, as always, there will be a lot of those since very often the pro of one thing is the contra of another i'm kinda interested in what you think are the 10 worst things tho ;-) out of pure curiosity i know there are plenty of things that suck i still love it, even after 6+ years
|
|
|
|
|
133
|
Main Area and Open Discussion / Living Room / Re: what is the potential capacity of the internet?
|
on: June 20, 2007, 12:38:34 AM
|
why do people always seek simple answers to complex problems? the internet just ISN'T "one big fat pipe" of course you _could_ argue that _if_ one would be able to use all the broadband interconnects and end user connections _at the same time_ you could reach some hypothetical bullshit number but that would be like arguing that if you put all the lanes of all US highways next to each other over the distance of 1 mile you wouldn't have to worry about traffic jams anymore because there's so much road.... network != single connection if you're really into that "duh. just keep it simple" stuff, go to your church of choice. that's one other thing "intelligently designed" for people who like it simple 
|
|
|
|
|
136
|
Main Area and Open Discussion / Living Room / Re: Is there a Safari for Windows?
|
on: June 12, 2007, 04:18:31 AM
|
Safari for Windows, 0day exploit in 2 hoursBy Thor Larholm Apple released version 3 of their popular Safari web browser today, with the added twist of offering both an OS X and a Windows version. Given that Apple has had a lousy track record with security on OS X, in addition to a hostile attitude towards security researchers, a lot of people are expecting to see quite a number of vulnerabilities targeted towards this new Windows browser. I downloaded and installed Safari for Windows 2 hours ago, when I started writing this, and I now have a fully functional command execution vulnerability, triggered without user interaction simply by visiting a web site. I will not sell this one to ZDI or iDefense but instead release it here, as I have done lately with a number of 0day vulnerabilities. This place is where you get my latest research ha-ha so much for all the nice apple software that's oh-so much more secure ;-)
|
|
|
|
|
137
|
Main Area and Open Discussion / General Software Discussion / Re: File Names : what should be avoided
|
on: June 11, 2007, 05:44:17 PM
|
How does one switch to unicode/utf8 in windows? Through the control panel "Regional and Language Options"? Please forgive my ignorance...  well, can't help you with that ;-) i only know there are language packs so you can display asian stuff, but that was quite a while ago that i used it now being linux-only i just have to tell my kernel what to use and set my locale ;-)
|
|
|
|
|
138
|
Main Area and Open Discussion / General Software Discussion / Re: File Names : what should be avoided
|
on: June 10, 2007, 07:05:38 PM
|
some guidelines: yes i would avoid using periods except to separate a file extension, as you will confuse programs that treat anything
every windows program i used (except for some crappy 8+3 16bit stuff back in the days was able to handle multiple periods just perfectly fine /([^\.]+)$/ FTW and while i'm a friend of the "strict US ascii", "no spaces", "all lower case" i have recently switched to unicode/utf8 for all filesystem related stuff it's kinda nice to be able to browse folders like this without problems: [attachimg=1]
|
|
|
|
|
139
|
Main Area and Open Discussion / Living Room / Re: Why do so many micropayment systems fail?
|
on: June 05, 2007, 03:07:20 PM
|
|
it has been stated before here i guess but nevertheless "just because you can pay a small amount doesn't make users want your product"
eg. take the comic strip that was used as an example. if you start something new that has already been done for free millions of times (web comics) the demand is low. now if you want users to pay for it from the start, even if it is just 1ct... if the user can get the satisfaction (reading a comic) elsewhere for less (free) they wont even start reading. unless of course they want to (well known artist, great (free) story teasers, awesome artwork, whatever makes the producy unique and a must have)
if you have micro donation it implies that you can also get the product without paying up front. so people use it and if the product is awesome enough for people to notice they might think: well, let's spare a buck for that poor coder.
it doesn't work the other way 'round unless people really, really, really, really want to have it.
in three words: "supply and demand"
micro payment doesn't fail because it's micro payment. it fails because of other causes, one of the biggest IMHO is a gross misunderstanding or misinterpretation of the system itself.
|
|
|
|
|
142
|
Main Area and Open Discussion / Living Room / Video: Stop the big brother state
|
on: May 30, 2007, 02:28:40 PM
|
the big brother state is an educational film about what politicians claim to be protection of our freedom, but what we refer to as repressive legislation.
since terrorism has become a global threat, especially after 9/11, governments all over the world have started enforcing laws which, so the government say, should increase national security.
these laws obviously aim at another goal: the states gaining more and more control of their citizens at the cost of our privacy and freedom.
very well-made info video made at the university of applied sciences augsburg, germany. watch it!
|
|
|
|
|
149
|
Main Area and Open Discussion / Living Room / 3D freeform rapid prototyping for CANDY! Suger-rush here I come!
|
on: May 13, 2007, 07:23:08 AM
|
Solid freeform fabrication: DIY, on the cheap, and made of pure sugar In February we gave a sneak preview of our project to construct a home-built three dimensional fabricator. Our design goals were (1) a low cost design leveraging recycled components (2) large printable volume emphasized over high resolution, and (3) ability to use low-cost printing media including granulated sugar. We are extremely pleased to be able to report that it has been a success: Our three dimensional fabricator is now fully operational and we have used it to print several large, low-resolution, objects out of pure sugar.
from http://www.evilmadscientist.com/
|
|
|
|
|