« first day (1076 days earlier)      last day (3238 days later) » 

13:03
The quality of the properties you can rent as a group compared to a single room is.. astonishing.
If I find other people I can get really, really awesome houses with luxurious bedrooms for less money than a crappy single bedroom and a small living room
@JeroenVannevel and that's why I live in a crappy single bedroom
I hate people
come to London
be my roomie
I'll bake you eggs in the morning
How the hell do you bake eggs?
13:06
I would watch a sitcom where DanPantry and Jeroen yell insults about each other's languages for 90 minutes
@Quill That's not a sitcom, that's the 2nd monitor.
The 2nd Sitcom
Besides, I do quite like C#, so that wouldn't be fair
I wonder which of you would be the serious one, and which would be the cheeky one
Oh okay, make fun of the guy's grammar who has English as his fourth official language
13:07
@DanPantry In a frying pan.
@Mast That's not baking. That's frying.
That's why it is called a frying pan
maybe we could add @Zak into the mix and have some serious laughs
We say "baking" in Dutch
@JeroenVannevel You're just too baked to admit you forgot what a frying pan is.
@Quill I would definitely be the serious one, @JeroenVannevel is too busy flirting to be the serious one
13:08
@JeroenVannevel to be fair, english is like the PHP of real languages
It'd be like Sheldon and Howard.... actually, come to think of it, maybe I should be @JeroenVannevel's roomie.
prone to injection
@Quill Stop insulting English like that.
I'm like 70% sure a frying pan is what I refer to as a 'pan'
Monking @SimonForsberg, btw.
13:10
0
Q: A basic pure Python hash map using a trie

mattkaeoI would like feedback on my first attempt to understand how hash tables work. I've read some on how hash tables use modulo operations to find the location of a key. Can you help me understand, compare the modulo approach with my attempt to use a trie? import random import hashlib from collect...

wth css? how do your specificity rules even work
Sooo in Germany we call baked or fried eggs (whatever) 'mirror eggs'
a reflection of how baked or fried you are, I guess.
As long as it's not scrambled eggs
Scrambled eggs are very nice on toast
annnnnnnnd now I want scrambled eggs on toast
13:12
@Vogel612 same in Dutch
or 'horse eyes'
> I would definitely be the serious one
uh huh
Fixing a long-standing bug is so satisfying
I just don't write them in the first place
but to each their own
whoa there Jon Skeet
one compliment from an industry legend and all of a sudden... ;p
13:25
compliment - not twos complement
just trying to keep you from being negative (get it, because twos complement, oh i slay me)
2 hours ago, by Dan Pantry
nap time for Quill I think
maybe you're right <_>
isn't it 10pm there or something?
okay so i just fixed a bug that was annoying me where vendor styles would load at the same time as own styles which would prevent our styles from overriding the vendor styles.. i'm hoping i don't get a lot of weird style bugs in the UAT environment
11:30pm, but yeah
@DanPantry !important
@Quill no. bad quill
though we're using css modules so in some cases that is necessary to override specificity rules from bootstrap
I could install bootstrap-sass but I don't think it would play very well and honestly there wouldn't be much benefit over than being able to get rid of the handful of !important
Hey @DanPantry @Quill can you guys help me look for a Date Validation without the year? should actually be a string validation for a mm/dd format. some has to have done this before. but I can't seem to find it, my google-fu is lacking today
13:29
moment js is amazing
@Malachi moment
AActually, I don't think that will help here
@Malachi could you just "drop" the year when doing validation?
unless you're trying to get a date picker that doesn't show the year at all?
moment().format('MMMM Do YYYY, h:mm:ss a'); // April 14th 2016, 11:31:03 pm
moment().format('dddd');                    // Thursday
moment().format("MMM Do YY");               // Apr 14th 16
moment().format('YYYY [escaped] YYYY');     // 2016 escaped 2016
^ basically you could use that in tandem with the forms api to validate an input
or to just drop the year
wait a second... I was thinking about doing this with drop downs instead of a text box
I mean, sure, that would work too
but then you'd have to manually check if X month has Y days
7
Q: Jquery datepicker - only day and month

