« first day (1224 days earlier)      last day (2810 days later) » 
00:00 - 17:0017:00 - 00:00

12:00 AM
RELOAD! There are 2685 unanswered questions (92.8137% answered)
 
12:27 AM
0
Q: Editing and saving an HTML page through C++

RobertI made a small website marketplace mainly backed by paypal, but I've also found that putting new listings up takes a good five minutes each, so I began writing a program in c++ where the user inputs some information and htmls are added and edited to expedite the process. However, when I tried op...

 
12:47 AM
Monkevening!
 
12:58 AM
Evening.
 
0
Q: Silly Caesar Encryption in Python

103EJust started learning to code. Made this variation of a caesar cipher. Any tips to improve -- either method or (not sure if onTopic) underlying algorithm? Don't worry... I promise not to use it to encrypt anything of value :) ######################### # # # caesarED By: 1 0...

 
1:19 AM
monking
 
monking
 
@CaptainObvious Caesar cipher is pretty silly indeed
 
 
2 hours later…
3:28 AM
0
Q: Javascript validator plugin

PratsPlease help me to improve the javascript validator plugin by making it more OOO and robust Requirement is to trigger the validation if there is an attribute data-formValidate present in the input tag <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>SignUp</title>

 
3:39 AM
0
Q: How to start Flashcard program project?

Irfan MallickIs there anybody who can help me to start a flashcard program? Please advise. Thanks

 
4:13 AM
 
4:58 AM
0
Q: Ability to expand and collapse code in questions and answers

Adam MendozaIt would be good if we had the ability to expand and collapse the code for questions and answers since the platform currently only shows a limited number of lines and one has to scroll to see the entire code.

 
0
Q: Matching two strings using Regex in C#

