« first day (1077 days earlier)      last day (3237 days later) » 

15:00
> You've earned the "Notable Question" badge (Question with 2,500 views) for "Benchmarking things in C#".
@EBrown still in the HNQ list
Wtf
Why?
HNQ for THREE DAYS?
because it's hot, apparently :)
keep this up and it might be hotter than me
@DanPantry or @JeroenVannevel
3
15:04
@Mat'sMug 50/50
I'm rather impressed that there are no down votes on the question or any of it's answers yet.
@EBrown One does not simply downvote Eric Lippert... or a question he answers
He emanates a reflective shield, on which all downvotes bounce off.
Also, why am I up so early? It's 11:05.
@Mat'sMug twins
> Stays awake until 4am
"Why am I up so early? it's 11am"
- EBrown 2016
15:05
@DanPantry *5am
geez, I can hear your blood begging for caffeine from here
Well the good news is this gives me time to watch The Force Awakens on my 52" living room TV.
@Mat'sMug I don't have any blood left.
It's all alcohol and caffeine
Nah, the alcohol wore off.
That's what I need to do today...damnit.
15:07
So... Excel took the string '91E5', transformed it to 9.10e+06, then the value in that cell shows as 9100000. Pl0x send help
Change the format type to "Not Suck."
Why don't you post this on code review and see what you get there? — roryap 1 min ago
Zak
Zak
@Phrancis What's confusing about that?
(only half kidding)
@Zak Only half?
15:09
Dear god @Zak, you need some type of religion.
And not one that revolves around Excel.
Well, I was hoping it would just keep the string value 91E5
LOL
That's hilarious.
Why would Excel do that?
That makes complete sense.
It's tacky, to say the least
Change the format specifier to "Text", I think.
@Phrancis precede it with an apostrophe
15:11
Then re-enter the value
DON'T USE TEXT FORMAT
EVER
I always use Text format.
it wrecks everything
Maybe we need an "Excel Review" site.
Or, better yet, "Excel Doesn't Always Have To Suck Stack Exchange".
15:18
@Mat'sMug what is that?
@Malachi it's what replaced VBScript
@Mat'sMug I actually just went through that code in my head....
the 'potato?' part was a real wtf for me
@Mat'sMug didn't it create a new object?
at five++
five.wtf = 'potato?'
15:22
@roryap, wow, I didn't know that there is a code review section, it must be new — Felix Cen 41 secs ago
what language is that?
that is what I thought. there is some of it I don't understand enough to replicate or manipulate.
@Duga "new"
@Malachi my understanding is that this is how you get the last "6"
@Duga "section"
15:24
but I am pretty sure that when you did five++ that you changed the object or created a new object... or maybe I don't know
@DanPantry I think that is valid javascipt? @Mat'sMug
@Mat'sMug that is the one I am a little stumped on....give me a second
given the output is potato? I expect that this output is the result of the assignment, and so five.wtf would be "potato?", not undefined - that one throws me off big time
you can't assign that property anymore, it was a one time assignment
I tried to assign it something else and it is always undefined
That... is crazy.
Since when can you call a field on a value that doesn't exist?
no I don't
This is actually really simple.
JavaScript has value types and reference types, value types are... values - things like numbers and strings that are just their value. For example, it wouldn't make sense to change the number 5 in JavaScript, it's conceptually just the value 5.
You can't make the mathematical entity 5 become the mathematical entity 6.
strings are values... I lol'd
However, you do want stuff like (5).toString() or (5).toFixed(2) because it's useful to have. So for each primitive value type JavaScript has a corrosponding reference type.
I thought JS only had ducks
15:35
@Vogel612 I actually with more languages did strings as value types - it makes them very fast.
So, when you do (5).toString() the engine really does var _ref = new Number(5); _ref.toString(). When you do (5).foo = 5 it does var _ref = new Number(5); _ref.foo = 5.
The original number isn't changed, this is useful behavior. Optimally, the engine would warn you on that (and indeed, linters do) but it can't special-case assignment and property access makes sense.
@Mat'sMug ahhh. i see the funkyness now :-)
it is an object until you reference the primitive number
@EBrown Told you it would get famous.
So, when you do five.foo = "potato", why doesn't that crash?
foo isn't a defined member of five...
because...JavaScript?
15:38
JS doesn't care, it simply defines a member at the spot.
Or something equally ridiculous.
That is idiotic.
@Hosch250 because special casing assignment wouldn't make sense. The rule is when property access is performed always convert it to a reference type.
@Hosch250 because it's wrapping it in an object
@Hosch250 You original five was an object
If you're a reasonable developer, you use static analysis tools and they give you a stern look when you do that.
5
15:38
typing
@BenjaminGruenbaum Or, you know, a language with a spec which doesn't allow it.
2
or is it dynamic typing
It is usually very useful - for example "hello".length works because of this.
and so you have var _ref = new Number(5); ref.foo = "potato" which is perfectly valid
Someone needs to write a JS that doesn't allow that.
15:39
@Mast you do realize most JS developers don't really have a choice because that's what browsers run right?
0
Q: Lowering speed on my hybride encryption function for large files

