« first day (3302 days earlier)      last day (1871 days later) » 

19:01
guess I'll wait to get a desktop
lol
user11867329
o/
user11867329
How do I properly regex(or not) replace my " in a text file to not break CSV format
user11867329
like 34.8"
not sure what you mean by csv format
or what you're trying to replace with
or generally what you want to do
19:12
why would you use regex to replace a single unreserved character in a CSV
foreach(line in file){ line.replace('"', '<your character'); newfile.append(line);} write(newfile);
lol yeah if it's a text file you can just find all and replace all
someone kept referring to the hat character as a caret and it took me like 5 minutes to realize they weren't saying carrot
^ <- caret
Am I retarded for that
yeah I call that a caret
never heard hat
I know it as circumflex as well
I've definitely heard/seen it as caret but not-so-much IRL
google and wiki agree bb, you're retarded
> The caret /ˈkærɪt/ is an inverted V-shaped grapheme. It is the spacing character ^ in ASCII (at code point 5Ehex) and other character sets that may also be called a hat, control, uparrow, or, less frequently, chevron, xor sign, 'to the power of' (exponent), pointer (in Pascal),[1] or wedge. Officially, this character is referred to as circumflex accent in both ASCII[2] and Unicode[3] terminology
That's right from wiki lol
it says hat right in your picture!!
!!!!!!!!!!!1juan
19:22
Unknown command '!!!!!!!!!!!1juan'
!!!!*injected*
Unknown command '!!!!*injected*'
damn it
! drop database
19:23
!!!! injected
Unknown command '! drop database'
you're retarded because you didn't know it was caret when that's the most common name
I knew it was a caret I just thought the person was saying carrot
making my point
!! n injected
19:24
Unknown command '!! n <i>injected</i>'
whatever MAN
well sorta
I wonder if Tim fixed his date parsing hard crash
I got a fourteen carrot necklace for eating carets
resists the urge to write !remindme 999999999 months
you mean eating karats
19:26
It's crazy, you would think now that @TimCastelijns isn't an RO he would work on his bot
With all that free time kicking around
The fineness of a precious metal object (coin, bar, jewelry, etc.) represents the weight of fine metal therein, in proportion to the total weight which includes alloying base metals and any impurities. Alloy metals are added to increase hardness and durability of coins and jewelry, alter colors, decrease the cost per weight, or avoid the cost of high-purity refinement. For example, copper is added to the precious metal silver to make a more durable alloy for use in coins, housewares and jewelry. Coin silver, which was used for making silver coins in the past, contains 90% silver and 10% copper...
no I meant ^
what are you, dumb
Hold up look at this ice that I'm carryin' got so many carat's like I'm a fuckin' vegetarian! - lil wayne
karat*
lmao
No Carat is right
because he's talking about "ice" aka jewelry
carat is mass, karat is purity
19:28
karat is purity of gold tho
ah yeah
fuck too many karrots
but also TIL
never knew there was Karat vs Carat
lmao I had to lookup "karrot" just to make sure it wasn't a thing
I did too
19:45
omg hahahah
user11867329
@ballBreaker Do you know how to escape using double quoted words and sentences in csv?
user11867329
Like so "something" doesn't break my existing ","somthing","somethingelse", format
I don't think you understand what CSV format is
user11867329
eg: "something","somethingelse","the "thing that breaks" my csv",
why are quotations breaking a comma delimited file
19:49
you don't use quotes and you escape the commas before putting them in the csv if you must have commas
user11867329
Ok, but there's quotes
there isn't in a CSV
what you have is something not a CSV
user11867329
Can I not replace them with a special character like /wtv
user11867329
Ok so, quotes are impossible in csv?
no quotes are irrelevant to a CSV
user11867329
19:50
I'm doubtful about that.
the comma is the delimiter
if you have commas in your input you escape the commas
what you're doing is using quotes in place of the commas
user11867329
@DaveS Yeah you might want to investigate that a bit further
so why have the commas at all
user11867329
I'm not doing that
I think you need to investigate CSV's a bit further bud
user11867329
19:51
"There's no quotes in csv"
I never said that
user11867329
Bookmark that pls
are you high?
user11867329
You said quotes are irrelevant
yes
quotes don't matter in a CSV
user11867329
19:51
but they identify start and end of comma "cell"
Quotation Separated Values, Dave. C'mon, get your shit together
Dave irl right now
yeah I'm very confused
@OakDev no they don't
19:52
comma separated values
user11867329
as in "Test","test2","test3, 76", ...
that's WRONG
3
Test,test2,test3
user11867329
Ok, how do you use commas inside a CSV without breaking?
19:52
comma clap separated clap values clap
user11867329
say one of your value is the red, friggin, dog
the quotes are like any character from the alphabet, they're irrelevant if your separator is a comma
2 mins ago, by Dave S
if you have commas in your input you escape the commas
user11867329
How would you escape commas
Prison break
19:53
213
Q: Is there a way to include commas in CSV columns without breaking the formatting?

buleyI've got a two column CSV with a name and a number. Some people's name use commas, for example Joe Blow, CFA. This comma breaks the CSV format, since it's interpreted as a new column. I've read up and the most common prescription seems to be replacing that character, or replacing the delimiter, ...

