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

6:02 PM
I wish you could super-/sub-script in VS.
 
hi
 
Greetings
 
In your opinion, if the OP says "without using any Python built-in function" what does he really mean?
Everything is a built-in function in Python, even adding two numbers :O
 
I know, but to what extent?
 
6:08 PM
As deep as possible?
The best is just to ask the O.P.
 
Yeah, let me invite him in chat
 
Some might not be happy with that
You can invite him to a room you create for him
 
@Caridorc he means it's a homework question or a take-home interview question, but most likely the former
 
@DanLyons i created a room and invited him there
 
@IsmaelMiguel we had that discussion... back then...
on a related note I should wait for onload anyways, just to be sure the "library" is loaded.
 
6:15 PM
It would be perfectly fine to invite him here.
 
This chatroom's main purpose is exactly inviting people here to talk about site business
14
move the discussion here instead of a separate channel
There are mods here
 
@JeroenVannevel Indeed. Starred so you-know-who can see it.
 
You forgot star-cap in chat! — Mat's Mug Dec 23 '13 at 13:09
How did I know that was going to be someone from here before even looking at who it was :)
 
@Vogel612 "we" be who?
 
we smashed each other's heads a while back
 
6:18 PM
I vaguelly remember that.
 
@EBrown stop bringing this up. You have been warned multiple times
 
@Rakesh Ranjan Sukla Could you please join this room and talk about your requirements?
 
I remember it was a general discussion
 
Invited him here
 
@Caridorc This isn't pinging him.
 
6:19 PM
@Caridorc it doesn't really work that way
a mod could do that..
 
You have to leave a comment in his post.
 
lol, thanks for telling me.
 
@Vogel612 That's actually false, but OK.
 
@EBrown it has been the topic multiple times and nobody wants it repeated..
 
@Vogel612 a mod could, but a mod doesn't :)
leave a comment, that's often better when possible.
 
6:21 PM
@Vogel612 Well when something very important is said by someone, and other members cannot see it (for whatever reason), it seems that the rest of us should do our best to make sure that the particular comment is seen by those who cannot (for whatever reason) see it.
 
what question are we talking about btw?
 
Especially when that comment is (and should be) directly mentioned to the person who cannot see it (for whatever reason) because it's directly pertinent to them.
 
@EBrown nothing wrong with starring it, but saying "so you-know-who can see it" is unnecessary.
 
So that, in the future, we have less of these issues.
 
BTW, that comment should be pinned, not starred.
 
6:22 PM
@SimonForsberg you mean not using built-ins?
 
@Caridorc exactly
 
4
Q: Takes in two sorted lists and outputs a sorted list that is their union

