« first day (1642 days earlier)      last day (3286 days later) » 

10:11 AM
How do i output the count of the variables that begin with A to a new file count.txt
 
Windows batch or regular bash?
 
windows and regular lets me try both
 
-_-
 
hello
 
hey @Nisk
 
10:15 AM
Hiya
 
hi all
 
@Unihedron anything?
 
fge
@lovetolearn env | grep -c '^A' >count.txt
And drop Windows
 
^^^
lrn2use a computer
 
please no "I don't need vowels"
 
10:19 AM
vwls r xpnx'yv m8
 
and in CR chat you'd get a nuke for that one ;)
 
prfshnl n'wk
 
@fge what does the -c denote
-c = count of?
 
on a completely unrelated note, apostrophies aren't allowed in SQL column names...
 
10:25 AM
actually... man grep
 
on a different topic
i just edited a file on github, how do i fetech just that file
so check if the changes were correct
pull, fetch?
 
you don't T.T
git doesn't support fetching of subtrees
you go into the repo and check it there....
 
see ya guys!
 
see ya Jude
 
@Vogel612 it says pull the changes from gitgub
 
10:36 AM
Y U NO DO THAT THEN?
ಠ_ಠ
 
becaue its asking me to make a pull requet
create a pull request
 
@lovetolearn no it didn't
 
i thought it would just be command
 
type "git pull", done.
 
Just pull the changes from github remote to your local environment.
^^ what @Nisk said
so not only do you not know how to use a proper computer you don't use git either, eh? :P
 
10:38 AM
haha
 
pulling and creating a pull request is two completely separate things
 
getting there
 
in three years
 
my biggest regret of my life is using winows
 
also it's not even remotely funny.
 
10:39 AM
so many times got started with linux but went back to windows
 
This is why we can't have nice things.
 
@lovetolearn linux is hard to start with, but it is soooo much better once you make the switch (plus, now we even have games)
 
@Nisk Linux is hard? You're kidding.
 
also choosing a linux distribution/flavour can severely impact performance
@Unihedron hard to make the jump to from Windows, especially if you're fresh to the CS scene.
 
@nisk i love but getting started is harder and if you are not forced ( work, college etc) then as a hobby its hard to get started
 
10:43 AM
Personally I use only linux
 
i will do too soon, before my last laptop i decided to go just for linux
 
@lovetolearn the good news is that linux becomes easier/friendlier every year
used to be the case the drivers were a nightmare to get to work (like wifi)
not most of the time things work out of the box on most distros
 
@Nisk It's true that usage of Windows leads to operational sclerosis, but that's irrelevant. Linux is easy.
In fact, when I'm stuck with Windows 7 computers at school I can't even SSH properly with their putty client.
Windows is so damn hard to even open a protocol.
 
i have a repo on github called code, i made a change to one of its files
but when i do git pull code
it says code does not exist
 
@Unihedron different kind of easy. I'm talking about making the switch from Windows to Linux
 
10:47 AM
@lovetolearn git pull https://github.com/yourgithubname/yourgithubrepo.git
 
@Unihedron you're talking about it's easy to do things that you want as a developer/poweruser :)
 
its all about giving it time, windows is hard too
we all know how to use windows not becasue its easy but because we grew up with it
 
in git you have to set up your local git repo to track the remote git repo
 
how?
 
@Nisk How do you see files in windows? You use their crappy file explorer. How do you see files outside windows? ls
Windows as an OS depends on arbitrary restrictions that makes no sense to begin with and acts with terrible IO.
This is not only from a power user perspective, but just because it has a rectangular UI doesn't make them user-friendly.
 
10:51 AM
@lovetolearn git remote add origin <gite repo address>
 
thanks
is there a way in linux to create muliple files
 
now do git pull origin master
 
git clone https://github.com/yourgithubname/yourgithubrepo.git
 
instead of touch hello.txt
@Unihedron git pull workedd
 
@Unihedron I'm not arguing in favour of Windows. As a power user I can't do anything on a Windows machine. I like my terminal.
 
10:52 AM
7 mins ago, by Unihedron
@Nisk It's true that usage of Windows leads to operational sclerosis, but that's irrelevant. Linux is easy.
That's my stance. No more, no less.
 
@Unihedron it's easy the same way that once you know and understand something - it's easy.
 
Let me modify my statement then: Linux is objectively easy.
 
I never struggled with it, but I can see how people might. SInce there is a learning curve, especially making the jump from Windows.
 
will this work git add file1,file2,file3,
 
git add -i
 
10:55 AM
no comas
space separated
if you're adding the entire contents of a directory you can go "git add *"
 
