« first day (768 days earlier)      last day (3242 days later) » 

12:01 PM
0
Q: C# if statmenets refactoring

user75534I think that this code is very bad because it do not agree with DRY principle. Can you advise me how to improve it? public void WhatSelected(object paramaters) { string ElementToProcess = BASM.FindElement(paramaters, true); SeleсtedCurrent.Add(ElementToProcess); int...

 
@CaptainObvious Afar from violating DRY there doesn't seem to be missing much.
DRY is overrated in this case.
 
@CaptainObvious Is that broken code?
 
@Quill It's a bad question to say the least.
 
@Mast But,
1 min ago, by Quill
@CaptainObvious Is that broken code?
 
Not properly formatted, so can't tell. For some reason the edit box is greyed out.
 
12:08 PM
@Mast I made a grammar edit, probably that at a guess
 
@Quill As far as I can see, it won't work.
But to be honest, I'm not sure what it should do. It's vague.
 
@Mast Just asking for a double close?
 
@Morwenn: No reference (maybe a video from a talk). I actually wanted to talk to you about that. Scott Meyers has recently opposed this idiom, stating that overloading the function to work via R-value reference removes the cost of one move operation
 
@Quill If I go solely on the title, the OP knows it's broken.
 
@CaptainObvious needs linting...
 
12:23 PM
@Morwenn: From github.com/sean-parent/sean-parent.github.io/wiki/… look into github.com/sean-parent/sean-parent.github.com/wiki/… page 77 is about sink arguments, I don't know when he introduced this idea and explained it a bit more
 
@CaptainObvious How did that question survive the review queue anyway?
 
12:35 PM
Code reviews should be posted on codereview.stackexchange.com. SO requires you to have a specific question. — Maarten Bodewes 7 secs ago
 
Greetings, Programs.
 
@Nobody Herb Sutter ended opposing it too except for constructors.
 
Hey, I was just running a quick sede query, and it gave me an age of myself that's a (literal +1) year old than I am, and with a birthday ages away, what's going on? Is SEDE unable to properly calculate age or something?
 
And Clang modernizer converts only the constructors to use the idiom.
 
Do you have any official statements from the Gurus that you could link to?
 
12:39 PM
Nope, people just fought over it.
 
So I guess it is not yet settled?
 
I don't remember but I think it was in a CppCon presentation.
 
Yep
Could have been a panel discussion as well
 
But if it was a presenation then I am quite sure it was one of Meyers's
 
12:41 PM
Too many C++ gurus.
 
@Morwenn Is it good stuff?
 
That would not be a problem if they weren't divided upon what to do
 
@Mast Many very interesting presentations.
Lots of modern C++ code and interesting ideas. Many papers are quite expert-friendly though.
 
@Morwenn: I can second that. However, did you see the Key Note talk by the Game programmer?
 
@Nobody Data-oriented programming?
 
12:45 PM
I think that was it
 
"Throw away abstraction if you want speed."
 
where he basically threw out C++ and stated that they would love to code only in Assembler
 
Yeah, I felt like being slapped in the face when reading it.
Very interesting presentation.
 
I also loved the one about Curiosity and the other Mars rovers
 
Yeah, also :)
I rather gave up one the ones about lock-free programming.
 
12:47 PM
@Nobody Sounds like premature optimization.
 
It made my head hurt.
 
@Donald.McLean: Yeah I am very sceptical about this one. They seemed to sacrifice everything to the performance god.
 
The arguments about arrays of structs being not cache-friendly at all were receivable.
 
@Morwenn : How hard can it be?
 
@Nobody Infinite loops, strange stuff, copies everywhere.
And still faster than mutexes.
 
12:49 PM
@Morwenn I only see presentations, no papers or anything.
 
@Mast There are only presentations.
 
Giving up abstraction seems... stupid
 
@skiwi well... abstraction is always sacrificing speed
 
Yes, but it also creates headaches
 
@Vogel612 Not always.
@skiwi Go read the presentation, it's interesting :)
 
12:50 PM
@Morwenn That's where the compiler comes in.
 
@Mast The compiler can't guess everything for you.
 
@Morwenn abstraction in and of itself is a sacrifice of speed for human-readability
 
@Morwenn If I would have some more extra time
 
@Vogel612 Iterators are a great example of abstraction without a cost.
 
