« first day (1142 days earlier)      last day (3172 days later) » 

00:00
RELOAD! There are 2436 unanswered questions (93.0628% answered)
00:19
0
Q: Display a simulation of 2D elastic balls using Tkinter

cromodI wrote a module to simulate physics of 2D elastic balls and the community helped me to improve it on this post. Now I implemented a GUI using Tkinter to display the simulation in a window. I'm a beginner in programming GUI and I don't know if my script can be more efficient and/or simpler. M...

01:16
Do we edit in the python 2.7|3 tag to all python questions?
What? No
Maybe
@EᴀsᴛᴇʀʟʏIʀᴋ We add to other Python tags, but not normally the other way
You could just specify the version on the body of the question.
@Vogel612 No, but I regularly make mistakes with them, so that counts for something.
For more info you can look here.
 
1 hour later…
02:26
ZOMBIE RATE IS GOING DOWN
THIS IS GOOD!
compare the zombie rate to questions and answers rate, as well as new users joining rate
okay that looks pretty crazy
Blue: Question Change Rate; Red; Answer Change Rate; Green: Question Answer Change Rate; Teal: Answer Accept Change Rate.
That should be better.
Blue is still the question change rate, and red is still the answer change rate. They're scaled to fit into [-1,1].
03:11
You would probably be better off on Code Review. — zondo 16 secs ago
Code review questions are not a good fit for this site. But, as @zondo said, you may be able to get help at Code Review. Please be sure to read Please read about How to Ask questions there before posting. — Ed Cottrell ♦ 42 secs ago
03:42
35
Q: Would charging unicorns survive the impact with a line of infantry?

VincentThe unicorns would be used to charge a line of infantry with their horn. They are as big as a horse and the horn is similar to this image: The infantry is a standard medieval army made mostly of soldiers wearing longsword, wooden shield and chainmail. If I use my unicorns to charge the enemy...

