« first day (857 days earlier)      last day (3143 days later) » 

Zak
10:01 PM
Tried to sleep. not working :(
 
user image
7
TTQW!
 
0
Q: Method and class method debugging decorator

Ethan BierleinA little while ago in The 2nd Monitor, me and @Phrancis were talking about Python and debugging, and the topic of function decorators came up with this message: Ethan Bierlein: You could even build a debug decorator. Give me a sec. So, I built a small, simple debugging decorator, which woul...

 
0
Q: Method and class method debugging decorator

Ethan BierleinA little while ago in The 2nd Monitor, me and @Phrancis were talking about Python and debugging, and the topic of function decorators came up with this message: Ethan Bierlein: You could even build a debug decorator. Give me a sec. So, I built a small, simple debugging decorator, which woul...

 
Well then.
 
possible answer invalidation: codereview.stackexchange.com/questions/27379/…
4
 
10:10 PM
It worked!
 
WHEE!
 
Leaving a 4096 * 8 fractal to draw overnight. Hope my computer does not start a fire. Good night everyone.
 
@Duga You're just getting more and more useful.
3
 
CodeReview is probably the best place for this. — Qix 19 secs ago
 
Next step: Brew coffee and beer
 
10:13 PM
@Duga It's. Code Review. Not. CodeReview.
 
Zak
@Duga It's like you're evolving :)
3
 
@Duga //Declare variable ou prog fonctionnel???? o.O
 
@Duga 4 5 upvotes, no downvotes, no close votes... are you sure?
 
Please note, if this is migrated to Code Review, the title should reflect on the purpose of the code, e.g "A custom printf implementation". — Ethan Bierlein 24 secs ago
 
Great new feature for @Duga, @SimonForsberg!
 
10:15 PM
Duga is evolving!
Your Duga has evolved into a Duga with more useful features!
 
Duga++?
 
@Duga @EthanBierlein I don't think that comment is very relevant at all at the moment. Let's deal with the title if/when it gets here, huh?
 
Right
 
@IsmaelMiguel No, @Duga remains only one person.
 
But a beforehand warning is still useful.
It saves the need to tell them on-site, and get the user to fix it.
 
10:17 PM
@SimonForsberg I can't explain what I meant, but it wasn't that
 
I understood :)
@EthanBierlein true, I just felt that the question had enough (quite irrelevant) comments already
 
Sourcemap changes

This release does not contain the sourcemap comment in the minified file. Sourcemaps have proven to be a very problematic and puzzling thing to developers, spawning hundreds of confused developers on forums like StackOverflow and causing some to think jQuery itself was broken.
... forum ...
 
grr
All the more reason not to use JQuery.
 
Well, the library itself isn't bad
 
@Duga Woot!
 
10:22 PM
You could just grab Sizzle and you're set
 
I'm not looking for a moment and there's magic happening all over the place.
2
This question could use more love. My answer got accepted, but it's mainly a style review and not many in-depth stuff.
8
Q: Find all the primes less or equal than N

yvetteroweThis is not a novel interview problem. But I want to address it with the following points: Implement the algorithm with Object-Oriented Design principles in mind. Optimize the solution, if there are many continuous inputs. Write simple unit tests (without using unit testing framework like gtest...

 
It does need some love
 
@Mast return 0; in main can be dropped. Be careful :p
 
10:30 PM
@Duga @SimonForsberg Uh, maybe it should add a check to see if only code has been edited?
 
@Duga okay that shouldn't have been triggered...
@EthanBierlein it does that...
 
Huh.
Strange.
 
if it's gonna treat every edit by @Jamal as a possible answer invalidation, we will have problems...
 
@Morwenn I was referring to his specific case.
It's not often I encounter return 0 outside of main on CR, but you're right.
 
One solution for this: Add more tests.
 
10:32 PM
@Mast I know, but when you read it, it might be taken as the general case.
 
@SimonForsberg Would it be possible to ignore certain users' edits.
 
@Morwenn Better now?
 
@SimonForsberg I've never heard of overtesting.
 
@Mast Yes ^_^
 
My pleasure
 
10:36 PM
Well, I'm going to sleep now. I think I think my contribution to computer science is enough for today.
 
Pffft, sleep.
 
34 mins ago, by Phrancis
user image
 
@Jamal yes, but I don't think that would be the best solution.
 
1
Q: FizzBuzz w/ C# Code Standarts

ArtxztaHi basicly i'm bored and wrote FizzBuzz. My aim is using Microsoft C# Code Standarts correctly and also flexible code. Here we have a lot of C# developers so i want to ask it ? How can i improve my solution according to Code Standarts. How it can be better etc? using System; using System.Collect...

 
@CaptainObvious Stand arts
Fixed the most grievous mistakes, anyone up for buzzing that title?
Best I could think of was "FizzBuzz up to standards"...
 
10:44 PM
Done
whoops
forgot the end part of the title
 
Why did you leave the C# part in?
We usually remove language tags from titles, unless it can't be replaced
 
argh
I'm forgetting everything
 
Ah well, we can remind you :)
 