Mercenary_FrankI have an assignment to encrypt files (+- 1 gb) and speed is an important factor. I am also kinda forced to the C# language since nobody in my group knows C++. The time now recorded for 100 mb is 12 seconds could somebody give me advice if it is possible to improve the speed my encryption functio...

so it once you use the primitive number five becomes a primitive instead of an object
@Hosch250 you realize, reasonable developers get compile time type errors for that - right?
@Hosch250 they did. They called it JAVA. Oh wait...
@BenjaminGruenbaum I know. Which is why Hosch is right, we need another language.
15:39
Eventhough it's JavaScript
@Mast JavaScript is actually fine for the most part, it's not great but it also doesn't really need to be.
after that you no longer have access to the properties of the object, because it is no longer an object
@BenjaminGruenbaum That's what I mean.
@BenjaminGruenbaum True, but it's time for JS 2.0.
@Hosch250 then you'd have a hard time.. because JS relies on that behaviour. You can't expect to have types define their properties upfront and then write code like: call({foo: "something", bar: "asdf"});
Wait, you do realize this only happens in loose mode right?
When you assign to a property of a number 5 it's type error.
It only happens in loose legacy mode.
15:40
Oh, right, that's why we use strict.
Oh, good.
Which is virtually how no JS code is run, only code that has to support IE8.
strict ftw
it's like Option Explicit basically
var five = 5;
five.foo = 15; // TypeError: Cannot create property 'foo' on number '5'
ah, that makes much more sense
15:41
@BenjaminGruenbaum what about the object wrapping through the function call.. does that keep working in strict?
@Mast designing a language is really hard, but I do encourage you to contribute to one of the initiatives to extend JS to be safer or replace it. PureScript and TypeScript are two interesting initiatives.
No, no, we don't need extensions.
We need something NEW.
@Vogel612 I'm not sure what that means (object wrapping through the function call).
@BenjaminGruenbaum you created a primitive, not an object
@BenjaminGruenbaum probably means ().call(5)
15:43
@BenjaminGruenbaum function dis() {return this;}
@Malachi ...
@Malachi properties work just fine on objects, but in general linters warn on wrapper boxed objects. My code wouldn't compile on that.
@Mast we always need something new, I hope to god we won't write JS in 10 or 20 years.
@Vogel612 yes, that is fixed by strict mode. It was really silly.
@FlorianMargaine it is a number, and not an object. that is why you can't call a field/property from it
@Malachi which is a type error in strict mode, yes.
@Malachi the whole discussion is about being able to do it in loose mode.
15:44
It has been this way for quite a while now. Not that it's hard to find 10 WTFs in JavaScript in a minute.
2
JavaScript is no exceptions, every language has shitty parts, especially older languages with really quirky rules.
sorry guys I haven't been reading every chat post....lol trying to wrap my head around this, and I think I understands
fair enough
Some languages have far fewer.
ugh. I just crashed VS by removing a grouping in SSRS. lovely.
@Mat'sMug you should not SSRS on a Friday
15:48

 The Nth Monitor

Conversations that don't quite fit in The 2nd Monitor
Could we move there? ^^
0
Q: Python - Battleships

