« first day (1121 days earlier)      last day (2900 days later) » 

12:00 AM
RELOAD! There are 2384 unanswered questions (93.0965% answered)
 
12:15 AM
0
Q: Count words in string and tally up the repetitive words. in elixir

ltrainprI'm an elixir beginner. I'm doing the word count exercise of exercism website. The word count exercise returns a map with the word as the key and the number of instances as value. The exercise excludes special characters, and ignores underscores. My code works, but I'm sure there is a way to m...

 
12:28 AM
@CaptainObvious should questions also be tagged with ?
Was just reading through the tag info
 
 
2 hours later…
2:24 AM
@Mat'sMug @EBrown I don't know if I'm being borderline paranoiac with some DDL like this... thoughts? pastebin.com/UguZ9crn
Just seems very verbose, I'm trying to get all bases covered... mind you this is just one table, I'd have a few handfuls to do like this
 
0
Q: Trying to conduct Python machine learning on data that is tuple

DanI'm a newbie to Python. I'm trying to conduct machine learning on a csv dataset, using sklearns. My problem is that I cant read my data, since opening my csv file and reading it with pandas renders it a tuple, which target attribution will not work on. support vector classification works fine on ...

 
I'm actually thinking of creating a few schemas also, instead of putting everything in dbo, though it will be a very small database so that may just be unnecessary
 
2:41 AM
What's the policy on posting a link to a new Code Review question here?
Looks like they're fed in regularly anyways?
 
@AaronHall depends. It's generally OK, if maybe it was posted some time ago and hasn't received much views
(like a few days ago)
Unless it needs special attention, then it's all good
 
Mkay.
 
There's not a "policy" so-to-speak
 
Well, every room's a little different, but that seems fairly consistent.
I'm an itinerant.
 
@Phrancis I still have that DB on my server in NC for you.
 
2:47 AM
It's ok to post "Questions" that are, in the asker's opinion, flawless, right?
 
Since this is working code, you could post it at codereview.stackexchange.como11c 42 secs ago
 
Thanks, Duga.
 
0
Q: Check Binary Tree Symmetry by Reversing, Checking Equality, Coverage Tested, Makefile

Aaron HallA few weeks ago I recall a HackerNews story (found it again: "I Don't Want to Hire You If You Can't Reverse a Binary Tree") about reversing a binary tree (with, as I remember it, the end goal being to test for symmetry by testing the reverse for equality with the original). I started hacking th...

 
Thank you, Captain Obvious.
Hey, why does Captain Obvious post here and not Feeds?
 
3:07 AM
Anyways, how's my formatting and everything? ^^^^^^^^
 
3:27 AM
The scope of this question seems better suited for the code review site. — Mr D 31 secs ago
 
0
Q: Reverse integers divisible by 3

PhDI was asked a pretty basic question in a recent interview. Given a integer string , reverse the integers that are divisible by 3. Here is an example. "1234567890" becomes "1204597863" I was rejected with "poor code quality" as feedback. I would really appreciate reviews to improve my code below...

 
4:18 AM
0
Q: Redundant Shooting Code

jozza710Summary: I am wondering if my code is needlessly redundant. I noticed, when looking over my code that I had a unnecessary variable and if statement. Both Fire() methods achieve the desired result without error (from what I have seen). To me the Redundant Fire Method reads allot nicer and is my pr...

 
4:30 AM
possible answer invalidation by Aaron Hall on question by Aaron Hall: codereview.stackexchange.com/posts/129588/revisions
 
 
1 hour later…
5:39 AM
0
Q: Emmental interpreter written in Go

EMBLEMEmmental is an interesting esoteric programming language based almost entirely on rewriting its interpreter. The language provides a very basic set of standard computing operators, and an eval operator, ?. The ! operator is the language's defining feature: it pops a symbol from the stack, pops sy...

 
5:59 AM
0
Q: C# Helper Class - mailto

StevenMplsLooking for input, advice, criticism. This is my first help class. While use of mailto URLs should most often be trivial, I have a real world need to send to multiple recipients and with a body of text something more than just a one liner. Doing so gets sticky and there are some pitfalls with res...