Just kidding, I'd already closed the tab, so I didn't get them until just now.
 
namespace WindowsFormsApplication2
{
    public partial class Form1 : Form
    {
Lol ^^
 
10:50 PM
Auto naming
 
Oh, wait. There's another:
private void button1_Click(object sender, EventArgs e)
 
Naming is hard, just leave it to the IDE ^^
 
Oh I am a bloody idiot...
 
@SimonForsberg Why this time?
runs
 
Yeah, but then the IDE gives it enumerated names, like FooBar1, or FooBar2.
Naming is easy, if you don't leave it to the IDE.
 
10:52 PM
@EthanBierlein No, leaving it to the IDE helps you focus on actual coding instead of awfully hard things like naming.
Only semi joking, I need some automated name thingy to keep me from dubbing about names too much.
Of-course, Form1, Form2 is useless.
 
Resharper does that to a certain limit
 
@Mast I included the text after the last code block when doing the String comparison...
 
if you're looping over elements and use the foreach shortcut, it will suggest you the name element in the foreach construct
 
@JeroenVannevel What would it suggest if such meaningless names are fronted?
 
It suggests based on already known stuff: a classname, a collection name, a variable, etc. If you give a few sensible names at the start then you will have some help later on
 
10:59 PM
Sounds good.
I should try that.
 
@JeroenVannevel Node.JS or vanilla?
 
wtf^
 
11:11 PM
@JeroenVannevel Does that result in one request or a series of requests?
 
It's called once
but it never returns
 
After that fateful call, it was never to return again...
 
@JeroenVannevel Could it be the res.send(result) is called before the if?
 
okay @Jamal, @Duga has been improved again now.
 
Synchronisity in Node is a weird thing.
 
11:16 PM
 
If you're foreach-ing over people, then your element is probably a person. If you're foreach-ing over numbers, then your element is probably a number.
 
@Phrancis Fitting
 
Usually, we give plural names to arrays. Thus, when we foreach them, usually the element is the singular of that array's name.
 
@Mast How would that be possible?
 
And if you don't, you get blown up by bombs like in the Codeless Code case, where the guy had to cut the top red wire.
 
11:20 PM
An if is not an asynchronous statement
 
@SimonForsberg Should I also test with an invalidation within the original code?
 
Well, the content in its conditional could be.
 
@JeroenVannevel I usually put it in a callback to make sure. With that framework you never know I found out...
 
What happens when you get 20+ students to write about 3 types of signal impairment, with 3 additional responses to other students?
Answer - more noise in the form of cheerleading comments than signal in the form of helpful results.
Talk about signal impairment...
 
@Jamal I don't think that's necessary. I think everything is working as expected right now.
 
11:23 PM
@Hosch250 Figured it wouldn't be good.
 
Good news is I finally got home.
 
@EBrown Is this a good news/bad news joke?
 
@Hosch250 Nah, no bad news. Only good and neutral.
The neutral news is that I went shopping for food.
 
@EthanBierlein Very nice! If you don't mind, I'll grab that and replace the first one, but I'd definitely like to see (and use) what you come up with after reviews!
 
@Phrancis I don't mind at all. ;-)
 
11:34 PM
@SimonForsberg Okay
 
Apparently I have filled up my phone.
It can now no longer download anything.
 
So, my company is really, really looking for Ruby web devs. To a lesser degree iOS & Android devs. We're looking to hire 10 ASAP, and several, several more over the next year...
 
@nhgrif Mine will likely be looking for a VB.NET/ASP.NET one within the next few months.
 
in The Whiteboard, 5 mins ago, by durron597
@SimonForsberg Deleted questions are now available in SEDE
@200_success @rolfl ^^
 
Oh?
 
11:39 PM
@SimonForsberg This changes things.
 
@SimonForsberg That just in?
 
News to me, yes.
 
I have not confirmed it yet
I don't know if @durron597 is just fooling me...
 
I'm not thinking they are.
Unless they are in a different table.
I don't see any changes to my queries.
 
Wait till Sunday
 
11:41 PM
Ah right.
 
??
 
I forgot about that.
 
It's wrong, there's no deletion dates.
 
select top 100 * from PostsWithDeleted order by CreationDate desc
I see some deletion dates, but only sparingly
 
PostsWithDeleted is a new table then?
 
11:43 PM
Oh, interesting..... new table.
 
Or view
 
@Phrancis Thank God there's someone who's reading documentation...
 
Hmm, posts with a DeletedDate don't have scores, views or content
 
@Phrancis :(
But I need them to have scores!
 
for some values of "available", then...
 
11:44 PM
0
Q: Calling collection.find() causes an internal server error and times out afterwards

Jeroen VannevelI've got an ExpressJS backend and added MongoDB to it. Previously with hardcoded data it worked perfectly but now that I've (tried) to add MongoDB to the pipeline, my request for the data times out. I've inserted a record in a collection using the command prompt: > db stackmailer > db.sites.fin...

 
Time to add Command arguments to my Mandelbrot Generator.
 
I'd posted it on codereview a few days back to get feedback on my writing style and stuff (codereview.stackexchange.com/questions/102585), and I tried to keep the game logic separate, so hopefully it shouldn't be hard to update a UI instead. Since I've no experience with PyGame to start with, I'll keep it simple for now though haha, though if my result looks rubbish I'll have a look into openGL. And cheers for the offer, but unless you can think of anything else that'd help, I think I've got the tips I need to get it working :) — Peter 55 secs ago
 
Are the numbers the same, about 17.2K?
 
@rolfl the on-site search says 17,193 results
 
How you join them, AFAICT
select top 100
 [Post Link] = p.Id
, pwd.*
from PostsWithDeleted  pwd
  left join Posts p
    on pwd.ParentId = p.Id
where pwd.DeletionDate is not null
order by CreationDate desc
 
11:47 PM
OK, it seems the PostsWithDeleted is the Posts table plus deleted content.
No need to join them.... you either want deleted content and normal content together (so you use the Posts table with deleted posts), or you want just the not-deleted stuff, in which case you use Posts.
 
@Phrancis Here I'm thinking that the query doesn't work because nothing is showing, then I realize that "Oh, I have to click on Run Query"
 
The tables appear to have the same columns.... the one is a superset of the other.
 
@SimonForsberg lol
 
I guess it makes sense that they hide some information in the PostsWithDeleted table, as it is a user privilege to gain access to those posts
 
I really wonder though what deleted posts with null content/views are... perhaps posts that were started but never submitted??
 
11:49 PM
I think they have just redacted that information for the deleted posts.
 
Of course, there's not data to indicate one way or the other, besides the CreationDate
 
Drafts aren't available in the SEDE
 
Well the PostsWithDeleted table/view is useless...
At least as far as my queries go.
 
not entirely useless I think, just... not as useful as one might like to :)
 
Wait, PostsWithDeleted but deleted what? Comments can also be deleted... I wonder...
 
11:50 PM
What would you want them for, @EBrown?
 
Well the problem is that they have null scores.
 
Incoming meta. Sorry it's kind of a poorly formed question. I cut myself and am a bit light headed.
 
Ohhhh I get it I think
 
@Phrancis "PostsIncludingDeleted" would be a better name of the table probably
 
11:51 PM
If you add the percentages, using PostsWithDeleted simply lowers all my numbers.
Though, it might yet prove useful...
 
@SimonForsberg No, I think PostsWithDeleted actually include self-deleted posts, as in, a question posted, then deleted, would have itself as having WithDeleted
Kind of a weird self-reference I think
 
You're overthinking it....
Posts is all posts that are not deleted.
 
HOLY FRACK
29% of the posts on Code Review are deleted.
 
PostsWithDeleted are all posts that are not deleted, and also some basic info on posts that are deleted.
@EBrown Almost all posts that are closed, are also deleted.
 
@rolfl Ohhhhh
 
11:54 PM
Oh wtf that's not even one of the higher ones.
 
So if DeletionDate is null, then it's not deleted
 
Programmers has 54% deleted.
 
correct
 
1
Q: Do we really need this [framework]?

RubberDuckI'm questioning the usefulness of the framework tag. There are only 20 questions at the moment and they don't appear to have much in common. Seems like some kind of catch all tag to me. Should we burn it?

 
I'm guessing the PostsWithDeleted.Id doesn't correspond to anything other than just a record sequence number eh?
@Phrancis you're wrong again!
 
11:57 PM
10 million questions on Stack Overflow my ass.
 
@EBrown They need two more deleted now.
And I'm out of flags for the second day in a row.
 
SO has seen over 12 million questions in it's time, 2.62 million of which are deleted/previously not in SEDE.
@Hosch250 Links? I'll throw flags.
 
-2
Q: How can i access this type of json array

Zohaib Ahmad{"result":{"result":{"2015-00":{"qty":0,"qty_items":0,"subtotal":"Dh0.00","discount_total":"Dh0.00","adjustment_amt" :"Dh0.00","payments_amt":"Dh0.00","balance":"Dh0.00","average":"Dh0.00","details":[{"time":"","date" :"","sales_id":"","status":"","client_id":"","client_name":"","subtotal":"Dh0.0...

-1
Q: how can i access object inside object in this type of array

Zohaib Ahmad{"result":{"result":{"2015-00":{"qty":0,"qty_items":0,"subtotal":"Dh0.00","discount_total":"Dh0.00","adjustment_amt" :"Dh0.00","payments_amt":"Dh0.00","balance":"Dh0.00","average":"Dh0.00","details":[{"time":"","date" :"","sales_id":"","status":"","client_id":"","client_name":"","subtotal":"Dh0.0...

 

« first day (857 days earlier)      last day (3143 days later) »