|
Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Tired of seeing and clicking lots of worthless "articles-needing-approval" on the CP home page (some multiple times, they don't disappear fast enough), I switched to an alternate non-gold account.
In the midst of a discussion in the Lounge Computafreak[^] (many thanks!) told me about AdBlock and Element Hider add-ins for FireFox.
So after six days of half-anonymity I'm back in business.
|
|
|
|
|
: baaaa! : ==>
: badger : ==>
: beer : ==>
: bob : ==>
: confused : ==>
: cool : ==>
: doh : ==>
: eek : ==>
: java : ==>
: jig : ==>
: laugh : ==>
: love : ==>
: mad : ==>
: omg : ==>
: rolleyes : ==>
: rose : ==>
: sigh : ==>
: suss : ==>
: thumbsup : ==>
: thumbsdown : ==>
: vegemite : ==>
: wtf : ==>
: zzz : ==>
And here is a valid C# snippet with seven different emoticons on a single line:
bool b1=true, b2=true, b3=true;
int D=1, P=2, O=3, X=4;
for (int i=b1? 1 :( b2? 0 :((b3?0 :-D<2? 1 :-O))) ;P != 3 ;) { X = X| 1; }
for (int i=b1? 1 b2? 0 b3?0 <2? 1 ))) != 3 { X = 1; }
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
modified on Wednesday, March 18, 2009 8:58 PM
modified on Thursday, December 2, 2010 1:23 PM
|
|
|
|
|
THANKS for the sharing
Believe Yourself™  ™
|
|
|
|
|
|
[ADDED] This article has some potential, which I like; however: [/ADDED]
This needs some more work. Here is what I didn't like much:
1. formatting
- why is there an empty line after every line of code?
- where is the indentation? nested ifs and loops need to be indented to be readable.
2. some coding comments
- I don't like magic numbers, such as in chr(34) and 2147483648
you could either add a comment or better yet use self-commenting code as in """" and 2*1024*1024*1024
The resulting IL code will be the same or better
- it is very bad practice to catch an exception and then ignore it; if you really must, you need to
explain that in comment. In this case, I believe you should warn the user something went wrong.
- the way you construct a folder name based on multiple Now evaluations is bad practice; have a look
at Now.ToString("yyyy.MM.dd.HH.mm.ss")
- RemovableDrives should not be an array; use a List instead, you won't need the count
variable, and a simple For Each... would enumerate them more easily.
3. some functional comments
- why don't you copy USB stick larger than 2GB? you should explain that in the code and in
the article
- why don't you include the year in the folder name you build?
When you fix most of these and add some more meat to the article, I'll raise my vote from 2 to probably 4.
Cheers.
|
|
|
|
|
I quit. No more forums for me.
[edit] seems there still are ways to avoid the "good answer/bad answer" trap,
so we give it a last try... [/edit]
modified on Monday, December 29, 2008 9:17 PM
|
|
|
|
|
Hi Luc!
I just stopped by to say you a Hi.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi Rajesh, my best wishes to you.
Luc
|
|
|
|
|
This is a sad day.
As I enter my 5000th message, I will loose my "personality" status, and become a "fixture", which
seems to be a part of the furniture. Not sure I like it, but then the company is OK, the furniture
isn't too bad...
|
|
|
|
|
|
Hi Luc !
I saw that we both come from Belgium . Where are you from exactly ? Are you dutch or french speaking ?
I come from a little town close to Germany but I studied in Brussels (and stayed there for some years) and now I live in Hoegaarden with my girlfriend. So, I'm french speaking but I'm trying to improve my dutch at this time (I work in Leuven).
What about you (if not too indiscrete) ?
|
|
|
|
|
Hi Cedric, I'm dutch speaking, and live and work near Antwerp.
There are several Belgian CPians if you look closely.
Regards,
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
Special sig for people that only understand SMS speak:
Lc Pttn [Frm Gdlns] [M Rtcls]
ths mnths tps:
- b4 u sk 1 ? hr, srch CP thn Ggl
- th q & dtl f ur ? rflcts n th ffctvnss f th hlp u r lkl 2 gt
- uz PR tgz 2 prsrv frmtng whn shwng mlt-ln cd snptz
|
|
|
|
|
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|