« first day (642 days earlier)      last day (3376 days later) » 

12:00 AM
[Vogel612/JavaBot] 7 commits.
[Vogel612/testclient_javabot] 1 issue comment.
[Zomis/Combinatorics] 2 commits. 2 issue comments.
[Zomis/Prosit] 1 opened issue.
 
@Hosch250 I am exactly there right now but there is no VS related category
would you be able to have a quick look?
 
Did you scroll to the bottom?
 
@Duga Busy day for many, I see!
 
@Hosch250 so there is? cuz I can't find one
 
Under Forum Category?
Are you signed in?
 
12:02 AM
Yes
Does it actually say Visual Studio ??!!
 
Yeah!
You can also choose different forms of development, too.
OK, time to pick up, bbl.
 
I have Microsoft Azure, Microsoft Desktop , enterprise, groove, intune , office , online services, proclarity, research
and all the V's I have are Virtual server, Virtualization, Visio 2010... WTH
Why I should see a different one as others ? :O
directly searched it and I am in... WOW
 
Probably because your location is not set to US.
I'm on my phone now.
Try setting your location to united states.
 
I was in the TechNet rather
not sure what is the difference
 
Oh, do MSDN.
 
12:10 AM
I can never lie on my Geographics :P
@Hosch250 thanks man. trust me, if you haven't used it before it's kinda looks the same
 
I see.
Bing has some us only features, so just thinking that might have been the case.
 
Hmm... perhaps I should make @Duga search for comments involving "off-topic" and post them somewhere *evil laugh*
TTGTB
 
@Hosch250 I have noticed. cheers
 
Ok. I can't tell what you replied too as I'm on my phone.
 
This:
3 mins ago, by Hosch250
Bing has some us only features, so just thinking that might have been the case.
 
12:15 AM
So don't just reply to past messages of there is specific context.
@rolfl Thanks so much.
 
0
Q: Assembling a json object from an array

CrocodileIs there a way to make this code shorter and more succinct? Thanks My objective is to: Take an array of objects (someArr) Use get() to get one specific property of each of someArr's objects (which is also an object itself, as I am working with a json object) And push this object to the 'tabs' ...

 
Note that, if you do have xpath that works, but are looking for a better way to code it, you could perhaps consider asking a question at codereview.stackexchange.com. Thanks! — Tim C 11 secs ago
 
I accidentally just entered: gcc code.c -o code.c which completely destroyed all the code that I have written. Does anyone know if there is a way to restore the file to a previous state? I am using Linux (mint).
 
CTRL-Z?
 
I tried that, but it just starts to wipe files from the folder(files that I placed there previously)
 
12:27 AM
Supper is on. See you.
 
See you!
 
Hope you get it fixed.
 
@SirPython - it is possible, but not likely, and very difficult.
 
I found a couple programs, but they are for use on external drives
 
You should take this as an opportunity to do two things...
1. use a build script (make file, something), Even a shell script.
2. use version control. (git?)
 
12:33 AM
Version control?
 
the reason for 1, is that you set up the script just once, and you never have another opportunity to screw up.
 
Like post the code online using Git, and recover if lost?
 
git is local, GitHub is remote
I use git for almost everything I do.
2
 
That ^
 
My knowledge of git is limited to Github. I should probably learn some more about it.
 
12:35 AM
While what you did is a catastrophe, and you lost everything, there's another way to break things that's almost as bad....
you make a change, save it, and then you've lost your previous change too.
try this:
mkdir myfolder
cd myfolder
echo "Hello" > myfile
git init
git status
git add -A
git commit -m "initial"
git status
 
Theoretically, you could use a decompiler. =)
 
@200_success But wouldn't I lose variable names, and possible more due to decompiliers not being to restore everything?
 
yes
 
@rolfl Is that all?
 
indeed, your file "myfile" is now in version control.
if you change it, and run git status, you will see it is marked as changed
 
12:39 AM
then do the add part?
 
If I have a method that works fine, but the fact the compiler is complaining is the reason I want a review is it CR material or better fit for SO?
 
so you run git commit -m 'added new functionality abc' myfile
now you have two versions of myfile
git log myfile
 