UNST4BL3My teacher referred me to this Stack Community when I showed him my battleships Python code. I created this program with the intent of making it as efficient and readable as possible. The idea is, you enter an amount of ships, for example 10. It will then place 10 ships on a 10x10 grid (0-9). Yo...

@CaptainObvious which Python?
@BenjaminGruenbaum He is a bot
@Malachi thanks
15:51
There are a couple of bots here @BenjaminGruenbaum niether of which respond i think.
Maybe they would like a version of Cap? :-)
!!test
BTW.Work
been a while since I used that one
@Neal Duga is way superior
also Captain is a feed.
but that's technicalities :D
Was writing a CR answer and I just gave up on it...something's changed.
@Vogel612 Does Duga respond to anything?
15:53
@Neal Not in this room.
@EBrown In which one?
@Neal you can talk to her still. I do all the time.
@Duga What is up?
Nothing.
Well, it was nice chatting - I'm here chat.stackoverflow.com/rooms/17/javascript if anyone is looking and I'll be in the ohter room.
@Neal IIRC it's called "Duga's Playground" or something.
16:04

 Duga's Neighborhood

It's a beautiful bot in the neighborhood. Would you be mine, w...
Zak
Zak
Just a note that I will get around to reviewing this, but I've been a bit swamped so it'll have to wait until next week. — Zak 3 mins ago
I have to remind myself sometimes that work > writing CR Reviews
3
Bullocks.
Anyway, movie time.
@Zak rushes an answer to beat Zak to it
0
Q: Optimizing MySQL Query with self-join

DasSaffeI have the following structure of a table: | id | profile_id | sku | vendor | price | importRun | | 1 | 39 | 123 | myVen | 2.0 | 1 | | 2 | 39 | 456 | myVen | 2.0 | 1 | | 3 | 39 | 123 | myVen | 3.0 | 2 ...

0
Q: I am working on Page Replacement FIFO in C++, Getting error Invalid Operand to binary expression

