|
artisanal hand crafted xml
|
# ? May 28, 2013 18:14 |
|
|
# ? May 11, 2024 16:24 |
|
dur posted:i'm a bad programmer. this is how i'm making an xml file in python my boss did this. he then fixed it by writing another program to read the broken html and try and escape the text he'd forgotten if you can't be arsed to find a library to write xml, at least escape the goddam values you put in i.e code:
|
# ? May 28, 2013 18:37 |
|
just use a lang with xml literals and hail satan
|
# ? May 28, 2013 18:40 |
|
just use jaxb to serialize the objects directly.
|
# ? May 28, 2013 18:42 |
|
tef posted:my boss did this. he then fixed it by writing another program to read the broken html and try and escape the text he'd forgotten XML code:
quote:if you can't be arsed to find a library to write xml, at least escape the goddam values you put in i.e
|
# ? May 28, 2013 19:07 |
|
just found out there's a team somewhere around here that uses erlang. yet i can't get free of this ancient stinking pile of vbscript
|
# ? May 28, 2013 19:17 |
|
use wasabi
|
# ? May 28, 2013 19:25 |
|
tef posted:use wasabi i just looked up what that is. holy poo poo
|
# ? May 28, 2013 20:52 |
|
i just made a thing that exports excel spreadsheets by creating an excel template where I put !!H1!! !!H2!!...etc in every cell and then doing a sed in sharedStrings.xml for those keywords. way easier than figuring out the xlsx formatting poo poo
|
# ? May 28, 2013 20:56 |
|
Share Bear posted:i just looked up what that is. holy poo poo quote:No single programming language exists that does all the things that typically require four. You need a server language (In FB5 this was ASP and PHP), a client language (probably JS), a content language (HTML), and a formatting language (CSS). 10 paragraphs of a lovely hacked-together cross-lingual PHP/ASP code generation system, and then this wonderful
|
# ? May 28, 2013 21:10 |
|
protocoffeescript
|
# ? May 28, 2013 21:16 |
|
dur posted:i'm a bad programmer. this is how i'm making an xml file in python what you actually are is a really really bad programmer, im a regular bad programmer and it only took me like five minutes to figure out lxml
|
# ? May 28, 2013 22:06 |
|
i had to generate something with a custom namespace once and i just used a template engine because it would have required actually reading the documentation to do it in lxml, but that one case was acceptable because i checked on github and found a real programmer who did it too.
|
# ? May 28, 2013 22:26 |
|
Shaggar posted:just use jaxb to serialize the objects directly. does jaxb do like jackson where you give it pojos w/o annotations or anything and it can figure out the right thing to do
|
# ? May 28, 2013 23:39 |
|
actually idk. I know cxf can automatically serialize stuff w/out annotations but idk if it adds them itself before passing it off to jaxb or if jaxb is smart enough to figure it out w/out them
|
# ? May 28, 2013 23:42 |
|
just say no to xml
|
# ? May 29, 2013 07:35 |
|
just use json
|
# ? May 29, 2013 07:42 |
|
NOTinuyasha posted:what you actually are is a really really bad programmer, im a regular bad programmer and it only took me like five minutes to figure out lxml quote:I don't think I've ever seen you post something constructive or helpful. User loses posting privileges for 3 days. Louisgod angerbot
|
# ? May 29, 2013 07:52 |
|
every time i get probated (a lot), i secretly feel kinda bad about it (once or twice ifelt really bad because i definitely deserved it). if anyone ever commented on or cared about it i think it would suck a lot more than i'd ever admit
|
# ? May 29, 2013 08:30 |
|
dur posted:i'm a bad programmer. this is how i'm making an xml file in python had to do something like that to call a WCF service from a VBA script, condolences btw members in a SOAP object better be in alphabetical order so have fun reordering your text strings every time something changes
|
# ? May 29, 2013 08:31 |
|
chumpchous posted:every time i get probated (a lot), i secretly feel kinda bad about it (once or twice ifelt really bad because i definitely deserved it). if anyone ever commented on or cared about it i think it would suck a lot more than i'd ever admit you were pretty much asking for it with the maggots in noses videos you linked to.
|
# ? May 29, 2013 09:00 |
|
chumpchous posted:every time i get probated (a lot), i secretly feel kinda bad about it (once or twice ifelt really bad because i definitely deserved it). if anyone ever commented on or cared about it i think it would suck a lot more than i'd ever admit i feel really bad when i get probated; i always send an apology pm to the mod that had to deal with me
|
# ? May 29, 2013 10:38 |
|
can anybody recommend a good primer/tutorial/reference/explanation of dot-net web services using c# and visual studio? i'm about to try to assemble a web service (or two; not sure if they should be two separate things), and i'm hoping i can find a guide to common approaches to use and common traps to look out for thanks much
|
# ? May 29, 2013 18:05 |
|
just create a new project in visual studio and go for it. it's literally that easy
|
# ? May 29, 2013 18:07 |
|
if you're using c# for web services you've already sprung the trap
|
# ? May 29, 2013 18:12 |
|
C# is the best language sorry for your lots
|
# ? May 29, 2013 18:15 |
|
uG posted:if you're using c# for web services you've already sprung the trap it's what they all use around here; i've tried multiple times to get other things into the ecosystem, but it's time to just give up and go with the flow
|
# ? May 29, 2013 18:17 |
|
WCF is pretty easy to use. The default service created by visual studio when you create a wcf service application is a basic example that's kind of useful. As with java and CXF you define the service using an interface and model objects and then you tie an implementation to the interface at runtime. The easiest way to get started is just to modify the existing service interface (IService) and play around w/ it and the implementation.
|
# ? May 29, 2013 18:17 |
|
CamH posted:just create a new project in visual studio and go for it. it's literally that easy yeah its literally this
|
# ? May 29, 2013 18:18 |
|
CamH posted:C# is the best language sorry for your lots also this
|
# ? May 29, 2013 18:18 |
|
Shaggar posted:yeah its literally this it's (another) personality flaw of mine that i'm usually too terrified to do anything without first doing research and trying to learn about it and so on and so forth
|
# ? May 29, 2013 18:19 |
|
just embed your fav p-lang in your project and script ur way to the bank
|
# ? May 29, 2013 18:23 |
|
https://github.com/mongodb/mongo-java-driver/blob/master/src/main/com/mongodb/ConnectionStatus.java#L213
|
# ? May 29, 2013 21:28 |
|
shaggar and I agree on something. lets make out in your Taurus after work, shaggar
|
# ? May 29, 2013 21:29 |
|
it has a spacious back seat that will be perfect
|
# ? May 29, 2013 21:30 |
|
https://github.com/dcramer/mangodb
|
# ? May 29, 2013 21:31 |
|
tef posted:https://github.com/mongodb/mongo-java-driver/blob/master/src/main/com/mongodb/ConnectionStatus.java#L213 anyone using mongo deserves what they get
|
# ? May 29, 2013 21:31 |
|
every few months a recruiter from 10gen sends me a linkedin message about all the exciting opportunities to work on mongodb and i have a good chuckle
|
# ? May 29, 2013 21:34 |
|
tef posted:https://github.com/mongodb/mongo-java-driver/blob/master/src/main/com/mongodb/ConnectionStatus.java#L213
|
# ? May 29, 2013 21:35 |
|
|
# ? May 11, 2024 16:24 |
|
tef posted:https://github.com/mongodb/mongo-java-driver/blob/master/src/main/com/mongodb/ConnectionStatus.java#L213
|
# ? May 29, 2013 21:36 |