SV650.org - SV650 & Gladius 650 Forum



Idle Banter For non SV and non bike related chat (and the odd bit of humour - but if any post isn't suitable it'll get deleted real quick).
There's also a "U" rating so please respect this. Newbies can also say "hello" here too.

Reply
 
Thread Tools
Old 01-12-06, 04:18 PM   #21
Baph
Guest
 
Posts: n/a
Default

I used to be almost falling asleep in my old job, but now I've moved that isn't the case. I actually prefer my brain to be engaged, so I'm not complaining.

Grinch, I know what you mean about having a bad day, I was given 4 hours to find a bug in the code, and fix it. The best fix me & 3 other developers can come up with has so far taken me over 8 hours (including investigation) to sort out.

For the geeks (who know java), I'm placing tightening restrictions around java's formater parse() function, building regexes on the fly depending on locale settings, basically re-inventing the wheel as a turbine engine! (I can show the code if you want to join me in regex hell).
  Reply With Quote
Old 01-12-06, 04:23 PM   #22
Grinch
Guest
 
Posts: n/a
Default

Bloody Java's memory leaks are causing me stress...
  Reply With Quote
Old 01-12-06, 04:26 PM   #23
Flamin_Squirrel
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Viper
Quote:
Originally Posted by Grinch
sorry that was my head hitting the keyboard... didn't fall sleep, just having a bad day.
Still Having a bad day Grinch
Is this one of those days when you wish you had not got out of bed
Nah that was yesterday
  Reply With Quote
Old 01-12-06, 04:37 PM   #24
Baph
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Grinch
Bloody Java's memory leaks are causing me stress...
Grinch, just for you....