There sure is a lot more to it than that.
First, every time the unicorn spears a soldier, they have 150-300 pounds hanging from their horn. And bodies often get stuck to things like that.
Second, the soldiers aren't standing still and waiting to be speared--some of them will be able to dodge, get under the unicorns belly, and stab upward into the intestines, mortally wounding it.
I bet you if there were 5 soldiers to 1 unicorn with only swords, it would be a close draw.
Of course, the solders will be prepared for this with a double row of pikes longer than the horns, and archers to shoot them down before they get close.
(Unless you want to have modern infantry with machine guns, in which case the infantry doesn't have a single loss.)
04:01
0
Q: Returning a filtered list of iPhones

synthet1cI have just received feedback regarding a junior dev test that I submitted. It was unfortunately not great, and the recruiter could not articulate the issues, I tried to show that I was thinking about the problem in a deeper way, but the feedback was that the solution was "over complicated". Thi...

0
Q: Cart program in Java

Ethan WatsonI wrote this in conjunction with this. import java.util.Scanner; public class Keychains1 { public static Scanner keyboard = new Scanner(System.in); public static boolean stay = true; public static void add_keychains() { System.out.println("ADD KEYCHAINS"); } publ...

@CaptainObvious I swear I thought that said "Can't program in Java."
 
2 hours later…
05:37
Sorry to barge in with a random question, but what is that blue logo next to spotify?
I know he uses Windows 7, codes in VS Code, uses Google Chrome, has Spotify, Windows Command Prompt, and Line open, and uses a Lenovo Thinkpad
But that one boxy logo is bugging me. I know I've seen it before
It's not VirtualBox
It's not Netbeans
Maybe it's regedit?
possible answer invalidation by Jamal on question by tuptus: codereview.stackexchange.com/posts/131661/revisions
@Justin Looks like AOL, maybe?
Looks like it's triangular.
@EBrown Looks kinda backwards for AOL, like pointing left instead of right
05:53
It looks like a blue triangle, with a white circle in the middle.
Oh
To me it looks like a cube, but it does look like a triangle too
06:43
posted on June 19, 2016 by johnie

Am trying to get a simple java code that prints all the integers that have not been listed in the code that are between 0 and 49

 
1 hour later…
07:57
@Justin That's the Visual Studio logo.
I just figured it out.
At least, in the top-left most panel it is.
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Using Rails concerns for validation in models
08:18
I swear Safari is the most unfriendly browser in existence.
1
Q: Would you refactor this code with the "extract method"?

BenjThis code is an express nodejs code, that handles post registration ".post" action where user must select a custom user name. The user name is validated, if valid: database is updated, if not user is redirected to the page with an error message so he can try again. I would like to know if you wo...

0
Q: Javascript tasks organizer

ch3m0I've created my first complete JS app.I lets you add tasks and control how much time you spend on them.I'm aware of redundancy in my code,but i couln't figure a way to reduce it.It would be great if you guys gave me some advice and shared your thoughts on my code. let taskName = document.que...

09:16
-1
Q: Addition, and Multiplication of very large decimal number using operator overloading

Amna Khan i want to add, subtract the two decimal numbers e-g 1st number= 45465873465746572657465475647564756475634756437564756437564756475647.457456437564756475674657465746574657465476574657465744535434354354345345345344654546546546 2nd number: 754657465746534756478564756475647564756475647564...

0
Q: Responsive Web formular with Foundation for sites

mewiI have made these web form for user-registration. Requirement is that it can be used on different devices, respectively screen-sizes. With you tinkering I was able to make these current version which behaves alright: The form becomes rebuilded when one changes the browser window-size. But can s...

> do it using operator overloading (oop concept)
09:48
I'm voting to close this question as off-topic because code review questions belong on codereview.stackexchange.com. — T.J. Crowder 55 secs ago
0
Q: Custom exception formatter

t3chb0tI find the default Exception.ToString() formattig very difficult to read especially if there are inner exceptions involved. I guess everyone knows how it looks: System.ArgumentException: This is a message. ---> UserQuery+TestException: You need to specify a valid id. at UserQuery.foo(Int32 id...

10:10
Please delete and re-post to: codereview.stackexchange.comPhil B just now
10:20
Note that code review is for working code. — jonrsharpe 55 secs ago
@CaptainObvious why the heck am I the first one to VTC this?
10:39
This should probably be posted on codereviewsagarpandya82 34 secs ago
11:06
This is quite a wide question, many answers are possible. Perhaps it is more a question for CodeReview? codereview.stackexchange.com Using a $html string is not a bad start though. — KIKO Software 20 secs ago
Thanks for the input. I will post the question to CodeReview. — user1303840 1 min ago
0
Q: Multithreaded code requires some TLC

kneelb4darth#ifndef DETECT_DETECT2_HPP #define DETECT_DETECT2_HPP #include <opencv2/core.hpp> #include <opencv2/highgui.hpp> #include <opencv2/objdetect.hpp> #include <opencv2/imgproc.hpp> #include <folly/futures/Future.h> #include <folly/Function.h> #include <wangle/concurrent/CPUThreadPoolExecutor.h> #inc...

@EBrown Good idea.
@Vogel612 Because it's Sunday.
11:27
0
Q: Saving email into txt file

AlexNikolaev94I'm writing a little Ruby script to save email from a particular website into .txt files on my machine. The script is almost ready, but I'm not pretty sure if it is correct. Here it comes: Gmail.new(login, password) do |gmail| gmail.inbox.emails(:unread, from: '[email protected]').each do ...

11:37
0
Q: Can someone look over this code for me for improvements and fixes

htmlcoding876My Code: https://jsfiddle.net/fb6sa75d/1/ And here's a working example of it: https://testblogty678.blogspot.com/ Can someone take a look at this code for me and tell me if there's anything you would change to either fix it if it needs fixing, or if there are any ways I can improve upon the code...

12:00
Monking
hey there
0
Q: Reduce encoded length of UTF-8 encoded Ruby string in C extension

bsaI'm writing a Ruby extension in C. It's a string processing module working on UTF-8 encoded strings only. One method, full_width_to_ascii!, converts full width characters to ASCII equivalents (https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms). Essentially, it subtracts an offset of 0x...

12:31
If you want to improve working code your question may be better suited for SE Code Review. — πάντα ῥεῖ just now
@CaptainObvious I'm not convinced it works.
Isn't that what a code review is for? — πάντα ῥεῖ 34 secs ago
Yes and no. Code Review assumes the code works as expected. We can look for edge cases, but only if the author is actually looking for a review. The moment you post it at Code Review, everything is up for review. Not just the edge cases. — Mast 29 secs ago
I'm voting to close this question as off-topic because it is better suited on codereview.stackexchange.com (in case it is working). — Gábor Bakos 32 secs ago
13:12
fml
1
Q: Baby-sitting bash script using DVD drive

user3620828This is the script I wrote to make an automated POC baby-sitter in 5 lines. I first found this on a GIF or meme site and thought of making a POC script that does the same. #How Linux users babysit while : do eject eject -t done I don't know aything about bash. So, I want improvemen...

0
Q: Baby-sitting bash script using DVD drive

user3620828This is the script I wrote to make an automated POC baby-sitter in 5 lines. I first found this on a GIF or meme site and thought of making a POC script that does the same. #How Linux users babysit while : do eject eject -t done I don't know aything about bash. So, I want improvemen...

If this is working code that you think could be improved, see Code Review. If not, please illustrate the issue with a Minimal, Complete, and Verifiable example. — jonrsharpe 54 secs ago
Core review questions are not a good fit for StackOverflow. There's codereview.stackexchange.com for that. Also, performance questions along the lines of "is A faster than B?" are easily answered by measuring yourself. — Tomalak 50 secs ago
> Core review
@Tomalak *code review — ardaozkal 18 secs ago
Danke schön.
13:26
@zʏᴀʙiɴ101 bitte schön
0
Q: Java synchronization task

imotebI am not sure whether this section is the right one to ask my question but I will do it and if its not the right place I will delete my post. I have the following task: Implement a simple command line Java application for booking bus seats. For simplicity suppose there is only one bus, init...

13:59
Afternoon
@DJanssens o/
14:46
This question would be more at home on codereview, since it is about which of two working options is better. — ssube 39 secs ago
15:12
0
Q: Recursive spinlock for C using ASM, revision #1

user1235831Precursor for this revision here in code-review: Recursive spinlock for C using ASM Improvements have been made thanks to forsvarir. Now I am trying to optimize this lock so it becomes more practical. The code in question. #define gate_Gate volatile int #define gate_Pass volatile int ex...

0
Q: Let's get in sync about what we mean by [synchronization]

200_successsynchronization can have two meanings: An issue with thread-safety / locking / concurrency Copying and reconciling versions of data which may have diverged The two senses of the word are barely related to each other, and probably shouldn't bear the same tag. What should we do with the tag?

nice
15:33
0
Q: Multiple matches : What is the best approach?

DoeI have a case where I need to check if a string match a list of regex elements. I'm not sure what is the best practice to apply in this case. Which approach should I privilege ? Why? Thank you. var target = 'https://www.example.com/index?id=0ahUKEwjh896Eo7TNAhWC7RQKHYj-CPEQsAQIFA'; // Fir...

you might also want to check with the folks over at codereview.stackexchange.comJeff Puckett II 41 secs ago
15:48
Monking
Monking
Npoljoh
When your alphabet starts in the wrong place.
@zʏᴀʙiɴ101 ^^
How's it going?
Busy TNBing in the frenemy's general chat room.
This is likely to be closed on this site. Try Code Review. — hexafraction 9 secs ago
16:05
Greetings everyone.
@Legato greetings
@Quill can you help me with something? Is there a way to load an external javascript with a userscript?
yeah
(function() {
    var code = document.createElement('script');
    code.type = 'text/javascript';
    code.src = 'location of script';
    document.body.appendChild(code);
})();
just throw that in a userscript with some headers
already implemented, thanks :P
Windows Server with updates enabled + bookmarklet bots = used to be a problem
hoihoi-san now has %99 uptime
awesome!
@ardaozkal Hoihoi-san? :3
16:18
A&M's bot, I'm the third host I guess
16:39
-1
Q: Request to rate and suggest improvements in my code

srkI have solved a simple code challenge in python. I hope the below code can be improved/optimized a lot I guess. I am from Java background. If it was Java code, I would have pulled all the code lines inside the for loop and place it at the beginning of the method and inside for loop I would call...

1
Q: Sidebar menu to hide or expand parts of a form

BezzzoI am just an amateur programmer, and I understand that it's essential to be able to write, clean, well commented and elegant code to be considered a good programmer. I have some of my code that I have tried to improve on to make it cleaner and efficient and i would like some feedback to see if i...

16:51
0
Q: Pausing a loop in C

rosskoppnOOb here. have a question about initating a while loop and then killing the loop after it is complete, but not breaking out of the loop so that i may re-initiate the loop once again by pressing a GPIO button. SETUP: RPi 3, RGB LED, Button and breadboard. LANGUAGE: C CODE: #include <stdio.h> ...

@Quill I believe you can just do //@require <url>
@SirPython that doesn't add the file to the page though
you can basically name that require though and just add the script to the page
Is there a case where'd you want to have it on the page specifically?
yeah, if you want to load in JS, you don't want the userscript to eval the contents, just let the browser handle it
possible answer invalidation by Jamal on question by vjames: codereview.stackexchange.com/posts/25011/revisions
codereview.stackexchange.com is better place for such questions and reviews. — Jeetendra Choudhary 52 secs ago
17:12
@Quill Doesn't the browser eval the contents anyway?
pretty much, it doesn't really matter which way you do it, to be honest
Congrats on your modship, @Quill, when did you get it?
A few days ago :) thanks @Hosch250
'night!
Night.
@Quill woah, it is 3:30 there, good night!
17:27
:p
Eeek, a moderator
Mods aren't that scary.
whistles suspiciously while trying to hide a big box
They're just people, like us.
Except @Jamal. He's obviously an EditBot.
Have you not read "SE farm"? Black names good, blu names bad.
3
17:38
@N3buchadnezzar what about white and orange names
@ardaozkal White names good, orang names bad.
1. Whatever goes upon two legs is an enemy.
2. Whatever goes upon four legs, or has wings, is a friend.
3. No animal shall wear clothes.
4. No animal shall sleep in a bed.
5. No animal shall drink alcohol.
6. No animal shall kill any other animal.
7. All animals are equal.
17:51
0
Q: Search Indexer Transaction Safety

HSchmaleI am writing a search indexer for a site I built. It counts the number of times a word is used in a given story allowing one use of the word per chapter. I have also attempt to weight words in the titles and the descriptions more heavily by including them in every chapter that is indexed. I woul...

0
Q: Flexbox & BEM 'table'

alanbuchananUsing SCSS and React, I have made a little table ( not an HTML table), which is responsive based on variable-width cells. That is to say, each cell whose width is not variable has a flex-basis value, whereas variable width cells have a flex-grow value of 1 and no flex-basis. The example I have u...

18:27
I'm voting to close this question as off-topic because this question belongs on Code Review (codereview.stackexchange.com) — Michael Gaskill 10 secs ago
19:06
Is it just me or has the XKCD feed stopped working?
°/ @SimonForsberg
This us off topic for stack overflow as it's highly opiniated. It might be a better fit at codereview.stackexchange.com. In general it's about separation of concerns, and some don't q — JimL 34 secs ago
We should make a book about Duga. :)
0
Q: Why is it bad, if an entity can save itself?

John Smithwith a few ORM I can see that: $entity = new TableName(); $entity->setName('username'); $entity->setPassword('zxbvc'); $entity->save(); // bad! with others, I see it this way round: $entity = new TableName(); $entity->setName('username'); $entity->setPassword('zxbvc'); DoctrineManager::persi...

Duga — A Bot out of the Ordinary
or Er Bot Som Heter Duga, if you're Swedish and/or so you prefer. :)
19:26
@zʏᴀʙiɴ101 were you able to set up your own duga?
@Vogel612 I decided not.
Speaking of Duga: we sho--- wait, I already said that a few mins ago.
@SimonForsberg Seems like it. Who mantains it?
@zʏᴀʙiɴ101 Incorrect Swedish :p
@zʏᴀʙiɴ101 Would you want a @Duga?
@SimonForsberg I do. :3
@N3buchadnezzar I'm not sure if the xkcd feed is problematic or if the SE feed reader is problematic
@zʏᴀʙiɴ101 Of course, everyone wants @Duga.
Well, it is open source, should run on Docker with a few install steps, I think
19:33
You gotta do what duga do.
2
@N3buchadnezzar well played
But I need to do a Docker setup, which would need a sane machine, also I need to set up chat bot accounts and get 20 rep, also I need to configure Duga to make it echo comments related to the site I want to host Duga for, ...
Total score: I need so much setup.
@N3buchadnezzar xkcd one boxes, my friend.
@zʏᴀʙiɴ101 Never said it was easy. It's probably easier to just include the duga-core project and use that, as that takes care of reading and writing to chat.
And I gotta go
19:37
@SimonForsberg Monknight!
0
Q: Glueing Java collections into a heap

coderoddeI have implemented this heap (priority queue) data structure using java.util.HashMap, java.util.TreeMap and java.util.ArrayDeque. The operations allowed are: insert(final E element, final P priority: if element is already in the heap, updates its priority (to smaller or larger value); if not, i...

@N3buchadnezzar Title case, and accent on word "Duga", as that's her name.
Touché
@zʏᴀʙiɴ101 What could possibly go wrong imgs.xkcd.com/comics/twitter_bot.png.
-1
Q: php instagram api not getting all the followers

this_is_awesomeI have created a php script which will take a userid of instagram user and will scrap ALL the followers of that user. Below is the script. The problem is when I am trying to get the total followers list of a user which have say 1 or 2 millions followers than my script is crashing after 60k userna...

0
Q: Sort hash keys based on values in the same

Jay_PandyaI do know sorting on hash but this time i stuck in sorting hash first based on value and then i want to sort some of element based on keys alphabetically. See example you would get exact idea what i am trying to say. hash = {"n"=>5, "a"=>4, "y"=>3, "m"=>3, "h"=>3, "s"=>2, "r"=>2, "i"=>2, "f"=>2...

20:00
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: OPP Sign In/Out procedure in PHP
20:12
Well, at least seems to deserve a minor edit to be on-topic.
Seems incomplete / asking a question.
Woo keep getting points at a dead answer. Woo
20:31
possible answer invalidation by Jamal on question by srk: codereview.stackexchange.com/posts/132446/revisions
@Duga Rule 1: Never accuse Jamal ;-)
0
Q: Refactor level system in gamification platform

vitozevCurrently, I'm working on gamification platform and I have the following rules for achieving a new level. Level 0: When user register. Level 1: When user confirms account. Level 2: When user completes a quiz. Level 3: When user completes a mission and publish more than 5 comments in the blog....

 
1 hour later…
21:42
0
Q: Performance of an OLX crawler

ZroqI'm learning concurrency and asynchronous programming in C#. For a better grasp on the matter I'm trying to create an OLX Crawler. My issue here is the performance: It takes roughly 159 minutes to crawl 17.901 links. The method which crawls each item is this: public async Task FetchItemsData() ...

Familiar with python?
so-so
ah, quill just dropped by. He knows some python afaik
I guess you do not need to know it to understand my problem / questions =)
Wondering what the fastest way to compare a number and a tuple is. Eg (0, 0, 1, 4, 5) 4150
Figuring if every digit in 4150 is in (0, 0, 1, 4, 5). The only remaining digits in the tuple has to be zeroes.
Since the tuple is always sorted I converted the number into a sorted list, however this is an costly operation.
21:56
why not intersect the two as sets?
if the intersection is equal to the set built from the number digits, then every one of them is in the tuple
though I wonder why you have a tuple in the first place?
They have to be exact matches. eg 4115 and (4,1,5) should not match
because if you sort it then it's actually a list
hmm... that explains
@Vogel612 Perms come from a permutation generator. It produces sorted tuples.
possible answer invalidation by Jamal on question by Aman Ahuja: codereview.stackexchange.com/posts/109243/revisions
`def is_perm(power_lst, perm):
    len_power = len(power_lst)
    if len_power > len_perm: return False
    power_sort = [0]*(len_perm - len_power) + sorted(power_lst)
    return power_sort == list(perm)
22:15
0
Q: Python lazy dict with iterable in constructor

Eirik FullerThis question began as an off-topic answer to this question, but the code here serves a different goal. I wrote the following class for the purpose of populating a dict on demand from an iterable. The intent of the iterable passed to the constructor is that it could alternatively be passed to di...

22:27
Hey @DanPantry, is Gulp any better than Grunt? I got assigned an issue to swap over to Gulp at work and I don't know why we're even doing it
0
Q: Vb 2010/VS 2012| - how to get the inner text from a website element id?

JustinI am attempting to get text from a Element on a website Websites Element Code: <div class="info-box"> <span class="info-box-icon bg-yellow"> </span> <div class="info-box-content"> <span class="info-box-text">TOTAL MEMBERS</span> <span class="info-box-number">34,396</span> </div> </div> I am ...

23:00
@Quill should probably be the first question to ask
23:27
Gulp is slimmer but also harder to read.... there's really not that much of a difference
23:49
The Stack Overflow community isn't here for writting your code. Feel free to update your question and show us where you got stuck. If you got working code that needs to be reviewed, you can always post it on codereview.stackexchange.comDJanssens 57 secs ago
@EBrown Yeah, VS Code. But I thought it was just right of CMD in the second panel

« first day (1142 days earlier)      last day (3172 days later) »