user11867329
Omg, could they be saying that you escape it USING QUOTES?
user11867329
Omg! Who KNEW!
Use 2 commas
csv is a terrible data format, unfortunately it's widely used
19:54
ProTip: Being snarky to people who are trying to help you results in people not helping you in the future
user11867329
@DaveS Clown.
lol noob
Oak, you aren't using the quotes to escape commas, though
user11867329
"QuOtEs ArE IRreLeVanT In CSv!"
I'm so confused, if you make a .txt file
"this", "works", "so "does" this
user11867329
19:55
"ballBreaker: YEAH"
and open it as a CSV
user11867329
buncha.
it works
user11867329
clowns.
you are soooooo fucking dumb i can't even
user11867329
19:55
Dave I'm starting to like you a little
> In computing and telecommunication, an escape character is a character which invokes an alternative interpretation on subsequent characters in a character sequence. An escape character is a particular case of metacharacters. Generally, the judgment of whether something is an escape character or not depends on context.
nice cM
thanks
user11867329
19:57
@DaveS God I hope you're not a teacher.
I hope you're still a student
rimshot
How is this confusing
@DaveS hahaha
he has commas in his input and instead of escaping the commas he's using quotes as a delimiter, but he also has quotes in his input and he's too thick skulled to think, maybe then quotes aren't a good delimiter and he should escape things
19:59
ohhhh
Man you're really good at reading between the lines
I like to think I can understand people but jfc
"clowns" 😂😂😂
user11867329
@DaveS That's clear (honest), I'll try to see about an easily applicable escaping char
user11867329
that fits with my thingy
user11867329
@MehdiB. Coulda said Bozos
ur bein a total jabroni
20:02
I like to think of jabroni as an exotic italian sausage
user11867329
Man, I just thought I could
replace: "
with: /magicsht
you could escape the quotes but then the comma has no purpose
user11867329
before adding the regex that applies my ","
just use quotes
user11867329
Dave, haven't you learned, I'm an idiot, I don't understand, even the simplest thing
user11867329
20:03
What do you mean use quotes
user11867329
I am using quotes
"test""test2""test \"with quotes\""
the comma is irrelevant at that point
\ is a pretty typical escape char
user11867329
@DaveS I had no idea!
user11867329
As long as it's same row?
user11867329
20:04
I think I'll manually edit the lines with quotes
Anyone else get the feeling that if Carl was in here this conversation would have ended 10 mins ago
@codeMagic Is this you??
if so, lovin' the costume haha
user11867329
@DaveS K so.. what if there's quotes and commas
user11867329
and line breaks
user11867329
within the same cell
@ballBreaker Yes
user11867329
20:07
Also, can I just add \ in front of the " I need to escape?
@codeMagic got some dope bling my friend
@codeMagic Nice magicman
I know. But I can't take credit. A coworker made it last night because our group costume plan fell apart at the last minute
@ballBreaker yes
probably ended before it even started
@codeMagic hmm just sign it with your signature and THEN take credit
can't argue the signature
legally binding and all
but also tell whoever made it they did a stellar job lol
20:18
@OakDev you'll want to choose an escape sequence that isn't going to appear in your input. If \" shows up in your input that could be a problem
you might want to consider a JSON Array instead
and use prebuilt JSON escaping functions
nvm
the thing is, if \" shows up in your input you'll still escape the quote and get \\"
Escape it with this: 性别
but you also stick to CSV and escape commas which I originally suggest
that would look like this: test1,test2,test with a \, comma,
user11867329
Yeah I thought of json but it's near-finished in CSV. Was a little to late for waking up about json.

I just read that double quoting quotes was indeed the right thing to do
user11867329
for my scenario, tested, seems to work.
user11867329
> "TECHNOLOGY
High security cross-cut shredders, suitable to shred ""Classified"" and ""Top Secret"" documents.
Equipped with two 24-hour...
user11867329
20:21
So I was right when I first said "Did Sheepy typo'd and it's the opposite?"
Is Dave, Sheepy?
user11867329
lolnoe
but he's so fluffy and soft
in this case double quote is the same as \" you're using the quote character as an escape character
which is fine. just unconventional
20:25
@W0MP3R the physics of that things legs are hilarious
also o/////// wompy
Hiyaa!!!!
so "" is your escaped version of " and "," is your delimiter
i'm so tireeeeeeeed x'D
and you need to trim the preceding and trailing quotes
go to bed then womp!
noooo
it's too sooooon
20:28
then drink a redbull!
i don't have any TT^TT
should have prepared better
I didn't expect to tire so much this morning/afternoon
surely it must be evening by now
yeah
21.30
user11867329
20:36
@W0MP3R <
hm?
user11867329
@DaveS To be fair, I googled CSV escaper and checked how they escaped it
user11867329
Then tried, I went rogue...
user11867329
@W0MP3R yikes that gif hurts
user11867329
20:40
^ Yes.
user11867329
Cause the movement
I didn't animate the movie
not my fault
user11867329
@Ivan the sky
came across an interesting scenario on EditText
I've implemented a onKeyListener for my edittext but it does not seem to get triggered when I type any key/hit enter
I came across some info stating that EditText don't work well against soft keyboards, is this accurate?
20:49
@OakDev lols
user11867329
\o/ <= I thought this was a spherically aligned "lol"
soft keyboard is a mess
@Nero also do you mean like TextWatcher or OnEditorActionListener?
I just came across textwatcher and will try implementing that
but before I was using setOnKeyListener
thats the wrong stuff
difficult thing with the textwatcher is how can I detect the enter key being hit
20:54
KeyListener is used for something else, like when "hardware" button event is sent to particular view
if you want to observe text changes use TextWatcher
If you want to detect enter hits use OnEditorActionListener
KEYCODE_ENTER i believe
@IvanMilisavljevic ay dude
hahahahah
I definitely starred it ngl

« first day (3302 days earlier)      last day (1871 days later) »