Domain: rafb.net
Stories and comments across the archive that link to rafb.net.
Comments · 27
-
The full list
I also found it on pastebin:
http://rafb.net/p/jqJCYC53.html
Spread it around. 09 F9 11 and all that
:) -
Re:Addtrust, and Comodo.
Hey, the bogus Mozilla cert I got from StartCom has the following chain of issuers, starting with the cert itself:
- CN PositiveSSL CA / O Comodo CA Limited
- CN UTN-USERFirst-Hardware / O The USERTRUST Network
- CN UTN-USERFirst-Hardware / O The USERTRUST Network
So PositiveSSL's cert was issued by USERTRUST, and USERTRUST's cert was issued by USERTRUST. I don't see AddTrust in the loop.
Here's the bogus cert that I saw.
-
Re:Why not every time?
Here's a perl script someone wrote up when we first heard of it.
-
stupid lameness filter
-
What am I missing here?
I use a tiny url in an email, temporary web page, on irc, etc., somewhere that I'll get feedback or otherwise find out from the receives that its not doing what is expected. Then I know and the receivers knows.....NOT TO USE IT ANYMORE!
When there is enough call for a clean tinyurl service, many of them will pop up. Divide and overcome the unexpected..
For such things as IRC such as for code development, ie freenode python, I'd imagine the network would enable some sort of tinyurl ...oh wait they do.... http://rafb.net/paste
Site wise, there is nothing stopping a site from providing such a tinyurl service to its users. For example, you visit a message forum and for use in the message forum you have such a service or method, ohhhh wait, there is a universal one.... it uses html to do it, like using html here on slashdot for example wordurl using "a href=".....
Since there are so many ways to do this tiny url idea and at various levels of control is there really a problem? -
some code
Too much caffeine in the blog, couldn't sleep... I can't get my hand on the paper but the youtube presentation was extremely clear and I just wrote this C code based on libgd2. Basically it lowers the height of an image by 1 pixel, you can run it multiple time to remove more line.
http://rafb.net/p/jinioy45.html
(yeah my coding sucks but it produces awesome results and I reversed engineered the algorithm from youtube so please grovel...)
I'll improve it soon to remove an arbitrary number of line, horizontally or vertically
- no recalculation of gradient, only the gradient near the line needs to be recomputed
- precomputes a file that store the order of the pixel needing to be removed
I need help with something though, I understand how the algorithm can precompute a file which says in which order pixel should be removed, but I don't see how this can work in *both* direction. Suppose you want to reduce vertically and horizontally at the same time, the horizontal change should completely break the precomputed vertical changes. How would you handle that? -
Re:Can you say FUD?I wrote a quick script to find the most-used licenses (this is from Gentoo's packages, which is a fairly representative sample, with nearly 12 000 packages).
$ eix -v | grep License | awk '{print $2}' | perl -e 'while(<>){ chomp; $licenses{$_}=0 unless $licenses{$_}; $licenses{$_}++ } for (sort {$licenses{$b} <=> $licenses{$a}} keys %licenses) { print "$_ $licenses{$_}\n" }' | head
You can see the full list here. As you can see, a huge amount of the packages (85%+) use GPL or one of the other very popular licenses. "||" means multi-licensed, and most of those are Artistic/GPL. You'll notice that after the top 30 licenses, none are used in more than 10 packages. Of the 863 licenses, 729 are used in 5 or less packages, and 629 of them are used in only one package. Many of the one-ofs are fonts or closed-source licenses.
GPL-2 6710
BSD 711
as-is 579
LGPL-2.1 511
|| 428
Artistic 344
MIT 259
LGPL-2 229
public-domain 138
PHP 124
So while I agree there are many licenses, the vast majority of projects use one of the popular licenses. -
Re:Hello World (Newer Version)Oh I throughly concur. We should set up a sourceforge project to get the community involved. There are a lot of aspects of the Java language that simply aren't being utilized. Check out this program I made a few months ago. It contains every Java keyword and is (nearly) impossible to follow the logic. Again due to the lameness of the lameness filter you'll have to go to http://rafb.net/p/g46jLN20.html to see it in all its correctly-indented and colored glory, but here it is:
public strictfp class Semantics extends Exception {
private static volatile transient boolean l = false;
private transient volatile static short j = 1;
public volatile static transient Exception LogicClass = new Semantics();
protected strictfp synchronized boolean WTF() throws Exception {
again: do {
l = !l;
without: try {
assert l ? true : LogicClass instanceof Semantics;
continue;
} catch (AssertionError e) {
j++;
LogicClass = new Exception();
break again;
} finally {
switch (j % 2) {
case 0:
LogicClass = this;
break again;
default:
break without;
}
}
} while (--j > -10 ? false : true);
throw this;
}
public static void main(String[] args) {
Semantics s = new Semantics();
try {
System.out.println(s.WTF());
} catch (Exception e) {
System.out.print(s.l);
}
}
} -
Hello World (Newer Version)I spent about an hour on this, but I think it's funny. There was no way to get this past the lameness filter, so I used nopaste: http://rafb.net/p/D1f39951.html
Here is a little teaser though :)
/**
* This program is an elaborate joke about the strucuture of the Java
* programming language. Technically you'll have to put all the
* public interfaces and classes in their own file to get it to
* compile. The actual code came from a slashdot post, comments were
* later added by ookabooka.
*
* Originally Copyright 2002 MillionthMonkey.
*
* Ridiculously verbose and mostly useless comments (AKA good
* commenting) added by ookabooka Copyright 2007.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an "AS IS"
* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* TODO:
* Add some try/catches and a plethora of exceptions to further insult
* Java.
*
* @author ookabooka
* @version 2.41.54b_2-rc4
* @see http://ask.slashdot.org/article.pl?sid=07/07/14/20 11208
*/ -
Re:This appears to affect OpenOffice 2.0.4?
Interesting that you get a different result than I did. Here's a full trace of what I get:
http://rafb.net/paste/results/Jki6Ds85.html -
Re:Shannanigans
Im in the process of adding some Ajaxy goodness to fone-me.com, this to give the users instant mail notifications works fine (although i should point out that the number 1 on line 20 is printed by a php script)
http://rafb.net/paste/results/YYjERl90.html
This works fine in IE6,IE7,Opera,Firefox,Konqueror, although i'm going to reduce the interval (every 5 seconds is very excessive) -
Re:Can you build and run this with MONO?
The above errors are more readable at http://rafb.net/paste/results/Q83ykY52.html
-
Re:Paste servers
Dammit.. extra / at the end. http://www.rafb.net/paste/results/GtDfqA30.html
-
Paste servers
They even have their own kind of spam:
http://www.rafb.net/paste/results/GtDfqA30.html/ -
Re:What's the big deal with IRC?
These days on most channels (for example #C, #C++ and #winprog on efnet) people paste their code (and things like error messages, output dumps etc) using a paste server like http://www.rafb.net/paste/
-
Re:Why is it so good?
I was quite impressed that after installing a few packages via synaptic I was able to compile and run C# program, something I found not-too-straightforward with Fedora Core.
Packages to install first, including dependencies: monodevelop, libgdiplus
Then, compile the code pasted here with mcs or monodevelop
. -
Re:great idea, if it works...
IGN claims that the Revolution will require sensors deployed on either side of the TV.
IGN also claimed that the DS would be an internet phone, that the Playstation would be defeated by the GameCube, and that the XBox then later the N-Gage was the future of gaming. Choose your sources wisely.
What concerns me about the controller is the constant thumb pressure. That's not at all a 'normal' grip position.
It can be argued that that is in fact the defacto grip for all human tools. Consider knives, hammers, toothbrushes, motorcycle grips, almost every non-projectile weapon, your telephone, your beer, cups, remote controls, many musical instruments, microphones, most non-projectile sporting equipment, steering wheels, most simple tools, torches, flashlights, and so on. Many of those things are used for hours at a time without problems, even when they're significantly heavier than that controller is likely to be.
Projector people are known to snicker, "You still measure your screen size in inches? How quaint." :)
Pornographers say similar things. -
Re:As opposed to what Nintendo did?
Thanks kindly. Also, word to your sig.
-
Mail monitor? Python + pyosd !!
Blinkenlights! Blinking, large red letters, appearing over anything, including full-screen mplayer - Python + py-osd. A bit overkill for such task, but whatever, I'm a python dood
:) click here, bypassing lameness filter... -
Letter from Spain's Zapatero to France's Chirac.There is a hack of source JVM using a very stupid XORing!!!
-
Re:The immortal advice of Rocket J Squirrel
Yeah, because clearly designing with a careful eye for scoping and without obvious abuse of inclusion mechanisms is exactly the same as design by contract, and in fact has anything to do with design accretion or preprocessor hacks.
Also, the opposite. </jarvik> -
Ruby solution, six lines, more secure
I think the Python solution has a security bug that allows attackers to retrieve all files that the user under which the server is run has access to by supplying a filename like "../foo". Here's a replacement version in Ruby:
#!/usr/bin/ruby
# Server: ruby p2p.rb password server server-uri merge-servers
# Sample: ruby p2p.rb foobar server druby://localhost:1337 druby://foo.bar:1337
# Client: ruby p2p.rb password client server-uri download-pattern
# Sample: ruby p2p.rb foobar client druby://localhost:1337 *.rb
require'drb';F,D,P,M,U,*O=File,Dir,*ARGV;def s(p)F.basename p[/\w.*/]end;def c u
DRbObject.new((),u)end;def x(u);[P,u].hash;end;M["c"]?c(U).f(x(U)).map{|n|p=x n
c=c n;(c.f(p,O[0],0).map{|f|s f}-D["*"]).map{|f|open(f,"w")<<c.f(p,f,1)}}:(DRb.
start_service U,Class.new{def p(z=O)O.push(*z).uniq!;O;end;new.methods.map{|m|m[
/_[_t]/]||private(m)};def f(c,a=[],t=2)c==x(U)&&(t==0?D[s(a)]:t==1?F.read(s( a)):
p(a))end;def y;(p(U)+p).map{|u|c(u).f(x(u),p(U))rescue()};self; end}.new.y;sleep)I'm using DRb, a library for OOP-style remote procedure calls, instead of XML-RPC.
Oh, and for the trolls: I usually don't write obfuscated, golfed Ruby code, but the language certainly won't stop me from doing so when I need to do so for reasons of holy language wars.
-
Here's the problem and the solution - WWWDOT
777589 - 188103 == 589486
> W == 7 D == 5 O == 8 T == 9 G == 1 L == 0 E == 3 M == 6 C == 4
777589 - 188106 == 589483
> W == 7 D == 5 O == 8 T == 9 G == 1 L == 0 E == 6 M == 3 C == 4Took 8 minutes to code, and 4 to run
:)Lameness filter won't let me post it - view it here
-
You can't be serious.
The Que book is littered with omissions and errors. If you want to learn C++, start with the free Bruce Eckel e-book Thinking in C++, then move on to the Meyers trio, the Sutter pair, Gang of Four, Dewhurst, Alexandrescu, then Agile Software Development, in that order.
See Accu's booklist, EfNet #c++'s book list, or Yechiel Kimchi's list of bad books for opposing opinions. -
Re:Improvements?
That's a fairly mundane observation. I could just as easily suggest that "the fact is that if the language permits you to write anything you want, most people will write bad code."
In fact, that's quite what I'm suggesting is going on. If you have a high power toolset, you have a high powered way to write shitty code. No amount of language alteration will change that bad programmers write bad software. Just as it's not the STL's fault if you can't handle iterators, it's not the language's fault if you can't handle ranges. Don't blame your inability to write secure code on the language. Read a fucking book. -
Re:Uninstall?Also, I don't know how long this paste site keeps pastes
-
Re:Uninstall?
I've set up a little system to do this. I install all modules to
/usr/local/perl (PREFIX=/usr/local/perl LIB=/usr/local/perl/lib). Each module has a file called .packlist that contains all files it installed. I wrote a small script that parses these .packlist files and shows what modules are installed, and optionally lets you delete them. It's quite handy doing things this way.
I've pasted the program at http://rafb.net/paste/results/a2695697.html. It's horribly hacky in part because I didn't care to figure out pod parsing modules and also because I just sat down and wrote it without thinking about it.
You'll do better to write your own that doesn't make so many assumptions, but it's at least a starting point.
PS: don't blame me if it kills your computer. Also, I don't know how long this paste site keeps pastes, so if that URL is broken, well, you shoulda gotten here earlier!