@Nisk it's preferred to use git add .
anyways: ~food
 
@Vogel612 +
 
problem now is that if i add all 4 files
how do i write a commit statement seperatly for each oen
 
<memory lapse>
try git commit filename
if you do "man git" you'll see the manual pages for the command usage
 
apart from the number of words what else does wc output
 
11:08 AM
Please help me on this problem stackoverflow.com/questions/29794131/…
 
@MdMohsin What is the problem?
 
Hey I am trying to find out the maximum number of covered node via given path in graph
 
and?
 
but code only work for some graphs not for all...check link please
 
that's not a problem, that's your homework
 
11:11 AM
+
 
Your question doesn't even mention which graphs causes it to fail.
 
ok thanks
 
Aside from the lack of information critical to knowing what problem you're experiencing, your code is also not formatted and really hard to read.
 
given three inputs as a string array...for third one..answer is not correct
 
and with no commenting through whatsoever, I'd be surprised it even compiles.
@MdMohsin Third one... of what?
 
11:13 AM
answer is wrong for third one string array: {"1#10","2#10","8#10","2#5","2#6","3#5","3#7","6#7","7#9","4#6","4#8","4#9"};
 
Where?
@MdMohsin Where is that array?
 
Doing students homework for them is counter-productive for us as an industry.
 
added image
in question
 
cool cool
I'm a highly intelligent chat bot but I can't read stuff in pictures.
So that helps a lot, thanks.
 
11:20 AM
what is wrong with this command my/private/files/t-vars.env << env | grep "^[T].*"
 
which algorithme you implemented ? @MdMohsin
because these kind of problems are almost based in an existing algorithme
 
>>"Wait! Some of your past questions have not been well-received, and you're in danger of being blocked from asking any more." Nice!
 
what Oo ?
 
@OlegKuznetsov gg
 
@Unihedron Not yet, but I guess it will be after my next question :P
 
11:32 AM
 
Dubstep is not trendy anymore
 
IKR
 
@Unihedron I already see some test-cases where regex would die on that one..
 
assertEquals("R L", new Dubstep().SongDecoder("RWUBWUBWUBLWUB"));
 
11:42 AM
!!>"1test2test3".replace(/test/)
 
@Unihedron "1undefined2test3"
 
undefined...
 
!!>"1test2test3".replace(/test/, "")
 
@Vogel612 "12test3"
 
!!>"1test2test3test".replace(/test/g, " ")
 
11:44 AM
@Vogel612 "1 2 3 "
 
2 messages moved to Trash
 
!!>"test1testtest2testtest3testingtesttest".replace(/test/g, " ").replace(/\s++/, " ")
 
@Vogel612 "SyntaxError: nothing to repeat"
 
@Vogel612 possessive isn't JS-compatible
 
dammit
!!>"test1testtest2testtest3testingtesttest".replace(/test/g, " ").replace(/\s+/, " ")
 
11:46 AM
@Vogel612 " 1 2 3 ing "
 
^ solution incorrect ;)
 
!!>"test1testtest2testtest3testingtesttest".replace(/test/g, " ").trim()
 
@Unihedron "1 2 3 ing"
 
ugh
 
still incorrect.
"1 2 3testing" is the only correct solution
 
11:48 AM
!!>"test1testtest2testtest3testingtesttest".replace(/^(?:test)+|(?:test)+$/g, "").replace(/(?:test)+/g, " ")
 
and the challenge gives the same problem.
 
@Unihedron "undefined1 2 3 ing undefined"
@Unihedron "1 2 3 ing "
@Unihedron "1 2 3 ing"
 
\o/
 
nope
!!>"WUBWUBWUB1WUBWUB2WUBWUB3WUBthingyWUBWUBWUB".replace(/^(WUB)+/, "").replace(/(WUB)+$/, "")
 
@Vogel612 "1WUBWUB2WUBWUB3WUBthingy"
 
11:51 AM
Mandatory comedy:
 
hmm...
and the next step is rather problematic with regex, at least for me
 
s/(?:WUB)+/ /?
 
stahp
 
HAMMAHTIME!
 
@Unihedron meh... you'll also replace the one in 3WUBthingy
interestingly the solution would be similar in java (at least for me)
 
11:53 AM
3WUBthingy is supposed to be 3 thingy?
 
nope
it isn't since the number of WUBs between Words is always the same
 
I'd be scared to death if I hear a song with "wub" in its lyrics.
 
there probably is some obscure word which just contains.. WUB...
since the lyrics are all-caps anyways...
 
Wolfram|Alpha, I choose you!
 
please wait, loading...
 
11:57 AM
"wubber"...
 