Code:
private String buildStrictRegex(String format){

        	String[] pattern = {"yyyy", "yy", "MMMM", "MMM", "MM", "M", "dd", "d", "G", "ww", "w", "W", "DDD",
        				"DD", "D", "F", "E", "a", "ww", "w", "HH", "H", "kk", "k", "hh", "h", "KK", "k", 
        				"mm", "m", "ss", "s", "SSS", "SS", "S", "z", "Z"};
        	String[] matchingRegex = {"+[0-9]", "[0-9][0-9]", "+[a-zA-Z]", "+[a-zA-Z]", "+[a-zA-Z]", "+[a-zA-Z]", 
        			"+[0-9]", "+[0-9]", "[a-zA-Z][a-zA-Z]", "+[0-9]", "+[0-9]", "[0-9]", "+[0-9]", "+[0-9]", "+[0-9]",
        			"[1-5]", "[0-9]", "[a-zA-Z][a-zA-Z]", "+[0-9]", "+[0-9]","+[0-9]", "+[0-9]", "+[0-9]", "+[0-9]",
        			"+[0-9]", "+[0-9]", "+[0-9]", "+[0-9]", "+[0-9]", "+[0-9]", "+[0-9]", "+[0-9]", "+[0-9]", "+[0-9]", 
"+[0-9]", "+[a-zA-Z; ]-+[0-9]:+[0-9]", "-+[0-9]:+[0-9]"};
Is how the function starts....
  Reply With Quote
Old 01-12-06, 04:41 PM   #25
Red ones
Member
Mega Poster
 
Red ones's Avatar
 
Join Date: Jul 2003
Location: Hertfordshire
Posts: 1,422
Default

It's my day off today.

You have just sent me to sleep!
Red ones is offline   Reply With Quote
Old 01-12-06, 04:42 PM   #26
Luckypants
Moderator
Mega Poster
 
Luckypants's Avatar
 
Join Date: Jul 2003
Location: Nr Ruthin
Posts: 7,079
Default

Baph! Behave, it's Friday FFS!
__________________
"Your Viffer sounds like it is raising hell! Spot on." - Witchery 17/4/08
Snow Plough Appreciation Society - Member #3

Luckypants is offline   Reply With Quote
Old 01-12-06, 04:42 PM   #27
allison23
Guest
 
Posts: n/a
Default

Day off, lucky! They just cancelled my uni at noon, yeah right after my shift gets out good job. So I am stuck here for a little bit longer, then off into the snowglobe! p.s. I'm in Michigan, I bet you don't have a flake of snow there!
  Reply With Quote
Old 01-12-06, 04:44 PM   #28
Stingo
Member
 
Stingo's Avatar
 
Join Date: Feb 2006
Location: Plymouth, Devon - mostly.
Posts: 527
Default

Quote:
Originally Posted by Baph
Quote:
Originally Posted by Grinch
Bloody Java's memory leaks are causing me stress...
Grinch, just for you....

Code:
private String buildStrictRegex(String format){

        	String[] pattern = {"yyyy", "yy", "MMMM", "MMM", "MM", "M", "dd", "d", "G", "ww", "w", "W", "DDD",
        				"DD", "D", "F", "E", "a", "ww", "w", "HH", "H", "kk", "k", "hh", "h", "KK", "k", 
        				"mm", "m", "ss", "s", "SSS", "SS", "S", "z", "Z"};
        	String[] matchingRegex = {"+[0-9]", "[0-9][0-9]", "+[a-zA-Z]", "+[a-zA-Z]", "+[a-zA-Z]", "+[a-zA-Z]", 
        			"+[0-9]", "+[0-9]", "[a-zA-Z][a-zA-Z]", "+[0-9]", "+[0-9]", "[0-9]", "+[0-9]", "+[0-9]", "+[0-9]",
        			"[1-5]", "[0-9]", "[a-zA-Z][a-zA-Z]", "+[0-9]", "+[0-9]","+[0-9]", "+[0-9]", "+[0-9]", "+[0-9]",
        			"+[0-9]", "+[0-9]", "+[0-9]", "+[0-9]", "+[0-9]", "+[0-9]", "+[0-9]", "+[0-9]", "+[0-9]", "+[0-9]", 
"+[0-9]", "+[a-zA-Z; ]-+[0-9]:+[0-9]", "-+[0-9]:+[0-9]"};
Is how the function starts....
Ah - that sort of Java. I remember when a nice cup of Java used to help keep you awake. The irony of life.
__________________
Twitter: @poseidon_ashore
Stingo is offline   Reply With Quote
Old 01-12-06, 04:45 PM   #29
Grinch
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Baph
Quote:
Originally Posted by Grinch
Bloody Java's memory leaks are causing me stress...
Grinch, just for you....

Code:
private String buildStrictRegex(String format){

        	String[] pattern = {"yyyy", "yy", "MMMM", "MMM", "MM", "M", "dd", "d", "G", "ww", "w", "W", "DDD",
        				"DD", "D", "F", "E", "a", "ww", "w", "HH", "H", "kk", "k", "hh", "h", "KK", "k", 
        				"mm", "m", "ss", "s", "SSS", "SS", "S", "z", "Z"};
        	String[] matchingRegex = {"+[0-9]", "[0-9][0-9]", "+[a-zA-Z]", "+[a-zA-Z]", "+[a-zA-Z]", "+[a-zA-Z]", 
        			"+[0-9]", "+[0-9]", "[a-zA-Z][a-zA-Z]", "+[0-9]", "+[0-9]", "[0-9]", "+[0-9]", "+[0-9]", "+[0-9]",
        			"[1-5]", "[0-9]", "[a-zA-Z][a-zA-Z]", "+[0-9]", "+[0-9]","+[0-9]", "+[0-9]", "+[0-9]", "+[0-9]",
        			"+[0-9]", "+[0-9]", "+[0-9]", "+[0-9]", "+[0-9]", "+[0-9]", "+[0-9]", "+[0-9]", "+[0-9]", "+[0-9]", 
"+[0-9]", "+[a-zA-Z; ]-+[0-9]:+[0-9]", "-+[0-9]:+[0-9]"};
Is how the function starts....
looks wrong to me... nothing in particular... just wrong.
  Reply With Quote
Old 01-12-06, 04:46 PM   #30
Red ones
Member
Mega Poster
 
Red ones's Avatar
 
Join Date: Jul 2003
Location: Hertfordshire
Posts: 1,422
Default

Hardly lucky. 3 weeks out from Xmas means 2 things - late night opening, working every Saturday.
Red ones is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
falling off on ice richbeales Bikes - Talk & Issues 12 16-11-07 09:29 PM
What’s the best way to keep from falling over? zunkus Bikes - Talk & Issues 9 17-06-07 02:02 PM
Eyeball....were you lost or asleep? ASM-Forever Idle Banter 0 16-06-07 12:58 AM
Asleep at the wheel only careless, not dangerous? MiniMatt Bikes - Talk & Issues 5 05-06-07 07:16 PM
Pillions who fall asleep thor Bikes - Talk & Issues 68 05-05-05 09:48 PM


All times are GMT. The time now is 08:43 AM.


Powered by vBulletin® - Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.