« first day (823 days earlier)      last day (3180 days later) » 

2:00 PM
@Mast I hear they even pay people to do it.
 
@EBrown Absurd.
@EBrown He changed the title ^^
1
Q: (Skill Calculator) This algorithm checks whether or not the following tier of skills has points in it, Is it possible to do this more efficiently?

NoahKrI'm working on a skill tree calculator for a game and I made a method that checks whether or not it can subtract a point from the skill and then proceeds to do so. Everything is working as it should, however it's very slow when this method is executed in rapid succession (i.e. when 5 points are s...

 
reedited
 
@Mast Not exactly a quality title, but better than the first?
 
Thank you, much better.
 
@Vogel612 Much improved. :)
 
2:02 PM
I wanted something witty for "skill x" but eh
 
We need a generator for witty titles.
Perhaps we should make it a proposal.
 
Regularity in the Rusty towel of mutual understanding?
 
That ^^
 
@Mast Define witty.
 
@EBrown Ask Vogel, not me.
> Can anyone help me with this and more important explain why certain things are faster and what to avoid.
 
2:04 PM
@Vogel612 I think we need a more accurate definition of witty.
 
Can I remove a Skillpoint from Zombie-Killing?
Witty may refer to: Witty (computer worm), a computer worm that attacks the firewall and other computer security products written by Internet Security Systems Witty (software), a free Twitter client for Microsoft Windows Witty is also the coolest person to ever walk the earth...
 
Well, that auto-box is one of the best I've ever seen.
 
wiki:witty
wiktionary:witty
d'awww...
 
Greetings
 
Aloha
 
2:07 PM
Olá
 
What's an appropriate name for a VB.NET module that has helper functions? The original programmer of this project called it SideFunctions, but that seems...archaic...to me.
 
What do those functions do? (Sorry, forgot how to English good)
 
All sorts of carp.
 
Helpers
Hope it works for you
 
You're not helping...
 
2:10 PM
I'm trying
At least I gave a suggestion
 
Also, I've horribly broken some of my code.
 
If it contains loads of carp, make it CarpPool
 
@EBrown you should have functions grouped
 
@Malachi I know, I still need to clean/migrate a bunch of them to appropriate locations.
 
I would name the group appropriately with something pertinent to what it helps with
XxxxxxHelpers ?
you shouldn't just throw stuff into a class/struct/module that doesn't go together
 
2:12 PM
@Malachi If you only leave 3 x, it will be a NSFW name
 
by you I mean the other programmer
@IsmaelMiguel that is why I didn't do that....lol
 
Yeah, he did that initially, which is what's irritating about it.
This entire ASP.NET app looks like one large monolithic, non-OOP thing.
 
the current project I am on, I am the original writer, so I am trying my best to make it my best code
@EBrown YUCK
 
@EBrown You mean, he just made a crap pile?
 
HTML/CSS/Javascript, anyone? --> codereview.stackexchange.com/q/99017/18427
 
2:14 PM
@Malachi Any question?
 
We have a TableExists method, which uses the following SQL: SELECT COUNT(*) FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[" & TableName & "]') AND type in (N'U')
Because he was storing each customers cart in it's own table.
So we had a Cart00000001, Cart00000002, etc.
 
@Mast sorry I wanted to see if I could reply to a message that hadn't happened yet
 
@Malachi I saw it a while ago, but I forgot to upvote
 
Where 00000001 and 00000002 are customer numbers.
 
This post contains some java partition implementations between odd and even int's. — Robadob 59 secs ago
 
2:16 PM
@Malachi And, did it work?
 
How many costumers tables you have?
 
@IsmaelMiguel sounds like he did it as a challenge
 
Doesn't work here.
 
Nope.
 
@Mast check it out, I just pinged you
 
2:17 PM
^^
 
@Malachi Can you edit a comment to point to a message in the future?
 
2 mins ago, by Ismael Miguel
@EBrown You mean, he just made a crap pile?
 
@Mast Yes you can.
 