tanonI want the user to specify their birthday or anniversary date (without year) in a form. For this, I want to use jquery datepicker but it should not show any year option at all. How to do it? I tried modifying the code in this so question by making changeDay: true and changeYear: false but could ...

I assume you're using jQuery, second answer looks like what you want
13:33
it doesn't feel good, but this app isn't going to be around much longer, this is a temp fix for certain standards
I can type 25/25 in the text box
and it will take it
why do you want to disable selecting the year btw?
some years are leap years, woudln't that make it impossible to select leap days?
because we don't want to store the year
seems like a bad idea (see leap days like I just said)
I might just leave it as is and see what the PM wants to do
I will show you what I have here in a second
when it loads.
monking!
13:37
I already have a mask for ("99/99")
What's the rationale behind not storing the year?
rules say we can't store the DOB, but some of the users want to send our clients Birthday offers, so if we don't store the year, we aren't storing the DOB but the Birthday
does that make sense?
hm
i guess leap days are fine, then
since you aren't interested in the year. you can just check if it is a leap day
in which case i would allow them to select from the date picker and just drop the year at the data storage step
I smell regex coming.
Hi all
13:46
@Mast string split, int parse
@Mat'sMug do you see any reason why I cannot revert this weird edit? codereview.stackexchange.com/posts/125392/revisions
the mask takes care of the rest
it has to be in the format ##/##
@Neal what's wrong with it?
@Mat'sMug seems like a formatting change. I dont see the need for it. The way I had it written conveyed my message better (in my opinion)
Also now my working example link has been reduce to a here which is not as easy to read.
FWIW I agree with the edit, in-your-face headings weren't really called for
"here's the code", "code below", "code:" routinely gets edited out, too
13:56
13
Q: Why don't people on Code Review use the SE chat system?

NealHere is the old room which was frozen due to inactivity. Here is the new room which noone is ever in? Why is that? This has been sort of asked before, but it was not completely fleshed out? I believe that the chat system on this site could and will be very useful for people who want to review ...

IMO the post looks and reads better after the edit than before, but no, I don't see a reason why you couldn't revert it.
LOL @Mat'sMug ^ on that where have I been in chat discussion
@Neal OMG lol
When did this room get created? bc both of those rooms got frozen a looong time ago
no idea, ...it was there when I arrived :)
14:00
Does @Yannis ever come in here?
haha it seems like Jamal just likes editing my questions: meta.codereview.stackexchange.com/posts/433/revisions ha
@Neal it's nothing personal - Jamal likes editing, period!
44
A: What's a Zombie? And what are the many other memes of Code Review?

Mat's MugMeme: Jamalized Originator: Jamal ♦ (actually, apparently me) Cultural Height: All over CR (see this chat transcript search) Background: Jamal being a frantic editor. And he's fast. So fast, we're all waiting for the day he will edit a bad question title before it's even posted. You never know...

lol chat feedback room was frozen for inactivity

Chat feedback

Problems with chat? Let us know...
wow, room #2
Ha
did you see that one?

 The CRonicles

About CR's revival, The Mission, zombies, graduation, etc.
it'd be nice to have a story from an "old timer" about what the "Dark Ages" were like
14:15
@Neal Legends say one day Jamal will edit a title before it is posted.
Zak
Zak
@DanPantry Some say that is how good titles come to exist in the first place.
@DanPantry ;-P
Zak
Zak
@Quill I would, but I'm quite happy not having to live or work in London.
2
0
Q: Code for a Simple Port Scanner

DTSCodeI wrote a simple perl scanner in perl. Code can be seen here: #!/usr/bin/perl # prtscn.pl - scan server for open # TODO # Make async # if any ports are sequential, form a range (ie if 22, 4200, 4201, and 4202 are open, print 22, 4200-4202) use strict; use warnings; use IO::Socket; use Getopt...