Rakesh Ranjan Sukla Write a function that takes in two sorted lists and outputs a sorted list that is their union Could anyone help me to improve this code and make it more user-friendly? We are not supposed to use any built-in Python functions, but rather develop our own efficient algorithms. def answer(lis...

This
Already has many answers but I curious about the requirements
 
> Write a function that takes in two sorted lists and outputs a sorted list that is their union
I expect the only requirement is to not use any built-in functions for sorting and merging lists.
OP, and heck, even the one who gave the assignment, is probably not aware that using + in Python is technically a built-in function.
 
@SimonForsberg that is reasonable
But my solution was contested for using +
 
who contested it?
 
6:25 PM
(and sorted but I understand complains about the latter)
 
@Caridorc Sounds like pure pedantry on the complainant's side
 
hmm, I see...
 
@SimonForsberg The OP and Boris The Spider
 
you used + to merge the lists. that goes against the requirements as I see it.
I think you're giving too much weight to the use of the word "any" in the problem description.
 
@SimonForsberg this code also uses + paste.ofcode.org/NjJQqsNmXUURF6vzqF3gu3
but otherwise it is a literal translation of wikipedia's pseudocode
 
Zak
6:27 PM
perhaps the uestion could be reworded to "any built-in sorting/nmerging functions"
 
I think + is fine but sorted not. Latter is at best a loophole.
 
@Zak that would be much more reasonable
 
@BoristheSpider Sorting a list composed of two increasing sequences is optimized and runs in O(N) time complexity. — Caridorc 7 hours ago
 
0
Q: How to improve my render method

erinasHoi The code works fine but... guess what... the fps are constant at 8. Today i fixed some pieces and got awsome 4 more fps... so 12-13 in total. Also i figured out that the typecasting (int) and Math.floor() consume around 50 fps. So if you guys have a idea to improve the code or need to see o...

 
http://www.commitstrip.com/en/2015/09/08/how-to-mess-with-your-project-manager/
CommitStrip - Blog relating the daily life of web agencies developers
How to mess with your project manager
CommitStrip
1441736621
 
6:28 PM
@itsbruce I agree that sorted makes it a bit too easy
 
does Python really have built-in optimizations for this?
We are not supposed to use sort and '+' functions here. But thanks for your answer. — Rakesh Ranjan Sukla 53 mins ago
this seems to be the requirements ^^
 
Python has built in optimations for kitchen sinks
8
 
Zak
@itsbruce TS
 
@Zak RSA
 
@SimonForsberg Yes, see Timsort: c2.com/cgi/wiki?TimSort
 
6:30 PM
@itsbruce Does it have for toasts and pizzas as well? I always burn mine.
 
@IsmaelMiguel Another fun piece of trivia. 10**10 in range(1, 10**20) runs in a millisecond
go figure
 
@IsmaelMiguel Yes, but the behaviour when there is only one slice of toast may be entirely different from any number larger than 1
 
@itsbruce starred for out-of-context
 
@CommitStrip good one
 
6:35 PM
^^ I cried
 
What's debug mode? :x
 
@itsbruce I always burn them in pairs
 
Debug mode is not release mode.
It usually has more intense logging.
 
I think I say you post on codereview with this same game, keep the game logic layer separate from the UI layer and you can just substitute the UI you previously had for the new GUI. I think you can use openGL from PyGame too if you need. — shuttle87 9 secs ago
 
And often times code that is for testing purposes.
 
6:37 PM
or usage of features which is not meant to be used in production
 
Ah ok
 
@SimonForsberg I hate that last habit in developers
 
It is basically developers mode, not end users mode.
 
Code should not have special cases for debug. Configuration should.
 
It is going on 2 PM. I should have lunch.
 
6:38 PM
@Phrancis Imagine if I would add some cheats to Cardshifter, just for the sake of being able to debug faster. This could be used as a "debug-mode" only feature. Now imagine what would happen if the game would be fully released with this feature enabled :)
 
@Hosh250 2 pm? We are 8 or 16 hours distant! (10.40 here)
 
@SimonForsberg LOL ok. Now the comic is alot funnier!
 
@SimonForsberg iddqd
 
and debug mode is unoptimized. Big-o difference-o
(assuming VS release profiles)
 
Debug mode may mean you turn on every feature at once, even though in production you'll do that only in stages at planned dates.
But I don't like my devs to think that way
 
6:42 PM
@Mat'sMug iddqd?
 
I like them to think their code will go into production, as-is, tomorrow
 
@SimonForsberg google.ca/…
 
Zak
it's about time I went back and read all the Commit Strips from the start
 
> KEEP CALM and iddqd
toggles God-mode in the original DOOM game
 
well that shows how much DOOM I've been playing
 
6:44 PM
bye, see you later
 
I'd add the code and post it to CodeReview instead. — Mikko Viitala 59 secs ago
 
oh gosh. I created a WB account - worldbuilding.stackexchange.com/a/25273/13396
 
27
A: Front end written in languages used for back end!

itsbruceYou have confused the terms "front-end" and "back-end" with "server-side" and "client-side". "Back-end" usually refers to systems which are not directly exposed to the user (database servers, middleware and so on), while "front-end" usually refers to the application (in the case of the Web, this...

I wonder if anybody has done a front-end/back-end version of "The Modern Hiawatha"
 
+1 for
> And if you ever find anybody creating a browser that executes PHP client-side, shoot them.
 
6:51 PM
@Mat'sMug That already exists. It doesn't run PHP per-see. It's a polyglot mix of PHP syntax on Javascript
How can I explain...
 
has the author been shot yet?
 
No!
Am I shot?
Nope
Has the authors of phpjs been shot?
Nope
 
Oh man this didn't work at all.
 
And then there was the unfortunately titled BrowseX
Which supported client-side tcl
 
6:54 PM
Sounds....great!
 
Written in Tk, of course
 
There is IE, which support(ed?) VBScript
But anyway, TTGH!
 
VBScript 4Evah!
 
About to make my first presentation to my new team for the first architecture modeling of my internship, I'm little anxious!
 
So this is bad.
 
6:56 PM
Well, I think it's good, but eh, I'm a student :p
 
I once had the misfortune to have a Java dev on my team who wrote tests by copying and pasting his code into the tests. He could never understand why that was wrong. "But if it works, it must be good!".
Asked him where he saw himself in 5 years. "Software architect."
 
@itsbruce 5 years later, he's flipping burgers where you pick up your lunch? :)
Patient: it hurts when I do this. Doctor: then don't do this. — Mat's Mug 6 secs ago
 
I think he's working for Accenture now.
 
This is horrible...lol
 
@Mods You are faster than the Programmers mods.
 
7:10 PM
Recreated in record time.
Lots of magic numbers in there.
 
@Hosch250 What have we done now?
 
It isn't what you have done, it is what the Programmers mods don't do.
Their average flag processing time is probably in the hours.
 
@Hosch250 Ours is what, 15 minutes on large average?
 
Consider posting singular examples over at codereview.stackexchange.com. This kind of question is not a great fit for this site. — StingyJack 36 secs ago
 
@EBrown CR ready yet? We'll help you get rid of that magic.
 
7:17 PM
@Mast for the last quarter, yes
 
Great job :)
 