Sounds like a way to use drive space fast.
 
@SirPython take a look at this for learning the basics of git: try.github.io/levels/1/challenges/1
 
panabox:~/xxx/myfolder> git log myfile
commit eb6664a38db52009738cf81b238bacd769938efe
Author: Rolf <rolf@tuis.net>
Date:   Wed Feb 4 19:40:25 2015 -0500

    added new functionality abc

commit 3ee0435e7582318b33991263d9df973271af2353
Author: Rolf <rolf@tuis.net>
Date:   Wed Feb 4 19:37:56 2015 -0500

    initial
 
12:41 AM
Wow... git is a lot more powerful than I thought.
 
I suppose you delete old versions regularly.
I keep an external file of older versions of my files saved daily.
 
@rolfl What does the -A do?
 
The -A for the add is All files recursively
@Legato - Git uses a heavily compressed system for doing such things. The file storage, in a well configured system, is very little.
@SirPython - you cannot use it completely naively, for example, you only want to add your source code to git, the compiled binaries are not needed, so read up on '.gitignore' too.
 
Okay.
 
@Legato What's the compiler complaint? This seems like a borderline situation.
 
12:49 AM
Just says that it uses "unchecked or unsafe operations." That's all.
 
THat would be a question for Stack Overflow, but, I would just paste the line of code here in chat, and the error message, and I am sure we can help gratis.
but don't tell anyone. ;-)
 
Love of monkeys rising.
 
@rolfl I got the impression that he means a compiler warning and not a compiler error. He said it runs fine.
An explanation for what the compiler warning means would be a question appropriate for StackOverflow.
 
Yeah, but its a specific programming question...
 
A question about how best to avoid the compiler warning might be appropriate for CodeReview.
 
12:52 AM
 
I don't see the warning.
 
It's a method to create an array based on the common strings between two passed.
 
@Legato List<String>result = new ArrayList<>();
^^^ fix it to be that.
COmpiler warning gone?
 
Nope.
 
What is the compiler warning?
I don't see any warning in the screenshot.
What line is it highlighting?
 
12:58 AM
The only thing I'm doing that's new is casting for the String[]
No line is highlighted, give me a sec, I'll take another screenshot
 
@Legato That is very pretty looking.
 
I can't tell if that's C# or Java.
 
What editor is this?
@nhgrif I believe it's Java, only because of the ArrayList.
 
I believe it's Java cause of the method names :D
 
public static String[] common(String[] first, String[] second) {
    List<String> results = new ArrayList<>();
    for (String s1 : first) {
        for (String s2 : second) {
            if (s1.equals(s2)) {
                results.add(s1);
            }
        }
    }
    return (String[])results.toArray(new String[results.size()]);
}
Works for me, no warnings.
 
1:00 AM
Not really used to seeing that.
 
Did you follow the second note?
To get the details...
 
Honestly clueless what it even means (Again, have never seen this before).
Looking it up now though.
 
Just type: javac CommonSongs.java -Xlint:unchecked
I think?
I've never used a command line compiler.
 
close....
 
1:03 AM
javac -Xlint:unchecked CommonSongs.java
 
@SirPython Mine ^
 
I'm a sucker for colorful code
 
I like it.
 
Xcode syntax highlighting is quite good.
Notice how some of the method calls are green while others are blue?
 
Mine ;-)
 
1:05 AM
-1 for little color, ;-)
 
Xcode differentiates between user defined and Apple defined classes, methods, and functions.
 
without the generics on the results List:
 
I fixed
 
@nhgrif Is that sublime?
 
No.
 
1:07 AM
What is it?
 
Midnight Theme in Xcode.
 
Depth of the derp on my part. Sorry for wasting your time with this guys...
 
I may have tweaked one or two colors, but it's pretty much plain Midnight theme in Xcode, one of the pre-installed themes.
 
@Legato Why else would we be here? We've got no where else to waste time.
2
 
Hear, hear.
 
1:10 AM
I made a Visual Studio theme based off of this Xcode theme.
 
@Hosch250 submitted question in MSDN forums and SO. let's see anybody will help,
0
Q: Visual Studio 2013 slows down + crashes when using Source Control features