in Chat feedback, Oct 28 '10 at 15:04, by Yi Jiang
Problem with Chat: Blood coming out of my eyes every time someone @-mentions me.
14:24
Review please: codereview.stackexchange.com/review/suggested-edits/55231 (wow I am not used to having not enough rep to just edit automatically)
Done.
Who. I did not know I could access this stackoverflow.com/site-analytics This is soo cool!
@Neal CR has one as well.
@Mast Yea but I do not have enough rep here ;-)
You need quite some rep for it though, I lost the privilege when we graduated.
14:28
@Mast ctrlitall.com :-)
lol
Mooo hahahaha
Evil domain.
@Mast Why do you think it is so "evil"?
0
Q: Code Cleanup - Create share folder, AD security group, add descriptions, and apply security to new folder

Shane JohnsonMy goal for this script was to: Create new folder Create AD group FS-TESTSHARE-R Create AD group FS-TESTSHARE-RW Apply both groups to the new share folder Set full read permissions to FS-TESTSHARE-R Set full read/Rights permissions to FS-TESTSHARE-RW Set full access permissions for local machine...

15:09
I hate Javascript sometimes....
0
Q: Project Euler #8 Largest product in a series

SonarbuddyI am working on Project Euler's problem #8 in which I am asked to "Find the thirteen adjacent digits in this 1000-digit number that have the greatest product. What is the value of this product?" Here is my code. For some reason, it keeps giving me the wrong answer and I strongly suspect that it ...

is it Friday yet?
not quite :)
15:33
0
Q: Python 3 Packages, Modules, and Classes - is this approach any good?

Bean TaxiAfter reading a decent amount in this area, I've come up with the following for myself. __init__.py has imports of all submodules which are intended for outside use; an __all__ variable which contains a list of all. Classes are typically one to a module, though if it makes sense to bundle a few...

1
Q: A status bar for the VBE

Mat's MugOne of the most annoying things about the VBE (VBA's IDE), is that it doesn't have a status bar. Rubberduck 2.0 works around this by introducing the RubberduckCommandBar, which [ab]uses msoControlButton controls as though they were labels - the command bar constantly resizes as the text changes,...

