« first day (1328 days earlier)      last day (2692 days later) » 

12:00 AM
@skiwi Oh, that could be what keeps breaking my clock.
 
RELOAD! There are 3248 unanswered questions (91.9428% answered)
 
The synchronizing with the time server fails here though, it will still lag behind.
 
12:25 AM
possible answer invalidation by Jdsfighter on question by Jdsfighter: codereview.stackexchange.com/posts/150458/revisions
 
@Duga Ninja'd by the vogel.
 
urk...
a bit of a mess, because the self-answer was made into an edit. ..
 
Hey @Vogel612
 
hiya
urk ... the question is really a bit of a mess...
OP had a self-anser, was advised to make it an edit (correctly that is), but didn't remove the old code ...
and I'm too tired to make sense of the mess :(
which is also why I'll go to bed now. g'night y'all
 
0
Q: Breadth-first search with A star Algorithm Complicated Example Java

Amin MenoI can create a simple java code to apply Breadth-first search, but Complicated example very difficult solve it and I don't know where to start :( . This is my Question that need to use Breadth-first search with A star Algorithm to code it : "We assume, the tourist is in Paris and will visit m...

 
12:51 AM
0
Q: time_t to string

User666 std::string time_string; if ( time_t_var > 0 ) { time_string = boost::posix_time::to_iso_extended_string(boost::posix_time::from_time_t(time_t_var)); boost::replace_all(time_string , "T" , " "); } I have the above to get a time_t to a string in the format Y:M:D H:M:S or simply...

0
Q: Can't decide how to bind user input with class that needs that. Architecture of WPF wizard-like app

AtikeenI'm designing and developing wizard-like app for populating the database I created with data from different sources. It's my first attempt to design and develop well-structured object-oriented software from scratch(including database, web API + web site + client desktop app and this app for worki...

 
1:43 AM
0
Q: Scrapes given site UNTIL link with correct keywords is found, emails link and info. (LOOP PROBLEM)

ChanceTheRapperThis script when given keywords of links already on the site works just fine but currently is not looping correctly if the keywords aren't on the site. I need this to scrape until the product is added to the site (I will add a sleep time). Never mind the email part, it's sloppy but works. from b...

 
2:02 AM
Monkevening
 
0
Q: How can i organize a list whose elements are in structs?

EngineerWannabeIm currently working on a project (for school, yes) in which i've spent quite a few hours trying to get it to work, but now i found myself with an error that i cant seem to solve, and so i came here looking for help. The following is the code that i think is necessary, not the full code. typede...

 
@Phrancis Monknight
 
I've got like 3-4 unlisted hats but not one from the official page yet
 
Have fun hunting :-)
I'm going to take a nap, my alarm goes in less than 3 hours.
 
2:09 AM
Yea, got a long list like that as well.
34 just from today, I see a lot of sites so I get a lot of duplicates. A lot.
 
I can imagine. Have a good night/nap!
 
 
Are regular expressions technically a language?
is also problematic, as it is not a language per se (although it appears to be using its own language)
(going though posts with no language tags query)
@Jamal ^ FYI
And uhh,
6
Q: Check disk space against a threshold

Canadian LukeThe below script is one I made to check the disk space on mounted partitions under Debian Wheezy. I tried adding a -d switch to force printing out the used data, but its main purpose is to run as a cron job, and email the administrator if any disks are below a certain threshold. What I'm looking...

5 tags, none of which are a language tag
is also annoying
I might make a list and post something on meta
another...
and ...
formulas posts, where no VBA is used
I'll quit editing tags for a while, sorry for bumping all those Ruby on Rails posts
 
3:10 AM
Whichever is most proper. I just want these posts to have the right tags so that the query can still potentially stay empty.
 
We may just need to add those as exceptions into the query then, seems like almost all the other ones are ROR missing the Ruby tag
Any thoughts on that?
 
15
Q: Editing out the Ruby tag from a Ruby-on-Rails question

Marc-AndreSomeone suggested an edit to remove the ruby tag with the reason: ruby != RoR I was tempted to reject the edit, since ruby is a valid tag in my opinion for ruby-on-rails. The user is a good contributor in the ruby tag on SO so I was doubtful what would be the best option here. Do we reject...

It could work, but there are also still a lot of questions without . Maybe I could still work on retagging them over time...
 
3:26 AM
Once we get through this backlog of RoR missing Ruby tag, the list will shrink a lot. I'll edit the no-language-tag query tonight and let you know
 
It looks like there are about 147 questions like this...
 
Ah the query I'm using actually has jQuery included as a language tag ;\
 
Also, you can remove . It looks like those questions need .
could still stay, and I'm not sure about .
may need to stay as well.
 