@Mast Nah, the next bit is to multi-thread it.
 
@Mast Monthly stats: 732 flags, average handling time 0 days 0 hours 17 minutes
(note that they got rid of the seconds)
 
Sometimes you guys clear flags in under 10 seconds.
Like you're lurking on the flag queue that moment.
 
Basically, for the multithreading I take groups of rows and process them on separate threads.
Then when each group of rows is done it adds them to the final set.
 
7:20 PM
@Caridorc You realize it's not actually doing anything there, do you? Just flipping a lot of numbers without storing them.
@EBrown Do you need balancing for that or is everything taking the same time anyway?
 
@Mast, sorry what is the subject?
 
@Mast Well the bluer areas take much longer to calculate.
 
@SimonForsberg No, C#
@Caridorc There's an arrow in front of the comment which will link you to the original. But it's about range() in Python
 
In fact, each pixel takes anywhere from 0 to 1000 iterations (in my current scenario) to calculate. The bluer the pixel, the more iterations that pixel took.
 
@EBrown Yea, of-course since they are 'denser' (lacking a better word). But if every thread has about the same load on it, it should run fine. If one thread is finished way earlier than the other, you'll need to balance it. Otherwise one thread will just stop doing anything till stuff gets added to the total.
 
7:23 PM
@Mast Well I don't "balance* per se.
 
20
Q: Desktop Notifications for flags and queue items

Simon ForsbergAfter our recent election, I got elected as a moderator here on Code Review (Thank you, community members!). One of the first things I missed among the moderator tools was desktop notifications for when there were any flags. As no current tool existed, I figured that I just have to create one......

 
@Mast that arrow is cool. And yes I know that range is lazy and has O(1) time complexity __contains__, my question was intended as a puzzle :)
 
I spawn n threads, where n is numCores - 1.
 
Our Desktop Notifications are always lurking.
3
 
You might get better answers if you post this over at codereview.stackexchange.comRocket Hazmat 43 secs ago
 
7:25 PM
Then, each thread takes a percentage of the image. Usually, I break the image into a fixed number of chunks (like 256), and each thread works on it's chunk at a time.
 
I just found out LINQPad has a formatting option.. It's hidden, but it's there
I will no longer have to do that stuff manually
 
@SimonForsberg I have Malachi's script running here for the review queue, works quite well.
 
@JeroenVannevel What do you use LINQPad for?
Is it a light-weight IDE, basically.
 
Testing code snippets, viewing IL, viewing Roslyn Syntax Trees, etc
I use it at least several times a day
 
I should check it out. I just use the debugger in VS, but it is a bit clumsy.
 
7:29 PM
I don't boot up Visual Studio when I want a quick view of a certain thingy
I've got LINQPad premium: boots in 2 seconds, lets me view IL and Syntax trees in a second and I can add NuGet packages and database connections in two clicks
it's perfect for SO questions and quick tests
 
I'm still waiting for the day Notepad++ will compile my C++. That would really put the ++ in it.
 
@Mast Can regular Notepad compile C then?
 
@skiwi Never tried, most probably not in a standard way.
Notepad++ can execute C# if you throw a plug-in at it though.
There's a Doxygen generator as well.
So it's almost starting to look like an IDE
You can even play Tetris in Notepad++
 
25s to generate a 2048x2048 Mandelbrot set at 1000 iterations.
 
@SimonForsberg Any idea how to test it? — spyr03 34 secs ago
@rolfl you might be interested ^^
 
