|
hobbesmaster posted:give us a sample of questions... were they like "why are p-langs pieces of poo poo?" oh man this was the worst snipe, content i got downvoted to hell on there for saying that oracle join syntax is a POS
|
# ? Aug 31, 2016 18:03 |
|
|
# ? May 10, 2024 04:59 |
|
why would you ever post on so
|
# ? Aug 31, 2016 18:19 |
|
Bloody posted:why would you ever post on so sa is blocked at work
|
# ? Aug 31, 2016 18:23 |
|
Bloody posted:why would you ever post on so gotta get that sweet posting high.
|
# ? Aug 31, 2016 18:26 |
|
I use SO as a passive-aggressive outlet for my hatred of most programming things "why does X behave in this confusing, dumb way? oh, because it's stupid and bad, okay"
|
# ? Aug 31, 2016 18:46 |
|
It turns out drawing a horizontal line of pixels in a 1bpp graphics mode is faster if you do it in groups of 1 byte and then figure out how many are left over at the end instead of doing it one pixel at a time
|
# ? Aug 31, 2016 18:59 |
|
hi, im putting things in a text file for humans to read it sure would be nice if i could color the text, there's some common strings that would be very nice to highlight is there a way to spit out a .rtf or something programmatically that's not as awful as dealing with console color codes?
|
# ? Aug 31, 2016 19:02 |
|
JawnV6 posted:hi, im putting things in a text file for humans to read Have you heard of this new technology that is gaining popularity. They call it a markup language but I think you should really see if html can do this
|
# ? Aug 31, 2016 19:04 |
|
VikingofRock posted:Repeat after me: We don't provide healthcare, we just match patients with [unlicensed] doctors!
|
# ? Aug 31, 2016 19:10 |
|
`sudo ls` `sudo cp "$(pwd)/Manual.pdf" ~/docs/` now i can sftp it out and repeat for 10 files, because stat is blocked so can't use * kill me now please
|
# ? Aug 31, 2016 19:13 |
|
JawnV6 posted:hi, im putting things in a text file for humans to read i guarnatee you interacting with rtf programmaticaly is 100x worse than any otehr soution you can think of
|
# ? Aug 31, 2016 19:17 |
|
Luigi Thirty posted:It turns out drawing a horizontal line of pixels in a 1bpp graphics mode is faster if you do it in groups of 1 byte and then figure out how many are left over at the end instead of doing it one pixel at a time do you have to break it down to bytes? couldn't you write 32 bits in one operation and then do any cleanup at the end if the start/end points aren't on 4-byte boundaries?
|
# ? Aug 31, 2016 19:19 |
|
JawnV6 posted:hi, im putting things in a text file for humans to read html
|
# ? Aug 31, 2016 19:33 |
|
Bloody posted:html comedy answer: xml + xslt
|
# ? Aug 31, 2016 19:34 |
|
Sweevo posted:do you have to break it down to bytes? couldn't you write 32 bits in one operation and then do any cleanup at the end if the start/end points aren't on 4-byte boundaries? that's Phase II
|
# ? Aug 31, 2016 19:36 |
|
JawnV6 posted:hi, im putting things in a text file for humans to read IIRC MS Word has an XML format you can write. I have done this for Excel, it's idiosyncratic but not the worst
|
# ? Aug 31, 2016 20:01 |
|
LordSaturn posted:IIRC MS Word has an XML format you can write. I have done this for Excel, it's idiosyncratic but not the worst excel's schema is way more sane than word's
|
# ? Aug 31, 2016 20:18 |
|
St Evan Echoes posted:excel's schema is way more sane than word's yeah. i had to try to come up with a template system to dump our bespoke internal document structure to word xml and it is not fun. especially if you need to do anything with comments or track changes. all of msdn's examples are broken out of the box.
|
# ? Aug 31, 2016 20:21 |
|
also there are like 100 libraries out there created to provide a sane interface to word's openxml, and they all implemented like 3 features and then gave up
|
# ? Aug 31, 2016 20:23 |
|
made a word doc with three words, one of them green, saved it. you're right, this is trash, use HTML
|
# ? Aug 31, 2016 21:01 |
|
St Evan Echoes posted:also there are like 100 libraries out there created to provide a sane interface to word's openxml, and they all implemented like 3 features and then gave up my favorite is the one to just remove tracked changes from a document: https://blogs.msdn.microsoft.com/er...ssing-document/ im just gonna post the whole source code. why is this not just a builtin function in the office sdk? gently caress you thats why: C# code:
|
# ? Aug 31, 2016 21:02 |
|
Well, there's always the Microsoft.Office.Interop libraries. It's been like 10 years since I had to use those, but I remember them being fairly usable. No idea what state they are in now.
|
# ? Aug 31, 2016 21:05 |
|
LeftistMuslimObama posted:i guarnatee you interacting with rtf programmaticaly is 100x worse than any otehr soution you can think of should've mentioned that the human is probably going to edit it, static html in a browser doesn't work
|
# ? Aug 31, 2016 21:09 |
|
make your program write some easy format like html and then convert with pandoc from html to rtf
|
# ? Aug 31, 2016 21:16 |
|
i want to make my own bespoke data interchange format that uses ascii control codes 28-31: file separator, group separator, record separator and unit separator. if the data contains any of those codes, they will be escaped with 27, escape.
|
# ? Aug 31, 2016 21:26 |
Wheany posted:i want to make my own bespoke data interchange format that uses ascii control codes 28-31: file separator, group separator, record separator and unit separator. if the data contains any of those codes, they will be escaped with 27, escape. I like it.
|
|
# ? Aug 31, 2016 21:50 |
|
Wheany posted:i want to make my own bespoke data interchange format that uses ascii control codes 28-31: file separator, group separator, record separator and unit separator. if the data contains any of those codes, they will be escaped with 27, escape. I'd be tempted to use this on my production code.
|
# ? Aug 31, 2016 22:05 |
|
Finster Dexter posted:Well, there's always the Microsoft.Office.Interop libraries. It's been like 10 years since I had to use those, but I remember them being fairly usable. No idea what state they are in now. Then you've got to run a word instance though which is even worse than dealing with a massive xml spec jks you're going to be doing it anyway once your boss gets his hands on your generated word reports
|
# ? Aug 31, 2016 22:20 |
|
qntm posted:I use SO as a passive-aggressive outlet for my hatred of most programming things loads of the r posters are really defensive about the language and tell newbies they are just doing stuff in the wrong way. I often want to comfort people that it's not them being stupid it's r.
|
# ? Aug 31, 2016 22:21 |
|
quiggy posted:ive hosed about with this in both visual studio and eclipse and couldn't get either to work viemu is the only one worth poo poo, though ideavim is half-decent in pycharm. i have not only paid for viemu, i have renewed my license
|
# ? Aug 31, 2016 22:29 |
|
Wheany posted:i want to make my own bespoke data interchange format that uses ascii control codes 28-31: file separator, group separator, record separator and unit separator. if the data contains any of those codes, they will be escaped with 27, escape. please also provide an official spec for converting to/from ebcdic machines ty
|
# ? Aug 31, 2016 22:39 |
|
pointsofdata posted:loads of the r posters are really defensive about the language and tell newbies they are just doing stuff in the wrong way. I often want to comfort people that it's not them being stupid it's r.
|
# ? Aug 31, 2016 22:50 |
|
i'm happy to see python ascendant as the new language of numerical computing, even if it is probably going to be python 2 for ever and loving ever it's still a poo poo of a lot better than r and perl you can gently caress up python programming, sure, it's just that you have to put your mind to it slightly more than you would with other langs.
|
# ? Aug 31, 2016 23:12 |
|
python sucks
|
# ? Aug 31, 2016 23:16 |
|
Bloody posted:python sucks python sucks less than most of the things it's displaced
|
# ? Aug 31, 2016 23:21 |
|
yes, but that does not mean it does not suck
|
# ? Aug 31, 2016 23:26 |
|
I've been writing python for the past few days and it's really annoying even compared to javascript IMO
|
# ? Aug 31, 2016 23:30 |
|
at least there's PEP-484. I'm going back and adding types because i don't understand my own code anymore
|
# ? Aug 31, 2016 23:31 |
|
JawnV6 posted:hi, im putting things in a text file for humans to read use the openxml sdk to create word docs.
|
# ? Aug 31, 2016 23:31 |
|
|
# ? May 10, 2024 04:59 |
|
St Evan Echoes posted:also there are like 100 libraries out there created to provide a sane interface to word's openxml, and they all implemented like 3 features and then gave up the official Microsoft one works fine
|
# ? Aug 31, 2016 23:34 |