What abour ?
CMake, Batch and Shell have/are their own languages, which is what makes me tempted to filter those out
 
I think we've decided that all questions need a different language tag.
 
3:36 AM
What if it's only regex though? For example, I could write a regex in Notepad++ and just use it there for find/replace, that wouldn't warrant to have a language tag
(not sure if it would warrant posting a CR question either, though, but there are a few like that)
Mind you, I'd have nothing against closing a regex-only question as "stub code", at least personally.
 
There might be a Meta thread on that.
What say you, @200_success?
 
possible answer invalidation by Jamal on question by Bradley Moore: codereview.stackexchange.com/posts/5086/revisions
 
13
Q: Are we allowed to ask questions about just regular expressions?

Ethan BierleinAre we allowed to ask questions just about regular expressions?

@Phrancis ^^^ may provide some insight
 
Hmm OK, though the 2 answers are conflicting
 
18
Q: What language are apache .htaccess files written in?

khaverimI know some of the syntax and such, but does the whole of writing Redirect Rules and blocked IP addresses have a NAME? Or is it just known as 'Apache .htaccess code'?

 
3:48 AM
Monking Jamal !
 
I suppose if I find a question that's strictly regex with no hint as to implementation platform/language, I'll consider voting as hypothetical code
 
HI MONKEY
 
@Jamal So we can safely say that a question tagged with and not having another language tag, should just be excluded?
 
Yeah
 
Hm. I just noticed LINQ is also included in the language tags, those should also have C#
 
3:52 AM
@Phrancis Linq is a .NET thing.
VB.NET and F# both support it, in addition to C#.
 
Ah, so it's definitely not a language then
 
I assume IronPython and IronRuby would have access to it too.
 
0
Q: Using "intermediate variables" to abbreviate long dict entries

