Ha, great minds and all. :-) OTOH, fools seldom differ either. :omg:
Rajesh R Subramanian
Posts
-
Holiday Season Fun Activity ... Not... -
Holiday Season Fun Activity ... Not...virang_21 wrote:
Try { // Number of code lines } Catch (Exception exception){ // Nothing here. Exception is swallowed. }
Assuming that the code not wildly different than this, you could start with a simple regex replace with a blank string (PHP style, just use notepad++):
Try.*?Catch[^,;]*?\}
Update: I greatly simplified the regex ^-^, and also fixed a bug (the previous regex will match and erase any catch block that starts with a comment, but this one won't). What does it do?
- If a catch block contains at least one semi-colon, then it's considered as a catch block with some valid code. Therefore, the entire try-catch is left alone.
- If a catch block does not contain a semi-colon, the catch is erased, along with the try block that preceeds it (regardless of what's within the try).
Note: The regex will replace EVERY invalid try-catch block depending on the path and file extension selected in your replace in files dialog, so backing up your code beforehand might be a good idea! It should be fairly simple to modify to suit your needs if there's any difference. It replaced everything with an empty string except for the last block in my test cases:
Try {
do stuff
more stuff
blah
}
Catch (Exception exception){
// Nothing here. Exception is swallowed.
}Try {
// Number of code lines
// Number of code lines
/*
frigging multi-line comment
spanning over many lines*/
// Number of code lines
}
Catch (Exception exception){// Nothing here. Exception is swallowed.
}Try {
// Number of code lines
}
Catch (Exception exception){
// Nothing here. Exception is swallowed.
// blah
}Try {
// Number of code lines
}
Catch (Exception exception){
//blah
int d = 3;
} -
Are there any honest booksellers left?I think that should be easy - just stop responding to people on this thread. :thumbsup:
-
Are there any honest booksellers left?Cp-Coder wrote:
I am not going to kick up a stink for the sake of a $15 book
As I said, it's not about $15, but about principle. If you cheat me, I'll come after you and make sure that you'll not pull that with me again. Of course, for each his own.
-
Are there any honest booksellers left?Exactly! So it looks like a case where the OP had no clue as to how amazon works. I was a bit surprised when the OP said that that amazon just shrugged off, because that's never been my experience.
-
Are there any honest booksellers left?Yeah, my question was why do you post a message here and then delete it? You did that twice.
-
Are there any honest booksellers left?Did you just post a couple of replies to me and then delete it?!
-
Are there any honest booksellers left?Yeah, I don't think they'd go that far. Besides, I could generate an unlimited number of virtual card numbers within my bank account. Identity? They'd have my identity my a*$e. They ship items to my po box and don't know my surname. They don't have my address, and don't have my phone number (not a real one anyways).
Dan Neely wrote:
If they ban people, not just accounts, you won't be able to do an easy end run.
Ironic you'd phrase it like that. I'm not "doing an easy and running" if they failed to take action after I report having been cheated. They're the ones expecting to do an easy and run, but that won't work with me. You're also talking as if an amazon account is my passport. I treat it as a disposable entity.
-
Are there any honest booksellers left?I'd just create another amazon account (if I want one). But they're not going to get away with making a fool out of me. If you cheat me, I'll come after you.
-
Are there any honest booksellers left?I'd file a dispute with the credit card issuer, and issue a charge-back if it were me. Amazon can go stick it up their rear with attitude like that. It's not the amount of money, but I'm not going to be cheated like that.
-
When an account is disabled for spamming, the messages should go as wellThank you Chris. Possibly apply it only for those "under water" kind of reputation accounts, that are may be only a week old? Better yet just hide the messages away from public view, and if the member appeals then a human could take a look at it and take a decision. Of course, it could still be a can of worms though. Just a thought.
-
FunThere's some creature living more than 10KMs under the ocean. :wtf: When humans set their deep sea diving record, the Hadal Amphipod be like, "bitch please". :-\
-
I was sent this, and...Wow, some people are just bloody f****** weird.
-
I was sent this, and...Today I learned that some people consume cat shit. :wtf: X|
-
Keyboard RecommendationYou're doing it again, Ravi. Just wait until the zealots come out. :laugh:
-
a new business planThe longer middle finger in the stop sign must have been the first clue. :-)
-
Decisions, decisionsSome points to ponder over:
- Is the new job going to be reasonably more challenging and/or rewarding? Are you going to be learning anything new in your current role? Compare this to what you may learn in the new role.
- What are the things that you want in your job? Now, what are the things that you don't have in your current job, that will be offered to you in your new job?
- Now for the corollary - what are the things that you have taken for granted in your current role that you don't know will get in the new role?
- All else being the same, what about the other factors/privileges? Like being able to work flexible time, or working from home, miscellaneous allowances like bonuses and perks, working hours, paid holidays, etc.
- Will the existing role want to match the new benefits in order to retain you? If yes, is this something that you will want to consider?
-
I was sent this, and...My apologies. :-)
-
When an account is disabled for spamming, the messages should go as well"My roommate" agrees with your investigation. :laugh:
-
When an account is disabled for spamming, the messages should go as wellphil.o wrote:
I never tried to shoot down anything; I just made a remark which was not against you nor you suggestion;
Your remark served absolutely no purpose there, which I thought was already made clear.
phil.o wrote:
you kept on harrassing me.
Nonsense. You responded to every single post I made with passive-aggressive substance, including this one (which I'll respond to).
phil.o wrote:
But you can be quiet
I have the abiliy to be quiet, yes. And so do you. Why are you stating that here though?
phil.o wrote:
I leave this thread and your sunny personnality.
No announcement was necessary, as it's not that important for me to know. But I'd be glad not to deal with any more of your passive-aggressive tripe.