« first day (1069 days earlier)      last day (2942 days later) » 

12:00 AM
RELOAD! There are 2097 unanswered questions (93.6593% answered)
 
wowe 2097
 
12:14 AM
Mar 23 at 0:00, by Duga
RELOAD! There are 2000 unanswered questions (93.8673% answered)
15 days
 
I've reviewed like one thing in two weeks
I just don't have the drive to type "don't mix indentation" for the 200th time
 
We only need 6.5 extra reviews per day on the whole site to keep up
 
Do we leave problems for the next dev at Stack Overflow? Yep. @marcgravell just changed the epoch to save bits…adding a time bomb in ~150yr.
 
LOL
We will all be dead by then, no need to worry if it breaks in ~150 years
 
that sounds awfully familiar
let's just leave problems for the next generation
 
12:24 AM
Somebody else's problem (also known as someone else's problem or SEP) is a psychological effect where people choose to dissociate themselves from an issue that may be in critical need of recognition. Such issues may be of large concern to the population as a whole but can easily be a choice of ignorance by an individual. Author Douglas Adams' comedic description of the condition, which he ascribes to a physical "SEP field," has helped make it a generally recognized phenomenon. Somebody Else's Problem has been used to capture public attention on matters that may have been overlooked and has less...
 
I want that wikipedia article tattooed on my back
 
It is hilarious if one is a fan of HHGTTG
 
-2
Q: Inner class why execute in python?

LafadaI added class in method in python. >>> def a(): ... class A: ... print "a" ... When I call that method, it print a Why? >>> a() a I didn't call inner class or create object of that class?

 
12:55 AM
0
Q: HexToString function returning maximum of 16kb