7:37 PM
Now I just need to scale it properly...
And thread it.
 
Aaaaannnnddd I over-designed.. Again. D:
 
@TopinFrassi No such thing.
 
I just might propose this as a community challenge...
 
@Mast That's not what literally everyone I ever coded with told me :p
Thing is, designing too much is expensive
But, you indeed can't overdesign
 
@TopinFrassi It's long term thinking, something not everybody is comfortable with.
 
7:41 PM
posted on September 08, 2015

Start Time: 9/9/2015 @ 8:00PM EDT (2015-09-10 @ 00:00 UTC) End Time: 9/9/2015 @ 10PM EDT (2015-09-10 @ 02:00 UTC) We will be doing router maintenance in our Jersey City Data Center tomorrow 9/9/15. We will be upgrading the memory on the routers that handle traffic that is not handled by CloudFlare. We will also be transitioning to full BGP tables at the same time. You may see some brief c

 
Long term thinking often doesn't produce money in the short term.
You should speak with Germans more often.
2
 
@EBrown which language is your MandelBrot generator written in?
 
I have ways of overdesigning
 
@Caridorc
 
@EBrown nice, I though about doing a MandelBrot generator for quite some time
 
7:42 PM
@Mast Yeah, though there's always that possiblity that what seems like a good overdesigned idea isn't one, and costs more money on the long term
 
@Caridorc I enjoy it, because it's fun to tweak and improve.
Plus there's a lot you can learn from it.
 
I should try to do my next internship in Germany, eh eh
 
@EBrown opened MandelBrot wikipedia page right now. Time to start reading
 
@Caridorc It's a lot of fun man. The Julia set is much more fun in my opinion, though.
 
@TopinFrassi Canada to Germany, doesn't seem obvious but hey.
Why not.
 
7:45 PM
@Mast There's international internship program where I study, maybe Germany could be something. OR, I could try and find someone here who is in Germany and try to set up a contact. wink wink :p
Or, stay in Canada, and try not to over design.. lol
 
@TopinFrassi @Vogel612
 
@TopinFrassi hmm????
 
He's looking for a contact Hans
 
Hans present, SIR
 
First half of the multithreading done. :)
 
7:48 PM
got nothing like connections into companies right now though..
and I am only starting university ...
 
Network Maintenance tomorrow night: http://stackstatus.net/post/128291132704/data-center-failover-september-3-2015
 
Oh, didn't expect that. I was just thinking out loud! I don't know if it could work, but in a certain future (a year maybe) I might want to do an internship offshore (I'm from Canada), when I'll be closer to that I'll try to see if someone can help (If that's legit by the chat)
I'm also starting university!
 
I got some connections in The Netherlands, it's close to Germany :P
 
Yeah but you probably don't want to go there
It's full of Dutchmen
Belgium however does not have that problem
 
Belgians do have a superiority complex though, as evident
 
7:53 PM
Your words can't touch me in my ivory tower
 
@JeroenVannevel + Belgium got oysters, which are so amazingly good
 
We've got oysters?
 
Don't you?
Isn't belgium reputed for its oysters dans fries?
 
You're thinking about mussels
 
The term ivory tower originates in the Biblical Song of Solomon (7:4) and was later used as an epithet for Mary. From the 19th century, it has been used to designate an environment of intellectual pursuit disconnected from the practical concerns of everyday life. In American English usage it is also used as shorthand for academia or the university, particularly departments of the humanities and the social sciences. == Religious usage == In the Judeo/Christian tradition, the term ivory tower is used as a symbol for noble purity. It originates with the Song of Solomon (7:4) ("Your neck is like an...
 
7:55 PM
Maybe I am, I always mix them up
 
Mussels are Dutch, from Zeeland
Zeeuwse mosselen
They breed them there
 
I'd eat these things all day everyday
 
Yeah but they're distributed over The Netherlands and Belgium alike
 
@JeroenVannevel It's full of Belgians however
 
@skiwi You know you love us
 
7:57 PM
In Belgium they eat fries with everything
 
Well, that's kind of great
 
@JeroenVannevel We'll be your football supporters for next year
 
So we finally brought that up. Football.
 
Don't worry, most people here don't know what Football means ;)
 
Soccer in this case
 
7:59 PM
Anyone care to help me with this threading quick?
I'm drawing a blank as to how to get my data back from each thread.
 
Eh, I'm all for hockey tbh
 

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