The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
Please vote in the Forum Structure Poll. Polling will close at 2PM EST on January 21, 2025.
cmd /v:on /c "set TITLE=Programming Thread & echo !TITLE!"
One thing I will give Actionscript is that with its Date object you can add/subtract integers on any of the separate fields and it will roll the date correctly.
Everything else is shit. Two different and incompatible date parsing methods. No support for parsing ISO date formats. Intrinsic assumption of American format dates. Built in DateFormatters work on the local time and not UTC time fields. etc. etc. e t fucking c.
And then the libraries this project has. Ugggghaaaaaaah. Kludge after kludge after kludge to make up for the fact that they don't use the UTC fields that exist on the Date object. It makes me weep.
I've been running that new font for a few days. I think I like it. Went from 12pt Menlo to 13pt Source Code Pro, it's smaller with an increased line height.
I switched over to Source Code pro at font size 11, and I am really enjoying it. I was running I think Menlo at 12 or 13 too. A smaller but easier to read font is a win win, now I can have four panes of code open at once.
As far of conferences go I feel that they go with the domain I work in. We do so much SBIR work, and getting published increases your ability to get phase 2's and more SBIR's. Plus conferences in my domain are a great place to push your product by presenting a poster, paper or tutorial.
For example the SuperComputing trip costs are mainly covered by ACM since I am co presenting a tutorial.
Date / Time is the WORST. Everyone who just adds 24 hrs is wrong half the year too if you need an exact hour. Daylight savings is a goose to get around. Especially when you have keys on tables and you can't have duplicates in time. Fall back is so crappy (stupid two 1 am's).
Our application has our own time system to keep track of it. Segment 1 = Jan 1, 1900 1 am, 2 = Jan 1, 1900 2 am....etc. A lot like the millisecond unix time but by hour instead. Reading it is awful too. Quick, when is 984935? or how about when a you need a report for the month of January and there is no months, just 984935. We do have functions that go back and forth but it's awful for troubleshooting.
I hate date and times. I hate them because it appears that every other programmer in the universe is apparently completely shit at dealing with them.
No, you cannot just add 24 fucking hours in milliseconds onto this date at midnight to get midnight next day.
Parsing a UTC date string and sticking the values into the local time field on an object is not how you get fucking UTC date.
Aaaaaaaargh.
This is precisely why I am an anal dick head about all date manipulation being in UTC in my apps, and only converting to local for display. Usually using a WPF converter right at the bind site.
i don't use regex often, but when i do, it's to parse some XML
0
GnomeTankWhat the what?Portland, OregonRegistered Userregular
Why would anyone do this with libraries like TinyXML out there? Or if you're in a language like Java or C#, there are entire namespaces/packages dedicated to simple and DOM based XML parsing.
Oh hey is that regex? Looks like you're trying to parse XML.
Nope, I'm pulling a P-VTEC code out of a National Weather Service advisory and then extracting a couple of specific values from that which allow me to uniquely identify the advisory... which should actually be made available elsewhere from the API I'm using, but it's not, so this is the solution for now. It's just plain old strings and blobs of text, though. No XML, no HTML, just plain old text.
I see what made you think xml. That's actually python awesomeness to name the groups I've got marked.
Welcome to the world of Java :rotate: Let's begin caring for your inputs.
>Fuck yes.
Each input has a simple format of markup. It is very important that you parse this markup correctly.
My god. What have you done. You have tried to use regex.
Look what your careless hands have wrought.
With that regex, these ten nodes cannot be decoded.
Each moment this unnatural beast lives is like a thousand years of misery.
Look in its Document Type Definition. It longs for death.
Select the pistol, and then, select your XML.
>No. I... I don't want to!
Select the pistol, and then, select your XML.
Dehumanized on
+9
Monkey Ball WarriorA collection of mediocre hatsSeattle, WARegistered Userregular
I use Consolas in Sublime Text, just like visual studio. I also use the same theme (Son of Obsidian for VS and Grandson of Obsidian for ST2).
Downloaded grandson of obsidian, and I approve! It's pretty similar to Blackboard, although it seems to change less things to a different color. Like if I have a function definition
void Foo::Bar() {
Blackboard would make Foo::Bar orange, but GSoO leaves it white.
However the overall color scheme is easier on tired eyes and it still does the important things like pointing out string literals or important keywords like "new". So I think I'll stick with it for a while.
"I resent the entire notion of a body as an ante and then raise you a generalized dissatisfaction with physicality itself" -- Tycho
0
GnomeTankWhat the what?Portland, OregonRegistered Userregular
One of the main reasons Obsidian is easy on the eyes is the background color. You'll notice it's not black, but a very dark gray/brown.
Oh hey is that regex? Looks like you're trying to parse XML.
Nope, I'm pulling a P-VTEC code out of a National Weather Service advisory and then extracting a couple of specific values from that which allow me to uniquely identify the advisory... which should actually be made available elsewhere from the API I'm using, but it's not, so this is the solution for now. It's just plain old strings and blobs of text, though. No XML, no HTML, just plain old text.
I see what made you think xml. That's actually python awesomeness to name the groups I've got marked.
You should really be using the re.VERBOSE flag and splitting that crap up (commenting as needed).
Barrakketh on
Rollers are red, chargers are blue....omae wa mou shindeiru
0
Monkey Ball WarriorA collection of mediocre hatsSeattle, WARegistered Userregular
One of the main reasons Obsidian is easy on the eyes is the background color. You'll notice it's not black, but a very dark gray/brown.
Well it only really became a thing now that I'm actually looking at the text editor for ~8hrs a day, as opposed to school where I'd code for 1-2 hrs and play TF2 for an hour and go back.
"I resent the entire notion of a body as an ante and then raise you a generalized dissatisfaction with physicality itself" -- Tycho
Oh hey is that regex? Looks like you're trying to parse XML.
Nope, I'm pulling a P-VTEC code out of a National Weather Service advisory and then extracting a couple of specific values from that which allow me to uniquely identify the advisory... which should actually be made available elsewhere from the API I'm using, but it's not, so this is the solution for now. It's just plain old strings and blobs of text, though. No XML, no HTML, just plain old text.
I see what made you think xml. That's actually python awesomeness to name the groups I've got marked.
You should really be using the re.VERBOSE flag and splitting that crap up (commenting as needed).
Oh, nice. I'll definitely use that to break this up a bit. I've never actually read the re docs closely since I'm comfortable with regex and so don't usually need to refer to them and rarely need to use regex these days anyway.
So I'm going to teach myself rails, but I need some kind of project to work on to do it. What would be a good thing to build that would teach me everything rails can do?
Posts
Everything else is shit. Two different and incompatible date parsing methods. No support for parsing ISO date formats. Intrinsic assumption of American format dates. Built in DateFormatters work on the local time and not UTC time fields. etc. etc. e t fucking c.
And then the libraries this project has. Ugggghaaaaaaah. Kludge after kludge after kludge to make up for the fact that they don't use the UTC fields that exist on the Date object. It makes me weep.
I made a game, it has penguins in it. It's pay what you like on Gumroad.
Currently Ebaying Nothing at all but I might do in the future.
I switched over to Source Code pro at font size 11, and I am really enjoying it. I was running I think Menlo at 12 or 13 too. A smaller but easier to read font is a win win, now I can have four panes of code open at once.
As far of conferences go I feel that they go with the domain I work in. We do so much SBIR work, and getting published increases your ability to get phase 2's and more SBIR's. Plus conferences in my domain are a great place to push your product by presenting a poster, paper or tutorial.
For example the SuperComputing trip costs are mainly covered by ACM since I am co presenting a tutorial.
Our application has our own time system to keep track of it. Segment 1 = Jan 1, 1900 1 am, 2 = Jan 1, 1900 2 am....etc. A lot like the millisecond unix time but by hour instead. Reading it is awful too. Quick, when is 984935? or how about when a you need a report for the month of January and there is no months, just 984935. We do have functions that go back and forth but it's awful for troubleshooting.
I made a game, it has penguins in it. It's pay what you like on Gumroad.
Currently Ebaying Nothing at all but I might do in the future.
This is precisely why I am an anal dick head about all date manipulation being in UTC in my apps, and only converting to local for display. Usually using a WPF converter right at the bind site.
re.compile(r'\/O\.NEW\.(?P<office_id>[A-Z]{4})\.[A-Z]{2}\.[A-Z]{1}\.(?P<etn>\d{4})\.\d{6}T\d{4}Z-\d{6}T\d{4}Z\/')
When I read this I pictured bowen popping up in an adjacent cubicle, MS Clippy style.
Nope, I'm pulling a P-VTEC code out of a National Weather Service advisory and then extracting a couple of specific values from that which allow me to uniquely identify the advisory... which should actually be made available elsewhere from the API I'm using, but it's not, so this is the solution for now. It's just plain old strings and blobs of text, though. No XML, no HTML, just plain old text.
I see what made you think xml. That's actually python awesomeness to name the groups I've got marked.
>Fuck yes.
Each input has a simple format of markup. It is very important that you parse this markup correctly.
My god. What have you done. You have tried to use regex.
Look what your careless hands have wrought.
With that regex, these ten nodes cannot be decoded.
Each moment this unnatural beast lives is like a thousand years of misery.
Look in its Document Type Definition. It longs for death.
Select the pistol, and then, select your XML.
>No. I... I don't want to!
Select the pistol, and then, select your XML.
Downloaded grandson of obsidian, and I approve! It's pretty similar to Blackboard, although it seems to change less things to a different color. Like if I have a function definition
Blackboard would make Foo::Bar orange, but GSoO leaves it white.
However the overall color scheme is easier on tired eyes and it still does the important things like pointing out string literals or important keywords like "new". So I think I'll stick with it for a while.
Then I can write a theme in LESS/SASS which is all kinds of .
Well it only really became a thing now that I'm actually looking at the text editor for ~8hrs a day, as opposed to school where I'd code for 1-2 hrs and play TF2 for an hour and go back.
To each their own.
...and that's why I was trying to parse CSS from an empty string.
I've seen way too much of that, especially in C# code.