If you give me a link I can add it to the 1558 tabs I still want to read
3
 
12:51 PM
@Morwenn I still have to read into it what it can and what it can't do.
 
you can mitigate the effects by some compiler tricks (method inlining, loop unrolling, and some more)...
 
I'm usually using a SFIFOSLIFO stack to process my tabs...
 
@Morwenn that depends on what's lying under that
 
@Mast It can optimize patterns, not choose a better algorithm.
 
@Morwenn: But the algorithmic part was not the focus of the talk
 
12:54 PM
@Nobody True. But a compiler cannot violate the as-if rule. So it has limitations.
 
It was pretty much centered around: How to fit your data and program onto your platform as tightly as possible to squeeze out as much as possible
 
Well, about cache-friendliness.
 
@Morwenn The more intelligent the compiler becomes the more leeway it gains in "interpreting" the as-if rule
and underlying implementations can be optimized as well
 
Of course. But it still doesn't always know about the intent of the programmer.
 
@skiwi Abstractions are what make modern programming possible. Languages like Java and Scala are built with abstraction on top of abstraction, on top of abstraction.
 
12:57 PM
Well, sometimes the programmer doesn't know too. :)
 
By the way, with more abstraction, the compiler knows more about the intent and can end up producing better code.
 
I totally agree
 
Meh, I'm trying to defend both sides at once. This won't go anywhere .____.
4
 
during the talk I always thought in the back of my head: How many man hours are they wasting on solving problems that would not have occured or would have been easier with proper abstraction
 