OmiI am getting error related to Invalid Operand to Binary expression. std::string n; int i; std::ifstream myfile("Input.txt"); std::cout<<"The number of elements in the reference string are :"; if (myfile.is_open()) { while (getline(myfile,n) ) { std::cout<< n << '\n'; } for(i...

My question has generated 835 rep...wow.
16:14
> Eurostar Plus Pointsleden krijgen een e-voucher van £20 of €20 voor elke 300 punten die ze sparen.
You can choose between 20£ or 20€
gee. hard choice.
Which one is more devalued? :P
20£ = 25€
0
Q: Php - Bulk Customer Creation

suraj mishraHere is my Script which takes 50k records from a CSV and does CRUD operation with them. Unfortunately there are a lot of issues with the performance. CSV fields are: msisdn, resellerid, product Following are the steps performed: Read the CSV. Create Temp table. Select top 1000 records and mark...

@CaptainObvious You should totally drop that and use a common table expression better database than MySQL
@JeroenVannevel Difference used to be bigger.
16:23
pretty awesome that you can change your seats for free
Put myself in the cabins that have wall sockets
Yea, it takes a couple of hours to make the trip. Better got juice in the wall.
Do they have Wi-Fi as well?
I had it last time, yeah
but that was first class -- now I'm going second
so I don't know if that will make a difference
It's a feat of engineering they have wireless in a vehicle moving that fast.
Well, it's wireless. It probably won't care about walls.
I just imagine the EuroTunnel with WiFi dongles every 10 meters
So as long as you're close enough, you should be fine.
@JeroenVannevel The dongle is in the train itself, moving with you. How the dongle connects to the rest of the world, that's the neat part.
16:27
yeah I know. I meant jokingly that there could be dongles outside the train
let's see if I can claim points for my previous trip
If you admit you have already asked this on CodeReview (correct) and still duplicated post here, what else do you except apart from down-votes? :) — nikhilvartak 29 secs ago
@Duga So I didn't kill you completely.
@Hosch250 Told you.
@JeroenVannevel have fun negotiating the connections with your phone
I daresay the battery dies before you are half through the tunnel :D
or the phone melts
16:45
Me, CC'ing boss: "So, I haven't made any changes to that little console app in a few weeks.. if it works, can we deploy and close the project?"
Boss, to me: "Do not hold your breath...."
~confused
i.e. "don't expect them to okay closing that stupid project for a while", i.e.
17:02
Did I miss a flag fest / holy war?
Holy war, not flag fest.
test
are we down
Simon was for a bit.
"I've just booked tickets: I'll be in London from the 20th until the 27th so I'll be available for those drinks you so graciously offered." Too familiar to send to the VP of Product?
I felt like we had a bond
if not, you'll have a bond after enough drinks :)
17:13
Well, my chat died. Okay.
@BenjaminGruenbaum I really, really dislike TypeScript if for nothing else other than they do not gracefully integrate with other packages (yet). If you try and tell it to use a library and it doesn't think it exists, welp, it doesn't exist.
@DanPantry Mine too
http://www.commitstrip.com/en/2016/04/15/whos-the-coder-here/
CommitStrip
Who’s the coder here?
CommitStrip
1460739958
6
No trouble here.
And there are 3 different types of require syntax depending on whether something has typings or not... Babel just lets you use the standard ES6 syntax just fine.
@CommitStrip Hm, you've had funnier ones.
@CommitStrip That's a very, very simple error caused by a mistyping.
lol, for some values of "French"
for some values of funnier
I have nightmares about that damn MySQL manual
1
Q: They asked me to write awkward code – how did I do?

5gon12ederRecently, somebody was given a homework assignment with an exercise specification that left much to desire. Yet, they've tried to make the best out of it and managed to write some code that seems to do something related to the specification; even though it is not clear how this code would be use...

17:23
@Phrancis is one of them about the Oracle branding at the bottom?
Sounds fine if you encapsulated this in a method. Also, these types of questions are better suited for codereview.stackexchange. — Zong Zheng Li 59 secs ago
@StackExchange what the heck?
I got 10 upvotes, my answer must be a bad fit because the other one looks better
even though it has less upvotes..
I just don't get it
> SHOUTY_SNAKE_CASE is for C programmers and Java programmers.
0
A: They asked me to write awkward code – how did I do?

Mast Should I refrain from answering such questions in the future? You should refrain from answering off-topic questions. This was not an off-topic question. All on-topic questions should be answered. The quality of the answer could depend on the quality of the question, but not necessarily. Not...

@Vogel612 The other one got downvoted after it was mentioned earlier in the chat. It's a code dump with notice.
The comments in the dump explain something, but it's still not a good review.
@Phrancis French just had to add some swearing
17:35
@Mast which answer are you looking at? Eric's answer has no mod notice...
@Mat'sMug Fixed it, disregard above comments.
I got two questions mixed up...
:o Random message
4
Q: How to make a Copy of a Project/Solution in Microsoft Visual Studio 2012?

skiwiAs title states: How to make a Copy of a Project/Solution in Microsoft Visual Studio 2012? It is such a simple option, and it seems to be unavailable.

Got 10,000 views and got badge for that
Why did I make that answer community wiki wtf
monking
@skiwi 50 rep bye bye
17:43
@skiwi You wanted to be a nice guy and you were new to the endless world of fake internet points.
0
Q: Calculate Kth Row of Pascal's Triangle

Jae BradleyPurpose Implement a solution that returns the values in the Nth row of Pascal's Triangle where N >= 0. Math First three rows of Pascal's Triangle: 1 1 1 1 2 1 ... ... These row values can be calculated by the following methodology: For a given non-negative row index, the first...

17:57
0
Q: Exclusive row lock

tolrahCI'm in a situation where I need to manage a kind of FIFO process within a SQL procedure. The procedure is called by a multithreaded windows application. I've created a table which look like this: +---------------+---------------+----+ | Field | DataType | PK | +---------------+---...

0
Q: Modifying this CSS in the active admin gem for a Rails 4 application - can this be DRY-er?

NonaI wondered if there was a way to DRY (don't repeat yourself) this CSS code or if this is as compact and readable as I can make it? div#title_bar, div#header { background: green; } #header ul#utility_nav li a { color: #fff; } table.index_table th, table.index_table th.sorted-asc, table.inde...

@skiwi its low scoring... doesnt matter much. You want 40 points?...
@CaptainObvious DRY CSS??

« first day (1077 days earlier)      last day (3237 days later) »