did you mean "rubber", listing molecular composition of "rubber"
 
!!define wubber
 
@Vogel612 wubber (nonstandard) Eye dialect spelling of rubber used in representing baby talk or impedimented speech.
 
:D
I'm right even when I don't know it. nice.
 
12:13 PM
mwuch wubber wow
 
 
1 hour later…
1:54 PM
wow... just... .... ~speechless
<-- sitting in front of a 1.6k LoC method
<-- supposed to change that method's beahviour and it's interaction with session and request significantly. Including other major changes in two similarly large methods.
 
@Vogel612 it's ok
Welcome to enterprise! \o/
 
you know what I am supposed to do?
 
run
don't walk.
 
add two fields, and give some supremely minor validation changes ...
 
@Vogel612 Refactor it? shrug
 
2:00 PM
time estimate in a properly programmed application with typesafety, modularity and proper stuff in general:
at max 4-5 hours
 
@Unihedron That's not how the industry works [unfortunately]
 
@OlegKuznetsov refactor?? it's impossible
for one, refactorings in old classes are explicitly discouraged around here (because no unit tests)
 
@Vogel612 o_O... Ok, then just run
 
and because it breaks the SVN historization (~facedesk)
 
@OlegKuznetsov -_-
 
2:02 PM
and secondly, it's not even all of it, I need to do that very same change for another form, too
 
We should start our own DailyWTF.
 
meh.. that only works as long as I do crap like this
@OlegKuznetsov well it's not like there's absolutely no unit tests whatsoever (I think)...
 
@Vogel612 To you remove spaces? Or how could it break it?
 
I just never executed them...
@OlegKuznetsov refactoring: extract method / extract class
what lines does that change again? oh right all
did I mention SVN is a retard and can't track line-movings properly?
 
JUST RUN
 
2:04 PM
no let me rant for a while
I'll run when I start studying...
 
It will soon be too late...
 
@Vogel612 I know this feeling pat pat
 
it could be worse
 
which reminds me: I need to write up my application for university
@Nisk you are aware that that's not really the end of this?
I mean, seriously? This project has a whopping 10k Warnings and 200 Task-Tags
 
Company I work at sometimes takes on maintenance projects, this particular one was written for this hospital by this other company....
 
2:07 PM
let me guess... java 4 codebase?
 
@Vogel612 Now we have only 16.3k issues in Sonar :D
 
Written is a poor choice of a ward...since throws together is more likely. At least three different monkeys (I refuse to call them people) worked on it. I'm not sure what ancient version of java it ran, or tomcat...or why it was necessary to run it on a WIndows server. Furthermore...
it sits internally with no direct internet access, no ssh, no version control, and only browser installed is IE6
 
@Nisk IIS? Really?
 
FUUUUU
 
...
I... I don't know anymore...
 
2:09 PM
@OlegKuznetsov IIS is the windows web server
 
on top of it all, it uses fucking Citrix, so I had to run a WIndows VM on top of my linux box just to get into it
 
it wasn't one of those
@Nisk wait... what?
 
@Vogel612 Whoops. My bad...
 
I can get onto our testing system (which is a windows machine) using RDC just fine...
 
citrix is basically vnc
but it wouldnt work under linux vnc clients and I was short on time
 
2:11 PM
eeek!
 
Oh
and one last thing
the guy decided to write his own Database-object-mapping library
 
well we're running ANT... and the file encoding for all sourcefiles is WINDOWS-1252
ya we got one of those, too
and a DIY Struts...
 
 
and this one guy who pads with spaces
seriously nothing against spaces padding, but... everywhere else they used Tabs
 
no...stahp...don't mention padding...I don't want to remember
 
2:13 PM
and then there was this (same) guy, who moved some stuff into static classes.
and fields to the bottom of the file
and CVS History!!!
did I mention the encoding already?
 
@Vogel612 Oh, yes...
@Vogel612 O_o
 
Umm
If every enterprise level software works like these, I can totally be like the dude from watch_dogs
 
@Unihedron yes, yes you can
 
thanks for giving me a new life goal
 
now before this gets out of hand I should definitely get to trying to make this work in any way similar to what they want...
maybe
maybe I can even get it done this week...
 
2:16 PM
good luck!!
 
probably not
 
Bucket list:
- get a Stack Overflow tee shirt
- get a fursuit
- build a mobile OS for my smartphone to crack everything on the run
 
@Unihedron ~prod: finish JCE
 
@Vogel612 this list is for incredibly hard to accomplish tasks :p
 
oh and overqualification of Typenames, and Nameshadowing across packages
and missing vowels in database names
 
2:18 PM
eek!!!
 
