« first day (922 days earlier)      last day (3393 days later) » 

20:00
And apt-get dist-upgrade is failing on 90% of the packages.
Does this code work? Probably this question is better suited for codereview.stackexchange.comLeonardo Herrera 57 secs ago
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.com. — Cᴏʀʏ 18 secs ago
Can anyone tell me how to use the Git command line to commit my changes?
wouldn't git commit work?
It doesn't appear so.
It looks like you have to git add first.
oh yes that's a good idea
20:08
you said changes, not additions
@Mat'sMug still need to add
add as in stage
and this is why I use the GUI
commit only includes staged changes
no that's why you shouldn't use the GUI yet
because you didn't understand the process below the abstraction of the GUI
I used the git GUI once
For one project
I hated it
@EthanBierlein there's not "the" git gui
20:09
command line ftw
sure there's that thing coming with git (that's basically junk)
Please delete the question and ask it in codereview.stackexchange.commaytham-ɯɐɥıλɐɯ 40 secs ago
and then there's some others (gitk, sourcetree, github application) but they usually... suck
IntelliJ has a good GUI for git - But other stuff I only use the command line personally :)
mostly because all the interesting stuff is either hidden deep down or not even implemented
20:11
in The Heap™ - Consultancy ©®, 15 mins ago, by Tom V
@Phrancis my guess is that if he sees that log file he will figure it out himself though
in The Heap™ - Consultancy ©®, 38 secs ago, by Tom V
@Phrancis I mean, if he reviews vba and vb6 he isn't scared of anything :D
@Mat'sMug^^
@Phrancis What is IntelliJ anyways? I've heard of it, but all I've really heard about it is Java, and Java stuff.
0
Q: Better filtering in Angular factory

Hegol99Huh, I've just started my adventure with AngularJS. I'm 'old school' programmer (C, C++), and I have step-by-step, algorithmic thinking. I'm writting some code in Angular + Django and I know that this code is ugly but I don't have any idea how can I refactoring it. Maybe you guys can help? I'll a...

@EthanBierlein It's actually a pretty flexible IDE, can be used for a whole bunch of technologies and has an active plugins community
Cool
Is it open-source?
20:12
Ah
So it's like Visual Studio?
there's a community edition
@Phrancis lol
For non-windows computers?
it's ... better in a way
Do say. I'm interested in hearing. :)
20:13
you don't have to buy ReSharper to get Refactorings
and it's got awesome support for "intentions", so it's got a better version of IntelliSense to help you write code
That's pretty cool
Although, I think I'll stick with VS
also it works seamlessly with about any project setup (for java) that can be found out there
Lol, I don't use Java
Which is partially why I'm sticking with VS
Is there a decent IDE for Debian with Git and C integration?
20:18
ditto ..although if VS did Java, I'd do Java in VS
@EBrown CLion I'd guess
@Vogel612 Looks like it might do what I want, maybe.
@Mat'sMug I think it does
no way!
I'm not paying $90 for an IDE for Debian, eff that.
8
A: Using Java with Microsoft Visual Studio 2012

user1073075There is a visual studio plugin to support the java language: http://visualstudiogallery.msdn.microsoft.com/bc561769-36ff-4a40-9504-e266e8706f93

0
Q: Is there other way to make this algorithm

Flashlets say we need to write an algorithm for giving money into the bank.We need to know interest rate ,money which we put every year on our account and amount of money we want to get.F.e int. rate is 1%,money we put every year is 1000 (of whatever) and we want to get 10000 (not more). It'd look lik...

-1
Q: Exception analysis and preventing exceptions

VS0930We were asked to review a client application's code that involved ~1.5 million lines of code. The application has major stability and experiences frequent crashes and we are assigned the task of finding the root cause of such issues by doing a manual static code review. The goal is to prevent exc...