Simon FrommeSometimes I come across the situation that I have some data in a nested dict with rather long key-names (sometimes unavoidable for one reason or another). some_dict = {'not_to_short_key_one': {'second_lvl_key_one': 23, 'one_more_second_lvl_key': 5}, ...

 
I'm removing more non-language tags from the query now. Maybe I'll just remove anyway and just save those for later.
 
4:18 AM
@Jamal OK let me know what you come up with
 
@CaptainObvious example code
 
248 posts after taking out , , and .
 
 
2 hours later…
6:15 AM
possible answer invalidation by Babra Cunningham on question by Babra Cunningham: codereview.stackexchange.com/posts/150537/revisions
 
0
Q: print linkedlist reversely

Lin MaWorking on the problem of print a linkedlist reversely without destruction. Here is my code in Python 2.7 using recursive way. Wondering if any other better ideas, in terms of both time complexity improvement and space complexity improvement? Also welcome for code bugs and code style advice. cla...

 
6:42 AM
Non-English Answer Should I edit this or leave?
 
@Tushar I would suggest to flag for moderator attention, maybe leave a comment asaking OP to translate the text to English?
OP accepted it so evidently they found value in it though
 
OP doesn't exists on site. The question is migrated from SO
 
> viewed

4865 times
Wut
 
0
Q: 3 sum implementation in python 2.7

Lin MaWorking on below problem, looking for advice on code style, functional bug and time complexity improvements. Also looking for advice in, If array is not sorted, any solutions available for O(n^2) time complexity? In my loop, I always search from exclude_index + 1 to reduce duplicate, is it a s...

 
@Tushar Oh wow, so it was migrated a month after an answer was posted and accepted? WTF
 
6:51 AM
That's our answered rate.
Turn the graph upside-down for zombie rate.
 
Sounds about right :\
@Jamal FYI I went through the rest of ColdFusion list and added to them. So now we just need to chip at the RoR and jQuery ones a bit at a time and we'll get through them soon enough
That said, TTGTB.
 
7:07 AM
@Phrancis Gone. Some mod deleted it.
 
Yup I see janos just did, nice find
 
7:33 AM
This looks like a question for codereview.stackexchange.com - not for SO. — mpf82 31 secs ago
@mpf82 nope. Even though it seems that he asked for review, he pointed a specific issue with the current implementation and asked how to solve it. It would fit in codereview as well, but it's perfectly fine to post it here too. — alfasin 44 secs ago
 
0
Q: Design strategy to replace multiple if else

SimsonsTo create a pdfDocument I am using following code which works as expected but do not want to use multiple if else. Any patterns or any design strategies? It may be a over do for the example , but will be useful. string fileExtension = Path.GetExtension(fileName).ToLower(); str...

 
@EBrown I know about the space complexity I just wanted to show another way.
Monking
 
7:48 AM
Npoljoh
 
@Duga nice hat
 
FACT: Our female bot @Duga has more hats that 50% of the users. LOL ^^
 
@Mat'sMug Just because I link to it doesn't mean I read it myself.
 
@Dex'ter Challenge: I have two hats.
 
Song: I have a hat...and @Duga has. Mm, DugaHAT ! * lalala *
 
8:04 AM
0
Q: Waht needs Serial data send and receive?

NEWBIEEBIEEI would like to send and receive file in below code. but there is wrong in function,"xmodem_receive". Reading Serial from "xmodem_send" by " ret = saferead(fd, &chunk, sizeof(chunk)) " in "xmodem_receive" but There are reading data in the least. Anyone teach me required at least to run this cod...

 
8:19 AM
For working code, codereview.stackexchange.com might be a better place. — GhostCat 9 secs ago
 
0
Q: Plotting location of reports extracted from firebase and when a marker is clicked start a new activity

NimaI'm writing a MapsActivity to retrieve records from Firebase and plot location of all these records but for some reason the map is displayed first and records are not displayed at all. Can you tell me what I am doing wrong? Thanks a lot! package com.test.myapplication; import android.content.I...

 
8:43 AM
 
Off-Topic(explain me this and that) codereview.stackexchange.com/q/15564/79668
 
@Tushar the question is to old. There is no benefit for close votes.
 
Ok.
 
Kaz
9:03 AM
Monking @all
 
0
Q: Web scraping with python?

user126415Good morning, I'm a front-end web developer. I don't have a good knowledge for back-end web-development. In my future i have to learn web scraping from the websites like ebay , amazon , MAGENTO etc. But i'm not sure where to start. My friend told me to start from these series of online courses (P...

 
9:21 AM
This kind of question is better ask at codereview.stackexchange.deJens just now
 
Guys, I don't quite like the title of my question
0
Q: Let's speed that file sentence searching program

Dex' terIntro: I've written a small piece of Python program which is looking after a given sentence in multiple sub directories of a given path. I'm looking for improvements regarding the speed of my script. Code: from os import walk from os.path import join def get_magik_files(base_path): ...

any suggestions ?
 
1
Q: Let's speed that file sentence searching program

Dex' terIntro: I've written a small piece of Python program which is looking after a given sentence in multiple sub directories of a given path. I'm looking for improvements regarding the speed of my script. Code: from os import walk from os.path import join def get_magik_files(base_path): ...

 
@Dex'ter nope.
Do you need to print each line of a file where the sentence is found ?
 
@Heslacher yes
 
ok
 
9:45 AM
0
A: Why does Windows 10 show issues after booting into Linux?

DrMoishe PippikThe clock issue is easily fixed: as installed, Ubuntu uses UTC (AKA GMT or prime meridian time), but edit /etc/default/rcS to make Ubuntu use your local time zone, or make a Registry change to force Windows to use UTC. The issue with the icon cache is most likely from an existing hiberfil.sys. B...

That answer might work, trying it later, a shame if I still need to disable fast boot though
 
@Dex'ter how about - Searching for stentences in multiple files
 
@t3chb0t that sounds ok. But I wanted to make the title a bit catchy than that
 
0
Q: Another Tic Tac Toe In Ruby

Recoba20I am messing with Ruby a little bit and would like to get some feedback about the Spaghettii below :) Sides = ["X", "O"] Msg_for_restart = " Starting all over again" Msg_for_coordinates = "Enter coordinates in the form of x,y" Msg_for_matrix = "This is how the matrix looks like" ...

-1
Q: Enterprise Level architecture suggestions for Employee Maintenance application (Add/Update/Create employees)

iSahilSharmaI'm currently working on designing and developing an architecture for Employee Maintenance application. High Level Requirements User of the application can add/update/delete an employee User of the application need not to enter login/password for authentication. Its an intranet applicatio...

0
Q: PHPUnit test recomendations