MehradI have spent two full days trying to resolve this issue but no luck so here we go, I have created a project using Visual Studio Team Foundation Server plug-in in the past. Later on I switched to Microsoft Git Provider. Now when I connect to that project in the Team Explorer and double click on ...

 
Nice.
 
@nhgrif I don't see anything themy in XCode. it's very close to any standard IDE isn't it?
 
@Mehrad Not sure if this would help but have you tried running VS as admin ?
 
What?
 
1:14 AM
except instead of blue it uses pink for types :D
@JaDogg good suggestion. I can rule out that possibility in a second
 
Mmm... more pretty code.
 
@nhgrif Oh. you made an XCode theme to make it smililar to VS
 
@Mehrad Do we have eclipse IDE plugins to debug python code in addition to C/java/jsp?
 
@Mehrad can you link to the log file you got after VS crashed?
 
1:16 AM
please don't say "WHAT" again. :D I must be confusing something
 
At work, I use Visual Studio, SQL Management Studio, and Xcode.
At work, I set my Visual Studio theme to match my Xcode theme.
So when I write VB code, it has the same syntax highlighting scheme as my Objective-C and Swift code.
Except Xcode's syntax highlighting is slightly better.
 
@overexchange are you sure this is about me? cuz I don't use Eclips and I am just learning Python. I printed "Hello World" two days ago :P
@mjolka I did a log as you mentioned. couldn't pick up on anything specific after the crashing moment
but I certainly can
 
And SQL Management Studio's syntax highlighting is abysmal, so I don't mess with the colors in that...
 
@Mehrad hope you are discussing about IDE's right now
am just in here
 
@overexchange I am .....
 
1:19 AM
IDE's crashing.
 
crashing burning
 
Is this better?
Maybe the code will run faster now... ;-)
 
Worse.
 
Nice and colorful.
 
Code only runs faster if you manage to set up your syntax highlighting to draw vertical racing stripes on your screen. Racing stripes make things faster.
 
1:21 AM
@rolfl it's that colorful that it tastes sweet
can call this theme 100s and 1000s
 
@rolfl Very nice code.
 
@mjolka do I need to edit out some stuff from this log file? it seems it had some details about my account
 
@SirPython Meh, it's @Legato's
and the code is identical to this:
 
Actually, I don't need to cast...I only needed to before since I forgot to set what type the lists were.
 
There's a middle ground in the color themes you've presented...
 
1:23 AM
Also, note the lack of one liners!
 
@Mehrad yeah i'd delete anything related to you/your work/your project
 
it's like 1000 lines :D
 
@rolfl Arrays are conventionally plural?
 
So many colors
 
1:26 AM
@Legato I don't understand this question...
 
Interesting, the PNG version is distincly 'brighter' than the JPG version
 
And less artifacts. That jpg is highly compressed.
 
@mjolka and I noticed some people submit crash reports as well
not sure it's the same log file
 
@Mehrad I am not sure Visual studio allows you to stick to single IDE when you change programming language. For me eclipse is better, because it helps me debug C/ java/jsp/python code
 
Yeah, I actually thought you changed the theme.
@nhgrif what question?
 
1:28 AM
@Legato, I tend to name array variables in the plural, yes.
 
"Arrays are conventionally plural?"
 
I often have:
 
Do you mean the variable name?
 