@JeroenVannevel hey the author is the guy behind ANTLR!!
It's not something that receives a lot of attention though so I don't know what is or isn't possible with it
@Mat'sMug euh.. is that this Sam Harwell? github.com/sharwell
well it does say "basic support for Java"
20:22
Does anyone know why my git clone didn't pull down my .gitignore?
oh shit, it is
I'd think so
That's the guy behind StyleCopAnalyzers
One of the largest community-driven Roslyn diagnostic projects
I might have to go with Netbeans.
20:23
NETBEANS!?!?
OH SNAP It did pull my .gitignore, I was just using ls wrong.
@Phrancis For lack of a better IDE, yeah.
Netbeans is a terrible IDE!
@EBrown IntelliJ/JetBrains FTW
Netbeans is not bad..
you can't go wrong with JetBrains
20:24
@Mat'sMug I'm not doing Java.
Or even Eclipse, for that matter
And the JetBrains CLion costs $90.
Which is out of the question.
Does Eclipse do C?
It needs to support C.
doesn't VS support that?
On Debian?
No. Lol
Y U SPEAK CHINESE
20:25
Get a real OS
> The Eclipse C/C++ Development Tools (CDT) runs on top of the Eclipse Platform. The CDT provides advanced functionality for C/C++ developers, including:
OH SHIT WAR STARTED
I prefer to use Debian for straight C development.
I only do A's
btw ladies
guess what daddy brought home from work today
THATS RIGHT
A BUTTON
You can't buy it, it's just a prototype they gave to developers. My boss received a few because we're a partner and I got one of them in a raffle in the IoT demonstration we held at work today
3 buttons, 8 people. I had good odds
Basically: you click the button and it sends a signal to AWS
Now I want to come up with something nice
expect a blogpost on it within 3-6 years
5
oooooh bring on those ideas boys
20:31
@JeroenVannevel "I will stop procrastinating... tomorrow."
apparently it can only do +- 1000 clicks
my coworker used two already
that bastard
The way it works is it creates a temporary wifi thingy which you can connect to. Once connected you have to go to 192.168.0.1 and access your own wifi with its credentials. Once you're connected the button is turned off until you press it. At this point it powers itself up, connects to the wifi, sends the signal and powers itself off again
I'm curious to see what kind of metadata it sends. Would be nice if it contains a GPS
@JeroenVannevel It only allows for 1000 clicks? That seems poor.
It's a dev prototype
The following JSON template shows what is sent as the payload.

{
   "serialNumber": "GXXXXXXXXXXXXXXXXX",
   "batteryVoltage": "mV",
    "clickType": "SINGLE | DOUBLE | LONG"
}
I guess GPS coordinates were a stretch anyway
Home, sweet home
@johnny, Mark, according to SirPython, my question is off-topic on codereview codereview.stackexchange.com/questions/110595/…Dennis 55 secs ago
20:37
Oh nice, the websites includes some examples of Lambdas. We're going to be using these heavily so it's good to see a bit of that
@holroy I wouldn't know, I do it by hand.
@DanLyons I know the feeling. Still not upgraded.
I can use real actual code taken from my app that is semantically similar, but I may break agreement of non-disclosure of information with my company. What do you suggest? — Dennis 9 mins ago
^^ Can someone step in here? I don't trust my judgement.
I suggest you write something similar to what you've written for production as hobby code and put that up for review instead. We will not encourage you to break NDA, but @SirPython is right, in it's current form it's example code and therefore off-topic. — Mast 9 secs ago
Thanks.
21:01
0
Q: Maths Game Python Game Code Not Working

RebeccaHELP PLEASE! import random name=input("What is your name: ") print("Hello there",name,"!") choice = random.choice("+-x") questionnumber = 0 correctquestions = 0 realanswer=0 while questionnumber <=10: number1 = random.randrange(1,10) number2 = random.randrange(1,10) questionnumbe...

