I got it, and it's exactly what I need.
ALT+SHIFT+R does the same, and, when renaming the class, it also renames the file.
Very good tool, indeed.
Posts made by Savior
-
RE: Refactor tool for Java
-
RE: Refactor tool for Java
Ok, thanks.
I'm not a java programmer, neither never tried Eclipse, but I'll get it.
Thanks. -
Refactor tool for Java
I'm working in a decompiled java jar, that was obfuscated with Pro Guard.
The class names are gone, the methods names are gone, the variable names are gone.
Now, does anyone knows of a tool that, after I load all the classes (~2K files), let me change the names of the classes, methods, and this change, gets passed and updated to every file in the project?
For example, class BLI descends from AUX, and after I change the AUX name to MyClassThatDoesThis, BLI is descendant from MyClassThatDoesThis, instead of AUX. -
RE: The small world of Electronic Arts
@DaveK said:
@Savior said:
The REAL WTF(tm) is that:
1) This crappy CS forum isn't smart enough to put a reply button, even if I'm not signed-in (and redirect me to the sign-in page, and back to the post reply) that I have to sign-in, and click replyWaittaminnit. You're saying the real WTF is that you have to sign in and then click reply, instead of clicking reply and then signing in? Dude, it's commutative. That's like saying "The real WTF is that it expects me to add 2 to 3, instead of expecting me to add 3 to 2".
Yeah, pretty much this.
Take these step-by-step examples.
User is looking at some message board, is registered, but because he likes too much porn has to clear the cache constantly (yes, I'm joking, or not. whatever. you get the idea), and there goes the cookies.
Then, he finds something that he wants to reply. The steps are:
1) Look at the post, decides to reply
2) Look around, and realize that there's no reply/quote button
3) Look around, try to find the small, up there, sign-in link
4) Fill the data, click sign-in
5) Get redirected to the page, now, once again:
6) Locate the reply button, click it
7) Go to the reply to post page
8) Writes the reply, click post.
While, with the phpbb-like foruns:
1) Look at the post, decides to reply
2) Click on the reply button
3) Get auto-redirected to login
4) Login
5) Get auto-redirected to the reply page
6) Writes the reply, click post
7) ???
8) Profit!
9) Do not use.
See the difference?
Oh, wait... the phpbb-like foruns have more steps!
OMFGLOLWTF
What's my captcha?
-
RE: The small world of Electronic Arts
The REAL WTF(tm) is that:
1) This crappy CS forum isn't smart enough to put a reply button, even if I'm not signed-in (and redirect me to the sign-in page, and back to the post reply) that I have to sign-in, and click reply
2) This crappy CS reply page weights 350Kb (which slows down my porn downloads)
3) The text above the "Please select country" is in Portuguese
4) The text below "Bem-vindo ao guia do Suporte do Produto.." is English
OMG
Fist!
Captcha!
DOOM!
The Real wtf is... -
RE: Char *__PI = "3,1416" ;
People, in case most of you missed it, the WTF I've "found" is that he's declaring a constant floating point value as an array of char, also known as string. And this value he's declaring isn't a constant.
Got it? -
Char *__PI = "3,1416" ;
I saw this on a forum, link below.
Here's how it goes: The original poster of the question was asking on the C++ forum how he could draw an ellipse. Ok, someones paste a code.
Then, comes this guy called sitesrox, and says that the constant PI defined on the code pasted is wrong, and the correct constant of PI, is this one, posted by him:char *__PI = "3,1416" ;
Awesome.
A floating point constant, declared as char. With "," as decimal separator, breaking internationalization.
You can see the thread here:http://www.unidev.com.br/forum/topic.asp?TOPIC_ID=29450
It's right after the second code snippet. Or search for his name, sitesrox.
-
RE: Open Source == Quality
Java may not suck.
But it's implementation surely does. -
RE: Date WTF - The other extreme
Heh, new here, right? [:D]
Welcome to TDWTF!
-
RE: Adobe Acrobat Sucks
Like <FONT color=#555555>n89j</FONT> said:
Get FoxIt reader.Fast & free.
Around 4MB. No installation. No registry keys. One exe.
Can't get better. -
RE: Joe's replaced by enterprise shit
The ad with the "put a cock in my mouth" woman?
Bleah!
<img src="http://img390.imageshack.us/img390/8223/byatch3rh.jpg">Byatch</img>
* Savior hopes the link is ok.
Otherwise:
http://img390.imageshack.us/img390/8223/byatch3rh.jpg -
RE: January was "National Have Sex With Your Teacher Month"
@Scott said:
Every time I read something like this, I'm disgusted. Why the hell didn't it ever happen to me? I had some damn hot teachers. I wouldn't have told anyone. Some of those teachers that have gotten in trouble are damn hot too.
Seconded.
There were some really hot teachers that I wouldn't even think once of getting laid. -
RE: Help? Java sucks
@Richard Nixon said:
@Savior said:
Why should I even waste my time with a post titled "Java sucks"?
Because you've wasted time learning a language that sucks.
ZING! My own personal troll strikes again!
Haven't been out in awhile, have you?
sincerely,
Richard NixonWhy? Did you miss me? [;)]
-
RE: Help? Java sucks
Why should I even waste my time with a post titled "Java sucks"?
Because you've wasted time learning a language that sucks.
-
RE: To loop or not to loop?
Yes, they are morons.
Haven't they heard of the For-Case paradigm? Much better to handle this.
-
RE: Way To Much Solitaire
Well, I think we are doing the wrong calculations:
What's the average time of a Solitaire Game she played?She could be playing 30-seconds, or maybe 2 hours...
-
RE: More XML woes!
@t-bone said:
Is there any obfuscation system?
I just downloaded the samples from their website, and none of them look like xml when opened in notepad(++)As I said, you have to unpack the the *.3dxml files with 7Zip (or other zip-equivalent), and then it will create a directory with the files.
Then, you can open it with notepad.
-
RE: More XML woes!
@asan said:
Well, there are some 3D XML formats already:
1. X3D, the successor of VRML
2. Avalon (the new graphic subsystem for Windows) has 3D capabilities in XAML.BAH! It's worst than I thought!
Do you know of any relevants projects/enterprises that are using these formats?
By the way: Why didn't they let the VRML die a silent death? Do they need to ressurect it with X3D?
I see more 3D pages/web-games using Shockwave than X3D (and I've never seen a X3D page). -
More XML woes!
You've seen it.
The XML database.
The XML vector image file format.
The XML based language.
Could it get worse?
Yes, it can.
Let me tell you that I'm fairly experienced in 3D Graphics applications, and I can tell you that the 3DS (3D Studio) is a file format very known worldwide for exchanging information between 3D applications, and this format was around since the beginning of time. We have also, the Auto CAD format, very known, too. MilkShape, a new, but widely used format for 3D applications. We have OBJ files (text files - in opposite to the others binaries format) and is a very simple, well-known format to exchange information in 3D applications.
Now, we have:
<FONT size=6>The 3D XML Format!</FONT>"Created" by Dassault Systems the "new" 3D XML-based format allows you to:
1) "3D information can be easily incorporated into technical documentation, maintenance manuals, marketing brochures, websites, email communications and many other everyday uses."
2) " The new format greatly enhances collaboration around 3D information. With 3D XML, data can be seamlessly integrated with the rest of the company's business processes."
3) "3D XML content is fully described using XML Schema. Users can exploit 3D XML schema to implement it in their own applications."
4) "3D XML enables users to capture and share live 3D data quickly and easily in a lightweight format with file sizes up to 90 percent smaller than those of existing formats."
5) "3D XML is self-describing. 3D XML data can be read or written using standard tools and can be easily interpreted by applications."
6) "The public 3D XML documentation consists of a set of schemas which caters for number of application needs and a user’s guide for easy access to 3D XML specifications."
In short:
Does half of what the others format does (let me tell you that this XML format does NOT support animation), with twice the buzz!
http://www.3ds.com/products-solutions/3d-for-all/3d-xml/00/Now, let's see a 3D XML file:
<FONT size=2><?xml version="1.0" encoding="utf-8" ?>
<MODEL_3DXML xmlns="http://www.3ds.com/xsd/3DXML" xsi:schemaLocation="http://www.3ds.com/xsd/3DXML" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<HEADER>
<SCHEMAVERSION>1.0</SCHEMAVERSION>
<AUTHOR>RTJ</AUTHOR>
<GENERATOR>CATIA V5</GENERATOR>
<CREATED>2005-05-27</CREATED>
</HEADER>
<DEFAULTSESSIONPROPERTIES>
<BACKGROUNDCOLOR red="0.2" green="0.2" blue="0.4" alpha="0." />
<RENDERINGSTYLE>SHADING</RENDERINGSTYLE>
</DEFAULTSESSIONPROPERTIES>
<PRODUCTSTRUCTURE root="1">
<REFERENCE3D id=1 name="Part Demo Montre 3" xsi:type="Reference3DType" />
<REFERENCEREP id=2 name="Part Demo Montre 3_RepReference" xsi:type="ReferenceRepType" />
<INSTANCEREP id=3 name="Part Demo Montre 3_RepInstance" xsi:type="InstanceRepType">
<ISAGGREGATEDBY>1</ISAGGREGATEDBY>
<ISINSTANCEOF>urn:3DXML:Reference:loc:2</ISINSTANCEOF>
</INSTANCEREP>
<REPFORMAT xsi:type="RepFormatType" associatedFile="urn:3DXML:Representation:loc:4" format="TESSELLATED" owner="2" />
</PRODUCTSTRUCTURE>
<GRAPHICMATERIALSET />
<GEOMETRICREPRESENTATIONSET>
<REPRESENTATION id=4 format="TESSELLATED" version="2.0">
<ASSOCIATEDDATA>VjVfQ0ZWMgAAFWZZAAAKkP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
ACXw0KAAHGzhAAAAAAAMbOEAAHAAAABwAAALEBCwEIAk8AAABYAAAABAAAAAIA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AwjSQAACBA8wS1vvMEtb4AACB
AAMjTpAAAAL8AACBA8wS1PvMEtb4AACBAAAAAPwAAAAADBQEAAABAAAAAPwAwDaUAAABA8wS1PvMEtT4A
AABAADANJAAAAD8AAABA8wS1vvMEtT4AAABAAAAAvwAwjSQDBQEAAABAAAAAvwAwjSQAAABA8wS1vvMEtb
4AAABAAMjTpAAAAL8AAABA8wS1PvMEtb4AAABAAAAAPwAwDaUDBQEAAAC/AACUQQAAAADzBLW+AACUQfME
tT4AMA2kAACUQQAAAD/zBLU+AACUQfMEtT4AAAA/AACUQQAwjSQDBQEAAAA/AACUQQAwjSTzBLU+AACUQfMEtb4A
yNMkAACUQQAAAL/zBLW+AACUQfMEtb4AAAC/AACUQQAAAAADBgEAAAC/AABwQQAAAAAttM2+5/NvQTF
[Data goes on]<FONT size=3>Very "Human readable", isn't it?
Oh, and let me tell:
The
"3D XML enables users to capture and share live 3D data quickly and easily in a lightweight format with file sizes up to 90 percent smaller than those of existing formats."
part is complete bullshit!</FONT><FONT size=3></FONT>
<FONT size=3>You can download the XML gallery on the site, but you will need to unpack the *.3dxml the first time, and each folder will contain 3 files, with one of the extracted files being another *.3dxml file, that contains the data.
This is called: "Ease of use".</FONT><FONT size=3>Have fun.</FONT>
<FONT size=3>We should create a gallery:
</FONT>
Atrocities of XML.</FONT> -
Now, that's how you spell
No, don't notice the awful design of the page, but how this guy spell:
Averaej Amerikan houshold Kredit kard debt is 9205$ (2004, from bankrate.com)
185 milyun famlees in US hav 1+ kredit kards. (hard tu beleev sins US govt
sae theer R 75.6 mil famlees in USA).
averaej interest rate=(11.2% tu 18.9%, depend on hu yu beleev)
24% av spend is on a kk or debit kard.
20% hav maxed out all theer KK's.
40% av Amerikan famlees spend more than em ern.
averaej famlee KK interest=(83 tu 125 $/month, depend on hu yu beleev)His site:
http://www.munee.info/ -
RE: X++
@versatilia said:
My 2p... I write SOAP services in mod_perl ('cos I'm a sadist) and I've really appreciated XML, but this X++ is just comical.
For laugh++, have a look here: http://www.topxml.com/code/default.asp?p=3&id=v20020930173054
They've realised that you can't code in XML so made a pre-parser which converts a C-like version of the language into the full XML!!
(WTF++)++Dude, I think you have the WTF award of the Year there...
Sure it was done in 2002 but it sucks so much that it transcends the time!(WTF++)++
-
RE: X++
Hey, at least, XML is human-readable!
Now, we can brag not only for using XML as a database, but also that we are using X++ - A programming language made of XML!
Talk about Buzzword and hyping now. -
X++
This post goes out for everyone like me, who believe that, yes, XML has its uses, only as a temporary storage format, used to exchange information between systems that do not talk directly.
But, as you all know, this is a overused, and overhyped technology that will be used to create standalone databases, to, believe it, programming languages.Now, if you go to:
You will see that some jerk decided to create a programming language based on XML! What the fuck? Creating a language basend on a storage standard?
But it's not everything, you can check the wonderful examples, for example (Sorry if the code is messed):The following code:
xpp {<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
class XObj {<o:p></o:p>
construct{ }<o:p></o:p>
public:<o:p></o:p>
int Arr[3] = {5,6,7};<o:p></o:p>
void constructor() {<o:p></o:p>
string Names[3] = {Jack,Jimmie,John};<o:p></o:p>
int x;<o:p></o:p>
for (x = 0; x <= 2; x = x + 1) {<o:p></o:p>
xout("\r\nIn constructor this.Arr[" + x + "] = " + this.Arr[x]);<o:p></o:p>
xout("\r\nIn constructor Names[" + x + "] = " + Names[x]);<o:p></o:p>
};<o:p></o:p>
};<o:p></o:p>
};<o:p></o:p>
;<o:p></o:p>
<o:p></o:p>
int a[3] = {10,20,30};<o:p></o:p>
int x;<o:p></o:p>
for (x = 0; x <= 2; x = x + 1) {<o:p></o:p>
xout("\r\na[" + x + "] = " + a[x]);<o:p></o:p>
};<o:p></o:p>
<o:p></o:p>
node(XObj) MyObj;<o:p></o:p>
<o:p></o:p>
for (x = 0; x <= 2; x = x + 1) {<o:p></o:p>
xout("\r\nMyObj.Arr[" + x + "] = " + MyObj.Arr[x]);<o:p></o:p>
};<o:p></o:p>
}
Will output the following:
a[0] = 10<o:p></o:p>
a[1] = 20<o:p></o:p>
a[2] = 30<o:p></o:p>
In constructor this.Arr[0] = 5<o:p></o:p>
In constructor Names[0] = Jack<o:p></o:p>
In constructor this.Arr[1] = 6<o:p></o:p>
In constructor Names[1] = Jimmie<o:p></o:p>
In constructor this.Arr[2] = 7<o:p></o:p>
In constructor Names[2] = John<o:p></o:p>
MyObj.Arr[0] = 5<o:p></o:p>
MyObj.Arr[1] = 6<o:p></o:p>
MyObj.Arr[2] = 7<o:p></o:p>
<o:p> </o:p>
<o:p>But will be saved in the xpp file like this:</o:p>
<o:p><xpp><o:p></o:p>
<class name="XObj" inherit=""><o:p></o:p>
<construct/><o:p></o:p>
<scope type="public"><o:p></o:p>
<arr type="int" name="Arr[3]">{5,6,7}</arr><o:p></o:p>
<func type="void" name="constructor"><o:p></o:p>
<body><o:p></o:p>
<arr type="string" name="Names[3]">Jack,Jimmie,John</arr><o:p></o:p>
<var type="int" name="x"/><o:p></o:p>
<for><o:p></o:p>
<init><o:p></o:p>
<eval object="x"><o:p></o:p>
<eval><o:p></o:p>
<expr>0</expr><o:p></o:p>
</eval><o:p></o:p>
</eval><o:p></o:p>
</init><o:p></o:p>
<cond><o:p></o:p>
<eval><o:p></o:p>
<parm type="int" name="Parm0"><o:p></o:p>
<eval object="x"/><o:p></o:p>
</parm><o:p></o:p>
<expr>Parm0 <= 2</expr><o:p></o:p>
</eval><o:p></o:p>
</cond><o:p></o:p>
<step><o:p></o:p>
<eval object="x"><o:p></o:p>
<eval><o:p></o:p>
<parm type="int" name="Parm0"><o:p></o:p>
<eval object="x"/><o:p></o:p>
</parm><o:p></o:p>
<expr>Parm0 + 1</expr><o:p></o:p>
</eval><o:p></o:p>
</eval><o:p></o:p>
</step><o:p></o:p>
<xout processcode="true"><o:p></o:p>
<eval><o:p></o:p>
<parm type="int" name="Parm0"><o:p></o:p>
<eval object="x"/><o:p></o:p>
</parm><o:p></o:p>
<parm type="int" name="Parm1"><o:p></o:p>
<eval object="this" member="Arr"><o:p></o:p>
<index><o:p></o:p>
<eval object="x"/><o:p></o:p>
</index><o:p></o:p>
</eval><o:p></o:p>
</parm><o:p></o:p>
<expr>"\r\nIn constructor this.Arr[" + Parm0 + "] = " + Parm1</expr><o:p></o:p>
</eval><o:p></o:p>
</xout><o:p></o:p>
<xout processcode="true"><o:p></o:p>
<eval><o:p></o:p>
<parm type="int" name="Parm0"><o:p></o:p>
<eval object="x"/><o:p></o:p>
</parm><o:p></o:p>
<parm type="string" name="Parm1"><o:p></o:p>
<eval object="Names"><o:p></o:p>
<index><o:p></o:p>
<eval object="x"/><o:p></o:p>
</index><o:p></o:p>
</eval><o:p></o:p>
</parm><o:p></o:p>
<expr>"\r\nIn constructor Names[" + Parm0 + "] = " + Parm1</expr><o:p></o:p>
</eval><o:p></o:p>
</xout><o:p></o:p>
</for><o:p></o:p>
</body><o:p></o:p>
</func><o:p></o:p>
</scope><o:p></o:p>
</class><o:p></o:p>
<arr type="int" name="a[3]">10,20,30</arr><o:p></o:p>
<var type="int" name="x"/><o:p></o:p>
<for><o:p></o:p>
<init><o:p></o:p>
<eval object="x"><o:p></o:p>
<eval><o:p></o:p>
<expr>0</expr><o:p></o:p>
</eval><o:p></o:p>
</eval><o:p></o:p>
</init><o:p></o:p>
<cond><o:p></o:p>
<eval><o:p></o:p>
<parm type="int" name="Parm0"><o:p></o:p>
<eval object="x"/><o:p></o:p>
</parm><o:p></o:p>
<expr>Parm0 <= 2</expr><o:p></o:p>
</eval><o:p></o:p>
</cond><o:p></o:p>
<step><o:p></o:p>
<eval object="x"><o:p></o:p>
<eval><o:p></o:p>
<parm type="int" name="Parm0"><o:p></o:p>
<eval object="x"/><o:p></o:p>
</parm><o:p></o:p>
<expr>Parm0 + 1</expr><o:p></o:p>
</eval><o:p></o:p>
</eval><o:p></o:p>
</step><o:p></o:p>
<xout processcode="true"><o:p></o:p>
<eval><o:p></o:p>
<parm type="int" name="Parm0"><o:p></o:p>
<eval object="x"/><o:p></o:p>
</parm><o:p></o:p>
<parm type="int" name="Parm1"><o:p></o:p>
<eval object="a"><o:p></o:p>
<index><o:p></o:p>
<eval object="x"/><o:p></o:p>
</index><o:p></o:p>
</eval><o:p></o:p>
</parm><o:p></o:p>
<expr>"\r\na[" + Parm0 + "] = " + Parm1</expr><o:p></o:p>
</eval><o:p></o:p>
</xout><o:p></o:p>
</for><o:p></o:p>
<node name="MyObj" class="XObj" processcode="true" construct="true"/><o:p></o:p>
<for><o:p></o:p>
<init><o:p></o:p>
<eval object="x"><o:p></o:p>
<eval><o:p></o:p>
<expr>0</expr><o:p></o:p>
</eval><o:p></o:p>
</eval><o:p></o:p>
</init><o:p></o:p>
<cond><o:p></o:p>
<eval><o:p></o:p>
<parm type="int" name="Parm0"><o:p></o:p>
<eval object="x"/><o:p></o:p>
</parm><o:p></o:p>
<expr>Parm0 <= 2</expr><o:p></o:p>
</eval><o:p></o:p>
</cond><o:p></o:p>
<step><o:p></o:p>
<eval object="x"><o:p></o:p>
<eval><o:p></o:p>
<parm type="int" name="Parm0"><o:p></o:p>
<eval object="x"/><o:p></o:p>
</parm><o:p></o:p>
<expr>Parm0 + 1</expr><o:p></o:p>
</eval><o:p></o:p>
</eval><o:p></o:p>
</step><o:p></o:p>
<xout processcode="true"><o:p></o:p>
<eval><o:p></o:p>
<parm type="int" name="Parm0"><o:p></o:p>
<eval object="x"/><o:p></o:p>
</parm><o:p></o:p>
<parm type="int" name="Parm1"><o:p></o:p>
<eval object="MyObj" member="Arr"><o:p></o:p>
<index><o:p></o:p>
<eval object="x"/><o:p></o:p>
</index><o:p></o:p>
</eval><o:p></o:p>
</parm><o:p></o:p>
<expr>"\r\nMyObj.Arr[" + Parm0 + "] = " + Parm1</expr><o:p></o:p>
</eval><o:p></o:p>
</xout><o:p></o:p>
</for><o:p></o:p>
</xpp><o:p></o:p>
<o:p> </o:p>
<o:p> </o:p>
<o:p><FONT size=5>Congratulations, dickhead, now, I need a special tool just to read the fucking source!</FONT></o:p>
<o:p><FONT size=5>What the Fuck where you thinking when you had this </FONT><FONT size=6>stupid idea??</FONT></o:p>
-
RE: Vim vs. IDE (flame on)
If you are used to an IDE (or lack of it), and yet you are produtive, then don't change it.
But yes, those java IDEs and their "speed" (or lack of) is a kick on the nuts.
Thank god the IDE I use isn't developed in java. Otherwise I would stick to notepad. -
RE: How many web design rules can I break in one project?
Ohhh, you didn't like it?
Well, wait until the version with ads comes up.
But I liked the color style! [6] -
RE: Who needs input validation anyway
Thanks for backing me up.
I really think this forum software should show all the messages on a thread while replying, so you don't have to put multiple replies to multiple posts. -
RE: Quality management at its finest.
Well, well, too bad you don't have any other masterpiece like these.
But they could have impressed more if they "fixed" the bug on a saturday, instead of waiting till monday.
-
RE: Who needs input validation anyway
@UncleMidriff said:
Oh, and I'd like to thank you and your avatar for making this site significantly less work safe. </SARCASM> :)
Hopefully emptyset will stop to use his mother's connection to the internet and completely drop this site. After that I'll vanish into the darkness...
Of course, after Richard Nixon does the same as emptyset... [*-)]
-
RE: Quality management at its finest.
Sure he did.
But how many more e-mails do you think he have? -
RE: Is there a "I hate Lotus Notes club" - New to this Forum
@Mike R said:
@Savior said:
Hail to you,
While there isn't such a club (yet), there's the "I hate emptyset" club, and includes almost all members of the forum, except one.
Oh yeah, feel free to create this club if you want.
Heh, which one is that? emptyset?
fwiw, I'm ambivalent torward emptyset. I neither like nor dislike, he adds character to the forum, sometimes, I think. BTW, congratulations on being the first ever avatar I've adblocked. [8-)]I dislike him so much that I've registered to bug him.
Didn't you like my avatar? [:D] -
RE: The "I hate Java club"?
@naturally_iced said:
"Flash can do most of what java does, and is faster, and much more bug-free."
Dude, have you ever worked on any serious project in your life? You're ranting and raving
about stuff you have no clue about. Anyone that drops a reference to FreePascal in an argument
about programming languages is out of their god damn mind. How much have you ever been paid to write
an app in pascal? Maybe Delphi, but even that's garbage and *not* portable.I feel enchanted that you've gone trough the trouble of registering just to be able to post on this thread!
Haha! Delphi = garbage! FreePascal = out of my god damn mind!
Aren't you saying this because you're angry about java?
Heh [H] -
RE: Quality management at its finest.
@seebs said:
I have saved these messages for a decade. I still don't know what to make of them.
Post them![:D]
-
RE: Is there a "I hate Lotus Notes club" - New to this Forum
Hail to you,
While there isn't such a club (yet), there's the "I hate emptyset" club, and includes almost all members of the forum, except one.
Oh yeah, feel free to create this club if you want.
-
RE: HowTo_AccessRaw SectorsOfPhysical Drives_onLinux.py
@Spigot said:
That's incredible, in the sense of 'not credible. I'm sure it's real, but.... lstHexDumpOfBootRecord? strHexDumpOfBootRecord? Last I checked, python doesn't *need* type warts, andCapitalizingThingsLikeThisThatAreMoreThanTwoWordsInLengthIsUgly, like Java style but without the purpose...
It's one thing for code to be written in Python, it's another entirely for code to be written like Python.People who bitch about the naming/capitalizing convention are morons and bad coders.
If you don't have nothing to add, shut up. -
RE: Feel Like Trolling
Me never trolls.
Online forums are my life.
I take them seriously, as emptyset. -
RE: Humorous names
What's better than having the last name "Fuck"?
http://www.abc.org.br/Gina/curriculo.asp?consulta=rfuck&etapa=3&lingua=I
-
RE: Catch{}//nothing to do here.
@TGV said:
What's the F here? There can be legitimate reasons to catch exceptions, especially at a high level where you don't want to break some behaviour in the caller.
1) Engineering was created so you don't "break" the beahaviour of some other part of your code. If you are using and empty catch to supress some exception, well, congratulations! I'm going to start to use Try/Catch to control the flow of my code, and achieve error-free procedures. See? No error is shown!
2) If you have downloaded the source code, and took the time to read it, you would notice that this Try/Empty Catch is common use on their code! It's spreaded over several files.
Now, that's what I call good design. -
A Stored Procedure from Telligent
The search stored proc from our beloved forum:
CREATE procedure [dbo].cs_forums_Search (
@SearchSQL nvarchar(4000),
--@RecordCountSQL nvarchar(4000),
@PageIndex int = 0,
@PageSize int = 25,
@SettingsID int
)
AS
SET Transaction Isolation Level Read UNCOMMITTED
BEGINDECLARE @StartTime datetime
DECLARE @RowsToReturn int
DECLARE @PageLowerBound int
DECLARE @PageUpperBound int
DECLARE @Count int-- Used to calculate cost of query
SET @StartTime = GetDate()-- Set the rowcount
SET @RowsToReturn = @PageSize * (@PageIndex + 1)
-- SET ROWCOUNT @RowsToReturn-- Calculate the page bounds
SET @PageLowerBound = @PageSize * @PageIndex
SET @PageUpperBound = @PageLowerBound + @PageSize + 1-- Create a temp table to store the results in
CREATE TABLE #SearchResults
(
IndexID int IDENTITY (1, 1) NOT NULL,
PostID int,
SectionID int,
Weight int,
PostDate datetime
)
Declare @TotalResults int-- Fill the temp table
INSERT INTO #SearchResults (PostID, SectionID, Weight, PostDate)
exec (@SearchSQL)Set @TotalResults = @@rowcount
-- SELECT actual search results from this table
SELECT
P.PostID, P.ThreadID, P.ParentID, P.PostAuthor, P.UserID, P.SectionID, P.PostLevel, P.SortOrder, P.Subject, P.PostDate, P.IsApproved,
P.IsLocked, P.IsIndexed, P.TotalViews, P.Body, P.FormattedBody, P.IPAddress, P.PostType, P.EmoticonID, P.SettingsID, P.AggViews,
P.PropertyNames as PostPropertyNames, P.PropertyValues as PostPropertyValues,
P.PostConfiguration,
U.*,
T.ThreadDate,
T.IsLocked,
T.IsSticky,
AttachmentFilename = '', --ISNULL ( (SELECT [FileName] FROM cs_PostAttachments WHERE PostID = P.PostID), ''),
Replies = 0, -- (SELECT COUNT(P2.PostID) FROM cs_Posts P2 (nolock) WHERE P2.ParentID = P.PostID AND P2.PostLevel != 1),
IsModerator = 0, --(SELECT count(*) from cs_Moderators where UserID = P.UserID),
HasRead = 0 -- not used
FROM
cs_Posts P,
cs_vw_Users_FullUser U,
cs_Threads T,
#SearchResults R
WHERE
P.PostID = R.PostID AND
T.ThreadID = P.ThreadID AND
U.cs_UserID = P.UserID AND
R.IndexID > @PageLowerBound AND
R.IndexID < @PageUpperBound AND
P.SettingsID = @SettingsID-- Do we need to return a record estimate?
--exec (@RecordCountSQL)Select @TotalResults
--DROP Table #SearchResults
SELECT Duration = GetDate() - @StartTime
END -
Dynamic SQL
Yes, still from our beloved forum software:
public static string BuildGalleryThreadQuery(GalleryThreadQuery query, string databaseOwner)
{StringBuilder sb = new StringBuilder();
// Start with the basic tables
sb.AppendFormat("select T.ThreadID from {0}.cs_Threads T ", databaseOwner);
sb.AppendFormat("right join {0}.cs_Posts P on (P.ThreadID = T.ThreadID and P.PostLevel = 1) ", databaseOwner);
sb.AppendFormat("right join {0}.cs_Sections F on (F.SectionID = T.SectionID and F.ApplicationType = {1}) ", databaseOwner, (int)ApplicationType.Gallery);
sb.AppendFormat("left join {0}.cs_PostMetadata M on (M.PostID = P.PostID and M.MetaKey = '{1}') ", databaseOwner, ExifProperty.DateTimeOriginal.ToString());// Are we filtering by CategoryID (this has nothing to do with returning categories)
if(query.HasCategory || query.HasNoCategories)
sb.AppendFormat("left join {0}.cs_Posts_InCategories PC on (PC.PostID = P.PostID)",databaseOwner);sb.Append("where ");
if(query.HasFolder)
sb.AppendFormat("T.SectionID = {0} and ", query.SectionID);if(query.IsGalleryEnabled)
sb.Append("F.IsActive = 1 and ");if(query.OnlyApproved)
sb.AppendFormat("T.IsApproved = 1 and ");if(query.HasGroup)
sb.AppendFormat("P.SectionID = F.SectionID and F.GroupID = {0} and ", query.GroupID);if(query.FilterKey.Length > 0)
sb.AppendFormat("F.SectionID in ({0}) and ", query.FilterKey);// Add standard filters
sb.AppendFormat("T.SettingsID = {0} and P.SettingsID = {0} ", ProviderHelper.Instance().GetSettingsID());// Add category filter if necessary
if(!query.HasNoCategories && query.HasCategory)
sb.AppendFormat(" and PC.CategoryID = {0}", query.CategoryID);// Ordering
string order = "desc";
if(query.SortOrder == SortOrder.Ascending)
order = "asc";// Sort by
string groupBy = string.Empty;
string orderBy = string.Empty;
switch(query.SortBy)
{
case GalleryThreadSortBy.Author:
orderBy = " order by P.PostAuthor";
groupBy = "P.PostAuthor";
break;
case GalleryThreadSortBy.Comments:
orderBy = " order by T.TotalReplies";
groupBy = "T.TotalReplies";
break;
case GalleryThreadSortBy.Rating:
orderBy = " order by case when T.TotalRatings > 0 then (convert(decimal,T.RatingSum) / convert(decimal,T.TotalRatings)) else 0 end";
groupBy = "T.TotalRatings, T.RatingSum";
break;
case GalleryThreadSortBy.Subject:
orderBy = " order by P.Subject";
groupBy = "P.Subject";
break;
case GalleryThreadSortBy.Views:
orderBy = " order by T.TotalViews";
groupBy = "T.TotalViews";
break;
default:
case GalleryThreadSortBy.ThreadDate:
orderBy = " order by P.PostDate";
groupBy = "P.PostDate";
break;
case GalleryThreadSortBy.PictureDate:
orderBy = " order by M.MetaValue " + order + ", P.PostDate";
groupBy = "M.MetaValue, P.PostDate";
break;
}// Add group by and having if necessary, then order by
if(query.HasNoCategories)
{
sb.Append(" group by T.ThreadID, " + groupBy);
sb.Append(" having count(PC.CategoryID) = 0");
}
sb.Append(orderBy + " " + order);// Send back the query
return sb.ToString();
} -
Might be able to move this to the base
Telligent...
/// <summary>
/// Returns the time of the last modified post. Might be able to move this to the base
/// </summary>
protected override DateTime Modified
{
get
{
if(posts != null && posts.Count > 0)
{
return ((WeblogPost) (posts[posts.Count -1])).BloggerTime;
}
else
return new DateTime(2004,1,1);
}
} -
Case break
From the forum software:
private void csa_AfterSection(Section section, CSEventArgs e)
{
if(e.ApplicationType == ApplicationType.Weblog)
{
switch(e.State)
{
case ObjectState.Create:if(WeblogConfiguration.Instance().CreateBlogDirectories)
WebDirectory.Create(Globals.GetSiteUrls().Locations["weblogs"] + section.ApplicationKey);break;
case ObjectState.Update:
break;
case ObjectState.Delete:
break;
}
}
} -
Catch{}//nothing to do here.
Yet another from the forum software...
public void Track()
{
StringCollection links = GetLinks(body);
foreach(string externalUrl in links)
{
try
{
string pageText = CSRequest.GetPageText(externalUrl,referral);
if(pageText != null)
TryToPing(pageText,externalUrl);
}
catch{}//nothing to do here.
}}
-
Bool bReturn = true;
Directly from our beloved forum software:
public static bool Validate(Section section, Permission permission, User user, Post p)
{if(user.IsBlogAdministrator)
return true;if(section == null || section.PermissionSet == null || user == null )
return false;bool bReturn = true;
WeblogPermission fpFinal = section.ResolvePermission(user) as WeblogPermission;if((permission == (permission | Permission.Administer)) && bReturn )
bReturn &= fpFinal.Administer;if((permission == (permission | Permission.Attachment)) && bReturn )
bReturn &= fpFinal.Attachment;if((permission == (permission | Permission.Delete)) && bReturn )
bReturn &= fpFinal.Delete;if((permission == (permission | Permission.Post)) && bReturn )
bReturn &= fpFinal.Post;if((permission == (permission | Permission.Reply)) && bReturn )
bReturn &= fpFinal.Reply;if((permission == (permission | Permission.Sticky)) && bReturn )
bReturn &= fpFinal.Sticky;if((permission == (permission | Permission.View)) && bReturn )
bReturn &= fpFinal.View;return bReturn;
} -
RE: The "I hate Java club"?
Yes, I'm a troll. Now that you realise this, why don't people let this thread die?
-
RE: The real WTF....
Do you people realize that this forum software is open source?