Hmmm I have a map of dependencies, like {"module1" : ["module2", "module3"], "module2": ["module3"]}, is there an easy way to check if there's cycles?
For what kind of algorithm should I be looking? (I'd like to avoid graph algorithms if possible)
 
1:06 PM
@skiwi Hey, if I remember well, you found an interesting bug in my expression parser the other time, right?
You could make an answer out of it. The questions still lack a bit of answer compared to the quantity of code I posted :p
 
@Morwenn Well... If I would have time
 
@skiwi You have time to chat...
 
@Morwenn But
It takes more effort to write an answer than to write one line of chat
 
0
Q: Top 150 30 >= yr old users, sorted by age, with rank

QuillIn the pursuit of SQL enlightenment, I wrote a quick SEDE query to display Rep, Age and Overall Rank. Sorted by Age, then Rank (Which is generated by Rep). SELECT TOP 150 ROW_NUMBER() OVER (ORDER BY Users.Reputation DESC) AS Rank, Users.Id as [User Link], Users.Age, Users.Reputation as R...

 
1 min ago, by Captain Obvious
0
Q: Top 150 30 >= yr old users, sorted by age, with rank

QuillIn the pursuit of SQL enlightenment, I wrote a quick SEDE query to display Rep, Age and Overall Rank. Sorted by Age, then Rank (Which is generated by Rep). SELECT TOP 150 ROW_NUMBER() OVER (ORDER BY Users.Reputation DESC) AS Rank, Users.Id as [User Link], Users.Age, Users.Reputation as R...

 
1:15 PM
@skiwi: It is a graph problem, so ...
I would go for DFS
 
@Quill do you know about sede parameters?
 
A little
I read over @Hosch's updated Australia query a while ago
 
take a look at this then
also.. you are aware that the limit is truncating according to age, and not rep-rank?
 
@Vogel612 ooh, that looks fancy
Thanks @rolfl
 
1:37 PM
Monking
 
0
Q: C# Linq refactoring

user75534I have some code that asynchronously load some point in chart when user drag it. private void UpdateHistoryAndReSizeWhenDrag(string param, long duration) { lock (Lock) { if (Boxes.Count() > 0) { BoxStruct temp = Boxes.Where(key => key.i...

 
Wow. It's hard for me to believe that I'm the top 10 in the weekly rep ranks.
2
 
What? I'm 23, not 24 :(
 
And in the top 10 for the month as well too. Wow.
 
That means that CR's less than 30 year old high rankers are actually all under 24 year old.
Interesting.
 
1:45 PM
@QPaysTaxes I found out why my SEDE query was not working right, I didn't do my WHERE clause correctly with OR statements. Here is a working version, you're welcome to add more keywords and such. data.stackexchange.com/codereview/query/324867/qpaystaxes
 
Sorry @all, thought it updated
@Morwenn and Did it for me too
 
mhh playing with the data explorer
SELECT TOP 150
ROW_NUMBER() OVER (ORDER BY Users.Reputation DESC) AS Rank,
Users.Id as [User Link],
Users.Age,
Users.Reputation as Rep
FROM Users
WHERE Users.Age IS NOT NULL AND Users.Reputation > 150 AND Users.Age= 35
ORDER BY Rank ASC;
and I'm not in it :(
while mine profile says I'm 35
 
So... there was just a fire alarm in this university building
 
@skiwi yay! What fun!
 
1:55 PM
And appareantly it was not a drill
 
skiwi was downloading to much and server overheated
4
 
@chillworld skiwi hacked the university servers and repurposed them as bitcoin miners (and they overheated)
2
 
@Quill also possible but I'm thinking if @skiwi do hacking it's a white hat hacker
 
0
Q: passing queries (i want to access section id of another pages from another page)

Lesley Ryan Mphahlele<ul class="col-sm-3 list-unstyled"> <li> <a class="show-1" href="about.php#our_story"><span class="fa fa-2x fa-book"></span>Our Story</a> </li> </ul> <ul class="col-sm-3 list-unstyled"> ...

 
@Quill skiwi microwaved a hot dog for far far far too long.
@CaptainObvious Hey! we were playing a game here!
 
1:57 PM
a superheated dog :)
 
@skiwi skiwi tried to watch a youtube video in 8k quality and crashed the servers
 
or else a blond throw some water on the computer for surfing ^^
 
@CaptainObvious Broken code?
> here is the javascript i tried using still no luck with it
 
I'm off to home
cu all
 
Thanks @Lyle'sMug
 
2:03 PM
@skiwi What did you do this time?
@CaptainObvious Burn it. With lemons.
4
 
I didn't do anything, trust me!
Not sure what is was though and we could go back inside quite quickly, but it was not a planned drill
 
450
Q: The Many Memes of Meta

TheTXICatchphrases and concepts that spread from person to person are known as memes, which, courtesy the Internet, can now explode across the Earth like a highly contagious virus (hence "going viral"). As with their real-life counterparts, some infectious diseases are global (pandemic), while others a...

 
Someone want to see if they can help this guy out?
the none broke code is long that's why i didn't post it all — Lesley Ryan Mphahlele 1 min ago
 
@RubberDuck Do you want a nice answer or an honest answer?
 
If you can't be nice, please don't bother.
 
2:14 PM
@skiwi: At my university the computer science department and the chemistry department share one building
there was a time when there would be 2-3 false alarms per day
the saying was: start running when the chemists do
4
 
@RubberDuck The short answer is he made the wrong decision.
 
@Mast busy. No time to argue.
If you don't want to help retain a potential new user, let some one else do it.
 
@RubberDuck I want to. That's why I'm stating it here instead of in the comments. Stating it there would scare him away. I'm kind of direct in things like these. Long code is not necessarily a problem here, now he created a problem where he didn't have one.
 
@Vogel612 ▼▼▼
@Quill you're welcome. I assumed that is what you were looking for
 
hmm....
 
2:18 PM
As long as the code fits in one question, it isn't too long. We prefer long code over broken code. Broken code is off-topic, long code isn't. — Mast 10 secs ago
 
@Marc-Andre see my answer
 
@RubberDuck Better?
 
@Lyle'sMug I'm trying to order by age, then by rank
With focus on age, then rank
 
I see.
 
rank is a unique field, the second order would be pointless (Unless same rep, then age, which is pretty unlikely)
 
2:23 PM
@Quill your query is far too simple.... you pull 150 people, and want to sort by age, how many people per "year old" do you want to grab at max, at min?
 
@Lyle'sMug I suppose it is simple, and with ages around 25 I'm sure there'd be tons of people with the same age.. hmmm
2
 
Monking, again
 
also that was the reason for the Rep check (bonus 100 rep from other sites, plus at least one alright question check)
 
@Quill I understand where your query is at now that it is made clear to me...
 
@Lyle'sMug, what about WHERE Rank <= 150
 
2:27 PM
@Quill the query that I have filters those past the 150 records mark, so I don't have to worry about them. yours on the other hand needs that definition
 
@Quill that seems more interesting...
 
@Nobody lol, nice
 
@Vogel612 Usually when people sign up for an SE site they post an answer or question, and rack up a little more than 101, so I kinda tried to blanket them with the 150 value
 
So I implemented cycle detection
 
@Quill, your query doesn't go over age 21, what about age > 21?
 
2:30 PM
graph = DiGraph(dependencies)
cycles = list(simple_cycles(graph))
if cycles:
    raise ImportCourseException("There are cycles present in your course: " + str(cycles))
 
@Lyle'sMug Huh? Users.Age <= 30
 
@Quill rank is different than Repuation
 
It seems indeed strange that the shelvesets "CodeReview_" are linked to the code review, so if you delete these, the link is also broken ??? — Stef 51 secs ago
 
@Lyle'sMug Rank is your total position (out of everyone) based on your rep (is it?)
 
2:33 PM
If it works then post it on codereviewBhargav Rao 24 secs ago
 
@Quill your query starts at like 14 years old and only makes it to 21,
 
@Lyle'sMug Oh, apologies, that's just the 150 limit in place, which would be fixed with @Vogel612's param suggestion
 
I was surprised I was not on that list, but then I realized.... Get off my lawn!!!! ... kids these days.... :-] — rolfl ♦ 23 secs ago
6
 
@Quill that is why I was saying, do you want the top 5 per age or do you want the top 150 people under age 30. your query isn't fully defined yet.
is age one of those things that you can hide on your profile?
 
@Lyle'sMug well.. you can choose not to give them a birthdate
btw. my age is correct... but that may be because my birthday was just recently...
 
2:36 PM
@Lyle'sMug You're right, it isn't fully defined. I'm not really sure which solution presents better data on young SE users
Monking @QPaysTaxes
 
@Vogel612 age doesn't show on your profile at all anymore
@Quill I would take my query with the parameter idea from @Vogel612 and make it so you can see the top 150 users per age group
 
@Lyle'sMug Why are you guys interested in age checking all of a sudden?
 
4
Q: Top users under age 30, sorted by age, with rank

QuillIn the pursuit of SQL enlightenment, I wrote a quick SEDE query to display Rep, Age and Overall Rank. Sorted by Age, then Rank (Which is generated by Rep). SELECT TOP 150 ROW_NUMBER() OVER (ORDER BY Users.Reputation DESC) AS Rank, Users.Id as [User Link], Users.Age, Users.Reputation as R...

 
@Mast Keep the 13 year-old script kiddies out?
3
 
▲▲▲
 
2:39 PM
@FreeMan lol
 
Also, @all
3
Q: Data on data.stackexchange.com is seriously flawed

orlp Possible Duplicate: Age calculations are wrong in the data dump export Age field in database off by one I was messing around a bit and then I did this query: http://data.stackexchange.com/stackoverflow/query/63363/wtf Compare that with my real profile: http://stackoverflow.com/use...

 
almost 10AM and I haven't had any coffee!!!!
2
 
@Lyle'sMug Mug, go fill yourself.
3
 
@Mast To find young, talented programmers.
 
2:40 PM
This is not really a programming question might be a better question for programmers.stackexchange.com ( conceptual questions) or codereview.stackexchange.com ( peer programmer code reviews). Welcome to stack overflow, recommended reading: stackoverflow.com/help/how-to-askDan Beaulieu 29 secs ago
 
@QPaysTaxes See:
86  2
87  1
88  1
90  1
92  1
93  1
94  9
95  112

(77 row(s) returned)
 
@EthanBierlein Yea, like everyone's age is correct all of a sudden. It's the internet. Even IPs are faked.
 
That... also this:
 
@Mast Well, there are always people who lie...
 
@rolfl Let me guess, 1900 is the lowest year being considered legal input?
 
2:41 PM
But there are still those who aren't.
 
Most people don't populate the field ^^^^
 
@Mast then I'd expect 115 as outlier, and not 95
 
@Lyle'sMug Oh well, it's a nice exercise.
3 mins ago, by Lyle's Mug
almost 10AM and I haven't had any coffee!!!!
It's 5 PM here and still haven't had coffee. Working from home today.
 
don't go making excuses, it's almost 5 PM here and I already had something between 3 and 5 cups..
 
@Vogel612 Getting some coffee, back in a couple of minutes (home machine isn't as quick as the one on work)
 
2:44 PM
@QPaysTaxes If I were determined, I could probably do that, too...
then again the first two weeks would be a headache hell from caffeine withdrawal
 
It's a shame SE doesn't have a gender setting, that'd certainly make for some interesting SEDE-query based discussions
 
It's almost 11am here and I just got a Dew. One of those mornings...
 
I think additionally to the already low percentage of females in this field, most would not set it
 
@QPaysTaxes I was thinking more towards population percentages, but your idea is cool
@Nobody The age field is only a SEDE query now
 
@QPaysTaxes The issue is I had forgot to wrap my OR conditions in parentheses so it filtered like this, as visually represented:
WHERE
  Posts.Title LIKE '%please%' OR
  Posts.Title LIKE '%review%' OR
  Posts.Title LIKE '%improve%' OR
  Posts.Title LIKE '%better%' AND Posts.ClosedDate IS NULL AND Posts.Score <= 0
 
2:48 PM
@QPaysTaxes So much for not having coffee, you had Java recently (crickets)
 
@QPaysTaxes and takes precedence over or
 
@QPaysTaxes See above. Each visual line was being parsed as its own OR condition, so after going through the first 3 partial string matches, it then ran this as one statement Posts.Title LIKE '%better%' AND Posts.ClosedDate IS NULL AND Posts.Score <= 0
Instead, I wrote it like this:
WHERE
  (
  Posts.Title LIKE '%please%' OR
  Posts.Title LIKE '%review%' OR
  Posts.Title LIKE '%improve%' OR
  Posts.Title LIKE '%better%'
  )

  AND Posts.ClosedDate IS NULL
  AND Posts.Score <= 0
2
So it went through each string function first as a group, and then within that group it looked for the other conditions
 
@QPaysTaxes "arbitrarily" ... that's not correct..
 
SQL is anything but arbitrary, which is part of why it can be wonky
 
@QPaysTaxes convention and old maths-notations
 
2:53 PM
@rolfl how can you fix the graph so that it is readable?
@Phrancis where is the ingenious query? we need links!
 
It's nothing "ingenious", just partial string matches
 
@QPaysTaxes duh! I feel dumb now....
 
0
Q: Making faster solution for INTEST on Codechef in Python 3

Gourav ChawlaI have written a program in Python 3 for the INTEST problem on Codechef. The program is taking a lot of time (55.76s) in Python 3. The same code takes almost 1/10 time(4.97s) in C. So, my questions are How is it that the Python 3 code is taking so much time or which line of code specifically i...

1
Q: wildcard string search with capture

pobyThis is my first foray into codereview; I hope my question is relevant and my asking correct.. My goal was to create a function as performant as possible with results being: True/False as to whether wild matches str. Optional capture of certain patterns. My purposes required: Case sensitiv...

0
Q: VBA: need to write a code that will open another workbook and change a cells value

Josh PerrymanI'm writing a code that will open a log file and change the value in cell A85 from a one to a zero and then move on to the next log file. The problem I'm running into is that each log file has a macro that protects the cell i'm trying to overwrite. So every time my code opens a log file, the log'...

 
4
Q: How can I improve this set of queries in PHP

absentxOkay so as I learn more about PHP and really strive to improve my code I have a few questions about a current setup of mine and how to approach it in the best way. I think I have all the tools necessary to get this done the right way, but I am having trouble putting them together. I am also tryi...

Eww...
Also, @Vogel612, you get the magical green tick sir, thanks for the advice and contributions @Lyle'sMug, and you can take runner up prize of a blue upward pointing arrow, and a free coupon for some post pimping
2
 
that one was closed......
@Quill slow down!
 
inb4 serial voting reversal
 
if you vote too fast you will get them all reversed!
 
Anyway, that should give you the badge
 
oh okay... the bronze one..
as long as it's the bronze one..
 
3:02 PM
Tim Post on June 11, 2015

Some time ago, we hired a Russian-speaking Community Manager named Nicolas Chabanovsky. He works remotely from St. Petersburg (we’re pretty sure it’s the one in Russia). In the past Nicolas was a software developer, and participated in the development of DLNA-stack at Motorola, webOS at LG Electronics and many other notable projects. What we found the most interesting about Nick is he’s one of the founders of the most advanced clones of Stack Exchange we’ve ever seen, which was ХэшКод, otherwise known as HashCode. …

 
@QPaysTaxes @Lyle'sMug Improved version (now with documentation!) data.stackexchange.com/codereview/query/324894/…
 
I also added a "User has low reputation" filter
 
ARGGHHHH
WHO IS CLEARING MY SESSION!!!!
 
@QPaysTaxes I haven't been voting just yet.
 
3:04 PM
nope, definitely not..
 
The Entity is clearing your session.
 
I should've been clearer...
 
It hides in your browser and waits for the right moment to strike.
 
WHO REMOVES INTERESTING DATA FROM MY SESSION BETWEEN TWO PAGES!!!
 
> 47 rows returned in 2 ms (cached)
 
3:05 PM
Maybe "The Entity" should be renamed to "Google Chrome".
 
@QPaysTaxes RSA
 
Hmm, perhaps my filter is a bit too restrictive, if it found only 47 matching questions
 
@EthanBierlein but if it were my browser, he'd clear it whole...
but I'm still logged in!
 
Hmm, a strange entity this is....
 
@QPaysTaxes oh yeah no problem
80 more rep and I Cap for the day. 3 more votes on Java answers, unless it hasn't updated yet and I will get that badge. make sure to actually read my answers though, make sure you agree with them before voting on the @Quill
 
3:12 PM
57 more and I can VTC @ SO!
 
@Lyle'sMug of course
 
3:28 PM
Since you have a solution it's probably more appropriate for this to be moved to Code Review, though I personally don't mind you asking it here — Hack-R 13 secs ago
 
55k more and I have more reputation than @rolfl.
6
 
@Morwenn That's a lot of pimpin
 
@Quill Eh, I know how to promote my old answers to get even more points out of them.
 
@Morwenn I would like to claim that 66K rep is just a case of answering, chatting, and giving quality answers.... but the truth is that it's closer to just being insanely addicted, and promotional. All you need to do is give up your participation IRL.
 
@rolfl What does that say about Jon Skeet then?
 
3:35 PM
Jon has enough answers to cap every day without writing new ones...
3
 
say, anyone upgrading to OS X El Capitan?
 
@Vogel612 That!
 
0
Q: Is there a better way to grab the previous 4 quarters?

James WilsonI'm currently doing it in SQL and I'm curious if there is a way to slim down this code in SQL or in ASP.net MVC C# -- VARS declare @iagent_id int declare @quarter int declare @prev_quarter_1 int declare @prev_quarter_2 int declare @prev_quarter_3 int declare @year int declare @prev_quarter_year...

 
That awkward moment when you're on the phone and you don't know who should hang up first.
3
 
3:50 PM
A question like this belongs on codereview.stackexchange.comrmaddy 43 secs ago
@MarkRotteveel closing the question isn't helping getting it migrated to Code Review. Flagging does. — Mat's Mug 6 secs ago
 
@rolfl what is IRL, is that a mythical creature?
2
 
0
Q: Varying the parent class dynamically in Python

OhAuthI am trying to dynamically pick a parent class in python 2.7. My implimentation is as follows: GLOBAL_CLASS_NAME = 'b' class A(object): def __init__(self, bar): print('this is A with {}'.format(bar)) class B(object): def __init__(self, bar): print('this is B with {}'....

0
Q: File upload to web server using HttpRequestFutureTask

dmachopI am working on uploading files through Rest API. Tried my hand using single upload and works. I have modified to accommodate parallel uploads using Futures. Will there be any chance that this code will not end during the equivalent infinite loop in checking futures's status? Another question ...

 
GTG bye @all
 
that comment was aimed @Nobody in particular...
 
@FreeMan TS
 
That moment when you get redirected to a page full of malware. cough mediafire cough.
 
4:18 PM
That moment when you get criticised on another chat.SE room for starring too much because 2nd monitor has conditioned you
4
 
That moment when the rocket you've been building for an hour explodes immediately.
 
@Quill touché ?
 
Theoretical Star
 
SCORE!
> You've earned the "java" tag badge.
 
@Quill Ah. scurries off to scan the meme page
 
4:22 PM
@FreeMan That's okay, basically every SE site has memes. gotta get used to them I guess
 
"Conspicuous green substance"
 
;-; (goddamn it 2ndmonitor)
 
0
Q: What would be the best way to save 2 related models through a single form?

Bansal UtkarshHere are two models - Property and Developer class Property(models.Model): property_type = models.CharField(max_length=255, default='Apartment') specifications = models.CharField(max_length=255, default='Basic') built_up_area = models.FloatField(max_length=6, null=Fals...

 
@EthanBierlein better than "Inconspicuous green substance"
 
Not if it looks like this:
 
4:30 PM
you are aware that this is simply green watercolor?
neither inconspicious nor conspicious...
 
Yeah, but imagine if that was the blood of a poor innocent kerbal creature?
 
better conspicuous, than inconspicuous, lest you step in the remains of that poor innocent kerbal creature.
 
5:00 PM
any asp.net/ jquery/ajax guru's here that can help me figure out the best/easiest date validator to go with my datepicker?
TTGTL BBIAB
 
0
Q: Any potential problem with this implementation of realtime chat service in Node.js + Socket.io + Mongo DB

Ken LiaoI am new to Node.js and Socket.io. I implemented a realtime chat service that has a chatroom feature. When the actual product is launched, there will be at least 200 concurrent users with 50 groups of 4 people. I would appreciate any advice on its performance & any recommendation. Server (remo...

 
http://www.commitstrip.com/en/2015/06/11/coders-childhood-the-magic-button/
CommitStrip - Blog relating the daily life of web agencies developers
Coder’s childhood : the magic button
CommitStrip
1434041904
2
 
@CommitStrip Me no understandy
 
you'd have to have had a computer with a turbo button :P
 
I don't recall my old computers having that
 
5:10 PM
On personal computers, the turbo button is a button which provides two run states for the computer, normal (full) speed, or a reduced speed. The name is inspired by turbocharger, a turbine-driven forced induction device that increases an engine's power and efficiency. == Effect == The turbo button was added to most computers produced after the original 4.77 MHz 8088 was sold. Many software titles (games in particular) used the CPU's frequency for timing, so as faster chips came out, some of these games were unplayable. To provide a layer of compatibility for these titles, the "turbo" button was...
I don't think I had one either, actually
 
Any C# gurus in the haus?
 
but I do recall seeing them
@EthanBierlein better to just ask the real question and see if someone knows
 
@JeroenVannevel I don't think your "old" computer were that old, young cricket.
 
I think that during the time turbo buttons were around I either didn't have a computer, or I had a Mac.
 
@Phrancis +- 1980 if my guesstimate is correct. You're right, I wasn't even born for another 10 years then
 
5:15 PM
486s were well into late 80s/early 90s
 
@JeroenVannevel No earlier than 1981, which is when the IBM PC first came out.
 
I just went off the 8088 as shown in the wiki article
which is 1979
 
I don't think my dad's old Tandy machine had a turbo button. Must have been, late 80's maybe?
 
@JeroenVannevel True, but the turbo button was a PC thing, and it applies only to chips that came after the 4.77 MHz 8088. Thus, no earlier than 1981.
 
My dad worked at IBM, so all our machines were IBM machines. I don't think any of them had turbo.
 
5:18 PM
Yup, late 80's early 90's. Had a personal machine with one, and several work machines.
 
@Donald.McLean Having a Mac before it was cool?
 
@skiwi Don't make me out to be some kind of hipster, I'm too old for that crap.
3
 
That's such a hipster thing to say
 
old people can be hip too, especially after replacing the original
 
But yes, I was a huge Apple Fan Boy for a long time. Now I use their products because they meet my needs better than anything else could.
 
5:22 PM
@Donald.McLean google.nl/…
(Can't think about a specific image to link)
 
@DanLyons only old people can be , young people are
 
Putting my Apple products to work AirPlaying some tunes.
 
5:39 PM
That moment when you accidentally close a windows task instead of an application with task manager.
 
@QPaysTaxes @Lyle'sMug: I have further improved the "bad questions" query, I think the results are quite reliable now, albeit not perfect: data.stackexchange.com/codereview/query/324894/…
Those closest to the top have the highest potential "badness"
I also documented everything, for those who do not know SQL very well
 
Beginning power down of our Oregon data center. It's time for #milehighops.
 
@StackExchange Erm, okay....
 
@StackExchange Giggity?
 
5:57 PM
0
Q: trying to speed up Reddit API bot

sunnyI would like to improve my Reddit-scraping code to make it faster, but I don't know how. I am using deque instead of list to improve append performance. Otherwise my code calls the PRAW api and type checks one class attribute (I don't know why this is necessary but otherwise I get type errors). I...

 

« first day (768 days earlier)      last day (3242 days later) »