and Encoding issues since changing the database from Firebird to Postgres
and about 5 different subsystems, depending on who wanted to be funny
and versioning across 3 different SVN repos
 
I just remembered another fact...this piece of shit was running under tomcat right...well every now and then it would crash, so for years do you know what the fix was?
 
some more anyone?
 
turning it off and on again
 
@Nisk I like that one....
Did I mention that my dev-machine runs the thing faster than the prod server?
 
2:20 PM
when they threw this thing my way I thought it was April Fools Day
it wasn't -__-
@Vogel612 lovely, be glad you have a dev server
 
not dev server...
dev PC
like... locally
 
I'll rephrase, be happy you can run it locally :L
 
also the only place where this is running under a linux system...
 
can you imagine the level of slow that is (Ancient) Eclipse > Windows 2003 > RDP(or some shit) > Citrix > WindowsVM > Linux
 
no... I got only through RDP with a VPN, and there already rendering of anything lags like hell
 
2:24 PM
should be new meta on SO : coding horrors
 
meh... probably gonna get closed..
 
come to think of it, I thinks that's the twitter handle of the guy who made SO
@Vogel612 non-constructive huh? like hell it ain't
I found out the guy who originally coded this thing
 
23 mins ago, by Unihedron
We should start our own DailyWTF.
 
Jeff.
JeffAtwood
also known as @CodingHorror
 
he even calls himself a software engineer
 
2:25 PM
has a blog by the same title
 
oh no, I switched contexts - talking about that piece of shit java again
 
lol I was wondering
 
I'm still debating how to approach my revenge
 
Plan the murder. Light everything on fire. Erasure all evidence.
I'm kidding, that's illegal.
 
this SO chat...loose ends
this could get too involved for my liking
:P
 
2:27 PM
@Unihedron Erasure all Evidence...
(Object) murder
 
If I use proper grammar I'd end up on at least three NSA watchlists...
vog pls
 
great way to handle unexpected conditions in prod code:
else {
     assert(false);
}
Comments? nooo.... Exception maybe? naaaaah, who needs that! Error message? what, you expect me to think up something??
 
fge
@Vogel612 hmm, is that Java? That won't trigger unless the JVM is started with -ea
<-- never uses the assert keyword
 
which makes it all the more vexing, given that the state of affairs in that else is going to break somewhen later in the method by definition
also I just found 40 Lines of code marked dead by eclipse....
somewhere in the middle of this all
 
@Unihedron you probably are anyway, if you ever watched Zeitgeist or CitizenFour
 
2:42 PM
nope, neither
CitizenFour is definitely on my to-watch list though ;)
 
a friend of a friend used to add random strings to end of his emails like "Kill The President" or "Bomb is at <x>" to mess with the NSA....this is before we had the revelations of course
 
well they better be working for that money, right?
 
I was tempted, several times, to make a .zip with pictures of my cock and word "suck it NSA" and just emails to myself called "secret_plans_for_attack.zip"
 
lol...
oh, Cool I found out where the message about "successful save" is added to display...
 
2:48 PM
@Vogel612 Same here... Folks don't care (even when Sonar adds red "+1" issue for using tabs)
 
@OlegKuznetsov it isn't even about the tabs should be spaces or spaces should be tabs
 
@Unihedron django uses regex for url parsing
 
it's all this in a single method
 
Hey guys.
 
@Nisk Don't remind me.
 
2:49 PM
What a brilliant time to be alive...
 
I'm not emotionally stable right now.
 
have you guys heard the news?
 
@Woodrow Hello, user.
 
@Vogel612 I see the same stuff everyday :(
 
Hello again unihedron
 
2:49 PM
@Woodrow which news?
 
The earth is getting a new country!
 
I believe you met my doppleganger, Unihedro, not me myself.
@Woodrow WHAT?!
 
that's a first even for me
 
Long live liberland! 7km square land on the border of croatia and serbia
 
2:51 PM
or maybe there will be war with that other "nation" that claimed to be there...
(another war on balcan)....
 
Liberland!
 
If the comment is right; it seems the opposing nation is made up of statists - looks like there may be some conflict with Liberland..
Liberland!
 
just you wait, if Dollar is not the reserve currency, USA will hail it as a joke or a dictatorship
jk
or am I?
 
the currency shall be Liberians
 
All shall use cryptocurrencies.
 
2:53 PM
oh no wait that one was inappropriate
 
Dogecoins ftw
@Vogel612 :|
 
and the hundredth part of it shall be books?
 
@Vogel612 :)
 
Kn'wltg z pwr
 

« first day (1642 days earlier)      last day (3286 days later) »