WT86I have two files, each contains a number on each line. Let's name them File A and File B. Each file contains roughly 2 million lines, and I'm trying to match those numbers using Regex. The tricky part is that, each number in B can be a number in A + "00" or can simply be equal to A. B = A OR B ...

 
5:19 AM
Monking
Never saw that kind of error on CR
Related:
3
Q: /review/* failing on SE sites, but not SO

Nathan TuggyAs of about 15 minutes ago, attempting to access /review queues (but not /review itself) throws a generic "oops" error on *.stackexchange.com (Meta, ELL, Space, RPG, Code Review, …). SO's review is fine for me; I haven't tested SF or SU or AU.

 
5:57 AM
and bug is fixed now
@CaptainObvious broken
 
6:20 AM
lol
 
6:36 AM
@MikeChristensen: Okay, well then follow the documented procedure of course. From what you describe, you will need to use -f because you are replacing commit(s) on the upstream repository with different ones that have a different (rebased) history. If you were to use a product such as Gerrit then it supports this sort of rebasing code-review workflow without having to use -f when pushing. We use Gerrit at work in this way and it works very well. — Greg Hewgill 43 secs ago
 
7:08 AM
I'm voting to close this question as off-topic because it belongs to codereview.stackexchange.com — ceving 40 secs ago
 
0
Q: Thread safe templatized singleton class C++11

gaurav bharadwajdown vote favorite // C++11/14 thread safe templatized singleton #include "stdafx.h" #include <exception> #include <string> #include <sstream> #include <iostream> #include <atomic> template <typename T> class Singleton { //thread safe atomic variable to check whether client is creatin...

 
7:44 AM
0
Q: Inserting rows to MySQL database in Bottle microframework

user3041764I am starting something and it appears that I dont know the basics. Once again I need your help. It is about inserting rows to database. Let's start from the beginning... I am writing web app in bottle microframework and I am trying to insert data to database using the bottle_mysql plugin. My ...

0
Q: Safest Connection pool in Java

dyesdyesI have read the code reviews on this website: this one and this one So creating the pool in itself might not be that difficult, I'm more worried about the client closing the connection or the connection not being given back to the pool. So I have tried to implement this answer. public interfac...

 
8:05 AM
This may be more appropriate on codereview.stackexchange.comAndrew Mortimer 45 secs ago
 
Zak
Monking @all
 
Monking
 
8:20 AM
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: is_dir function for FTP/FTPS connections
 
8:34 AM
0
Q: Classes interacting with one another

IceapeI am creating a simple dungeon crawler game. My program runs and does what I want it to do so far, but I am starting to run into difficulty with adding new functionality, and I think one of the main issues is my class design. I want to refactor my classes according to proper OOP principles, of w...

 
what is you favouire tool for compiling markdown to html or for creating documentation from markdown?
 
8:58 AM
@DanPantry So far it looks uglier than it is. I can probably find something useful to do with it.
 
Zak
9:09 AM
hi @zyabin101
 
hi :3
quickly back to lurking
 
Zak
@zyabin101 Nope, too late, I've already got you ^^
 
@Mast it looks a lot better than React.createElement() everywhere
especially when you start getting nested elements
 
Definitely.
 
hey
need help with chatbots
 
10:03 AM
@DanPantry At least I got a much better understanding about how to DOM.
 
0
Q: Caching generic types statically

Aleksandar DimitrovGiven the need to share several big models throughout an application (web application, the models need to persist between requests), I would like to create a unified cache handler to keep them in memory. Creating the models from disk is expensive. There's an abstract model container which handles...

 
10:28 AM
@Mast How so? :P
 
@DanPantry Learning JSX demystified it for me.
It's not that complicated once you can grasp it.
I always missed a piece I guess, and this forced me to think about it :-)
 
Monking
 
Which is one of the main reasons I keep learning new languages, to understand more variations of the same thing.
Just because it has a different name, doesn't mean it's doing wacky stuff. It's doing the same thing we're used to, slightly different.
Monking @skiwi
 
JSX is pretty cool, isn't it?
 
I'm just not sure how that taught you to use the DOM though
 
Zak
So I'm crawling through 15 years of archived files, trying to organise/clean things up. I now understand what reading through legacy code must feel like. Definitely measured in "WTF/m".
4
 
^^
 
0
Q: Setting and clearing JavaScript intervals depending on browser state

Sidharth SamantI'm trying to build an application which automatically refreshes the page with fresh stuff from the server. I was trying out the approach with something basic like printing out the time, to test out my approach. I go to the page, and it starts printing the time every 5 seconds in the console. Whe...

 
11:14 AM
I watched the Hot Network Questions... There goes my day.
2
 
0
Q: Asp.Net MVC Application Controller

AlexI'm developing a webapp in ASP.Net MVC. One of the requirements of the project is that users follow a "workflow". The workflow has a number of steps, and a conditional branch. The workflow is long running (week+) and most steps rely on one or more API calls to a 3rd party. I have previously wond...

 
@skiwi Rookie mistake. How much extra tabs do you have now?
 
@Mast 4
 
11:42 AM
-1
Q: CORE DATA insert value

Mark_lutherI need fetch value from coredate with value name, email,number i need to give value at run time with entity name Greens. Very new to ios ! help pls. using managedobjectContext

 
@CaptainObvious HAMMERTIME!
Also, free flags on the answer. Question should be purged, not answered.
 
Gone
 
The Mug strikes again.
 
12:00 PM
0
Q: Get count of positives numbers and sum of negative numbers

user117128Write a function called manipulate_data which will act as follows: When given a list of integers, return a list, where the first element is the count of positives numbers and the second element is the sum of negative numbers. Sample code def manipulate_data(data): if isinstance(data, (list...

 
Zak
Favourite find so far: 05 IIC.xls.pdf
 
@Zak That's perfectly sensible, it's the PDF output of a XLS document.
 
Zak
@Mast Except it's not. It's a PDF output, printed, signed and then scanned back in.
 
lol
Just drop it in the department of 'signed' papers.
 
0
Q: An HTML Combobox with Autocomplete using jQueryUI and require.js

RTravis3647Hope this is the right place. I've never developed on a team so never had any feedback on my code and I'd like to know what others think. I'm using this in a current project and it is working really well. I couldn't find anything ready made to do what I needed so I figured I'd make it. Github re...

 
12:16 PM
@Zak (wat)^pi
 
Zak
On the plus side, of the 90,000 files that existed this morning, about 2,500 have been removed.
 
On the down side, they were actually important?
I hope not ^^
 
Zak
@skiwi Funnily enough, I'm being very careful with this script ^^
 
I think that this question is better suited in codereview.stackexchange.comFlying Gambit 31 secs ago
 
Zak
Since I can't read the contents of these documents, I'm relying on byte counts.
 
12:22 PM
22
Q: How many port adapters, and which ones can be stacked up and actually work?

WesSomeone posted this pic on twitter today: That won't work, right? Why, exactly? And, specifically, at which point the stack of adapters stops working?

 
Zak
So if I find a blank template with a bytecount of 99,720 I can tell the script to auto-delete anything with that filename and that exact bytecount.
I figure it *probably* won't hit any false positives.
 
Are there that many duplicates then?
 
Zak
@skiwi In the last 5 years, not many.
But years ago, S.O.P. was to create a template folder already containing blank template documents.
and people being people, they didn't always get renamed when people put actual information in them.
So truly blank templates I delete, but most of the work is actually renaming documents in a useful, index-able way.
 
Monking
 
hey @Phrancis
 
Zak
12:29 PM
Monking
And things like calling a PDF file "ID" when that could mean passport, or driving licence, or bank statement, or a signed anti-money-laundering form, or birth certificate etc.
That's a pain.
 
Yeouch
I suppose #NamingThings is really a human problem, not just a programmer problem.
3
 
Zak
Fortunate that I'm here to clean things up *before* we become a giant company.
It's still at a size where I can clean everything up, methodicaly, over a few days.
Another big one. PDFs called "client agreement" (or other regulatory forms), but don't indicate if they're signed copies or not.
I just have to open them all up individually and rename appropriately.
 
I guess it could be worse
 
12:50 PM
Everything can be worse
 
Zak
The human problem is definitely a tricky one.
I really want to just mandate naming conventions.
but that never works
 
Uh, great, so I guess my userscript won't draw something on my screen if I don't tell it to add it to my DOM
 
Zak
so I figure I'll just rename everything according to the conventions I want, and rely on basic psychology to do the rest.
 
isNaN('tasty indian flatbread')
4
 
0
Q: Average calculator with filters

Zs VI am a beginner in Java and I have a hobby project to create a tool for statistical calculations. User can upload csv with results of a survey. The responses stored in a Response object which has two map: Map(Integer,String) questionMap, Map(Integer,String) answerMap, where the integer(questionID...

0
Q: Possible to simplify my multiple if-else statements

Gerard SantosI have a long code which consists of multiple if-else statements how could I shorten it. The code does is Evaluating if Single linq query returns null or not Check whether time is AM or PM Check if data exists on the table if it doesn't exist do Insert Values I see my code a messy code with ...

 
12:54 PM
=//// there's a tooltip stuck on my screen
 
@DanPantry LOL
We have a HSI modem monitoring tool at work that has a bunch of fields that display NaN as the value. I sometimes wonder what other people think it means, like some kind of mysterious value
@Mat'sMug around?
 
@DanPantry What did you expect?
 
false because isNaN is not isNaan
 
.....
Your answer is correct, but your reasoning sucks.
 
you must be a GCSE maths teacher
(That joke will probably make more sense to @Zak than anyone else)
 
Zak
1:03 PM
@DanPantry I dunno, it's not like we have a monopoly on dysfunctional teaching methods.
 
more along the lines that about half - 2/3rd of the points you get in maths GCSE papers are based on your reasoning rather than your answer :P
 
lol
I had to wiki what a GCSE is, but I get it now.
@DanPantry Sounds much like our system.
Just providing the correct answer scored you 0 points if you had a good teacher.
Providing the correct method of calculation without providing a correct answer could still score you 80% of the points.
 
Zak
Problems come when "correct method" becomes "prescribed method"
 
The more I write code though, the more I value correct methods over correct results
see: TDD vs copy paste code
 
Zak
I used to do terribly on maths tests because I don't like following rigid formulas.
My answers were right, but I'd lose tons of points for not showing my working in the exact format that they wanted it.
 
1:08 PM
30
Q: Why is a while(true) loop in a constructor actually bad?

SamuelAlbeit a general question my scope is rather C# as I am aware that languages like C++ have different semantics regarding constructor execution, memory management, undefined behaviour, etc. Somebody asked me an interesting question which was for me not easily answered. Why (or is it at all?) reg...

NOOOOOOOOOOOOOOOOOOOOOOO!
2
 
Zak
Much like enforcing Tabs over Spaces now that I think of it.
 
That's worse than goto.
 
@DanPantry I still refer correct results every once in a while :P
 
I'd prefer correct results as well.
But in education, you need to learn HOW to get to those results :P
 
@Mast wtf
gun, meet foot
 
1:11 PM
Foot, meet gattling gun.
7
 
Imagine the poor sod that creates a sub-class of said class... — Newtopian 21 hours ago
lol
 
Have infinibullets.
 
that would be an interesting/infuriating evening to work that out
 
Of-course, I'm curious why one would ever inherit from such a class.
The answer is very good, luckily.
No nonsense about best practices and the likes, just a simple, logic answer.
An answer anyone can understand and agree with.
 
possible answer invalidation by Pete on question by Pete: codereview.stackexchange.com/posts/140812/revisions
 
1:26 PM
@Phrancis what's up?
 
@Mat'sMug Hey just had a quick question for SQL Server, I have rows like this one with a RevisionGUID field
  <row Id="2" PostHistoryTypeId="1" PostId="1" RevisionGUID="6deffe8b-79c7-467b-a173-a3497b4fb476" CreationDate="2016-01-12T18:45:19.963" UserId="16" Text="How to obtain high resolution prints in a shorter period of time?" />
I was wondering if you thought those would work fine putting them into a UNIQUEIDENTIFIER column
 
they should.. why wouldn't they?
 
Well, I didn't really know if those were actually generated by SQL Server initially (I suppose they probably were...)
Guess I'll try it then and see if it breaks
Quick other note, do you think this is over-indexed? This is the table with the most rows for any given site
-- Delete table if it exists already
IF OBJECT_ID('CleanData.PostHistory') IS NOT NULL
    DROP TABLE CleanData.PostHistory;
GO
-- Create the table
CREATE TABLE CleanData.PostHistory (
    SiteId UNIQUEIDENTIFIER NOT NULL,
    ApiSiteParameter NVARCHAR(256) NOT NULL,
    RowId INT,
    PostHistoryTypeId INT,
    PostId INT,
    RevisionGUID UNIQUEIDENTIFIER,
    CreationDate DATETIME2,
    UserId INT,
    [Text] NVARCHAR(MAX),
    Inserted DATETIME2 DEFAULT GETDATE(),
    CONSTRAINT fk_PostHistory_SiteId FOREIGN KEY (SiteId) REFERENCES CleanData.Sites(Id),
 
it shouldn't matter... if it looks like a guid, flies like a guid and quacks like a guid...
 
@Mat'sMug OK cool :)
 
1:35 PM
You'll might have more success on Code ReviewThomas Ayoub 10 secs ago
 
@Duga of course you will
 
Everyone has more success on Code Review.
2
 
Except those who don't read the Help Center ...
 
Those have no success anywhere.
 
@Mast wow. just... just wow.
how does one even come anywhere close to thinking this might be a good idea
 
1:43 PM
Because it's 'easy' in one spectacularly stupid use-case, probably.
 
lol
 
0
Q: Python + MySQL Login system using Twilio API

HiperBoltthis is one of my first python projects. I decided to make a semi-complex login system in Python, using MySQL and the Twilio API. The current features are: Multi-account support Two-Factor Authentication Password Recovery Password Change I want some feedback on the code itself. I'm thinking ...

0
Q: How to refactor tab control in asp.net

Pontus MagnussonI have an asp.net web site using tabs with similar info. Each tab manipulates a database table representing "settings". Right now I have the code of 9 very similar tabs in the same code file with extremely similar methods. Table example: <Primary key, name, type, foreign key id> Each tab displa...

 
in VBA Rubberducking, 9 mins ago, by Mat's Mug
I like the smell of github stars in the morning
2
 
Monking
 
monking!
 
1:52 PM
MONKING
 
Monking
 
monking
 
0
Q: Show values from mysql database using jquery ajax

user3227899How do I show value from mysql database using ajax jquery? saved.php code is: <?php include 'conn.php'; $dbClass = new Database(); if ($_POST) { $stmt = $dbClass::Connect()->prepare('SELECT * FROM saved WHERE post_id=:post_id'); $stmt->bindValue(':post_id', $post_id, PDO::PARAM_IN...

0
Q: Pretty URL in Laravel for pagination route

Ist AirBnbPlease help me for write Pretty URL in Laravel for pagination route Like this: http://example.com/news/page/4

 
@CaptainObvious Nope.
@CaptainObvious Nope.
 
@CaptainObvious lol nuked
 
2:00 PM
BTW.TTGTW
 
2:15 PM
0
Q: Chef and digits java solution

aakhilaI am looking for a review on the following code which is for this question. I am looking for a general review of the code to understand why I am getting wrong answer on submission even though all test cases pass. import java.util.Scanner; public class Main { public static void main(String[...

0
Q: Use MLE to estimate parameters in logistic regression

NicholasI tried to write logistic regression parameter estimation myself. What I've done is using scipy.optimize.minimum to maximize log likelihood function and hence get the estimated parameters. I'm using UCLA's tutorial and dataset (see link) and the correct estimates are, FYI, I also highly sugge...

 
wow, that's actually pretty performant
 
@DanPantry What is this? Are you trying to crash my browser?
 
spaaaaaaaaaace
 
@DanPantry Nope.
 
it's performant until you zoom in and out, I guess
 
2:21 PM
It's laggy and probably leaking like hell.
 
@DanPantry That's pretty neat.
 
Which is kind-of expected with something like that.
 
Zak
@DanPantry Trippy
 
0
Q: Java - reading .sql file using injection and utility reader

MostfoolishI've come up with a way to externalize and read in my .sql files instead of having them in-code as strings. Note that I'm keeping the .sql file in the same package as the DAO (NOT separated into a separate resources folder). I'm curious what others think about this methodology. The sqlStat...

0
Q: Betterment of the file listing layout

AyanI am designing a very basic file listing layout in HTML and CSS. Although its working but I would like to know if the following code could be improved upon so that its more good and follows the best practices. I am looking forward of supporting I.E 9+ too. I am showing only the part I would lik...

 
Seems like the lag is coming from whatever makes the tree evolve and move. Hitting the "stop" button next to "evolution" near the bottom makes it run a whole lot faster.
 
2:27 PM
TL;DR - Cut trees, save browsing speed.
7
 
2:50 PM
Questions like 'How do you' don't belong on SO because it's to opinion based. Feel free to write some code though and have it reviewed on codereview.stackexchange.comReinard 50 secs ago
 
And with these stars I have killed the chat.
2
 
Are you kidding? You can't kill this chat with stars. This chat thrives on stars.
14
 
^TS
 
RSA
 
This question is a better fit for Code Review. — itsme86 58 secs ago
Even if you are only changing the list, it impairs developer reasoning. In code review I'd suggest list_in and list_out as separate lists even just for developer reasoning alone. — Warren P 55 secs ago
@AndrewBystrov Yeah, that's what the Code Review site is for. — itsme86 22 secs ago
@itsme86 Ok, thx, i will post it on Code Review — Andrew Bystrov 15 secs ago
 
3:22 PM
ah, welcome back, @Zak
hmm nope, just some star cleanup
 
@Mast And this deserves a star!
 
yet the chatter died nonetheless
<work>
 
I remember not knowing how stars worked.
May 4 '15 at 17:53, by Mast
Who stole the inner star?
About pinned posts.
Little did I know this room never steals stars and only gives them.
 
we all learned SE chat (well, the whole SE system actually) from little knowledge and bad assumptions =)
 
Zak
3:37 PM
the first ever star:
Jun 26 '13 at 14:57, by Stack Exchange
0
Q: Python Adventure RPG Inventory Code (Text)

PythonInProgressI am trying to make a text-based rpg in Python, Pygame, and i need a way to manage my inventory slots. Currently, i have no way to find out what is currently equipped, and can only overwrite it, even though i can display the current armor value and what it would be. Here is the code for the only...

 
wah, two years into public beta
 
0
Q: Bypass table via uiautomation

Andrew BystrovI have a table ( about 200 rows and 20 columns). I want to bypass this table and get some information ( for example, get rows count). This is my code: public int GetTableSize(AutomationElement table) { try { TreeWalker walker = TreeWalker.RawViewWalker; AutomationElement fi...

 
Zak
@Mat'sMug Second ever star:
Nov 16 '13 at 3:17, by retailcoder
@Jamal I cracked up at the 2nd one (well the 2nd one I upvoted, i.e. the 1st one you listed here) - you actually sort your #includes alphabetically? Damn I need your Canadian clone on my team!
wow, 5 months between stars.
 
#Only90sCodersWillRemember
 
3:45 PM
lol
 
sorry I had to pin that
besides there wasn't anything else pinned up there anyway
51 mins ago, by Mast
Are you kidding? You can't kill this chat with stars. This chat thrives on stars.
I should pin that too....
 
Wah, the transcript has preserved my original old avatar!!
I mean, in the meta feed posts
 
@Mat'sMug where?
 
Nov 16 '13 at 3:17, by retailcoder
@Jamal I cracked up at the 2nd one (well the 2nd one I upvoted, i.e. the 1st one you listed here) - you actually sort your #includes alphabetically? Damn I need your Canadian clone on my team!
^^ around there
 
@Mast oh you can steal stars...if you are a mod or RO
 
3:49 PM
It was a sinking boat with two people struggling to keep the water out, and then two more at the other end smoking a cigar and saying "thank god the hole isn't on our end!"
 
@Mat'sMug oh now I see. I couldn't remember until I saw it again...lol
lol
 
@Malachi lol
 
I hate the last day at work.
I never know exactly what to do...
I already made sure that all my code is pushed to their respective branches in Github and Bitbucket
maybe I should make sure the rest of the code is where it is supposed to be
 
@Malachi Friday? Time to completely refactor everything and push to prod at 5!
9
 
last day here, I got a permanent position offer last Friday
PUSH ALL TEH TINGZ
 
3:54 PM
@Mat'sMug I'm glad we don't have a CI server because I did exactly this today
 
lol
 
> what could possibly go wrong?
@Malachi congrats!
 
you can always rollback
 
grats Malachi :)
 
key word being 'you' and not 'me' because I won't be here...lol!
thank you
 
3:55 PM
eh, my last day at my current place is next friday ^^
then I'm off to dublin
 
:32210189 accepting own PR
 
lol
I moved it

 The Nth Monitor

Conversations that don't quite fit in The 2nd Monitor
 
lol that image
 
@Mat'sMug they created a position for me until they create the position they really want me for.
current -> QA / .NET Developer
Future -> Lead Test Automation Engineer
or something like that
 
nice!
 
3:59 PM
I am so Excited!
 
♪ And I just can't hide it ♪
(old 80's song)
 
s/can/can't?
the song is older than me and i know those lyrics, crap
8
 
0
Q: How to lazily fill out collection in multithreading environment

Vladislav KysliyI would like to get the feedback about this code: import java.util.HashSet; import java.util.Queue; import java.util.Set; public class Utils { private final Set<String> permissionsSet = new HashSet<String>(50); private PlatformModuleModelLocator modelLocator; public Boolean hasUse...

0
Q: Calling JSON file

Ibrahim Ä°nceI have just completed my first JavaScript/jquery project. It searches customers from .JSON file and sorts them by name or ID. Everything just works fine. The thing is, I am not sure that I have understood all the functions and methods that I have written. Could anyone tell me if this is the best ...

 
@CaptainObvious that seems like an awful idea waiting to happen but i can't quite articulate why
string typing, duplication of data in a multi threaded environment, querying the db every time something asks if you have a permission
mb, it only queries it when the set is empty
mb = my bad
 
Oh.
Uh, mb, I was thinking nm.
 
4:05 PM
in @Hosch250's defense, it could just as well have been a keyboard off-by-one
 
I usually use nm when I need to correct myself.
 
not being able to read my mind is not something you need to apologise for :P
2
 
Sorry.
 
@DanPantry yeah you need to add more comments
 
trying to enable c# 7 features, all the articles date back to april 2016, what do
 
4:06 PM
@DanPantry I did it.
You need VS "15" P4.
I don't remember how to enable them, though.
 
gah, yeah, that's what all the articles are saying as well, but I don't want to install VS preview
 
Then, too bad.
 
...oh, never mind, I have VS 15 update 3 for some reason
I'm pretty sure I had update 4
 
On the other hand, it is a really light install compared to previous versions.
 
or is that still in preview
 
4:08 PM
No, the whole thing is in preview.
 
Oh, right
 
Not VS 2015, but VS "15".
 
At any rate it's still heavy, my SSD is rather small at the moment
i should probably invest in a 1tb sometime later on in the year
 
OK.
 
need to stop learning new languages.
 
4:13 PM
0
Q: hello i need help to save this in local storge on device android with cordova plugin please let me know how i can code this with example this code?

Shir255 $(document).ready(function() { var notesArray = [], count = 0; function listRefresh() { $('#list').empty(); for (var i = 0; i < notesArray.length; i++) { var name = notesArray[i].name, date = notesArray[i].date, da...

 
but the code reviewer thinks that anyway am initialising alamofireManager in init so there is no need to declare it as optional, As per him if the alamofireManager instance is nil there is no use of web service manager so he is ok if alamofireManager instance gets nil at some point application should crash (though I find it really strange to accept it but thats what am dealing with) As per him swift book specifies that I should not use optional if am initialising it in init. Hence am wondering is swift anyway says that ?? Or If I do what I do is that a bug ??? — Sandeep Bhandari just now
 
@Duga the word "alamofireManager " being repeated so much made me think that this wasn't English.
 
@DanPantry some of those previews don't have the full functionality, are you looking at the functions inside of methods?
 
@Malachi I was hoping that it was ready to be used in production, so I wanted to try all of it
 
@DanPantry I don't think that it is released yet
 
4:17 PM
Damn
 
at least that is the way it sounded
I might try to move into other languages like Java, Ruby and Python so that I can have all sorts of fun...lol
 
Java is fine if you like drowning in XML
2
Ruby is actually quite nice as long as you don't want performance out of it
same goes for python
both of them are reasonably decent and productive languages
 
how different is xml from HTML? that is rhetorical.
 
java is fine in and of itself but it's not a "play" language IMO
 
@DanPantry no CGOL then?
lol
 
4:20 PM
When I meant performance i meant high scaling web performance
you might be able to do CGOL but ruby has GIL which in other words makes multithreading... not so great
 
so maybe small scale then, but nothing like creating a multiplayer version of the game...
 
yeah ruby's multi-tasking functionality is basically separate process only
you could make a multiplayer version of CGOL if you managed to split that up nicely though
wtf am I on about, redis is written in C
 
lol
 
i know there was some really good software written in ruby but the name escapes me atm
 
anyone interested in working on a web/mobile CGOL based game
 
4:28 PM
"your computer needs to be restarted before youc an apply this update" damn it microsoft
this is why we can't have nice things
 
I think that this migration from Stack Overflow is too stubby:
17
Q: How to improve these nested for loops

NickI have the following code: // vector of elements vector<Graphic> graphics; // vector of indexes of the selected graphic elements vector<int> selected_indexes; // vector according to which the graphic elements have to be "sorted" and parsed vector<short> order; for (auto o : order) { for (...

 
4:40 PM
monking
 
I agree, @200_success
 
@CaptainObvious Load of crap.
@200_success Yea, that could be anything.
 
0
Q: Boost asio server, do I handle timeouts and all correctly?

PaladinThis is my first time trying to do anything proper in Boost::Asio, so I would love if someone could look at it and tell me if it makes sense. It's based on examples from documentation and bit of googling around, but question is, if I've put it correctly together. EDIT: I know this code doesn't d...

 
probably why it got no answers
 
Can't we throw it back?
 
4:41 PM
opened 9 days ago, migrated 3 hours ago, wth?
 
It's not a bad SO question really, let them have it.
 
19 upvotes, no less
 
Please vote accordingly.
 
i mean // parse g is nothing less than // TODO
 
If it gets closed on CR, we may need to open a MSO post about this specific question.
 
4:44 PM
not sure how something that got that many upvotes on SO was then migrated to CR
and that many answers too
 
I suspect one of the moderators on their side misunderstood something. It happens.
Now it has a lot of downvotes, 2 close votes and a comment.
 
I should really write a review so I can get close vote privs again
I'm only one good review away
thanks, santa
 
@DanPantry It's Friday. If you really want to, I'm sure you can find the time for an answer in the upcoming 24h.
 
oh definitely I can
I'll have a lot of time next week as my PC is being relocated to Dublin = no games for me
 
lol
 
4:53 PM
@Mast Make that three.
 
I imagine taking a PC on a plane as carry-on could take some paperwork.
 
0
Q: Thread pool based unweighted path finder in Java for graphs with slow expansion operator

coderoddeIntroduction Given a directed unweighted graph, the objective of this library is to find a shortest path from a given source node to a given target node. Clearly, one candidate algorithm to find shortest paths is breadth-first search. However, its bidirectional variant may provide (easily) a hun...

0
Q: Generating four-channel from image

ralphsolI am looking for suggestions about iimproving this code : import numpy as np import scipy.misc import scipy.ndimage def _gauss_window(lw, sigma): sd = float(sigma) lw = int(lw) weights = [0.0] * (2 * lw + 1) weights[lw] = 1.0 sum = 1.0 sd *= sd for ii in range(1, lw ...

 
TIL, even though == is referential equality in C# two strings that are equal in value will be ==
 
@DanPantry Yup.
 
also, how on earth would you deal with null terminated strings in C# when doing a comparison, hmm
 
4:58 PM
Null terminated strings is a thing in higher languages?
I thought that artifact was a C-only feature.
 
it's a thing if you're talking C servers
say a C/C++ server is sending you a string via bytes
and you receive it in C# for some reason
 
You can't directly compare C strings.
That's C++ strings and higher IIUC.
 
turns out in this scenario the person with that issue was trying to compare a null terminated string with a normal c# string and obviously it was failing
 
So you don't compare null terminated strings.
 
the way he got it working in the end was to loop over each byte and ignore null ones :P
 
00:00 - 17:0017:00 - 00:00

« first day (1224 days earlier)      last day (2810 days later) »