@CaptainObvious "HELP PLEASE! import random"
@CaptainObvious HAMMERTIME!
C'mon people, more close votes.
Someone dropped Thor's Hammer
I freaking hate JIT and Branch Predictors.
Why?
21:10
Well, branch predictors are generally a good thing actually.
Because it messes with my expected results.
I can live with the Branch Predictor, but I hate JIT. It throws all my numbers out of whack.
Well, what do you expect about what?
Are you talking about the JIT compiler when you say JIT, or just JIT?
The compiler.
Okay
Just curious, how is it throwing your numbers "out of whack" exactly?
21:14
Well, this is odd. (More reasons I don't like Visual C++) Apparently, if you multiply a number by a constant 500000 times, it's slower than making that constant a regular variable.
wot
that seems like a bug
Yeah.
what's the explanation for that?
No idea.
so it's just something you've noticed yourself?
21:20
Yeah, just found it now.
meh, I'll need to see some generated code and someone with a knowledge of assembly to verify that then.
Does C++ code in Visual Studio get compiled to IL like the C#/VB.NET code?
Yes, if it's Visual C++
7
Q: IS C++ converted into MSIL?

AshI have been a long time C# and .Net developer, and have been playing with the idea of learning c++. One of the primary reasons I have been thinking about this, is how much faster C++ can be over apps using the .Net framework. But am I right in assuming that if I write a C++ app in Visual Studio...

If you're somehow programming normal C++ in VS, then it gets compiled to... whatever else.
21:23
@JeroenVannevel Do you want a copy of the code I was using that I found that issue with?
I don't speak C++ish, I wouldn't be able to verify myself
lol, methinks it's going to be hundreds of lines long
one of the experts here has to do it
It's only about 50 lines long.
Wait, are you giving us the C++, or compiled IL?
21:24
C++ of course.
But nevermind, I accidentally deleted it and it's gone now.
I suppose I could recreate it easy enough.
possible answer invalidation by Jamal on question by Gulshan Raj: codereview.stackexchange.com/posts/110562/revisions
All I was doing was running a loop of 500000 iterations, and multiplying i % 10 by a const int n = 5; and saving it to a results array which was a short[500000].
When const int n = 5 was used, it took longer than doing int n = 5.
21:26
Interesting
The C# version is unaffected.
I wonder if there's some IL issue that causes consts to take longer than non-constants
If we could have a C#/Visual C++ IL comparison of the same program... Hmm
I think that might be my first actual blog post.
Why does a const int take longer to multiply than a regular int?
yes
That would be quite interesting.
Curiously enough, it doesn't work on C on my Debian laptop. const int n = 5; is invalid.
21:30
lol, c...
0
Q: Can this RX UDPClient code be improved

John KattenhornI have some code which rolls through a list of ports and sets up a stream containing the UDP Buffer contents which can be subscribed too. I'm having an issue where I don't always seem to get the packets which are sent and I'm pretty new to RX so I'm hoping that someone could look at the code and...

I'm voting to close this question as off-topic because asks for code review and/or comments and/or documentation. — Martin James 21 secs ago
As I was criticized here, preprocessor definitions polute the world when used needlessly. — Stefan Stanković 34 secs ago
@JeroenVannevel I want it
es el mio
@EBrown Did you try it with optimizations on/off?
21:59
Welp, it's time to rek this fool on twitter.
0
A: PHP PDO Helper Functions

KIKO SoftwarePHP allows you to do this: if($connection = initiateConnection()) { $query = 'SELECT * FROM users WHERE username = ?'; if ($response = preformQuery($connection,$query,'test')) { echo json_encode($response); } } So you can get rid of the != NULL. If you don't like this, this is...

@JeroenVannevel If I knew where that switch was I would have.
@EthanBierlein Wut?
I'll recreate the programme here at work and see what's up.
@Mast There's this guy calling me stupid, saying I have a "low IQ", and that I'll never get a job better than a ditch digger.
If you want to talk about this, let's do it in the Nth.
22:04
Yeah, share the tweet in the Nth, I'm curious now.
possible answer invalidation by Jamal on question by DeadMG: codereview.stackexchange.com/posts/24927/revisions
4
pick one
I'm only familiar with C# where it's either all or nothing
0
Q: Pyhton count number of words before specific word?

m.miahanyone know how to do this? sentence= input ("type a sentence: ") total=sentence.count ("the") print (total) this works it just that i want to count the words before the sentence i type. need help or repose urgently please.

@Duga Looks like a quite major re-write.
@Mast but the edit summary makes it okay again
22:08
This is unexpected...
(1 row(s) affected)
Iteration 18 : 0 µs.

(1 row(s) affected)
Iteration 19 : 0 µs.

(1 row(s) affected)
Iteration 20 : 0 µs.

(1 row(s) affected)
Iteration 21 : 3000 µs.

(1 row(s) affected)
Iteration 22 : 0 µs.
@Vogel612 Kind-of, I haven't figured out what the entire story is with that one. But Jamal usually knows what he's doing.
Seems to be completely random as to which iteration actually has time printed, no consistency between runs :\
Ah, it seems µs is too small of a measurement for SQL to use natively
lol
All the values are either 0 or multiples of 1000, in other words I'm getting millisecond precision ;p
I'm not sure why you'd measure SQL going faster than a milisecond anyway.
22:17
Note there's also a Codereview Stack and maybe the [Reverseengineering Stack] (reverseengineering.stackexchange.com) might be suitable too (look into them and see if it fits good) — try-catch-finally 16 secs ago
Well, I was doing the thing that @EBrown was doing above in C#/C++, just for fun in SQL
@Phrancis It's fun, isn't it. :)
> Total loop time : 25827 ms.
Oh, I removed the printing statement on each iteration, WOW... :
> Total loop time : 4740 ms.
@EBrown I was expecting to get floating point numbers in the results, guess not
/me not very good at math...
set nocount on;
go
declare @i int = 1;
declare @maxIter int = 500000;
declare @multiplyBy int = 5;
declare @result float;
declare @results table (idx int identity(1,1), result float);
declare @loopstartTime time = getdate();
declare @iterStartTime time;