iillexialIt's my first PHPUnit test with mocks, for Symfony 3 project. Can anyone give me some advice's about this code? class CourierManager extends BaseManager { /** * @param Courier $courier */ public function create (Courier $courier) : void { $this->em->persist($courier...

 
9:59 AM
0
Q: How to remove entire history stack in angular js.

rajI am new to the angular js and web application development. I am facing an issue while returning user to home page after completing a transaction, i want user to stay on home page , but it keeps taking user to all the pages he/she traversed previously. Have tried $location.replace(), but it just ...

 
10:10 AM
@Dex'ter how about "Please Help!" ;-D
 
Kaz
PSA: If you're ever designing a system with account or reference numbers, please make sure they don't start with leading zeroes.
 
10:26 AM
0
Q: Breadth-first search with A-Star Algorithm error using Java

Amin MenoMy Question is : "We assume, the tourist is in Paris and will visit monuments using a car. His/her hotel is in Trocadero, neighborhood Tour Eiffel. The following map shows some monuments in Paris. The number between parentheses in each box represents time taken when visiting the monument. Al...

0
Q: C/C++, libcurl and Node.js

Marc Trudelhttps://github.com/Wizcorp/curlyfile I basically took the example available on the libcurl website and wrapped it around Nan. Works great so far, performance is good. However, I am not much of a C/C++ programmer. I was wondering, would there be anything specifically I should be careful about? ...

 
 
1 hour later…
11:27 AM
Is it just me or does this code doesn't work? codereview.stackexchange.com/questions/150346/…
 
0
Q: Taxicab numbers algorithm check

user126430With the programming language skills that are available to me at the time, I've written this program to find the "taxicab numbers" (e.g. a number expressible as the sum of two cubes in two different ways.) While this code does work, it is definitely not scalable and it already takes about a min...

1
Q: Gem to interact with a third party API

Amit ErandoleI am writing a gem for users to interact with a third party api. I want users to have easy and natural access to objects and properties delivered by the JSON payload. The collection of entities delivered are called Entries so after making an http request I pass the json response to an Entries ob...

1
Q: Making my pygame wrap text function more concise

Andrew DeanI have made a function that wraps text in pygame (i.e. it turns a long string into an array of smaller strings that are short enough so they fit within the given width when rendered in the given font). My function is below. text is the string we want to break up, font is a pygame font object, an...

 
Kaz
@Stud Best to ask the OP. They seem to think it works, so it's probably fine as a question.
 
@Kaz actually the example code doesn't even compile.
Also the class doesn't work as an event manger should work, but as he didn't explain what he wants, I'm asking him to be sure.
 
11:43 AM
Monking
 
Kaz
@Stud There should really be a question in that comment. Something like "Could you please add a description/explanation to your post to clarify (rest of your points)"
 
@Peilonrayz Doesnt fully work :( The é is working, but now single quote gives ´ again I see it says English (UK) now while I was using English (US)
 
@Kaz Ah right. I'm still not really familiar with the way I should answer to these kind of questions. I explained the problem in my comment, is it ok?
 
It seems like on Ubuntu you need to manually hit the compose key to type characters with accents, while on Windows it does it automatically somehow
 
@skiwi Oh, I didn't check that, I'm on Windows atm, but there's another intl version, localectl list-x11-keymap-variants | grep "intl" should tell you it. Also I found out why the euro sign doesn't work, it puts it as a level three modifier, so you have to enable the level three key. localectl list-x11-keymap-options | grep "3"
 
11:55 AM
I think I'll let it be for now :P
hey, this looks cool, I should read it: karpathy.github.io/2015/05/21/rnn-effectiveness
 
Sure thing, :)
 
12:20 PM
Hmm... Using Ctrl+C to copy something is a bad idea if it's also a terminator code
3
 
Hi! Welcome to Stack Overflow! This particular Question rather belongs to the sibling board codereview.stackexchange.com! Check what's on topic here! — jkalden 50 secs ago
 
But there was a message of LuaJIT running out of memory anyway, so I doubt I killed anything that wasn't dead yet
 
3
Q: weekday+day validation code

geoheiPlease review the following code. The string I'd like to check is something like "abcSun24def". If any valid "xxxyy" (xxx = weedday and yyy = day) is found, return the position inside the string. If "xxxyy" is not found, return -1. The code works as desired, but I think it can be optimized. An...

 
12:39 PM
Okay, now I can really recommend to read karpathy.github.io/2015/05/21/rnn-effectiveness when learning about recurrent neural networks
 
0
Q: Rewrite two mongo queries to aggregation

LeestexHere is a code I have: const _ = require('lodash') const Box = require('./models/Box') const boxesToBePicked = await Box.find({ status: 'ready' }) const boxesOriginalIds = _(boxesToBePicked).map('original').compact().uniq().value() const boxesOriginal = boxesOriginalIds.length ? await Box.find(...

 
Hmm... so if I have things correctly it should be possible to feed a recurrent neural network a list of all CR question names and a Yes/No indicating if it's on-optic and it should work :D
Projects[Skiwi]++;
 
12:57 PM
@skiwi Awesome. And the use-case would be...
 
1:08 PM
If the code works, surely this belongs over at the CodeReview stackexchange site? — Craig Young 59 secs ago
 
@Dex'ter @Duga could perhaps post it in a room (doesn't need to be here), auto-closing stuff is very frowned upon (actually not allowed) because of a prior incident at SE
 
user image
6
 
Though I don't exactly know how it would work yet... I think in the current format it would need to run on my PC on Ubuntu, which defeats the purpose :P
 
1:33 PM
0
Q: Android "ServiceListener" class for listening web services

Cliff BurtonI'm new in Android, Java and the whole object-oriented programming, I'm trying to develop an app which needs to listen on many web services (PHP scripts written by me returning a standardized JSON string) and I thought I could design a class which takes this commitment: ServiceListener. import o...

 
1:44 PM
0
Q: helpwith my code

David FinkelshtinI wrote this code in Xcode and I have some problems can someone help me ? The problem is when Im run it's ask me 3 times to insert values and I asked for twice. @interface Calculator: NSObject -(void) setAccumulator: (double) value; -(void) divide: (double) value; -(void) subtract: (double) val...

 
2:02 PM
"Where in the World?
this is a secret hat"
I don't know how I unlocked this
 
Kaz
@Stud Do anything on a site during 21st of Dec
 
0
Q: Test First Ruby - Timer

SedulityI can solve this exercise using a complex set of conditionals but I am trying to flesh out some new tricks, specifically Symbol#to_proc. I built the padded function and tried passing it to the block but I am still getting an error code. I pass the first 4 tests in Rspec and then get stuck on 'tim...

 
Monking
 
@Kaz This is disappointing.
 
Kaz
@Stud How so?
 
2:08 PM
I though that a secret hat would require an uncommon action to be unlocked.
 
Kaz
@Stud Eh, depends on the hats. There are plenty of secret hats that are damned hard to get.
 
180° for example
 
Kaz
hmm. I now have a question.
 
I'm not really chasing the hats and I was happy to have a secret hat that maybe few people would have.
Not chasing at all*, actually.
 
2:12 PM
I like hats, it's a pity that they're not available the entire time
 
Kaz
0
Q: Has there ever been a secret hat that was never awarded?

KazWas having a discussion about secret-hat difficulty and it got me wondering. Has there ever been a secret hat that was so hard (or obscure) to get that it was never awarded?

Somebody should really comment "It's a secret"
 
@CaptainObvious There is VTC as unclear but no comment asking to clarify. For a first time user, we should do a bit more.
 
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Base activity for handling network state changes in Android
 
@Kaz That's a good question
 
Monking
how is everyone today?
my last 4 answers need more upvotes and then I need one more answer and it to get 3 up votes and then I get another hat... anyone want to follow me to Nth Monitor for a Pimp Fest?
 
2:25 PM
@Malachi It's Coffee Bailey's time at job for the morning, so I must say pretty good :D
 
@Marc-Andre NICE!
 
1
Q: Checking to see if a string is alphabetic

Iona-Kathryn Evanspublic class Alphabet { public static void main(String[] args) { checkAlphabetic("fdsfsfds+"); } public static boolean checkAlphabetic(String input) { char[] chars = input.toCharArray(); int count = 0; for (int i = 0; i < input.length(); i++) { if (Character.isLetter(chars[i])) { cou...

 
@Malachi Good here too. What about you?
 
doing well this morning. I have some UI tests to run....I need to get on that soon here
 
Ah well, I got work too but it's my last day before I leave for christmas
So, I'm not really productive today.
 
2:33 PM
lol I know what you mean...this whole week has been kind of a down week preparing for Sunday! lol
 
0
Q: A simple Dice Game Using only Static methods

Azdren Ymeriimport java.util.Random; import java.util.Scanner; public class DiceGame{ static int first,second,dice; static int elments[] = new int [15]; public static void main(String [] args){ /* Hello Guys this is a simple dice game that requires you type two numbers from the user and then ...

 
@CaptainObvious Only static... + oop?
 
2:51 PM
0
Q: Maximum subarray problem in JavaScript

Rajat SaxenaI am new to JavaScript. I've recently completed first 10 Chapters of "JavaScript: The Good Parts". I've coded this small program to find maximum subarray of an array and would appreciate your feedback on the structure of the program (from JavaScript's point of view). I am basically looking for ...

0
Q: Add a server request duration to a Golang Gorilla Toolkit CombinedLoggingHandler message

RalphI wrote a little timer middleware to append the request duration to the end of the log message returned by the excellent Gorilla Toolkit's CombinedLoggingHandler from the handlers package. That handler accepts an io.Writer and an http.Handler, and fills the Writer with a newline-terminate string...

 
3:02 PM
0
Q: Facebook permissions request doesnt launch next activity on success

Michael BandaSo I have an app that uses facebook login and public_profile permissions that are used to populate a profile. App works perfectly the 2nd time around and on. The problem is that the first time through it asks for permissions from facebook and then takes the user back to the login activity with th...

 
3:23 PM
If your code is working and want to improve it, try: codereview.stackexchange.comMooingRawr 43 secs ago
 
0
Q: Binary Tree in Python Excercise

Francesco RigoniI'm practicing Python. Being completely new to the language I'd like to hear someone else thoughts on the way I use the language. I'm coming from (mainly) Java and C so I'd expect new ways of doing stuff offered by Python which I am surely not aware of because I'm still learning. Anyway, I came u...

 
codereview would probably not like this question, because it's asking a targeted question about how to improve efficiency. codereview is more for... well, what code reviews are for. "How do I take this working code and make it more readable, maintainable and scalable?" On the other hand, this question is more appropriate for Stack Overflow. OP has asked a targeted question ("how do I improve the efficiency?", though the "should I use another language"? part of the question could be too broad) and submitted a mostly minimal, complete, verifiable sample of the code in question. — Scott Mermelstein 54 secs ago
I'm voting to close this question as off-topic because as I think it would be better suited to codereview.stackexchange.comHidden Hobbes 52 secs ago
You should be able to write your own test to determine which is better. If you're looking for better ways to make these performance improvements, you might want to ask this question at codereview.stackexchange.comtechturtle 15 secs ago
@ScottMermelstein Code Review allow questions about performance. Whether it be execution time or memory usage. — Peilonrayz 33 secs ago
@thinkerou Ok, I think I was a bit too generous in my previous comment. From what I understand of your question, this code isn't complete. (Which means codereview would certainly not want it.) You mention reading key1 and key2 from files, requesting data by http and mysql, and checking the body of the result, but none of that is in the code you submitted. Realize that if you are really requesting 1.5 billion websites or SQL queries, this will take forever. 12 threads won't help you; this will still likely take months. — Scott Mermelstein 27 secs ago
 
3:44 PM
0
Q: How to make this code more compact?

Thijs NulleIs there any way I can this code shorter? It can in any way, in my javascript code or in my HTML code. I just want it to be as short and simple as possible. Javascript var sectiesCounter = 0; var bezoekersCounter = 0; var instellingenCounter = 0; var conversiesCounter = 0; $(document).ready(fu...

-2
Q: C++ Random String Generator isn't being random. Thoughts?

AlistairDumonteSo, I have run into a bit of a pickle. I wrote a Random Item Generator, in order to produce a random amount of random strings from an array, a while back that on my home computer works just fine. I have gone back over it to adapt it to a much larger array and now it pulls the same set of string...

 
@CaptainObvious broken code
 
@skiwi Isn't that more or less FP rather than OOP?
Monking!
 
Monking @Phrancis!
 
Monking
 
@Phrancis Nah, just iterative
 
4:11 PM
Just finished a phone call with another company I applied on, apparently it went well enough they want to do a second one.
 
@EBrown At this rate you're going to need to choose
 
No kidding. Lol
 
0
Q: Depending on the frequency sort the array

Bharad WajDepending on the frequency sort the array I know the code is not optimised nor it works want to know a way to get the output input = 3,5,3,5,3,4 output=3,3,3,5,5,4 #include<stdio.h> #include<stdlib.h> void sort(int arr[],int n); int distinct(int arr[],int n); int main() { int i=0; int a...

 
Wow, the train staff over here wanted to strike because their work got boring (Not enough variation in routes they needed to work on)
5
 
4:34 PM
I'm voting to close this question as off-topic because working code that you want to improve should be asked about on Code Review. — TylerH 9 secs ago
 
4:46 PM
what does your code do? have you tested it? you need more information in your question before you post it on Code Review — Malachi just now
 
Kaz
I almost didn't recognise @Duga with a hat.
 
lol
3
 
5:28 PM
Man this will take forever to benchmark.
 
Hmmm, likely Firefox will launch a process for every tab in the future
 
If it starts eating memory like Chrome, I'm going to be murderous.
Well, I supposedly implementing alpha-beta pruning, but it doesn't seem to work, so I don't think I really did.
2
 
@Hosch250 It's already eating memory, isn't it?
@Hosch250 Checkers game, right?
 
Yep.
Oh, it is working.
 
Hmmm that was just a trick to speed it up, so you should see performance improvements
 
5:33 PM
It isn't quite as fast as I could have hoped, but it is at least twice as fast.
 
How many turns can you lookahead in how many seconds?
 
6 (3 each) in about 12 seconds.
Before, it used to take close to 30 seconds to do that.
 
That's pretty slow I think :/
 
0
Q: Chainable futures in python

DanielSankHere is a home-made Future class: class Future: """Represent sn asynchronous result. Use add_callback to construct a chain of callbacks to be called when the Future's result is ready. """ def __init__(self): self.callbacks = [] self._fired = False se...

 
Yeah.
I'm going to make it multi-threaded, too.
 
5:34 PM
I'll try to fire up an old implementation I had made two years ago for university
 
And I really, really need to optimize it.
I know it is very inefficient in several places.
 
Because of F#?
 
No.
Huh.
My alpha/beta values are never assigned. I guess it wasn't improved.
Hmm.
 
ok what's the deal with secret hats this year? I have more secret hats than normal ones...
 
@Kaz True story.
 
5:36 PM
Boy, I guess it is reasonably fast.
It is running through it seems millions of moves in about 12-15 seconds.
 
Wtf Netbeans?
 
lol
 
I've long-time converted to IntelliJ, but this project was made in my Netbeans times...
@Hosch250 Just for reference, my AI is going to 9 depth in 2 seconds
That's at the start of the match, as obviously it depends on the board state
In 8 seconds it goes to a depth of 11
Let's see... how terrible is this code? pastebin.com/8NQNaU1A
 
looks at starboard - @skiwi you're writing a Terminator AI?
7
 
Cool, I can still understand my two year old code
@Mat'sMug LOL... no, cough, maybe?
I'm running a recurrent neural network (LSTM) to generate random Hearthstone cards
Right now I'm a bit stuck though, if the network is too small it does generate lots of garbage but also some interesting new cards, if the network is bigger then it just memorizes the cards
Unfortunately there are only a thousand (or few thousand?) Hearthstone cards and it would like to have as much data points as possible
 
5:46 PM
Then I'm not surprised Checkers is slower.
If I ran mine at level 11, it would be scanning millions of moves.
 
But this is checkers I was doing ^^
 
Oh.
OK.
 
Well my algorithm is definitely O(n^2) lol
 
Ugh, I need to do some probability theory if I want to work with probability of getting certain cards in Hearthstone
I did it on university but I'm not sure anymore :D
 
6:04 PM
Anyone looking for eye-bleed: kibble.net/magic/magic10.php
That foreground and background color is terrible
 
0
Q: how to open an file in c++ and count characters and words?

Abrar SajjadI have recently started learning c++. over here I am trying to write a program which can open and counts words and characters in a file. So far the code is working well to count characters however its show that there is only one word, I tried almost everything but could not figure out exactly why...

 
Any duck for probability theory around by chance?
 
6:20 PM
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Async.sequence implementation
 
6:34 PM
posted on December 22, 2016 by CommitStrip

 
@CommitStrip I know some people like that.
Darn it, I messed everything up.
 
6:48 PM
@CommitStrip 150 Ghz...
 
0
Q: Extracting initials with R

snoramPlaying around in R with a Edx CS50 homework. The job is meant to be done in C, I am using (the more familiar) R just for warmup. I mainly wonder whether I am breaking any good practice/style norms overall or in any tiny detail. initials <- function(full.name) { # Returns initials of a full n...

 
7:00 PM
I earned a secret hat, but it's so secret I don't even know what I did to earn it.
 
That sounds like a few of mine.
 
@EBrown Not really much more to discuss. I will take mine as it holds up in the rough stuff. You managed to get O(1) space. Nice solution.
 
Every answer to that question has a different plus to it.
FWIW I didn't down vote anybody's answer.
The problem is that space complexity is hard to analyze.
 
@Donald.McLean lol
I think there are a lot of those this year
what question needs downvotes @EBrown? I just might be the man for the job
4
 
It doesn't need down votes.
 
7:06 PM
I was joking... sorry forgot the JK in there
 
@Paparazzi I didn' DV you this time but you usually ask for DV yourself by not providing any comment about your code, it's usually one sentence like "this is better" :-|
 
I'm actually going to try to continuously improve this algorithm to see if I can get execution time down for unpredictable data sets while keeping within O(1) space.
 
7:40 PM
@t3chb0t I am aware a good share of my down votes come from you :-|
 
in General Rubberducking, 12 secs ago, by Duga
[Hosch250/Checkers] Hosch250 pushed commit 4d027626 to AIBranch: Minimax with pruning works
Level 6 is as fast or faster than level 4 used to be.
 
@Paparazzi actually two or three I guess, you're already downvoted when I come by so I don't do anything
 
@t3chb0t Fair enough. I have no problem with you. You have up voted many of your answers.
 
Wait a sec. Now it tries to lose?
:/
 
7:46 PM
@Paparazzi I don't see what good comes from speculating about who downvotes you.
4
 
@Paparazzi I'm wondering why your last message is getting flagged... mhmm, I don't see anything spamy/insulting about it
 
But level 20 is faster than level 6 before, so it must be an improvement.
@t3chb0t He is accusing you of having sock puppets for upvoting your own answers.
Time to run errands now. BBIAB.
 
@EBrown I don't see any hope of O(1) space without O(n*n) complexity. I got yours down to 1/4 but is still dies at bigger numbers.
@SimonForsberg Cool not worth discussion
 
@Hosch250 That could be the case if it figured out that it will lose anyway, then it tries even harder to lose, if that's the case then you will need to compensate for it, otherwise good luck :D
 
@Hosch250 I guess @Paparazzi wanted to say he would upvote my answers... did you? Or do you really mean what you've just said @Paparazzi? anyways, I don't care :-]
 
7:49 PM
@skiwi Quack
 
@t3chb0t I meant I have up voted many of your answers including that question
 
0
Q: Python Scrapy code using Selenium

nevsterI have written some Python code that uses Scrapy and Selenium to scrap restaurant names and addresses from a website. I needed to use Selenium because the button to show more restaurants on a page is in javascript. The actual list of restaurants per area is two links deep (three in London) - he...

 
@Paparazzi I'd gladly upvote one of your's becuase you have interesing ideas but you know... they usually contain one or two sentences and lots of code
 
8:13 PM
@t3chb0t Cool, like I said I have no problem with you. I got your message.
@EBrown See my post for a faster version of yours.
 
You might try asking this on codereview.stackexchange.comRichard 1 min ago
 
@Paparazzi Believe it or not I actually made those same adjustments already (and a few more).
 
8:41 PM
This isn't code review, I can't believe you answered this without explaining where the OP is going wrong besides expanding on a suggestion in the comments. — Zaggler 59 secs ago
 
8:56 PM
0
Q: Lexicographically smallest wave like array without sorting

clever_bassi Given an array of integers, sort the array into a wave like array and return it, In other words, arrange the elements into a sequence such that a1 >= a2 <= a3 >= a4 <= a5..... Example Given [1, 2, 3, 4] One possible answer : [2, 1, 4, 3] Another possible answer : [4, 1, 3, 2] NOTE : If ...

 
possible answer invalidation by Jamal on question by Fransis: codereview.stackexchange.com/posts/29790/revisions
 
9:20 PM
possible answer invalidation by Jamal on question by Bharad Waj: codereview.stackexchange.com/posts/150196/revisions
 
0
Q: Batch save with progress reporting for Entity Framework

t3chb0tI reviwed this question that in my opinion uses a not so pretty batch-save so I tried improve it and this is what I came up with. In this more generic solution that allows to reuse it I wanted to implement the using statement instead of manually disposing and recreating the context. It is an ...

 
Gosh, I need to stop "Code Review mode" when I post SO answers. — Mat's Mug 19 secs ago
 
9:38 PM
Why did I pick Java... Collections.shuffle does not work on Deque<T>
 
1
Q: Efficient data-driven finite state machine

EdwardIn creating this answer to a recent question, I thought I might write a fully worked example that implements a finite state machine in C. The purpose is to implement the following function: Given a const char *, search for a string conforming to the pattern WWWDD where WWW is one of { "Mon...

 
If you already validated it, and no errors were reported, you are only looking for a code review here (best practices, etc.)? In that case Code Review might be a more suitable place. -- If you have a specific problem or question, this question is fine here, but then you should edit it to give more details. — unor 48 secs ago
 
0
Q: Flexible RPG/RTS AI

Stefan StankovićFollowing classes (stripped bare) are the basis for a RPG/RTS hybrid game and it's flow, and I am concerned with it's design (and possible future problems with updates/maintaining): // Unit.java abstract class Unit { protected abstract class UnitAI { abstract void decide(); abstract vo...

 
9:57 PM
If this is working code you think could be improved, see Code Review. Or just use max. — jonrsharpe 37 secs ago
 
0
Q: String manipulation in modern c++

Andrew SavinykhThis is not my code, but the question feels appropriate. Here we can see the following piece of code: // You must free() this yourself. const vm_char* factor_vm::default_image_path() { vm_char full_path[MAX_UNICODE_PATH]; vm_char* ptr; vm_char temp_path[MAX_UNICODE_PATH]; if (!GetModul...

 
10:30 PM
You might want to take and tweak this code (and linked posts) to simplify your ADODB code without sacrificing the robustness of ADODB.Command. — Mat's Mug 59 secs ago
 
11:06 PM
Main production app servers been down well over 30 minutes. Failover servers anyone!?
 
11:23 PM
0
Q: DispatchQueue on playgrounds

G AlexanderUsing playground in Xcode 8.2, I don't get why this code doesn't work import Dispatch import Darwin import CoreGraphics import Foundation let date = NSDate() let dateFormatter = DateFormatter() dateFormatter.dateFormat = "yyyy-MM-dd" let timeFormatter = DateFormatter() timeFormatter.dateForma...

 
11:36 PM
@Phrancis The server they were running on fell over
4
 

« first day (1328 days earlier)      last day (2692 days later) »