WilhelmnHexToString function returning maximum of 16kb even for sources greater than 16KB string HexStringToString(string HexString) { string stringValue = ""; for (int i = 2; i < HexString.Length / 2; i++) // Starting from position too just to avoid the 0x Hex Code that m...

 
ugh... Swift doesn't handle bad Objective-C typing annotations very gracefully...
 
Is it just me or the tag is... not very useful?
 
1:10 AM
 
@Quill Right
 
If the code is not working correctly, which appears to be the case here, this will be closed as off-topic on Code Review. — Phrancis 29 secs ago
 
Too general / generic (IMHO)
If your code isn't looping, it's probably not a computer program
 
Apparently NPM are giving away NPM branded socks for helping with their docs
 
0
Q: What's wrong with my jQuery code?

Iftikhar uddinDeveloping an application in Laravel, i am working on the invoice section with the help of jQuery.Actually everything works fine but when i added the below jQuery code then my page do nothing via jQuery. PS: If any thing else is needed for explanation just mention in comments. jQuery Code: $('...

 
1:24 AM
@Phrancis it seems like a meta tag. it probably shouldn't be used
 
Also, if this code 'works', then you will get a better reception for it at Code Review since they explicitly are OK with questions structured as yours is. Mind their guidelines, though. — George Stocker ♦ 46 secs ago
 
@Quill Agreed
 
0
Q: Issue with HTML/CSS when making a navigation bar contain text in the middle

LewisI am currently trying to learn how to code websites using HTML and CSS. I have attempted to make a navigation bar however I can not get the text to align vertically in the middle in the navigation bar. I have done what has been said here However it didn't work for me. If anyone can tell me how...

 
Take it to meta if you want
 
I will
 
1:30 AM
soo... I see a do-while there, which suggests that either you got it to work all by yourself (congrats) or this code doesn't do what you want. Or alternatively the last sentence in your question is misplaced. In either case, you should add some explanation as to what your code does (and should do) and maybe what you expect out of the review... — Vogel612 Mar 15 at 0:59
lol
 
0
Q: What is _convertNSDictionaryToDictionary<A, B where ...> (NSDictionary?) -> [A : B] and why is it crashing?

nhgrifI have the following Swift code: class ThingChecker { static func checkThing() -> [String: [String]] { return Thing.stringsDictionary() } } Where Thing is a class implemented in Objective-C with the following interface: @interface Thing : NSObject + (NSDictionary<NSString *, ...

 
Someone should make a "spaghetti" tag. Just saying. I tried when I posted my question yesterday, but I am new. :P
 
0
Q: for (post in [loop]) { post.tagMoreAppropriately(); }

PhrancisThe loop tag is generic... like, very, very generic. Generic as in, if your code doesn't loop somewhere, it's probably not a computer program. Hence I'm nominating the loop tag for burnination. Numbers and stuff: As of 2016-04-06 there are 460 posts tagged with loop At the same time, the lang...

 
possible answer invalidation by Jamal on question by Rondles: codereview.stackexchange.com/posts/43288/revisions
 
1:46 AM
@WaymanBellIII for what?
 
-2
Q: Why does this C program crash? Memory allocation and buffers (ie malloc and free)

I am a LobsterI've been having some issues programming a long code for my university programming lab course. I've been asking around but cant figure out why my program crashes after everything executes and successfully calculates and displays all I need. Before the loop in main() could execute however, the pro...

0
Q: Generic and accurate floating point comparisons

DannnnoLike those who have come before me, I foolishly have sought to implement a generic, efficient, idiomatic, and most importantly correct method of comparing floating point numbers. Like those who have come before me, I have most likely failed in at least one of those regards. I'd appreciate commen...

 
-1
Q: for (post in [loop]) { post.tagMoreAppropriately(); }

PhrancisThe loop tag is generic... like, very, very generic. Generic as in, if your code doesn't loop somewhere, it's probably not a computer program. Hence I'm nominating the loop tag for burnination. Numbers and stuff: As of 2016-04-06 there are 460 posts tagged with loop At the same time, the lang...

 
@nhgrif To describe my code. :P
 
@WaymanBellIII If you felt the need to use a tag for that, you're definitely in the right place
That said, would be too "meta" to be a useful tag
 
@Phrancis ;-; why the code
 
1:49 AM
@Quill Sue Edit me
 
In what way would the tag add value to your post?
 
In what way would the loop tag add value
 
@nhgrif can you think of any non-Swift questions where would be more than appropriate?
Just asking because it seems the 2 questions you mentioned are very specific to Swift, namely to an event in Swift's life cycle
 
> an event in Swift's life cycle
huh?
I don't know if there are other languages that can do the cool things with loops that Swift can
 
Replacing C-style loops
 
1:54 AM
@nhgrif I am honestly asking tongue-in-cheek. But, honestly, it may help differentiate between an experienced coder and a relatively new one. Or it may help to indicate that the program is not specifically exercising OOP styles. Or it might be useful just to indicate that a reviewer may be in for a bumpy ride.
 
Maybe event is the wrong word
 
@nhgrif Rust has similar things IIRC
 
Martin's question is valuable and interesting regardless of whether or not C-style for loops go away.
 
@WaymanBellIII that's what we have for
tagging something with would be an insult in some ways. And entirely subjective
 
@Quill haha... we should create and then synonymize it into
 
1:55 AM
We usually add the beginner tag when they state they're a beginner, or it's a linked-list question
 
I mean synonymize like... it shows up in the list, but if you try to add it, it just shows up as
 
Yeah, that's what synonymising tags is
 
@nhgrif We'll see how it goes, IMO if the posts you mentioned are reason enough to have a tag, then I'd say the overwhelming majority of posts which have that tag should have it removed
 
Importantly, @Phrancis, I can write all sorts of code that create the thing that goes to the right of in for Swift loops.
You just have to implement a protocol, and as Martin's post shows, you can do ALL sorts of interesting things with it.
 
i.e., questions specifically about loop constructs, sure; but just code that has loop(s) meh
 
1:58 AM
But I would agree that the overwhelming majority of questions with the tag should be cleaned up.
But I could say the same about , , and probably plenty of other fairly generic tags.
 
No disagreement
I will say, arrays and strings could be considered to be a tad bit more specific than loops (not much), but it really depends how you frame it
 
I think they're less specific if you consider what my post is trying to define the tag to be for
but....
what if we rename it to ?
that discourages from being applied to every post with a loop in it, I think, right?
 
@nhgrif That would be a lot better IMO
 
IMO we shouldn't have loop, string or arrays tags
arrays should be a tag synonym of data-structures or whatever
 
@nhgrif Are you planning to add more to your post on Meta?
 
2:02 AM
they just promote shitty tagusage on standard uses and rarely are used for something relevant
 
data-structures isn't really much better or different
My code has data structures.
 
@Quill Agreed, largely; you should create separate meta posts, if you feel inclined
 
this tag seems okay
and data-structures seem less out of place on code that happens to have data structures than loop-mechanics does on a post that coincidentally has loops.
 
@nhgrif most code has data, but not all have structure; 99.999999999999999% of code has loops, explicit or implicit
 
data structures is just a broad term to encompass arrays, objects, etc
 
2:05 AM
Yes, you took a broad tag and made it broader.
without improving the likelihood that it'll be used appropriately
 
which is why I'm not on meta writing a post right now
 
Wish that was there 10 hours ago when I googled for it...
 
I don't like the situation, but I don't have a solution
 
(which is why I made the self-answered post)
 
meh, good canonical answers are always appreciated on SO
 
2:29 AM
5% battery ;-;
 
2:39 AM
I am using Xcode 7 and swift. Looks more like you're using Stack Overflow & CopyPasta. — nhgrif 8 secs ago
 
3:23 AM
0
Q: MultiTouch HTML

RoyI would like to know if it is possible for MultiTouch to be implemented on HTML. Scenario like this: <iframe id="Example1" src="examplescroller.htm"> </iframe> <iframe id="Example2" src="examplescroller.htm"> </iframe> Two iframe are been used, two of...

 
4:10 AM
@PhilippBraun Please read A Guide to Code Review for Stack Overflow users, and avoid referring users to Code Review inappropriately. — 200_success 57 secs ago
 
4:46 AM
protip: don't put JS inline. Have an onchange handler? <select onchange="handleChange(this)"> and then have a real JS function that checks what the user selected, so it can do filtering when necessary. There are a lot more things you can improve here, but that's for codereview.stackexchange.com to comment on. — Mike 'Pomax' Kamermans 23 secs ago
 
5:16 AM
Here is the answer on codereviewFlown 51 secs ago
 
5:43 AM
0
Q: A better\shorter way to write this SQL query

PopIs there a better or shorter way to write the SQL query below? SELECT * from GR_data where doNo IN ( SELECT dt.doNo FROM ( SELECT doNo,po_number from GR_data where DATALENGTH(Mat_No)<=0 group by doNo,po_number )as dt group by dt.doNo having COUNT(dt.d...

 
5:54 AM
This probably belongs to CodeReview. — Zereges 43 secs ago
 
6:36 AM
Think you'd probably have better luck with this question on Code Review Stack Exchange. — augurar 51 secs ago
 
@Phrancis I only use VS because we use TFS. When I am working on my local git repo I use SublimeText.
JS for VS is kinda meh, half of the syntax highlighting is missing for any modern JS (template strings, import/export etc)
 
0
Q: find prime positioned prime number

SantoshThis is a question from programming contest. This contest is already over. Now, all the prime numbers are arranged sequentially in ascending order. i.e:- 2, 3, 5,7...and so on. Now, your task is to calculate those prime numbers which are present at a prime position. For example, 2 is present at ...

-1
Q: Student School Portal

Peter Kaufingerclass Students { private: std::vector<int> studentsByID = {}; std::vector<int> studentsAge = {}; std::vector<double> studentsGPA = {}; std::vector<string> studentsName = {}; int age; int idNum; int setIndex = 0; int getIndex = 0; double GPA; //string _data; public: string name; bool signIn(i...

 
7:10 AM
@JnxF Yes thats true but to me using If/Else's are just way too over the top for such a simple function. In my Code I never like repeating the same or some of the same code just for Conditions. — ShinyMK 31 mins ago
I think that person just implied they only like to have one if/else block in their code.
 
You Strongly Belong Here. Move it. — MKJParekh 53 secs ago
 
Kaz
Monking @all
 
Monking.
 
7:34 AM
@MKJParekh: I have moved my question codereview .Please check it. — DeepakR 52 secs ago
 
Monking.
@Hosch250 Congrats :-)
What does it do.? haha
 
Sometimes you just need a fresh pair of eyes to look at it. That's why code review is a common practice! — ironstone13 25 secs ago
 
@Duga s/common/best unfortunately
It should be more common
Adventure time quote on my dashboard this morning, haha
 
@DanPantry What programme is that?
 
0
Q: Multiple If statements favoured over if else if

LDJIm just playing with the new asp.net core application structure and noticed that the boiler plate code generated by the teamplate includes the following when logging in the user: if (result.Succeeded) { _logger.LogInformation(1, "User logged in."); ...

0
Q: Getting contacts from phone is taking too much time

DeepakRI am working on an instant chat messaging application.I am getting contacts from phone and displayed them in list view of an activity.But it is taking 25-30 seconds.I am using the following code: 1. On clicking Contact button: contacts.setOnClickListener(new View.OnClickListener() { ...

 
7:48 AM
 
Eww no, runs on Chrome.
 
lol
 
I'll just write my own in that case. :P
My Chrome is all ef'd up now that I have slow internet.
Also, the Core module for my chatbot has officially been started.
Which is good.
So, since I have booted my iMac (4 days 10 hours ago) Skype has opened 803 connections to different endpoints.
 
....wat
 
Yep.
 
7:53 AM
well, it is peer to peer, but even then 803 seems quite a lot
 
It's because Skype uses a specific kind of peer-to-peer networking.
Basically, if you have Skype, and you have a fast internet connection and open NAT, it will use your device as a server for other devices (me) to connect to for intermediary communications.
So instead of having to have a huge network of servers, they use other Skype clients for it.
(It's a brilliant scheme, really. Free servers.)
 
Well, that explains why sometimes Skype kills my 'net performance
 
Any of you see a way to download the individual slides of these presentations? proimmune.com/ecommerce/page.php?page=Conference_Video#ConfMIE
 
I can't
 
yeah me neither
 
7:57 AM
I don't see any options for it.
@JeroenVannevel Have you ever used Git in Visual Studio to manage multiple projects with different repos for each project, rather than a solution-wide repo?
 
I use sourcetree, sorry.
 
wow, npm didn't warn me that redux expected lodash@4.2.1 but I had 3.3.1 installed
wtf npm
 
Ah, damn.
 
npm ERR! Error: EPERM: operation not permitted, rename 'c:\projects\@creditsafe\[redacted]\node_modules\.staging\lodash-5daaaaab' -> 'c:\projects\@creditsafe\[redacted]\node_modules\lodash'
Don't suppose anyone knows how to deal with this annoying error?
Windows doesn't let me install stuff sometimes because of file locking
 
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Multiple inheritance pattern for vehicle information
 
8:00 AM
I mean I can just install again obviously but :s
 
reboot releases all handles
if that's the issue
or use that sysinternals tool to do it manually
 
Expression-bodied members post is live: usingprogramming.com/post/2016/04/07/…
 
typo @ Limitations of Expression Bodied Members
you typed in Expresison
 
Fixed.
Well, letting Visual Studio update now. Guess I'll go to bed.
 
8:23 AM
-1
Q: Is it bad practice to call a method from an object in an object?

bot_botI'd just like confirmation if the code below is bad practice or not, I feel it is: public class DeliveredCommunication{ private String deviceId; private int versionMajor; private int versionMinor; private int versionPatch; private JSONArray messages; private DataMapper ...

 
Damn, TFS is so picky. I have to make sure that any commits I do come AFTER the latest TFS commit otherwise it fails
 
Monking
 
For code improvements, ask on codereview.stackexchange.comBill BEGUERADJ 36 secs ago
 
Kaz
And I'm back in "How do I crash Excel, let me count the ways" territory again.
2
 
8:56 AM
0
Q: Scroll to element using data-attributes

clestcruzI'm trying to figure out how I can have the element scroll to a particular element using data-attributes if it matches the ID instead of using anchor tags. Here is what I'm working. Once the user clicks on a button it will show the content and also scroll to that particular element that matches...

 
@Kaz What was the previous high score, 7?
 
lol, asked my colleague a question about a weird piece of code
"oh, but it's working fine on live. must have been a merge conflcit you did with git"
git blame -> That line last modified 21st march by him
 
I haven't been able to crash excel lately, I almost started to believe it's stable.
 
Sweet, sweet justice.
 
@CaptainObvious VTC broken code
 
9:01 AM
git blame, git log [path] and git bisect are truly awesome tools
 
even although I answered it
that's what you get for having weird code that looks so weird that it distracts me from the rest
 
Don't answer broken code.
Policy et al
 
boom delete
 
you get downvoted to hell for it. Source: I got downvoted to hell for it.
Think I went to -5 before I self deleted
 
ah so that's how to get peer pressure
 
9:03 AM
lol, yeah
Fetching changes from TFS to minimize possibility of late conflict...
Associating with work item 94772
Starting checkin of 0eb6df0a 'Fixes #94772'
 
I thought peer pressure is for questions?
 
Wow, git-tfs does this and tfs natively doesn't.
@Mast No, it's for answers too. That's how I got it.
 
-5
Q: Reverse a string O(n/2)

Mihaela I use this for reversing a string, but it has O(n) : reverse(y.begin(),y.end()); How can I reverse a string in O(n/2) ?

 
Monking @Gemtastic
 
migrate to stackoverflow, where it's perfectly on-topic?
people would have to reverse all their votes, though, in that case
maybe it's a dupe there though
alternatively, close as "not looking for review"
 
9:08 AM
@Pimgd I'm not a fan of migrations, big risk of screwing up.
No MCVE, XY problem, not a request for a review, people should read the tour...
Now it's not a good question on both.
 
0
Q: Simple anagram generator using python

user5435034##open file and create a dictionary of {"word":"sorted word"} word_file = open("word_list(1).txt","r") word_list = {} for text in word_file: simple_text = ''.join(sorted(text.lower().strip())) word_list.update({text.lower().strip():simple_text}) ##lowercase and sort the user input word ...

 
Kaz
@Mast Something like that.
 
@DanPantry Monking!
 
if (!PRODUCTION) {
  storeEnhancers.push(ReduxDevTools.instrument())

  const containerEl = document.createElement('div')
  containerEl.insertAfter(document.body)
  ReactDOM.render(<ReduxDevTools />, containerEl)
}

export default angular.module('app', angularDependencies)
This feels like a bit of an abomination
Using React and angular together.. haha
Especially when I write insertAfter which is a jQuery function :P
 
9:36 AM
Lol, I somehow managed to duplicate a revision with rebase?
 
@DanPantry Now the same revision appears twice with different number, or do you have 2 same numbers now?
 
I had two same numbers. I managed to essentially create two empty commits
Easy fix, just not sure how I managed it
 
I'm voting to close this question as off-topic because it belong to codereview.stackexchange.comjcubic 32 secs ago
 
9:51 AM
0
Q: Get image from other site by PHP

Halasi TomiI would like to get images from other websites. I'm not sure about this method is alright. <?php header('Content-Type: '.image_type_to_mime_type(exif_imagetype($_GET['url']))); echo(file_get_contents($_GET['url'])); ?> If not, how should I do it?

 
in other news; my brother had to save people from their own stupidity a few days ago
electrical engineering
they were trying to send electrical pulses through water to do something something sonar (I didn't get the whole explanation)
but it didn't work, so they added some extra salt to the water to make it easier to run an electric charge through the water
but it still didn't work, so they got some truck-batteries (about the size of a desktop pc, he tells me) and increased the current
to about 150A
 
With what voltage?
12V?
12V 150A in salt water, run!
2
 
something like that?
But it still didn't work
also the water started bubbling
 
Yea, you just created something almost as strong as a water heater.
 
so them students went to fetch other students, maybe they know why it's not working
one of the fetched students = my brother
he walks into the room
gets a whiff of pool
looks in the bucket
it's green, bubbling water
he walks back of out the room, and from the doorway asks "what kind of salt did you add?"
"kitchensalt!"
"no, you dimwit, NaCl?"
"yeah, but it's not working"
"turn it off and leave the room NOW"
they were confused or didn't want to listen so he did it himself or got other students to help?
"what you're doing is creating chlorine gas"
 
10:04 AM
what an idiot
 
so I looked it up
 
the kind of gas that was used in chemical warfare in the trenches in ww2 and would kll people in their own blood by drowning them in it
 
Possibly hydrogen gas as well, which is explosive.
 
0/10 would not recommend
 
With currents that strong, you're forcing the water to split into hydrogen and oxygen.
 
10:05 AM
"definite odor" starts at 1-3 ppm, irritation of mucous and eyes and nose at 5-8 ppm
intense coughing fits, 30 ppm
and death in one to one and a half hour at 34-50 ppm or so?
(in mice)
 
0
Q: Number of ways to make change for an amount

JonathanRTask Write a program that, given the amount to make change for and a list of coins prints out how many different ways you can make change from the coins to STDOUT. My approach The number to make change for is N. Take one coin C and sum the number of ways to make N - C with the other coins. Add...

 
and these morons had been going at it for well over half an hour
 
@Oldskool yes .. though, I seem to recall, that there was some rule against linking to external code on the CodeReview site. — tereško 17 secs ago
 
So they tried to mimic sonar by simply shooting high-voltage pulses into water?
 
hopefully they got a high-voltage ass-kicking instead
 
10:08 AM
You need a high-frequency antenna for that, or a very long low-frequency one.
 
I don't know what it was exactly, something about magnetizing something underwater
and long distance underwater communication
 
Underwater communication by bubbles.
 
3 students were majorly affected;
the one worst affected still came to school because why not although he looked like shit
my brother then said "the chlorine part isn't the worst, though"
and went on about some crap about oscilation of currents
this stuff blows components up
and when one of your components is a couple of truck-batteries
apparently you run a real risk of blowing up the room
and maybe the rooms next to it too
 
Fun for all of the family
 
apparently they were gonna hold some of the students and/or teachers responsible
also it is not sure whether they're gonna continue the underwater project
 
10:15 AM
Childish, nothing wrong with blowing up half the campus when experimenting. As long as nobody died there's no harm done.
 
@Pimgd That story sounds pretty intense electrifying
2
About what kind of school are we talking?
 
Shock and awe.
 
about some big school, bachelor studies?
or whatever you call it
(they don't study people, obviously, it's the diploma grade)
 
College, in Dutch it's HBO.
 
yes
 
10:17 AM
Just wondering how much responsibility there is on the teachers, on a high school the teachers would likely brought to court, on an university I don't know?
Ah HBO, not sure how the rules are there
 
0
Q: Huffman algorithm implementation in C++

LevonLately, I have been working on this Huffman algorithm and it is finally done, though I think it is improvable due to the fact that people say you have got to use two priority queues but I ended up just using one, so maybe it is even not correctly implemented. Code: #include <iostream> #include <...

 
Pretty sure it's still not allowed to blow up the school though
2
 
well, maybe it'll be in the news in a few weeks
probably not though
this sort of thing works better as a "and never do that again" than a news story
is bad for the school
heck them students even went to the teacher to ask if it was okay to run a high current through water and they were told no
so then they ran a slightly less high current and used salt to compensate =/
so yeah, Electrical Engineering! A lot more exciting than programming. Also a lot riskier if you don't know what you're doing
 
@Pimgd Right, okay, that's the part where they could get expelled
Not sure if EE or programming is more dangerous, imagine writing a control program for a nuclear power plant :)
 
=D would you let students do that
 
10:22 AM
That might get you into trouble
 
I think the real danger of electrical engineering is that you're working with great power
 
@skiwi Definitely EE.
During my study we attempted to build a coil gun. Needless to say the 400V capacitors discharged over my thumb instead of the coil and I almost smashed the glasses of the guy behind me in reflex.
 
@Pimgd With great power comes a lot of U times I
 
@skiwi Multiplied by cos phi, of-course.
 
I didn't do physics in high school so I have no idea what you're talking about, but it sounds like ohm's something
 
10:25 AM
I did physics in high school and four years later as a suddenly mandatory subject in university (that's a year ago now? maybe less)
 
TIL about git fetch vs git pull. Wow I'm dumb
 
after a few more searches it seems nobody on the internet (who felt worried) has a large enough set of batteries to make it dangerous because most hobby experiments are a couple of 9v batteries
they really got all the conditions right
 
@Pimgd Truck batteries have what, 70-100Ah at 12-24V
That's enough.
 
well they used multiple
 
.....
With enough raw power, you don't need conditions.
Just look at a couple of the What-Ifs.
 
10:31 AM
user image
5
 
^^
 
10:53 AM
whoa, on chemistry.se the upvote buttons animate
(maybe the downvote ones too but I don't have the rep)
 
dowant
 
11:05 AM
wow
oh wow. I think I've just had a "managers have no clue" moment
 
Kaz
Actually, on second thought, not a star-worthy sentence.
3
 
0
Q: Custom bang! method and Rails validation

lulalalaI have a model called booking. class Booking < ActiveRecord::Base has_many :charges def charge! raise "Not active" if !active? c = charges.create() c.charge! end end However I feel this is not optimal. For example, it would be nice to integrate the activeness checking into R...

0
Q: PHP's array_diff in JavaScript

ts248I shall make a JavaScript-function which does the same as PHP's array_diff: http://php.net/manual/de/function.array-diff.php Because it is intended to use the function as a (internal) library-function I have tried to catch everything which could possibly go wrong concerning incorrect usage. More...

0
Q: Threading - Alternative method for the coding

Anoop K. PrabhuI was trying to do a sample threading program, where the spawning of thread is in a while loop. I DO NOT want to generate multiple number of threads. The while loop should keep on running, irrespective of whether the thread completed execution or not. There is a call to the .get() function of the...

 
Basically, it's been brought to our attention that our end user acceptance testing environment will be being demoed to another country on Monday this morning
The current UAT environment is quite unstable as we've had massive changes to the app in the past 2 week sprint
So we've mentioned that this is a bit of a curveball and that we should have been told ahead of time and that maybe we should have a separate environment for demoing to new countries, rather than having UAT being the only stop between feature graduation and live
And our manager said along the lines of "Don't you have a local dev environment? Don't you catch all of these bugs in there? Do you not test against your local dev environment?"
Even though a lot of the bugs are obscure and finding them all would take full regression tests after each change. Until we have unit tests, that's not really feasible; we'd need more resource
Basically they want to have their cake and eat it too :s
 
@DanPantry So this is not the moment to test. Or do you have a more stable older version around to demo?
 
@Mast Well, that's the thing.
The version changes have involved database changes that are supposedly not backwards compatible (I think it's mor ethe case that they might not be than they actually aren't).
So there's no way to know whether or not the old DB is compatible without completely tearing down the UAT environment and building it from scratch anyway.
 
11:15 AM
@DanPantry Sure, if they doubled the dev team and paid massive overtime.
 
@Mast I mean, hell, I'd happily work overtime to get this stable and all tested for monday as I'm going on holiday. But I don't think that I could convince my boss to foot that bill.
 
@skiwi You got time to watch all that?
 
@Mast I'll have to make time for that
I follow the WSBK, MotoGP (includes Moto3) and Formula 1
 
Kaz
Cycling home is going to be fun
 
11:20 AM
0
Q: How can I optimize my contentToggler component structure?

ChucKN0risKI had to build a responsive component which allows the user to display specific content in a page. I called it the contentToggler. Here is my component in action HTML Structure of togglers & contents : On small screens : <select> with <option> On big screens : <div> containing <buttons> <sele...

 
@Kaz The downside of cycling here...
 
@CaptainObvious Ewwwwww
 
Frantically watching buienradar.nl and hoping the shower doesn't happen right when you want to go home, or else finding an excuse to stay a bit longer
 
I don't have to hope that the shower won't happen, I live in Wales.
It will happen.
 
0
Q: Parse HTML to modify it

Jenny MIm using the following code to parse html, This code is working but since Im new to JS and working in alone project I would appricate if you can give me some tips and feedback how can I improve this code,or it is fine. The code need to update script content after existing script with new conten...

 
Kaz
11:38 AM
TIL you can nest With statements in VBA.
 
-1
Q: How do I create a new user account in Java?

BunnyHow do I create a new user account in Java? I've tried researching it but I can't seem to find the answer I'm looking for. Any help would be much appreciated. Thank you.

 
@CaptainObvious wat are you even trying to do
 
new UserAccount()
fixed
12 items in review
2
ooh, 12 stars
user image
2
 
Kaz
11:55 AM
@Pimgd Only works while there's one star though ^^
 
What are you talking about? There's obviously 12 stars. /s
 
I am that star. You're welcome.
 
TIL @DanPantry is a star
 
You're damn right. I was on The Voice once.
Well, the auditios.
 
There's 13 items in review now
Oh, that's not how it works?
 
11:57 AM
twinkle twinkle little dan
 
"twinkle twinkle little Dan, please put a sock in it fam" - All my friends, probably.
 
 
funny, I thought the site was Code Review, not 10 Review.
TIL
;-)
 
This is 10 review where we ...
... review your binary?
 
10 review, where we still have to inform SO that migration is off topic
 

« first day (1069 days earlier)      last day (2942 days later) »