while @i <= @maxIter
begin;
    select @iterStartTime = getdate();
    select @result = (@i % 10) * @multiplyBy;
    insert into @results (result) select @result;
    select @i = @i + 1;
end;
select 'Total loop time : ' + cast( datediff(millisecond, @loopstartTime, cast(getdate() as time)) as varchar(max)) + ' ms.' as [Finished];
22:24
interesting
Yes yes, I know @iterStartTime is not used, I removed it ;p
To anyone interested, I have that C++ code recreated.
I'm interested
@EthanBierlein: explanations are meta. I add meta in comments. Admit it: you are one o' them documentation astronauts! — Jonas Byström 2 mins ago
The fuck is up with that guy ^^
@EthanBierlein flag as unconstructive, downvote, move on
it's SO..
lol, I did that already
I know it's SO
I just thought it was funny
22:36
@EthanBierlein just remove that comment... don't play that game with them
done
anyways... What about that Visual C++ code snippet?
I'm getting it together here quick.
I'm going to just put the entire project on GitHub quickly.
oh, cool
possible answer invalidation by acollection_ on question by acollection_: codereview.stackexchange.com/posts/110371/revisions
0
Q: is_Prime() function on PHP

Zaki SulistyaI tried to make is_Prime() function on PHP. What do you think about this code?(bad / good) <?php function is_Prime($x) { if($x <= 1) { echo $x. " is not a prime number.</br>"; return false; } $data = array(); for ($i=1;$i<=$x;$i++) { if(is_integer($x/$i)) { ...

22:43
Damnit why can't I figure this git thing out.
@EthanBierlein I made it a Gist instead.
Cool, I'll take a look at it when I have a moment.
Incoming SQL question... :)
@Phrancis Tends to help ^^
BTW, DBA funnies
@Mat'sMug ^^ MySQL memories :)
22:49
lol
@Phrancis What's that, LISP with extra whitespace?
0
Q: Example script for teaching DDL and CRUD/DML operations

PhrancisI have taught some SQL to others before, and I thought of making a script that has these attributes, for the purposes of teaching: Fully functional to run on local DB instance with no fuss Easy to follow along Representative examples of real-life types of operations Documented The example fir...

0
Q: Scala list to tuple conversion

Quant def toPairs[A](xs : Seq[A]) : Seq[Tuple2[A,A]] = { @tailrec def accumulator(as : Seq[A], accum: Seq[Tuple2[A,A]]) : Seq[Tuple2[A,A]] = as match { case Nil => accum case x :: tail => tail match { case Nil => accum case _ => accumulator(as.tail, ...

TTQW! :D
I need a book, but it's not finished yet...
possible answer invalidation by acollection_ on question by acollection_: codereview.stackexchange.com/posts/110371/revisions
22:56
awesome... @Mat'sMug possible rollback war in the making: codereview.stackexchange.com/q/110371/37660
Yeesh, I think I've rolled that back two times already...
once.. I did one, too :)
@EthanBierlein And left a comment exactly 0 times.
?? I could've sworn I did.
I had a comment written down, I hit "enter", and then closed the tab.
oh that? Yea I flagged that as obsolete
22:58
Aaah, that'd be why. I must've closed the tab too early.
and it seems we both ran the rollback
Please, do not edit the received recommendations into your original question. The site regulars are only trying to help here, and I'd rather not have to lock your post. — Mat's Mug ♦ 2 mins ago
@Vogel612 Let it stick so he won't do it again.
I had commented the auto-comment with link
ethan was on plaintext.
@Mast that one could've used a comment...
now it got nuked...
23:00
Hello.
I hit 4K overnight, it seems.
3
next time use the review queue, right guys? there's an extra canned review comment for "thanks" answers
@TheCoffeeCup Congrats, trusted user!
until we maybe get our design in 6-8 weeks
@Vogel612 None of the deletion votes are mine.
@Vogel612 More like 6-8 years
23:01
@Mat'sMug Thanks!
@Mast @Mast what did you expect putting this into chat?
@Vogel612 Double ping?
@TheCoffeeCup pings only once, and I actually sometimes still do that,yes
one for message reply one for @-notification
0
Q: evaluate correctness of Perceptron with 2 output neurons and binary input

S.Matthew_EnglishTo the best of my knowledge I've implemented a functional version of the perceptron algorithm, but as my knowledge is not so developed as of yet I'm wondering if I've done it correctly or not. What concerns me is the very fast time in which the program terminates, I don't think it's considering ...

0
Q: printing job task

AlexNow I have task very similar to this: Job is a group of print items. For example, a job can be a run of business cards, envelopes, and letterhead together. Some items qualify as being sales tax free, whereas, by default, others are not. Sales tax is 7%. Also applies a margin, ...

@Vogel612 oh.
23:03
TTQW
"Please don't go ahead start voting on the answer thinking i brought it up because I want some votes, that's not what i mean." My young Padawan, there is no such thing as rejecting the Meta effect. Posting about an answer on meta, by definition, irrevocably invokes the Meta effect. Instead, you must learn to ~~~EMBRACE IT~~~. — BoltClock ♦ 2 days ago
s/meta/chat
More like 6-8 years with this speed... — Mast Aug 14 at 21:49
Oh.. Sorry about that. Didn't realize it had been said already.
@Vogel612 Flags are requests for second opinions because the site doesn't trust you enough.
@Mast and chat is not. important distinction
flags are in a queue, chat is instantly actionable. Most users here are trusted and aren't afraid to use that power for the good of the site
they (read: I) may be a little overzealous with that though.
23:06
So you're all a bunch of sheep? Is that what you're saying?
What's the argument about?
Hello @happytime.
Okay.. I'm gonna back of before this escalates.
@Mast no. I'm saying you shouldn't run away from the fact that chat works more instantaneous than flags and you should know :)
23:08
I admit, I should've posted a comment there. However, that doesn't make it my responsibility if it got nuked without one.
sure not. at least not solely.
it was a clear cut case, IMO and it wasn't intolerable for the time it takes in the queue. IMO a flag would've been the "cleaner" solution
@Vogel612 I did flag it in the queue, that's where I encountered it.
alas no use crying over spilled milk or how the saying goes :)
@Mast I didn't know that. Sorry
Because it was such a clear cut case, I decided to mention it here as well.
I only mention clear cut cases here.
I mention a hammer once in a while, when I'm absolutely positive something should burn.
and that when it's so much more interesting to discuss the fuzzy cases
23:11
Yup.
Some things should just go away ASAP. We don't want to turn into SO, where flags actually expire.
Wait what? I didn't get my Inquisitive?
@TheCoffeeCup it just takes time to load
@happytime I posted my question last night.
@TheCoffeeCup www.shouldiblamecaching.com
@TheCoffeeCup scheduled task only runs at 1 AM or so
23:14
@TheCoffeeCup Ask a well-received question on 30 separate days, and maintain a positive question record
Did you do that?
@TheCoffeeCup Wait until the reset (00:00UTC).
The questions aren't actually counted until the midnight UTC reset/stat build.
@EBrown Oh.
@Mast Yes I did. Look at pic above.
@TheCoffeeCup In that case you just have to wait for the caching.
@TheCoffeeCup Yes, the reply auto-warned me so I already noticed.
@TheCoffeeCup oh
My god, how many pings do I need?
Just as many as we give you.
@TheCoffeeCup @TheCoffeeCup More!
@TheCoffeeCup @TheCoffeeCup Much more!
runs
@Mast No more!!
23:20
0
Q: Unit tests for a repository with the help of AutoFixture

JakobI find it hard to do a test for a repository and very time consuming. Things I think about when creating unit tests for a repository: Should I skip creating unit test for them? Should I create an in memory database? Should I create a local database for the test? Should I delete inserted data? I...

0
Q: Java programming. Connect four game

user5499053So this program is supposed to model the classic game connect four and works pretty well except for one part. When I put a checker down. say I place Red into 1 and then try to place Blue into 1, it should stack on top of the Red but instead it replaces it the Red one. I will post the entire cod...

Well, 10 more minutes.
@CaptainObvious Broken.
23:35
1
Q: Poor Man's UnDecorateSymbolName

glampertFollowing is my hand-rolled implementation of name demangling for names generated by Microsoft's compiler, partially reimplementing the UnDecorateSymbolName WinAPI function. static std::string getCallConv(char code) { static const std::map<char, std::string> callConvs{ { 'A', "__cdec...

0
Q: Dictionary GetValueOrDefault

christo8989I'm pretty sure there's no better way to do this but I thought a consensus on here might be nice. Let me know what you think. public static TValue GetValueOrDefault<TKey, TValue>(this Dictionary<TKey, TValue> dictionary, TKey key, TValue defaultValue = default(TValue)) { TValue value; re...

@Cᴏʀʏ I am not asking anyone to review my code which is what codereview.stackexchange.com is for. I am asking for ideas on how the code can be reviewed and to address the problem described in the question — VS0930 28 secs ago
And home
Windows counts in items per second now? Never noticed that...
Why does C++ always make one have to specify std::foo?
@Phrancis Namespaces.
And don't you dare start putting using namespace std; everywhere, we'll have your ass for it.
2
23:44
lol
928
Q: Why is "using namespace std;" considered bad practice?

akbiggsI've been told by others on numerous occasions that my teacher was wrong in saying that we should use using namespace std; in our programs. Hence, we should use std::cout and std::cin and these are more proper. However, they did not even make it clear ever why this is a bad practice. Why is usin...

I don't write C++, I was just curious. That explanation makes sense, especially if one was to use multiple namespaces (you can do that right?)
@Phrancis Hundreds, without problem.
lol
Well, that makes perfect sense then
Macro's are less evil, but should be avoided if possible as well.
Is also related to namespaces.
Macro's don't care about them. They just rush all over them.
5
Q: Idiomaticy of macros in C++

MastMacros are considered a good thing by one and evil by another. Is there a rule of thumb when to and when not to use macros in C++? When are macros idiomatic and when should they be avoided?

23:52
0
Q: Cat Clicker MVC

Mônica R.im training my coding and wish you guys say how my code it is. I made a cat clicker based in MVC pattern. How does it look like? html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Cat Clicker</title> </head> <body> <ul id="cat-list"></ul> <div id="cat"> ...

Oh crap, I just realized I forgot to update my documentation when I switched from temp tables to persistent tables... ;/
There's 120MB hidden usage on my USB stick...

« first day (922 days earlier)      last day (3393 days later) »