I've officially verbally agreed to the offer!
In 3-4 weeks I'm starting
woot woot!
they put extra emphasis on how impressed they were with me during the interviews and how easy it is to get out of that graduate salary and also receive equity within a year
so I'll be a millionaire by this time next year
2
more or less
15:51
@CaptainObvious I put the tag because of the presence of the CommandBar API, but is it really called for?
@JeroenVannevel don't forget us..
what is this room
how did I get here
16:14
@Malachi You don't want Friday to come this week.
what happens on Friday?
Zak
Zak
I thought I'd already come as close as I ever would to wanting to Erase Excel from existence. I was wrong.
2
@Zak lol, what happened?
Zak
Zak
I have to get Excel to print as consistently as word does.
write a macro that sends the spreadsheet into a Word document?
Zak
Zak
16:28
By and large, this is not a problem, because I'm allowed to heap lots of restrictions on the end users
Zak
Zak
(rules like "DO NOT, ON PAIN OF DEATH, TOUCH THE COLUMNS)
protect the sheets
Zak
Zak
@Mat'sMug not the problem
the problem, is that how Excel displays stuff (like, say, a paragraph in a cell), and how it prints it can be 2 entirely different things.
This, also, would not be an issue with a mono-spaced font.
but we have one font for the entire company and I can't change it.
@Malachi Tax day.
16:32
I had my taxes done before February started
Zak
Zak
The specific thing that got me riled up is when I took 2 worksheets, made their columns all the same width, then copied the contents of one cell into another, and one took up 6 rows but the other took up 7
same font same size same formatting same everything
just infuriating
anyway, I think I've fixed it and I'm not going to touch it ever again if I can possibly avoid it.
scaled to fit?
Zak
Zak
@Mat'sMug Same print areas.
> scaled to fit?
(it matters)
Zak
Zak
16:34
Even re-scaled them, in print view, to specific length in CM rather than pixels. same thing.
I have no one in my Star Wars commander Squad :(
Zak
Zak
@Mat'sMug I don't think so, but I'm not about to open it up again.
2
0
Q: Menu Model class using Model-View-Presenter

user3773246The following code is for my Object Oriented Programming class. My program simulate the cashier's machine to order food. The code uses Model View Presenter. This class is the model. I have an ArrayList to hold the possible order possible. The View uses it to create JButtons. I have an ArrayL...

@Zak just noticed, you killed your evil twin @Kaz?
16:53
0
Q: Common ancestor in a binary tree

JonathanRThis method finds the common ancestor of two nodes in a binary tree. Any style suggestions or ways to make it more idiomatic? Is the algorithm correct? Rubocop says the cyclomatic complexity is too high, how would you break this up? class Node def initialize(value = nil, left = nil, right = n...

0
Q: Singly linked list abstraction in ES5 JavaScript

overexchangeBelow is the code for, Singly linked list implementation, function List(){ this.start=null; this.end=null; } List.makeNode=function(){ return {data:null,next:null}; }; List.prototype.add=function (data){ if(this.start===null){ this.start=List.makeNode(); thi...

17:16
Holy crap @Mast.
It's up to +27 now.
17:38
Bullocks, I need someone to help me setup this backup server. Gah
17:51
http://www.commitstrip.com/en/2016/04/14/meanwhile-in-a-parallel-universe-3/
CommitStrip
Meanwhile, in a parallel universe…
CommitStrip
1460655971
4
^ nice
18:10
0
Q: Python, pandas, matrix math optimization

mburke05I have a notebook here which details my code and may be more legible. I worked on a project that flattens a table that initially looked like this (this is table1): 18+fem 18+male date station 17118 15925 12/1/2014 ADSM 16006 11379 12/2/2014 ADSM 19259 18846 12/3/2014 A...

18:34
0
Q: Nim Game with Arrays

NomisI am suppose was to incorporate arrays in my NIM game java code, so that we can allow the user to decide on how many heaps are in play. I am stuck and have no clue how to do so. Heap Class public class Heap { private int heapSize; public Heap(int size) { heapSize=size; } public boolean re...

0
Q: Put predefined text in cell just below Headers in a column

AmitSuppose if select any cell from column A that to bellow “Header Flag” then it will only insert ‘Y’ in column A (other cells will not except flag ‘Y’), if the user has entered the Headers exactly below the Header Row. If ‘Y’ is there below the headers then that related row would not be considered ...

0
Q: Parsing cells containing Line Feed Characters

RaystafarianLink to sanitized xls on dropbox if test data is needed Essentially the reports I work with aren't bad - The issue is the way it exports to excel - With the problem being that these cells are filled with LF characters breaking apart the data entries in the cells (usually a listing of emplo...

I wonder why the tornado sirens are going off.
Probably a test.
or, because there's a tornado warning?
18:49
No test. That happens on the first Wednesday of the month.
Then you better find a hiding place.
Tornado warning with complete cloud cover, no rain, no storms, or anything?
It doesn't take rain or a storm.
Not too thick of a cloud cover, either, I can see the sun through it.
18:50
It only takes a high and low pressure system coming together.
And rotation of air.
And BOOM
No more china shop.
They are going off really close now.
get somewhere tornado-safe
pull up the weather readings for your area
Just go outside.
All is fine.
Uh oh, we have a red-flag warning.
I bet there is a wildfire somewhere close.
18:58
@Mat'sMug Can you help me write some reflection stuff later?
probably
Basically, I need to take a string, and parse out anything that is surrounded in braces and gather the data value for the property with that name from an object.
So Write out SomeProperty: {SomeProperty} will print the value of SomeProperty.ToString() from the object in that position.
shouldn't be too hard
I hope not.
I just don't know how to use reflection to get the property values.
If I figure that out, the rest'll be fine.
Because I also want to support {SomeProperty:0.000} to print SomeProperty.ToString("0.000");.
You guys know much about Java ArrayLists?
@Hosch250 Watching Andromeda Strain. Your use of "wildfire" was appropriately alarming.
19:03
So I'm going to parse through the string char-by-char, pull out my property and format specifier (anything after the first colon is the format specifier, including subsequent colons) and then split them on the first colon, and pass them.
@WaymanBellIII #define much
Says our Java expert.
lol.

I'm trying to help the NIM game guy with Heaps. I thought an Array of Heaps would solve his issue, however, I believe Array size must be defined at compile time. Sooo... I thought of ArrayLists
If he does
ArrayList<Heap> heapList = new ArrayList<Heap>();
then to add an object to the list, would
heapList.add(new Heap(10));
be correct?
would be, yea
but ArrayLists aren't necessary
Cool. I've never worked with these things before, and all of the examples use Strings.. :/
19:08
you can reinitialize an array after deciding how many Heaps there will be
No?
Whaaaat?
Heap[] heaps = new Heap[heapCount];
heaps.fill(new Heap(10));
Heap[] heaps = new Heap[1];
heaps = new Heap[userRequestedSize];?
ah
it won't work that way..
let me check something for a sec
@EBrown Good :-)
19:09
@Mast Not good. Lol
Why not?
Okay, I have to run to my classroom. I'll be back in about 5 minutes-ish.
Basically, all the answers are snide forms of saying "lol y u do dis?"
okay using Arrays.fill is a bad idea, since the Object reference stays the same
so you'd be putting the same Heap everywhere
I've written code in crazy languages without such remarks...
19:10
instead you have to iterate over the whole array
Granted, no DV's yet.
(On any part of it.)
You got at least a good answer from Heslacher and an answer from Lippert of which I have no idea how useful it is.
The comment about m2 being a lousy variable name is also solid. Especially in a verbose language like C#.
@WaymanBellIII Sounds like very short lectures you give to your students...
Not really, because m2 is the name for that variable.
In that case you should probably add a docstring (or whatever it's called in C#) explaining that.
There are plenty of less-mathematically inclined programmers around who simply think it's benchmarking code and have no clue what m2 stands for.
I don't think you've stated anywhere in the code which algorithm you use.
19:19
TTGTW.
> the sum of squares of differences from the current mean
that's what m2 is
I know what it is. That's irrelevant.
Hmm, I smell smoke now.
I bet Code Review will be happy to see what is working again. — Simon Forsberg 16 secs ago
5
$m2$ is the math name for the variable, this is programming. sumOfSquaresOfDifferencesFromTheCurrentMean is really long better than m2
19:22
@Quill No.
An explanation would suffice.
I'm a big fan of sticking to math variables in programming, but without explanation it's gibberish for those who don't see that link.
You should try debug-stepping through your code (or using tracing) to find out what's the last line of code hit before the access violation occurs. Note: this looks incorrect: for (first2; first2->id <= last->id; first2 = first2->next) reading first2->id if first2 is NULL is bad. Also, codereview.stackexchange.com would be more on-topic for this question. — ebyrob 46 secs ago
@SimonForsberg let me guess... you had to switch from posting to /users/chat-login to posting to /users/login/universal/request, right?
For Code Review the code has to work. This doesn't. It's marginally on topic here. Be better of OP spent a bit of time learning how to use their debugger though. They have one. It told them everything. — user4581301 13 secs ago
@Vogel612 Nope, I just removed the call to chat-login entirely. But for some reason it didn't quite work on my Linux laptop, but when I switched to Windows it worked.
wait there's a /chat-login location?
19:35
hmm... that would explain why that endpoint returns a list of sites with token and nonce
@Quill was, I daresay
0
Q: String Casting Utility Functions

BizkitI wrote a small header that is supposed to take care of calling the right strtoX or or stoX function for me and doing so at compile time. The code contains two functions: num_cast and string_cast. Each returns a number or string from the argument specified. See main for an example on how to use t...

@Duga Welcome back, Duga!
2
35
Q: What's the baseball bat for? (seen in CRS-8 berthing NASA TV broadcast)

uhohWatching the CRS-8 Berthing live broadcast on NASA TV I noticed a baseball bat resting on top of a console in the front left part of the room, so I took some screenshots. Looking closer, it seems to be about a meter or two away from a large, delicate-looking model of the International Space Stat...

lol
-2
Q: Vba code to clear sheet content except Row A5

Amitvba code to clear all content of sheet1 except row A5 or header row.

@janos You told me to ping you when I started the Machine Learning. I haven't started that Machine Learning yet, but starting about 40 minutes ago, @Duga is logging information about all "programmers"-comments with Machine Learning. If the experiment goes well, I will switch from the old-style to the new style.
in Duga's Neighboorhood, 27 mins ago, by Duga
Certainty level 0.4 (ML Classification 0.0014800626095624802)
And if the experiment goes well, I will use more Machine Learning stuff.
Probably start doing ML also for Code Review comments
and then for off-topic questions
19:50
wow, nice!
and then for everything else
and then we take shelter and prepare for the bot invasion!
You'll have to rename Duga to Skynet soon
15
Q: How many questions do we get from users recently blocked at SO, how many of these are closed / deleted?

gnatRecent efforts in SO close vote queue make me think that quite a lot of users started hitting the question ban there. Given long known "tradition" of attempts to circumvent such bans by posting at inappropriate sites I wonder how much impact could this have on Programmers. To understand this, I...

I wonder what those stats would look like for CR
The conclusion would probably be the same.
yeah, it would. SEDE can do most of that, but still
we handle things pretty well here anyway
19:56
0
Q: optimize cleanup code

Nina SIm using the following code which is working and I wonder if there is a way to write it better? filterNullUndefinedOrRejected: function(oData) { if (oData && oData.length > 0) { var aNewExtendedObjects = []; for (var i = 0; i < oData.length; i++) { if (oData[i].va...

Maybe more of a code review question? — 3kings 39 secs ago
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Functional tree iteration in Common Lisp
@SimonForsberg I teach high school. 6th hour, I am a facilitator rather than a teacher. They work on computers on a variety of subjects, so I have more free time.
@Vogel612 Thank you for your suggestions
@SimonForsberg Is Duga back in operation?
yeah
May 19 '15 at 14:43, by RubberDuck
Duga == Skynet
5
20:05
7 mins ago, by Duga
Maybe more of a code review question? — 3kings 39 secs ago
Jan 9 at 13:12, by Mast
Thanks to worldbuilding the real Skynet will be way more effective than the fictive one.
Yes, she is back.
0
Q: Javascript Pong clone - classroom use

BalinKingOfMoriaI'm creating Pong clone for use in teaching Javascript to beginners. Unfortunately, I am largely a JS beginner myself, so I probably missed something in the below code; however, I do not want to shortchange my students. Also, the code does work as intended (with the exception of the sound-playi...

in The Whiteboard, 34 secs ago, by Simon Forsberg
Machine Learning vs. Old Classification: 1 - 0.
First false positive that the Machine Learning would mark as a true negative.
20:31
Yay! Chrome is refusing to render anything
back to Safari
0
Q: Am I using DeflateStream correctly?

AndartaI have never used or even learned about using compression before. In my program I have a custom object and I am serializing that object to a file using binaryformatter. I'd like to compress the file when writing it, and then decompress when deserializing the object. I gave it a shot with Deflate...

@CaptainObvious Doesn't appear to work as intended, even though it "works" - either way though, doesn't look like they are looking for a review
20:59
my boss is looking for a good issue tracker. I jokingly said "let's just use GitHub" he said "use what?" I said "Git-Hub" he said "send me a link, I'll check it out"

« first day (1076 days earlier)      last day (3238 days later) »