|
Gazpacho posted:i mean IRC as a protocol can probably be adapted to the enterprise but only if you put a graphical client in front of it that will autoconnect to the right server and hide all of its legacy horror please dont doxx me
|
# ? Nov 9, 2015 20:25 |
|
|
# ? Jun 12, 2024 09:45 |
|
is this programming? our sql database had mojibake in it, so i ran s/ä/ä/g s/ö/ö/g s/Ã¥/å/g s/\xc3\x82\xc2\x84/ä/g s/\xc3\x82\xc2\x8e/Ä/g s/\xc3\x82\xc2\x94/ö/g s/\xc3\x83\xc2\x84/Ä/g s/\xc3\x83\xc2\x96/Ö/g s/\xc3\x83\xc2\xa9/é/g s/\xc3\x83\xc2\x85/Å/g on a dump and that seems to have fixed it.
|
# ? Nov 9, 2015 20:36 |
|
Barnyard Protein posted:i shouldn't have said shell shocked, that wording implies that there is something wrong with them. they are the minority that acts viscerally upset when a part comes out hilariously broken, everyone else is like "oh well, lol" coming back to this after a couple weeks fish don't know they're in water. intc eng doesn't know they're in process. they become vaguely aware of it when it frustrates some quick change, but in general there are classes of mistakes that they don't hit because of it like that atlantic article talking about programmers should back off the term "engineer", sw "engineering" instead of development is going to look a lot like intc's process
|
# ? Nov 9, 2015 21:09 |
|
Wheany posted:is this programming? our sql database had mojibake in it, so i ran i'm triggering
|
# ? Nov 9, 2015 22:41 |
|
Blinkz0rz posted:i'm triggering i hope you mean stored procuring, friend
|
# ? Nov 9, 2015 22:42 |
|
sprocking, natch
|
# ? Nov 9, 2015 22:47 |
|
Blotto Skorzany posted:what? you don't need a bouncer or any of that poo poo. let your irc client live in a screen/tmux/whatever session in your vps, boom done This is a fake post, right ? RIGHT ?
|
# ? Nov 9, 2015 23:11 |
|
yeah you can run tmux on a vps but any ops person can just log in as root and attach to their session and pretend to be them
|
# ? Nov 9, 2015 23:14 |
|
Wheany posted:is this programming? our sql database had mojibake in it, so i ran are you a mysql dba
|
# ? Nov 9, 2015 23:52 |
|
Wheany posted:is this programming? our sql database had mojibake in it, so i ran utf-8 read as latin-1 >>> "ä".encode('utf-8').decode('latin-1') 'ä' >>> "ö".encode('utf-8').decode('latin-1') 'ö' >>> "å".encode('utf-8').decode('latin-1') 'Ã¥' quote:s/\xc3\x82\xc2\x84/ä/g i think these have been utf-8 encoded twice. >>> u"Ö".encode('utf-8') '\xc3\x96' >>> "\xc3\x83\xc2\x96".decode('utf-8') u'\xc3\x96' but uh i think you got some of them wrong. >>> u"Ä".encode('utf-8') '\xc3\x84' >>> u"ä".encode('utf-8') '\xc3\xa4' >>> "\xc3\x82\xc2\x84".decode('utf-8') u'\xc2\x84' >>> the first line is Ä not ä enjoy your data cleaning
|
# ? Nov 10, 2015 01:17 |
|
You get used to it, though. Your brain does the translating. I don't even see the binary. All I see is utf-8, latin-1, cp437 . Hey uh, you want a drink?
|
# ? Nov 10, 2015 01:21 |
|
s/\xc3\x82\xc2\x84/Ä/g s/\xc3\x82\xc2\x8e/Î/g s/\xc3\x82\xc2\x94/Ô/g s/\xc3\x83\xc2\x84/Ä/g # hey this is the same as 1st s/\xc3\x83\xc2\x96/Ö/g # this is right s/\xc3\x83\xc2\xa9/é/g # this too s/\xc3\x83\xc2\x85/Å/g # ok 3 out of 7 is not bad tbh
|
# ? Nov 10, 2015 01:25 |
|
there is a whole part of my brain that can handle mojibake and i will never learn something useful. never work in web scraping
|
# ? Nov 10, 2015 01:27 |
|
Wheany posted:is this programming? our sql database had mojibake in it, so i ran the nightmares of double encoded utf-8 characters due to incompetent developers.
|
# ? Nov 10, 2015 03:02 |
|
my favorite was when sending a request with any encoded unicode, the server would return 200 and a blank json.
|
# ? Nov 10, 2015 03:06 |
|
tef posted:there is a whole part of my brain that can handle mojibake and i will never learn something useful. never work in web scraping understanding text encoding is really sweet because you can solve trivial problems for people and they'll look at you like you're some kind of wizard
|
# ? Nov 10, 2015 03:41 |
|
Ã¥¥¥¥¥¥ ʃɯɐo
|
# ? Nov 10, 2015 03:48 |
|
Mr Dog posted:Ã¥¥¥¥¥¥ ʃɯɐo
|
# ? Nov 10, 2015 03:53 |
|
Mr Dog posted:Ã¥¥¥¥¥¥ ʃɯɐo
|
# ? Nov 10, 2015 03:54 |
|
æýýýý łmåø
|
# ? Nov 10, 2015 03:55 |
|
woe unto anyone who thinks that URL encoding is trivial
|
# ? Nov 10, 2015 03:58 |
|
it is because you google 'best url encoding library for language' and then never think about it again
|
# ? Nov 10, 2015 03:59 |
|
MALE SHOEGAZE posted:it is because you google 'best url encoding library for language' and then never think about it again
|
# ? Nov 10, 2015 04:00 |
|
there are some sets of programming problems that i could not be less interested in and string encoding is one of them. i just don't care. i will follow best practices and defer to people who do care it when i hit weird cases DONT THREAD ON ME fucked around with this message at 04:08 on Nov 10, 2015 |
# ? Nov 10, 2015 04:06 |
|
MALE SHOEGAZE posted:it is because you google 'best url encoding library for language' and then never think about it again haha whoops the implementation of IMPORTANT_WEB_SERVICE chokes when you urlencode parameters like ' ' to '%20' even though thats the spec, time to google 'technically poo poo but extendable for my poo poo use case'
|
# ? Nov 10, 2015 04:06 |
|
all these red hats are confusing me!!!!
|
# ? Nov 10, 2015 04:08 |
|
actually that's as likely to get you in the worst possible situation where your app's data is broken because you're using a library implementation (such as JDK URLEncoder/Decoder*) that is broken e.g. the time at amazon when i had a german bitching in my inbox for a month because the company's homebrewed "unicode" "library" choked on umlauts, until finally I copied a whole code path out of the library into the app and replaced non-ASCII with dots. *they implement form data encoding not URL encoding. lmao if you think these are the same
|
# ? Nov 10, 2015 04:09 |
|
triple sulk posted:all these red hats are confusing me!!!! i still have the red fedora red hat gave me when i joined the company its sitting on top of my fridge
|
# ? Nov 10, 2015 04:21 |
|
Gazpacho posted:*they implement form data encoding not URL encoding. lmao if you think these are the same but its called x-www-form-urlencoded
|
# ? Nov 10, 2015 04:21 |
|
curl -v -H "Content-type: application/x-gon-give-it-to-ya" https://somebody.else.finish.this.joke.please.com/
|
# ? Nov 10, 2015 04:30 |
|
|
# ? Nov 10, 2015 04:48 |
|
Thermopyle posted:sometimes, for some subjects and some environments, threaded conversations are good. did you know? somethingawful.com llc has threaded conversations
|
# ? Nov 10, 2015 05:49 |
|
tef posted:s/\xc3\x82\xc2\x84/Ä/g well, it seems to have fixed most of them at least, it is our crm db and our sales people wanted it fixed so that they would not add Heikki Hämäläinen to the database twice because it was already there as Heikki Hämäläinen if something is still hosed up, i can do it again. basically i just grepped the file for à and tried to fix anything that came up. the hard part was figuring out those hex escapes in the first place. and yeah, some of them might be wrong/duplicated because i was doing it pretty late and while sipping wine.
|
# ? Nov 10, 2015 07:33 |
|
FamDav posted:did you know? somethingawful.com llc has threaded conversations those internal company chat services should have like a genchat for each dept/team/whatever, and then an admin/team lead (or everyone, depending how well behaved they are) can chuck sections of the genchat into their own threads when they become too noisy or genchat does best of botth worlds!!
|
# ? Nov 10, 2015 10:11 |
|
Wheany posted:well, it seems to have fixed most of them at least, it is our crm db and our sales people wanted it fixed so that they would not add Heikki Hämäläinen to the database twice because it was already there as Heikki Hämäläinen doubly encoded utf-8? i got curious about that and found this on stack overflow. i've never used ruby before and have no idea if this would work, but maybe something like this can help in the future and you can avoid find-and-replacing like a caveman. hth
|
# ? Nov 10, 2015 14:07 |
|
Mr Dog posted:Ã¥¥¥¥¥¥ ʃɯɐo
|
# ? Nov 10, 2015 14:17 |
|
Mr Dog posted:Ã¥¥¥¥¥¥ ʃɯɐo this is gonna be my new title text if I ever get a cooler avatar
|
# ? Nov 10, 2015 14:20 |
|
why is string janitoring still a thing ityool 2015
|
# ? Nov 10, 2015 14:48 |
|
oh lemme guess it stems entirely from people using garbage languages/libs/tools/platforms
|
# ? Nov 10, 2015 14:48 |
|
|
# ? Jun 12, 2024 09:45 |
|
no language is without encoding sin, not one
|
# ? Nov 10, 2015 16:31 |