I misspelled carp
 
You're going to scare some sysop one day @Malachi
 
2:17 PM
:23230985: lol
3
lol
 
Can you make a circular reference?
 
Yes.
@Mast You can even ping your own comment.
 
I fixed my horrible f-up! :)
 
Nice!
 
Did I ever mention that I absolutely hate Access?
 
2:19 PM
Somehow I ended up calculating an item's extended price as -1 * Quantity instead of Price * Quantity.
 
@Malachi lol
 
@Phrancis Is it needed?
 
@IsmaelMiguel Sometimes :\
 
@Phrancis I though it was implied in every human being
 
had to remember the syntax
I am done now, I have real work to do
 
2:21 PM
Did it ping yourself?
 
@Phrancis I think I found your problem.
 
@EBrown yeah
 
@EBrown I think I found one as well. He is running Access.
2
 
@IsmaelMiguel I literally copied his code and only changed the two things I said I changed. The CSS and the Space before the Braces
 
2:24 PM
@Malachi Now you have one more point to point to the O.P.
 
@IsmaelMiguel but I agree with you
isn't there a difference in JavaScript between single and double quotes? don't they do different things
 
@Malachi I only pointed it in a comment because both of you made the same mistake. Also, writting an answer just to say "You have inconsistent quotes" is useless
@Malachi No, there is no difference. But there is in php
 
ahh. I get the two mixed up, pretty often lately it seems
 
Don't worry
 
@Phrancis that is an ugly looking query. how can you read that?
 
2:27 PM
@Malachi With his eyes.
 
@EBrown You read it with his eyes?
 
@Malachi I use that difference in quotes to detect if a code is running in PHP or Javascript
That's how I did on my questions on
 
I would rather use single quotes, give my pinky a rest :)
 
I always use single quotes
It's faster in PHP
'\0' == "\0" will return false in PHP
 
@IsmaelMiguel WTF
 
2:30 PM
@Phrancis only half the keywords are Capitalized, and nothing is indented or newlined the way it should be.
 
Because character sequences in single quotes won't be interpreted
But they will in double-quotes
Basically, what code is the same as "\\0" == chr(0), which is false.
 
single quotes are literal, and double quotes are interpreted(probably not the right word)
 
@Phrancis That doesn't look nice...
 
@Malachi And expanded. You can do neat stuff with them
 
I don't do much anything with PHP
 
2:32 PM
$a='strtoupper'; echo "Try {$a('this')}!";
That should output "Try THIS!"
If you use single quotes, it will output "Try {$a('this')}!"
 
0
Q: JAX-WS client to accept server certificates

agenthostI am building a JAX-WS client with a GUI that connects to a server by accepting self-signed server certificates(when it uses https). The accepting of the certificates is not automatic, it is similar to what happens in any browser when you try to connect to a website that is not trusted. That is, ...

 
That's awfully confusing.
 
If you use single quotes it won't work, at all.
 
@Mast You get used to it
 
@Malachi With difficulty
2
 
2:35 PM
Because 'Try {$a('this')}!'; will throw a parser error.
Because the this bit is outside the quotes.
 
@Mast It looked good when I wrote it, but Access doesn't save any formatting so it mangles your query code when you open it up again to edit it
 
@EBrown You have to escape the quotes inside those quotes
 
So it's essentially tokenized as: 'Try {$a(', this, ')}!', ;.
 
@Phrancis It doesn't save extra newlines?
 
@Mast Only when you initially write it. It eats up all whitespace after you run it. It also doesn't support comments
 
2:38 PM
Anyway, back to work.
 
BTW.Work
@Phrancis that sucks
 