String[] names = .....
for (String name : names) { ....
 
Yes.
 
1:28 AM
Yeah.
 
I noticed @rolfl made my variable name plural.
So I thought maybe that was the reason.
 
NSArray *people = ....
for (NSPerson *person in people) { ....
 
@overexchange never used eclips but somethign tells me I should give it a go
 
It can't be any less professional than tossing out a candidate due to a completely arbitrary rule around a completely worthless metric. You'd bounce a candidate with a 2.95 GPA from MIT/Stanford/etc, but take someone with a 3.0 from Bob's College of Basketweaving? — Telastyn Jan 28 at 20:11
 
@Mehrad I used VS 2003 for 32 bit C programs and VS 2010 for 64 bit C programs, but i gave up in the end and moved to eclipse
 
1:32 AM
Dinner and a POI ... whoopee!
I am being watched, and so are they!
 
@rolfl any roots in the dish?
 
@mjolka @RubberDuck You around?
Question about my latest question you answered.
 
@Hosch250 heya
 
Hi.
Is that one test enough?
 
Ugh...
4
Q: How to learn rap music?

user31782First let me tell that I don't have any kind of prior knowledge of music. What I have done upto now is, I have listened every album of Eminem and Linkin Park. Nowadays I'm listening 50cent and Yellawolf. I tried to listen old rap of NAS, 2-pac etc but I didn't find it as good as Eminem's music is...

 
1:46 AM
Should I have a couple tests?
 
@Hosch250 that's hard to answer
 
Yes?
 
i didn't really look through the Search method, tbh
 
> First let me tell that I don't have any kind of prior knowledge of music. What I have done upto now is, I have listened every album of Eminem and Linkin Park. Nowadays I'm listening 50cent and Yellawolf. I tried to listen old rap of NAS, 2-pac etc but I didn't find it as good as Eminem's music is.
 
Don't worry about that, I've already asked at least one question about that.
The search/sort works.
Just curious about how thoroughly I should test essentially identical code with different data.
 
1:51 AM
what's the essentially identical code?
 
Well, it is identical.
I was thinking essentially identical data.
 
@nhgrif A downvote well spent, IMO.
 
I didn't feel the need to register just to down vote, but yeah...
 
@Hosch250 i guess my tentative answer is -- don't write another unit test unless you see a reason to
 
woo 5 points away from 1k~
 
1:55 AM
OK.
 
"I tried to listen old rap of [insert artists that no one heard of before the 90s]".... smh...
I was listening to an LL Cool J album from '87 last weekend.
 
common reasons to write tests: before refactoring code, to make sure your refactoring doesn't break things. to document behaviour of a class/method. to help with writing code as part of test-driven-development
to help with fixing a bug
 
0
Q: JSON storage of data for a to-do list application

neuronetI am making a to-do list application that will show tasks/subtasks/sub-sub-tasks in a tree view, but with higher-level clades of tasks grouped into blocks (e.g., Work block, Home block). So something like: To Do List |--Home Tasks | |--Clean room | |--Get storage unit | |--Work Tasks |--Anal...

 
I will mainly use it for documentation.
 
But regardless, when you list Eminem, Linkin Park, 50 Cent and some sort of canine I've never heard of as "good rap" and you fail to mention, well, basically any musicians that have been around long enough to be judged in a historical context...
then I can't take you seriously.
 
1:58 AM
I manually test everything myself anyway.
@Legato enjoy 1k.
 
@Hosch250 manually test how?
 
Enter data, make sure it doesn't crash, make sure it returns the right results...
 
Congrats on 1K, @Legato!
4
 
Yay @Legato!
 
@nhgrif I feel you. I have to deal with young rappers pretty regularly. Kind of very annoying.
 
2:01 AM
ok well you'll probably feel like some of those tests you're doing are worth writing up as unit tests, and that's a good thing. very easy to automatically run all tests at a later date, save yourself the tedious work
 
Getting jamalized certainly helped!
 
Actually, it's not even that I have a problem with new generations of music.
 
Thanks guys.
 
It's just that... no musician becomes a great musician by dismissing the great musicians in the past.
No artist of any medium.
 
True
 
2:03 AM
If I wanted to be a great rapper, I wouldn't just dismiss 2pac... nor would I completely ignore Beastie Boys, Run DMC, Grandmaster Flash, LL Cool J, Del the Funkee Homosapien, Dr. Dre, Snoop Dogg, etc., etc., etc....
 
@Hosch250 is that different data likely to break your code? Do you believe it's an edge case?
 
@Hosch250 another tip, create a separate project that is exclusively for tests
 
can't you attack a file to your question in SE?
 
And I wouldn't ignore Eminem, 50cent, Drake, etc.
 
0
Q: HTTP Responce randomization

WerezwolfI've made some unethical code giving HTML responses at random and masking what is there for fun. It targets mainly crawlers and scripts that run through your website that are looking for vulnerabilities AKA dem script kiddies. Function TarPit() { /* Send to Tarpit */ $responce = array(200,20...

-1
Q: If Statement problem need to be solved

arvind muneyandyi was given a homework to do a program that can read " product code", price , quantity and display each products total price product code : 1000,2000,3000,4000(follow this order) quantity : 2,3,4,1(follow this order) price : 2.10,3.50,5.75,3.45(follow this order) total price: ? grand total:? us...

 
2:04 AM
@Mehrad Only images
 
Well... 50 cent can safely be ignored IMO...
 
lunch thyme
 
@RubberDuck As a listener, sure. As an aspiring hip hop musician? You can't ignore the music he has put out.
You have to at least investigate it, understand it, etc.
 
Hmm... You could, but it might not be wise.
Did a new semester start today @CaptainObvious?
 
That would be like [insert programming language of choice] releasing a new library as part of the standard libraries and just completely ignoring it.
Like if Apple released a big library specifically for connecting to Microsoft SQL Server...
well, I already wrote my own library to do this
 
2:07 AM
Not sure I agree with that parallel.
 
And mine may or may not be better than theirs (probably wouldn't be)
But regardless of whether or not I use Apple's library, it's important that I'm aware of it.
 
Yes. That I can agree with.
 
50cent is massively popular.
 
Be aware of it and judge it for its merits.
 
He's doing something right.
At least in terms of popular music.
That doesn't make it good music, but it does make it popular music and it does make it important music.
 
2:08 AM
Depends on your goal as an artist I suppose.
 
It does, yes.
Well, what you do with your knowledge and awareness and whatever you can get from studying someone else's music depends on what you want to do as an artist.
But whether or not you should be aware of it and study it, given that he's a very important contemporary in your genre of choice? That does not depend on your goals.
 
Is he really still popular? That makes me die a little inside... (I'm a punk rock kinda guy, so take that with a grain of salt please)
 
I think so, yes.
Like, if I were to start a smartphone company...
 
Idk. Art is different. It's not always best to study what's popular when it comes to art.
 
I can't just take all of Google's good ideas and all of Apple's good ideas and assume that there is nothing to learn from what Microsoft did.
 
2:11 AM
@mjolka uploaded the log file to the question
 
Good art does something new... Something progressive.
Something your own.
 
How can you know whether you're doing something new if you don't know what the current contemporaries are doing?
 
I corrected myself.
> Something your own
The idea is not to care about what your contemplative are doing.
*contemporaries
Music's a far cry from programming. Eh. To each their own. I'll argue with you later @nhgrif. =)
 
Speaking of rap, I just heard yesterday about Baba Brinkman a Canadian rapper, that actually raps about science, and gets his lyrics peer-reviewed by scientists before recording them.
 
I think there's merit to both of those arguments.
@Phrancis Coolest thing I've heard today, haha.
 
2:15 AM
I've never heard of any great artist in any medium who didn't steal from those who came before him.
 
'steal' is going too far.
 
@nhgrif I'm not a fan of the word "steal" used in that context. Makes it sound as if something was taken away from the originator
 
I agree. What I'm saying is you can't possibly study them all, and it doesn't make sense to study art you don't care for. (Unless your goal is simply to profit. Then you don't deserve to call yourself an artist.)
 
I think music itself is derivative, there are only so many combinations that are actually pleasing to the ear, bound to be some intersections. Also think being a good musician necessitates listening to a lot of music.
 
The person who asked the question which inspired this conversation clearly doesn't care about actual art...
 
2:19 AM
Perhaps it is that they don't realize they ought to care, if they want to become an artist themselves. Innocent ignorance type of thing.
 
I think maybe you've taken it somewhat as an affront because you disagree so strongly.
 
What?
@Phrancis Most of the greatist artists tend to openly admit this.
 
let call it Inspired by
 
@nhgrif I think the only time the word "stealing" is accurately applied in music, is sampling a copyrighted song without permission. I think I would echo @Mehrad in inspiration, to a lesser or greater degree, from others' materials
 
@Phrancis you have my full permission to echo :)
 
2:25 AM
lol
 
I'm writing a strings part for a country song as we speak. Parts of it I feel are inspired by Nobuo Uematsu, maybe other parts by more "classical" composers. I don't feel like I'm stealing from them (since the music is different) but rather that I'm looking up to some that are better than I in order to produce better music.
 
I am pretty sure Van Gogh wouldn't be able to make this cake, and this chef couldn't draw the Starry Night either. But they both are beautiful...
 
@Mehrad Great example
 
I just wasted DAYS on this. THANK YOU. Another bug chalked up to "coding blindness". Wish I had had a code review - I'm sure someone else would have spotted it. — Reid 1 min ago
 
2:31 AM
@RubberDuck no, it is not an edge case, just more text.
 
@Duga False positive
 
@mjolka good idea. I don't want that stuff in my main project.
 
@Hosch250 you ought to use the "reply" feature in chat
Makes disjointed conversations much easier to follow
 
@Phrancis yeah, I'm on my phone now.
Also, I think the message is too old anyway. I wasn't here for a while.
 
Oh gotcha
 
2:42 AM
@Mehrad do you have visual studio tools for git installed?
maybe try reinstalling it
 
2:56 AM
Oh my dog this country song sucks... chords are D - B - G - A ... in that same order the entire song. And with a young teenager girl singing vapid lyrics with a southern accent... UGH.
Things you do for passion fame art money.
 
Summer of sixty nine?
 
0
Q: Flooring cost calculator

Christopher SouzaI've made a small program that calculates the cost of flooring for a given area based on the price per sqft and total sqft. I have only been programming for a few days now so I am sure that there are some things I could be doing better. from decimal import * import time print("This program will...

 
@rolfl Almost as good as that one.
 
Total build time: 02:10.751 :/
 
3:19 AM
 
LMFAO
 
Don't ask this on StackOverflow or here, It's off topic. — JaDogg 1 min ago
 
Voted to Delete that crap question.
"Here's my homework, can U plz?"
 
@mjolka I do, and frankly that's the only thing I haven't fiddled with cuz the Git side of everything works fine. But I will try it asap. thanks
 
> if he includes what the desired outputs, the current errors, and his attempts, it's on-topic on SO.
 
3:34 AM
@rolfl Oo a minor chord in the bridge, such relief! Turns out, she can play a Gm chord awesome.
 
I don't think they're going to wait around for that. It'll (also) be downvoted on sight.
 
@Mehrad maybe try it in two steps -- uninstall, see if you can create a project etc, then reinstall
 
and I deleted it here, so they won't knw we sent them ;-) ho ho ho
 
@mjolka even a better suggestion. sure do
 
Can someone explain why that trolling question that consists mainly of self-congratulatory comments hasn't been deleted?
 
3:38 AM
Link?
 
@rolfl I think he's thinking about that one...
33
A: How could I optimize this script?

nhgrifThis script is a total of 99 lines. Of that, 49 lines are insulting, annoying, and ironic self-congratulating comments. In general, comments are good. They help any future maintainer (including yourself when it's been 6 months since the last time you looked at the script) to understand what ...

 
Yeah, just found out and came back.
Already posted.
Is it because there is so much rep in it?
For answerers', I mean.
 
Technically, while it looks like obvious trolling, it does fall within the rules for being on-topic. And so, nhgrif graced it with a serious review, just like we would any other on-topic question
 
I see.
My phone sure is acting slow.
And not responding very good. I'm on the desktop site, so they may be part of it.
 
Yeah the app would likely do much better... though I don't think SE app supports chat yet, does it?
 
3:49 AM
Not that I see when I use it.
 
Chat worked ok on my iPad using plain web browser, never tried on a phone, I don't dare
 
But maybe it does and I'm noticing it since it'd be a pain to use.
 
I'm on WP.
They just said in the new blog post they have no plans to support WP.
 
I think the 'moran and weather' bits ironic and maybe intentional on the post you mentioned.
 
@Hosch250 They just might eventually. WP is kind of the underdog right now
 
3:56 AM
Eventually.
My phone crashed and rebooted. Never had that happen before.
Back on the mobile site, and running faster.
 
Can you get the blue screen of death on WP? Can you boot in safe mode? ;D
 
No, just went black and rebooted to the AT&T screen.
 

« first day (642 days earlier)      last day (3376 days later) »