0
Q: Random walker using Processing.JS on Khan Academy, with new walkers generated on mouse click

Peter PeterI've created a project on Khan Academy as part of the Natural Simulations course on random walks. This project is in JavaScript, using the Processing.JS library, slightly modified by Khan Academy. (In the main, the inclusion of the Processing.JS library offers a few functions for drawing on a c...

 
6:52 AM
-1
Q: Remove duplicate char from String without using array in Java

Prakash SoniSolution: public class RemoveDuplicateInString { public void removeDuplicate(String s){ System.out.println("Before::"+s); int len = s.length(); for(int i=0;i<len-1;i++){ char c = s.charAt(i); String preString = s.substring(0,i+1); ...

0
Q: Finding shortest paths in a Wikipedia article graph using Java

coderoddeI have this sort of a web crawler that asks for two (English) Wikipedia article titles (the source and the target), and proceeds to compute the shortest path between the two. My code is as follows: package net.coderodde.wikipedia.sp; import com.google.gson.JsonArray; import com.google.gson.Json...

 
7:15 AM
0
Q: Chocolate Distribution in a school

Aditya CherlaProblem Statement In a School, Chocolate bars have to be distributed to children waiting in a queue. Each Chocolate bar is rectangular in shape. Consider its side lengths are integer values. The distribution procedure is as follows:- If bar is not square in shape, then the largest possible ...

 
Once you get it working it may be worth getting a review: codereview.stackexchange.comLoki Astari 25 secs ago
 
7:31 AM
I guess it depends on your team setup. If all clone one central repo to their local computer, they need to push into their own feature-branches for code-review and backup purposes. If all have their own central clone (like github forks) I don't see as big benefit, as all can push into their own central repo from which you make code reviews. — Mattias Åslund 39 secs ago
 
8:00 AM
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Managing collection views, adding/removing views, and listening for events
 
8:34 AM
It is little bid different from my example. I advise you to ask your question in CodeReview stackFabio 12 secs ago
 
8:54 AM
I'm voting to close this question as off-topic because it contains working code that he wants to improve. It therefore belongs on the Code Review Stack Exchange. — Jens 36 secs ago
 
9:31 AM
It is a thought I have had, I've used web.config transformations, and then slow cheetah, so I do understand the purpose . I am pretty sure this group that I'm temporarily with is not going to be fond of it as they have their methodologies and with a code review they asked me to use their way of using connection strings ( problem is they are not using dbcontext / ef , and i also do not know how they are managing the proper environment) — MillRunner 20 secs ago
 
0
Q: thread synchronization with mutex

Patrick#include <stdio.h> #include <stdlib.h> #include <pthread.h> pthread_mutex_t count_mutex = PTHREAD_MUTEX_INITIALIZER; pthread_cond_t condition_var = PTHREAD_COND_INITIALIZER; void *function_count1(); void *function_count2(); int count = 1; int main() { pthread_t thread1, thread2; int r...

 
 
1 hour later…
10:40 AM
You have not asked a precise question. This isn't code review? What's your problem? — Marcus Müller 21 secs ago
 
11:24 AM
hey
 
@Duga RBA
@skiwi Monking
 
11:56 AM
0
Q: Is my implementation of once-only macro right? I think it's more concise

 qd6pwu4I have been learning common lisp and am a newbie, using the great book Practical Common Lisp. There is a once-only macro in the book that I spent a lot of time figuring out how it works. Even after I figured out how it works, I still have to look at it and think for a while every time I come acro...

 
12:25 PM
0
Q: skip list insertion in java

markusI'm trying to insert an element into a skip list. While I think that my search function does what it's supposed to, I don't seem to be able to wrap my mind around how I'd go about inserting an element. I search for the element that I want to insert. If it's not there, I move down to the bottom la...

 
Monking
 
0
Q: Show and hide views

CesareI have two views in my app and a bunch of buttons that show or hide them. I thought about using the sender.tag of the buttons that are passed to the function to hide or show the views: @IBAction func showOrHideView(sender: AnyObject) { UIView.animateWithDuration(0.5, animations: { sw...

 
1:09 PM
Monking
why the heck does it not rain!?
 
Zak
1:39 PM
Monking @all
@Vogel612 Why the heck do you want it to rain?
 
because then the air wouldn#t be so incredibly humid and warm anymore
I just biked for 20 minutes and I had an incredible headache and I sweat like a pig
It's too warm anyways
 
1:54 PM
I wouldn't mind a few extra degrees here
 
0
Q: Convert a Integer number to readable format in Java

Prakash SoniNumber from 1 to 999999999. public class ConvertIntegertoEnglish { private String getCountSuffix(int value){ String word = ""; switch(value){ case 3: word = "Hundred "; return word; case 4: word = "Thousand "; return word; case 5: word = "Thousand "; ...

 
Zak
@Mast Woo! Just wait until they get around to launching the really big rockets
 
10 open issues before VSD1.9.4 gets shipped. If anyone feels like ticking one off, feel free to do so. I'll point you to the appropriate locations in source. github.com/VSDiagnostics/VSDiagnostics/milestones/v1.9.4
 
Zak
2:18 PM
Crap. My server isn't letting me connect to it.
Phew. Instance had simply not-started upon startup. My server still exists. Panic Over.
 
If your code is working, you can post it for review at codereview.stackexchange.com. — user2296177 37 secs ago
 
0
Q: composing IO and Async in haskell

nicolasWhether based on MVar or TVar, async implementation are always based on operation on some underlying monad IO and STM. Making Async a monad on its own i na naive way, as in F# async computation builder, require littering with unsafePerformIO which does not feel very haskellish. module Async2(As...

 
2:38 PM
@Vogel612 Same problem here.
@CaptainObvious Yuck.
 
@CaptainObvious sidenote: while this needs an explanation it uses the indian numeral system of Lacs and Crores, which is Hundred-Thousands and Ten-Millions IIRC
 
Welcome to Code Review! I improve the quality of your posts and increase the chance of a high-value answer, please take a look at our How to ask a good question on meta. — Mast 8 secs ago
 
@Vogel612 In what area of Germany do you live?
 
New avatar @Quill?
 
@skiwi southwest. Near Stuttgart
 
2:49 PM
@Mast yes, I periodically like to remind everyone that I am indeed not catfishing you all with my beautiful face
 
It was raining at the Nordschleife/Nürnburgring earlier today I saw around 11am
 
It's gotten cool-ish without rain though. soo I'm good to go. The damn clouds could go away now :D
 
That's probably not close on second thought with Google Maps
My mental model still consists of Germany's border lining up with the Dutch border and assuming that south for Germany means south for The Netherlands too
 
lol that's north Germany. big time
it's like... Dutch to German border is a tad more than a third from the North sea
assuming you'll continue down the Rhine to Basel, which would be the first Swiss town
 
@skiwi No, it's not.
 
2:53 PM
and that's the alpes. Soo.. basically Italy
 
Germany is big... until you start thinking about America, or Russia
 
China
 
let's start with Spain and France
@Mast China is cute compared to Russia.
 
I know.
Still a heck of a lot larger than any EU country.
 
true. then again, Alaska is bigger than any EU country
 
2:55 PM
Also a lot colder.
Let's migrate to Alaska, problem solved.
 
But then we can complain that it's too hot ^^
 
0
Q: directory listing in Node.JS

A TThis solution works, and I like having all the logic after the return. Main purpose I wrote this function was for use with other functions to return file list: outside <exclusion list> grandparent directory in <inclusion list> and base filename in <inclusion list> So I end up using this + a...

 
3:19 PM
lol
src\main.rs:38:11: 38:17 error: inclusive range syntax is experimental (see issue #28237)
src\main.rs:38 	for x in 0...10 {
               	         ^~~~~~
Why did they put it in the docs then :|
0..10 gives [0, 10) and 0...10 gives [0, 10]
I believe Groovy has 0..10 gives [0, 10] and 0..<10 gives [0, 10), seems more logical to me
 
At least it tells you why it fails ^^
Nothing ambiguous about it.
 
3:36 PM
maybe it needs to be enabled with a flag
 
Yeah, I guess I'll have to wait with that part then
33
Q: What is the overhead of Rust's Option type?

ThiloIn Rust, pointers can never be null, so in case where you actually need null, such as a linked list, you use the Option type: struct element { value: int, next: Option<~element>, } How much overhead is involved in this (in terms of memory allocation and steps to dereference compared to...

That's quite interesting, though it doesn't list the size of Vec<Option<i32>>
Though Vec<Option<i32>> should be twice as big as Vec<i32> due to Option<i32> being twice as big as i32, yet Rust does not perform less than C++ is said
And for example an iterator from Vec<i32> returns Vec<Option<i32>> with its next() method
 
@skiwi Optimizers do that ^^
 
3:58 PM
Try Codereview please... — Crazy Ninja 24 secs ago
 
@Duga No no no... How is that even off-topic on SO, btw?
 
@CrazyNinja Code Review is explicitly for code that already works as intended. Please don't suggest people migrate broken code over here, it just causes a bad experience for everyone involved. — Zak 46 secs ago
 
Do we have a sense for the whether we are getting a decent ratio of good quality posts?
 
4:34 PM
define "good quality"
You could go and run some queries against sede
 
Zak
There's site analytics (and SEDE) for Closed/Deleted/level of upvotes.
upvotes will be tricky to compare over time.
Also depends very heavily on how you define "quality"
 
4:51 PM
Maybe a query to get the average amount of upvotes per question in every month and then select the percentage of questions that pass that quotum could give a sense of quality
 
5:07 PM
@skiwi that should average out at 50%
Gaussian standard distribution, most probably
 
Hmm right, that might not be what is wanted ^^
Rust has cool error handling, it passes out Result<T, E> types all around, which can either have a value of type T or an error of type E
 
so an Either?
 
Pretty much
However with proper value type support and performance, compared to what you could try in Java
fn double_number(number_str: &str) -> Result<i32, ParseIntError> {
    number_str.parse::<i32>().map(|n| 2 * n)
}
Seems a bit contrived at first, but it's not that bad
Though it's still analogous with Java bubbling up the NumberFormatException when using Integer.parse()
 
that kinda makes pure functions a dream :/
 
How so?
 
5:21 PM
pure functions in idea don't even have errors
they always return the same result. there's no such thing as an error there
because theoretically they should be defined over the whole parameterspace
throwing an error makes it a partial function already
because for some results you don't return a result
 
Hmm right, I guess that makes sense, what's the (cool?) thing with pure functions though?
 
they allow a lot more compiler optimizations and fancy stuff
also they make (at least me) confident that when I understood the function I understand it in every context and I know nothing blows up there
 
What about functions that take a reference as input?
is.gd/yZ7ZFh this doesn't seem to be that nice error handling though :/
 
usually they are defined over values
 
And there's an std::io::Error and std::num::ParseIntError, but because the function has to specify its error type you need to convert it to a String, that feels wrong
Compared to Java throwing exceptions as example
 
5:30 PM
I like the lambda syntax-
 
Oh, seems like this isn't the way you should do it according to the documentation
I have to say that I disliked the lambda syntax at first, getting used to it though
is.gd/nw3EkI I'm still not entirely convinced about that CliError they defined
 
0
Q: Beginner code for a Rock,Paper, Scissors game in Python

CampArawakA brief aside: I am a beginner in Python and I wanted to see if I could get some feedback on my simple Rock, Paper, Scissors game. I do have previous experience in programming, as I started learning a few years ago but got happy feet and moved through the "basics" for a lot of different languages...

 
is.gd/Pddaxx apparently that's as good as it gets :/
 
5:47 PM
@skiwi No MCVE
 
0
Q: Auto forward mails and change body (vba, Outlook)

L. BaderI want to forward every mail with a specific subject to an e-mail. To the content of the original mail, a specific content ("geprüft") should be added. I have the code now, but it doesn't work properly. It sends the last E-Mail clicked on :(. Sub Test(oMail As MailItem) Dim MyItem As Outloo...

 
@AaronHall @EBrown is experimenting with daily statistics, is that what you have in mind?
 
If your code works and you want to improve it it is better suited for Code Review. — Gerald Schneider 34 secs ago
 
@Duga RBA, possibly incoming.
 
6:12 PM
2
Q: Platformer in C

Daniel Sunday GitHub repo. main.c #include <stdio.h> #include "level.h" static void flush_stdin(void); int main() { int level; puts("Enter a negative integer to exit."); for (;;) { printf("Enter level: "); if (scanf("%d", &level) != 1) { puts("Please t...

0
Q: Palindrome evaluator in c++

Eric HansenStarted learning C++ a few days ago, and this is my first full program. It takes in words until an end-of-file character prompt is given, and then outputs which of those words are palindromes and the longest palindrome of those words. I want to know if my evaluation for whether each string is a...

0
Q: Purely functional Sieve of Eratosthenes

Chris Jester-YoungMany implementations of Sieve of Eratosthenes (used to find prime numbers up to a given n) use a temporary mutable array to keep track of which numbers are composites. I'm looking to write a purely functional version that has the same runtime complexity: (define (primes-up-to n) (cons 2 (unfol...

 
6:33 PM
0
Q: Shortening the processing time

sxbrentxsSince I've never done any performance programming (Aside from the better choices such as array vs list etc. The real basics.), I should probably read up on it. But I had to start somewhere, so, someone I know - that is a much better programmer than I am - tasked me with making this. This code wo...

0
Q: NodeJS Express Infrequently Updated Object Caching Code

HSchmaleI'm working on a project where I need to cache objects from the database that are infrequently updated. How is this as far as synchronicity goes? Could I run into a race condition due to promises, if the view snippet is rendered inside of a promise? Is this acceptable practice, and does this real...

 
6:51 PM
You should probably ask this question on codereview.stackexchange.comkye 27 secs ago
 
7:20 PM
0
Q: Electron Application with JavaScript Backdoor and Ruby Command-Line Listener

IMcPwnI have created an Electron Application with a JavaScript/NodeJS Backdoor and a Ruby command-line listener. I created this program for remote administration of my home computer securely, without using something insecure such as VNC or using Antivirus flagged software such as the Metasploit framew...

 
7:45 PM
possible answer invalidation by 200_success on question by sxbrentxs: codereview.stackexchange.com/posts/129627/revisions
 
8:00 PM
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Image Scrolling in UITableView with Parse
 
LOL
> but it has the added benefit of actually compiling successfully.
Found that gem in the Rust documentation
 
8:31 PM
@skiwi Could be an artefact from long ago, when the language was even more experimental.
I hope...
 
@Mast I'm actually about to get a site started where you guys can view these.
 
8:54 PM
You'll have better luck asking it here: codereview.stackexchange.combali182 40 secs ago
 
9:20 PM
@Mast I need a name for this project..."Stack Exchange Statistics Explorer"?
 
0
Q: Merge array of hashes, keeping duplicate values as arrays

Bradley MarquesI am working on a Ruby gem to pull data from the Wikidata API. The data is deeply nested, as it contains a lot of repetition. I have written a piece of Ruby (sans Rails) code that enables an array of hashes to be merged together, with any duplicate key-value pairs being stored as an Array under...

 
@EBrown Oh cool, hit me up on Skype at your convenience
 
@Phrancis I'm home all day now.
 
@Mast I think it's some sort of joke
I think this is a nice start for me with Rust: github.com/skiwi2/OS-Threaded-Application/blob/master/prime.c
A prime calculator using the Sieve of Eratosthenes that's multi-threaded over the divisor
 
@skiwi Wtf is that indentation
 
9:35 PM
@EBrown I'm pretty sure we had to deliver it with that indentation etc.
Also that rsleep method was given in case you are wondering
 
9:48 PM
> "One reads," notes Bernice Kite, "how lawyers are sometimes disbarred and ministers defrocked." "Would it not be in line," she continues, "if those in other walks of life should have equally magnificent terms for getting fired? Far Eastern diplomats, for instance, might be disoriented, electricians delighted, cashiers distilled, equestrians dismounted, piano tuners unstrung, mediums dispirited, cowboys deranged, guides detoured, statisticians disfigured, and teachers degraded."
How about "debugged" for programmers?
 
10:03 PM
What is your question? What does this do that it shouldn't? What doesn't it do that it should? If you're just looking for feedback on the code itself, CodeReview.SE may be a better place to post this. — Jonathan Lonowski 18 secs ago
 
@DynamicWebPaige "We don't have a database, we have a company-wide shared Excel spreadsheet that uses VBA to manipulate our data."
@Zak ^^^
 
10:31 PM
0
Q: Double linear sequence gives odd results

sxbrentxsI'm trying to get my performance skills (none existent) up to par but ran into a problem with writing out a formula into code. This is the formula I'm trying to - quote unquote - "convert" to code. Consider a sequence u where u is defined as follows: The number u(0) = 1 is the first one ...

0
Q: Facing problem in Nested Async call

Prityalok RamanMain Calling from Web API : public virtual async Task GetLookups(string types) { if (!String.IsNullOrEmpty(types)) { var lookupTypes = types.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries); if (lookupTypes.Any()) { ...

 
10:43 PM
monking
 
monking
 
11:03 PM
monring
 
11:28 PM
monking
Another option for fired programmers is "hexecuted" (or "hexacuted"?).
 
Decmissed?
 
Deallocated
seriously how did you not think of that one?
 
LOL, there are lots of good ones.
 
Little drunk, @Vogel612.
 
@Vogel612 Probably because I don't usually have to think about it with C#.
 
11:30 PM
@EBrown no excuse. 1:30 AM and I also had a few drinks tonight
 
Garbage Collected? lol.
 
@Hosch250 casul :D
 
@Vogel612 It's 7:30 PM...lol
 
6:30 PM, and no drinks.
 
11:31 PM
4:30 PM and a gatorade?
 
Several beers, for me.
 
A few tads of Goldwasser and one Captain Cola. Nothing big. The tiredness is the worse thing
and in case anybody was wondering wtf Goldwasser is:
 
I was wondering what all that was...lol
 
22 karat's worth of gold in there?
Gross...
 
it's just leaflets. They don't actually contribute to the taste
also tequila is worse.
 
11:34 PM
If I were you, I'd filter them out, have the drink (which supposedly would taste the same) and have the gold too.
Then, I'd return the bottle for the 12-25 cents (if they have that option).
 
meh. The gold is not worth the glass of the bottle
 
@Vogel612 It just might contribute to appendicitis.
@Vogel612 No, but if you drink enough of them, you could get plenty of it.
 
@Hosch250 I had my appendix removed already
 
BTW, remind me to go mine Germany's sewers and/or grave rob and inspect the appendices.
@Vogel612 Oh, that must've hurt.
I've heard appendicitis can be very painful.
 
also it's better than having Silver as medicine by some non-medical practicioner and turning irrevertibly blue as a result
 
11:37 PM
:O Never heard of that.
LOL, that would be ... interesting. You could make people think you had died.
 
@Hosch250 the stomach-ache was gruesome, but the removal itself was with full blown narcosis. I was 6 or 7 at the time
Argyria or argyrosis (from Ancient Greek: ἄργυρος argyros silver) is a condition caused by inappropriate exposure to chemical compounds of the element silver, or to silver dust. The most dramatic symptom of argyria is that the skin turns blue or bluish-grey. It may take the form of generalized argyria or local argyria. Generalized argyria affects large areas over much of the visible surface of the body. Local argyria shows in limited regions of the body, such as patches of skin, parts of the mucous membrane or the conjunctiva. The terms argyria and argyrosis have long been used interchangeably...
okay... 'nuff gross talk :D
4
puts self // into bed
 

« first day (1121 days earlier)      last day (2900 days later) »