@EBrown I don't know what you mean, but you have to write the string as 'Try {$a(\'this\')}!'
 
21 mins ago, by Phrancis
Did I ever mention that I absolutely hate Access?
 
@IsmaelMiguel You don't know what a tokenizer is?
 
@EBrown Somewhat
I have a loose idea
 
2:42 PM
Because if you simply replace the ", with ', the tokenizer will parse the this bit as it's own token, and the parser will then error.
 
0
Q: calculating opengl view matrices

user1610950I'd like a little help here calculating the view matrix for opengl based on the lookat type function. vec3f eye = {0, 0, 0}; vec3f center = {10, 2, 21}; vec3f up = {0, 1, 0}; mat4* vm; mat4LookAt(vm, &eye, &center, &up); mat4print("lookat",vm); this code outputs this matrix below ...

0
Q: stored procedure logic

user79543I have a stored procedure that determines the date logic for when an account should receive a statement. I would like to improve this stored procedure to account for upload days on Monday it should pick up a Saturday or Sunday,after a long holiday it should pick up those 3 days for example Labor ...

 
Unless you escape the single quotes around the this.
 
Actually, it won't error
 
That was what I was getting at.
 
@EBrown you could just write 'Try {$a(\'this\')}' though..
 
2:43 PM
@Vogel612 I know, but that was not what he said he was doing with it.
 
It will complain that there's no constant this and will interpret it as 'this'
@EBrown I only showed the final result, not the whole code
10 mins ago, by Ismael Miguel
If you use single quotes, it will output "Try {$a('this')}!"
I assumed that you would properly escape the quotes
 
Never assume.
2
 
I can see you have now asked this on Code Review. Please delete this question. — ChipsLetten 45 secs ago
 
@Mast Point taken, will remember it next time.
But even if you do echo 'Try {$a(',this,')}!';, it would run.
 
It was supposed to be a joke about how you always take things far too seriously, but clearly it sailed over your head like a kite without a string.
 
2:51 PM
@EBrown Sorry. I have a broken/non-existing sense of humor. I take everything seriously. I tried to fix it but failed too many times.
 
@CaptainObvious Got excited there for a second, but now it looks a bit like ...
 
0
Q: Copying and pasting from MS Project to MS Excel with VBA

Seth39195Here is my code to copy data from project into excel to be calculated into a final report. The code runs pretty slowly at this point and I would like it to be a little bit faster. Is there any blatant coding mishaps that are slowing the calculations down? The code is written in excel, by the way....

 
@Phrancis UWYA'd for that.
I agree with Malachi's comment.
 
@Mast UWYA?
 
3:26 PM
All programmers need this cheat sheet: bigocheatsheet.com
 
@Phrancis Unclear What You're Asking
 
@Vogel612 I thought it was, "U wot, ya a-hole".
 
-1
Q: Mocking NTPUDPClient in unit test

edwardmlyteI have the following class within a maven project, and could not figure out a way to mock the final class NTPUDPClient for a decent mockito driven unit test(s). import java.io.IOException; import java.net.InetAddress; import java.net.UnknownHostException; import org.apache.commons.net.ntp.NTPUD...

 
3:43 PM
@EBrown Whichever you prefer.
@CaptainObvious B-b-b-b-b-b-broken!
 
I think that this question is more appropriate for codereview.stackexchange.com. — Victor May 48 secs ago
No, it's broken. Don't recommend migrating broken code to Code Review. — Mast 29 secs ago
 
4:05 PM
If you want, you can try some code I wrote a few days ago. You can find it on codereview.stackexchange.com/questions/98134/…. Sadly, I haven't published the reviewed version on github. But, if you are interested, I can do it today. — Ismael Miguel 8 secs ago
 
1
Q: Combine these LINQ queries into one query

rogerdeuceI have these two queries and they work just fine. I use the values they retrieve to populate a title for a view in my application. It seems though that I should be able to accomplish this with one query and I do not know how. Dim firstName = (From row In db.ItemDetails Where row.Unique_Loc...

 
@Mast what?
monking
 
@Malachi Follow the links ^^
are you looking to have this reviewed, or are you looking for help implementing new functionality? the later is off-topic here. — Malachi 1 hour ago
@IsmaelMiguel What's wrong with this answer?
 
@Mast I agree with that comment too
 
-1
A: Function queue for synchronous execution

Joseph the Dreamer With this in mind, it also allows to execute them with a defined delay, to prevent them from blocking the browser. This is a common misconception of how the timers work. Currently executing code doesn't stop when a timer expires. That callback waits until the currently running code finishes....

@Malachi Congratulations, you officially agreed with yourself.
2
 
4:12 PM
right on!
 
Far out!
 
this is so off-topic --> stackapps.com/q/3802/14123
33
Q: Punch a user button!

Manishearth Gotten frustrated with a user? Want to vent? Feel like punching them? Don't worry, here's a script that adds a "Punch" button to every gravatar. You can punch all the worst users now: Installation Click here to install. Will work in Chrome or Firefox (the latter requires Greasemonkey). S...

 
0
Q: Code to find the maximum sum of any contiguous sequence in the array

arlThe problem statement is to find the maximum sum of any contiguous sequence in an array and also find the number of contiguous sequences that have the maximum sum . By contiguous sequences ,I mean sub arrays. The following code is giving correct output for all the test cases that I have tried lik...

 
@Malachi Actually I think it's on-topic.
Not very useful, but ey...
 
lol
 
4:14 PM
Fizzbuzz isn't useful either.
And we all wrote it anyway!
It's a conspiracy!
 
@Mast I don't know about you but that seems very useful to me.
@Mast What is that about?
 
Hey guys, that SU answer is now removed.
 
@Hosch250 What SU answer?
 
@EBrown Question for @IsmaelMiguel
 
1
Q: Change default fonts in Edge

Hong OoiIs there a way of changing the default fonts in Microsoft Edge? In particular, it looks like the default monospace font in Edge is Courier New. How do I make it use Consolas instead? (There's a Settings menu item to change the style and font size, but that applies only to Reading view.)

 
4:21 PM
Ah, the edgy one.
 
@Hosch250 Ah, that one.
 
Yeah, I got a helpful spam flag on it.
Wonder why NAA was declined, and spam wasn't.
 
@Hosch250 @Jamal My NAA flag wasn't declined.
 
@Mast I like how he expects a user to join him in a chatroom and then downvotes for the user not joining him, without even posting a reason as to why he wanted the user to join him in the first place.
 
Oh.
 
4:23 PM
@EBrown That's what it looks like, yea. Which triggered my question.
There may be more to it though.
So I'll ping @IsmaelMiguel till he elaborates.
 
4:39 PM
0
Q: Small Kivy application

he2loI've written a small app using the kivy framework, which aims at reviewing your times tables. My major concern is about making this app easier to improve in the future. That is, how to organize the code to make it more clearer (by adding a "User" class that would store the data associated to the ...

 
"erotically" intuitive? — Steven 13 mins ago
The question is off-topic, too.
 
I'm voting to close this question as off-topic because it belongs on CodeReview — Nathaniel Ford 41 secs ago
 
@Jamal just has to go editing my questions. :P
"15,507 posts edited" holy carp
 
@NathanielFord: It was already posted there, so it should just be closed normally. "Closing X because it belongs on Y" isn't a valid close reason in itself, either. — Jamal 31 secs ago
 
5:14 PM
I'm voting to close this question as off-topic because it belongs to code review. However, that option is not given in the "This question belongs on another site" dialog. — Rüdiger Klaehn 49 secs ago
@RüdigerKlaehn No, this code is not working, and as such is not a good fit for Code review. — EBrown just now
 
0
Q: Optimizing OpenCV's undistortPoints

major mishapI am working on improving the runtime of code that undistorts every pixel point in an image. Currently each point is undistorted via a call to cv::undistortPoints() as shown below: cv::Mat src(1, 1, CV_32FC2); // Create src and dst cv::Mat objects for cv::undistortPoints cv::Mat ...

-1
Q: I am looking for sites with PHP project

mohammad farukI am looking for a sites where a lot of PHP projects will be available so that I can practice to improve my skill. I am giving an example : http://codepen.io/ we know this sites is best to learn HTML, CSS, JS but here there are no PHP projects. That is why I am looking for a sites where I will ...

 
5:30 PM
@CaptainObvious VTC
 
5:44 PM
Do negative rep points carry if you have 1 rep? I.e. if you get 6 downvotes, do the -12 that would have generated carry to your first 12 rep?
 
If you have 1 rep and get 6 downvotes, then it's not a good sign :P
 
Or do negative rep actions only affect accumulated rep as of the moment of the action?
 
It seems that your code currently works, and you are looking to improve it. Generally these questions are too opinionated for this site, but you might find better luck at CodeReview.SE. Remember to read their requirements as they are a bit more strict than this site. — Kyll 5 secs ago
 
5:52 PM
@Duga Looks like a "please do this for me" question.
 
@JeroenVannevel Hi, I have a quick question for you.
I implemented issue #20, and all my tests are passing.
But, did you know that VS has this very warning with a fix built in?
 
Yeah, I'm aware
That's okay -- it's still good to be complete
 
OK.
 
And it will also be useful as part of a commandline process
 
Sure. Is there any way I can test it in real life before I PR?
 
5:57 PM
0
Q: Magic Numbers Recursive Solver

SirParselotI wrote a program to solve a magic numbers puzzle. The puzzle works like this: You have an NxN square where each row, column, and diagonals add up to x except some of the numbers in the square are switched. Find the numbers that are out of place and switch them. here's an example: 16 16 11...

 
6:08 PM
You can take a peek when you are ready, @JeroenVannevel.
 
Might be better suited for codereview.stackexchange.com, since they focus more on working code.. — wilcroft 42 secs ago
@Kyll I doubt the OP has written this code himself but is looking for an explanation of somebody else's code. Such posts get closed on Code Review as Questions seeking an explanation of someone else's code are also off-topic. Thank you for linking to the on-topic help-centre! — Mast 45 secs ago
 
6:33 PM
0
Q: Unit testing a method that iterates through loops

user3610360I am trying to come up with a good way to test a method that goes through some loops and then gets an object and calls one of its methods. That class has its own tests so I'm not sure exactly what to test here. I have written it to have different behavior in the test case, which is obviously not...

 
@Hosch250 Yeah, just launch the VS debug instance
I'll review it after my dinner, brb
 
Since this is Python, you'll have to fix your indentation before we can review. Unindented Python is broken code. — Mast 8 secs ago
One of those languages where you can't get away with it if you don't indent properly.
 
Indeed.
It's impossible to evaluate unindented python.
Which is one of the nice things aboue it.
 
Indeed. Either your indentation is correct or it won't function.
I wouldn't go as far as Python is forcing you to write readable code, since it's perfectly possible to Golf in it...
But it helps.
It also kills the war about where to put your braces.
 
6:49 PM
Yes, it does eliminate those holy wars.
 
http://www.commitstrip.com/en/2015/08/05/if-coders-were-football-player/
CommitStrip - Blog relating the daily life of web agencies developers
If coders were football players
CommitStrip
1438800372
 
Welcome to Stack Overflow. Please take the time to familiarize yourself with the Stack Overflow help file, which will help you understand what kinds of questions are appropriate for this site. This site is intended to help you obtain answers to specific programming questions, as opposed to providing tutorial, design or code review assistance. — MarsAtomic just now
 
@Mast Except the python in that question is indented.
 
0
Q: Spring resttemplate and service to handle article tags

KristofI have a RESTController, Service, and Repositories to help me handle Tags on articles. I am however not exactly happy with the way it's structured now, mostly when it comes to the exceptions being thrown from the Service layer to the Controller (webservice) layer. This is my current code: My co...

 
@EBrown It wasn't when I checked. The 0-tab and 1-tab were on the same line, all deeper were missing a tab.
Or 4 spaces, they're equal in my environments.
 

« first day (823 days earlier)      last day (3180 days later) »