« first day (2046 days earlier)      last day (2905 days later) » 

9:00 AM
@Neil must act retard
 
@Neil try it in word or excel
 
@BartekBanachewicz doesn't do anything in open office, but then I can't try it with office atm
 
@Neil Open Office is absolutely awful, so I wouldn't be surprised if they broke that as well
 
"broke"?
 
"make not work"
are we changing the official language here to simple english now?
 
9:04 AM
"not make"
 
I left my simple english text editor at home (this thing actually exists though, OSX only :D)
 
@littlepootis "CSS"
@BartekBanachewicz that "only one of these thousand chars"?
 
words, but yeah
 
Is it so that we have to use on for PHP generated html as well ??
as far as I know its only for dynamically added elements with JS
 
wrong room?
 
9:06 AM
yeah, thrash can is the other way
 
@littlepootis Javascript "ON"
 
yeah this is only a simple trash can
 
I meant
 
I mean I don't get those people
 
9:06 AM
> don't learn PHP it's crap
> but it's easy to learn so I will
> ...
> I have a problem with my PHP code
 
@littlepootis "Is it so that we have to use javascript on for PHP generated html as well ??"
 
"on" event :| sorry
 
if I got a dollar for every time this happens, I wouldn't have to work till the end of my life
 
sorry i no englis
some1 transl8 plz
 
@littlepootis he's prolly generating "onlick" from php
 
9:08 AM
@BartekBanachewicz s/PHP/JS
 
so that the generated js will do something when the user licks the screen
 
yeah he is asking why use JS and PHP both. for which he needs to understand the separation between client and server.
 
@tereško that too
 
Exactly
 
@Shashi Nope, not necessary.
 
9:08 AM
I think it applies to ruby too
 
@AwalGarg yes I do
 
@Shashi well where are you licking your screen?
 
@BartekBanachewicz onlick?
 
php generated content exists before JS even starts to run.
 
@littlepootis yea?
I think onlick event has like the x and y of the tongue on the screen
 
9:09 AM
oh, yeah
 
in ES6 you can also lick your peripherals
altough I'd wash them first
 
okay, this went little south :p
 
> "Is it so that we have to use .on for PHP generated html, as well?" < fixed
 
anywhich ways, I will figure it out :)
 
Answer: nope
 
9:10 AM
Seriously lacking sexual jokes thus far
What's wrong with you guys today anyway?
 
That isn't the only sexual thing that's lacking, @Neil.
Better?
 
@Neil what do you mean by "today"?
 
@Cerbrus coffee?
 
@Neil sexual exhaustion
 
@Neil I didn't want to make a joke about catching herpes at @littlepootis's expense
 
9:12 AM
@AwalGarg not yesterday
@littlepootis give your hand a break then
 
@Neil Or switch hands. It's almost like cheating :P
 
@Shea best gif I've ever seen
 
I have an SQL query that's 9 seconds or less for SELECT TOP 1000 and slower than 2 minutes for SELECT TOP 1500
Execution plan shows index spooling wtf
 
i should use ORDER and LIMIT
 
9:17 AM
@BenjaminGruenbaum you sure that you're using a complete index for the fields being filtered?
 
I'm not, but the query analyzer isn't recommending one. I'm using a clustered index on what I'm selecting them on but not an index on everything I'm selecting. The query analyzer suggests that it would bring a 40% speedup on the small data set and none on the marginally larger one
 
I would add a complete index just to see if that makes the difference
 
I started adding it and stopped after it took more than 10m and I can't WITH(ONLINE=ON) because it's not enterprise sql
 
Sounds like it is trying to optimize by pulling on several indexes (and failing miserably)
Big table then? How many records?
 
Around 100M
 
9:22 AM
You can try reordering order in your where clause
 
I have a tables containing 40K values, for each pair of values from the first table I need to fetch 800 values from the second table (based on the clustered index) and perform a calculation on them
 
The optimizer might ignore order anyway, but if not, it would change which indexes it starts with
 
I'll try, thanks
I wonder if it's not better to just pull the data into memory for the 40K values, it's 40K values times 400 values per table a value.
I just doubt I can do a better job than SQL at this
 
If you had say, an index on a field that is either true or false, makes a huge difference sometimes
@BenjaminGruenbaum worth trying out I suppose
Still strikes me as a database issue to resolve
 
Yeah, me too, maybe SQL isn't a great tool for this anyway, it's just not particularly "big" data and if I can get away with SQL I prefer doing that.
 
9:28 AM
yeah 40k entries should be nothing for a proper db
 
@BartekBanachewicz it's 40k entries squared
 
hey folks, you know when you have an image call in JS? Can you add a class to it?
 
So really 1.6 B total values.
wait, I probably got that math wrong, did I?
 
@BenjaminGruenbaum yikes
1600m, so you got that right
 
Math is right - it's 1.6B calculations, if each fetch takes 1s for whole 400 values from the second table it's about 50 years to calculate.
all rough guesstimates.
 
9:31 AM
@KirstyMarks class to img tag you mean? Why not?
Order by complicates the query further so I like to see how queries perform without it when I am trying to determine why it is slow
 
I'm not using Order By although I'll most likely have to since I'll have to run it in multiple queries
 
Still more efficient than doing it in memory by a long shot, but you risk that it will be that much worse
 
And indeed it is, ordering bumps the value for the first 1000 rows from 3s to 1m
 
If you're not ordering, what's the point of selecting TOP n?
 
To get partial results I can validate without waiting for the query to complete?
 
9:37 AM
It is a complicated query? How many level of subqueries?
 
Well, then, couldn't you just limit the input?
 
And then you see your colleagues write queries like "select * from table1, table2 where table1.id = table2.id"
 
...
I would b-slap that person
 
Thank god for optimizers
 
Oh, I didn't show you the query lol
 
9:41 AM
When I am adding the Javascript code in file....that particular code does not work whereas when I add them via firebug it works......what can be the main causes of this ??
 
At 1.6b rows you may want to partition the table and/or index, too.
 
SELECT TOP 1000
	fst_stock.StockID
		as fst,
	snd_stock.StockID
		as snd,
	(SELECT AVG(a.[Close]*c.[Close]) from
	 [SecuritiesDB].[dbo].[HistoricalEODData] a JOIN
	 [SecuritiesDB].[dbo].[HistoricalEODData] c ON a.[Date] = c.[Date]
     WHERE a.StockID = fst_stock.StockID and c.StockID = snd_stock.StockID AND a.[Date] > '01-01-2016'
		   AND c.[Close] is not null AND a.[Close] is not null)
			as covariance
FROM StockIDFundID fst_stock JOIN StockIDFundID snd_stock ON fst_stock.StockID > snd_stock.StockID
3 seconds
SELECT TOP 1500
	fst_stock.StockID
		as fst,
	snd_stock.StockID
		as snd,
	(SELECT AVG(a.[Close]*c.[Close]) from
	 [SecuritiesDB].[dbo].[HistoricalEODData] a JOIN
	 [SecuritiesDB].[dbo].[HistoricalEODData] c ON a.[Date] = c.[Date]
     WHERE a.StockID = fst_stock.StockID and c.StockID = snd_stock.StockID AND a.[Date] > '01-01-2016'
		   AND c.[Close] is not null AND a.[Close] is not null)
			as covariance
FROM StockIDFundID fst_stock JOIN StockIDFundID snd_stock ON fst_stock.StockID > snd_stock.StockID
Over 2 minutes
 
@Shashi check that the link is correct
 
;_; today is a sad day. I'm testing a simulation tool to see if it's useful. Found the link to a manual. 350+ pages.
 
if an <input type="button" has onclick="return false;" attrib,the jQuery click listener will still fire..is that correct?
 
9:43 AM
@BenjaminGruenbaum there's got to be a way to refactor that
 
@Neil its hard-coded at the bottom of the page inself
in script tags
 
@Neil I just wrote that
 
@Shashi and does it load?
 
yes it does....it is there in source....but does not works...when inject it with firegub it works fine :|
 
@BenjaminGruenbaum just for shits and giggles, try without the average
 
9:44 AM
@Shea on which part?
 
@Shea ^
 
@BenjaminGruenbaum Let me see if I get this right... you get 1.6b rows in the StockIDFundID table, and you are joining it to itself looking for first.id > second.id?
 
@Shashi well something here isn't as you say
 
replace AVG(a.[Close]*c.[Close]) with something like 1+1
 
@Sheepy I got 40K in that table
 
9:45 AM
Are you sure that it loads?
 
@Shea that's actually the only part in the comptuation I care about.
 
yes I know, but just for shits and giggles
 
Ok. So 1.6b is the historical data.
 
@Neil I just doubled check....it is there in the source.....its a big chunk of code, I am not missing it
 
@Shea more shits than giggles I presume
 
9:46 AM
@Shea it works (well, 1+1 didn't because it's not an aggregate, but MAX(1) did)
but that's probably just because SQL Server realized it's a constant and avoided the whole query
 
@Shashi then I can't help you. I can't imagine why that wouldn't work
 
MAX(a.[Close]) is slow.
about as slow, I guess MAX(1) is just optimized away.
 
@BenjaminGruenbaum how slow compared to the full query?
 
SELECT TOP 2000
	fst_stock.StockID
		as fst,
	snd_stock.StockID
		as snd,
	(SELECT MAX(a.[Close]) from
	 [SecuritiesDB].[dbo].[HistoricalEODData] a JOIN
	 [SecuritiesDB].[dbo].[HistoricalEODData] c ON a.[Date] = c.[Date]
     WHERE a.StockID = fst_stock.StockID and c.StockID = snd_stock.StockID AND a.[Date] > '01-01-2016'
		   AND c.[Close] is not null AND a.[Close] is not null)
			as covariance
FROM StockIDFundID fst_stock JOIN StockIDFundID snd_stock ON fst_stock.StockID > snd_stock.StockID
Running for over a minute and a half so far, showing no sign of finishing
 
9:49 AM
@CapricaSix Can you kindly tell me why my code was moved to trash ??
 
over 2m, @Shashi your code was unformatted. Please read the chat rules and guidelines.
 
Ah, ok, that's going to be no different than avg
 
She hates you
 
Yeah, fetching the values is slow not the actual computation.
 
@BenjaminGruenbaum Yeah. Looks like the problem is in the subquery. Do you have a compound index on date and stockid with close data?
 
9:50 AM
I was thinking that you cut out the inner query
 
It's spending 68% of the time in "index spooling" ("eager"), doesn't spend any time on that in the TOP 1000 version.
@Neil if I cut out the inner query completely it's instant
@Sheepy I have an index that contains all the relevant fields but to be fair it also contains additional fields.
 
@BenjaminGruenbaum try turning the inner query into a inner join instead
 
how would that look like?
 
Add group by as necessary
 
Not sure how much that'd help...
 
9:53 AM
Just JOIN -> INNER JOIN ?
Doesn't look like it's helping, running for 20 seconds already not showing any sign of relief
 
I might just be tired, but this doesn't look right
 
why is the markdown not working for me
 
	 [SecuritiesDB].[dbo].[HistoricalEODData] a JOIN
	 [SecuritiesDB].[dbo].[HistoricalEODData] c ON a.[Date] = c.[Date]
 
apologies that was not intentional
 
9:55 AM
so you're essentially actually selecting 3000 rows? or something like that?
or something possibly even exponential?
 
@Sheepy so let's not try a potential solution because it may be wrong?
Sorry if I disagree with that statement
@BenjaminGruenbaum you ask to much from a mobile phone user :(
 
I think it needs LIMITs
 
@Shea he has top 2000
 
after he's already selected the entire table once or twice?
 
@Neil I am just saying that from my experience this simple subquery should not see much benefit from join, and there is perhaps simply too many data. Especially when the subquery already reference the main query. Feel free to help him write it if you want.
 
9:59 AM
@BenjaminGruenbaum remove the subquery too see if the indexing of the main table is not failing. If that works smooth, then check the subquery.
I should put the subquery in a JOIN table if the indexing goes AWOL.
 
in C#, 8 secs ago, by Jan Dvorak
TIL: Godwin's second law says you automatically lose any argument as soon as you mention w3schools
 
@Sheepy I think he has already made an attempt
 
Ok. Didn't see that.
@Shea The TOP part is same as the LIMIT part in MySQL.
 
In MySQL the sky is the limit.
 
but does that delegate to the sub queries?
 
10:02 AM
@Shea top unfortunately doesn't necessarily mean that the entire table won't be processed anyway
As I think is this case
 
@Shea The subquery want the average of all matching result. How do you plan to limit it?
 
hmmm not sure I'm going to bed
 
@BenjaminGruenbaum I would wait the necessary time to add a complete index and see if that improves it
 
That's ok. You can also sleep in a chair.
 
I guess it would have to be on the inner query at this point
 
10:05 AM
@BenjaminGruenbaum If you drop old historical data (before 2016-01-01) will it run fast?
 
Hmm, when reveal.js doesn't fit my needs, is there a other way to create web-presentations?
The way the 'controls' work is not how I want them to behave :(
 
@BenjaminGruenbaum If the historical table has many null close rows, have a closing table that contains only close rows may help.
 
@Loktar not sure if you're into arcade, but do your remember this ?
 
10:39 AM
 
10:53 AM
Hey, I´m currently doing a React course, but I run into some unexpected problems here:
The Code is available on https://github.com/ReactjsProgram/React-Fundamentals/tree/video5
After I downloaded the Folder I navigated to that folder an run
npm install (successfull) and npm run start (successfull).
However, the App is displaying as expected, but when trying to route between components
I get this error: "index_bundle.js:20068 Warning: [react-router] Location "/battle?playerOne=tylermcginnis&playerTwo=jake" did not match any routes"
and the tutorial itself is too good to just chose another :P
 
AngularJs
 
Good Morning
 
I'll try an indexed view
 
@Neil Oldest trick in the book, once wrote a script to achieve that on a network <: worked beautifully
 
Morning Angularaaaa
 
11:09 AM
Mornin'
 
I don't think anyone here knows JS
12
 
@elsololobo Well, maybe the route actually doesn't exist and you're supposed to write it during the tutorial
 
but this is the final code of the tutorial chapter. I tried both, doing it while doing the tutorial and after that didn´t worked I copied the code from github
 
@elsololobo You're probably on the wrong branch then, try the solution branch
 
Okay I will try it, but this would be the entire code of the tutorial. And the branch is hardcoded linked in the tutorial. But I will give it a try
does the "name": of package.json must match the folder name it is in? No or?
 
11:21 AM
Indexed view didn't help
@Neil
 
hm, okay the solution branch works. Thanks for the idea of trying this.
 
@elsololobo I don't think you understand what I mean by branch. I'm talking about a branch in the git repositoriy
Ah, okay
Have fun then :)
 
cheers :)
 
11:40 AM
@BenjaminGruenbaum sorry to hear that
The inner hoi wasn't an improvement?
@Abhishrek would have liked to see that ;)
 
@Neil what is yourcompany using
my school used windows xp way too easy to spread viruses over that
 
@Abhishrek windows 7 I suspect
 
@Neil might work let me boot up a 4 year old laptop to see if I have it.
 
@Abhishrek only if it isn't inconvenient
TIL that the upper bound for emulating a human brain at the quantum level is approximately 2.6 × 10^42 bits
Meaning that the total number of possible states that the brain can have is at most 10^(7.8 × 10^41)
 
@Neil fascinating
 
11:52 AM
The theoretical limit of calculations that can be performed with 1 joule is 6×10^33 operations per second
I don't know how they can determine that
I am on a very interesting part of Wikipedia
 
@Neil operations per second? That seems odd. joule is a unit of energy, not power
 
> performed with
 
@littlepootis ok?
 
The Margolus–Levitin theorem, named for Norman Margolus and Lev B. Levitin, gives a fundamental limit on quantum computation (strictly speaking on all forms on computation). The processing rate cannot be higher than 6 × 1033 operations per second per joule of energy. Or stating the bound for one bit: A quantum system of energy E needs at least a time of to go from one state to an orthogonal state, where h = 6.626 × 10−34 J·s is Planck's constant. The theorem is also of interest outside of quantum computation, e.g. it relates to the holographic principle, digital physics, simulated reality, the...
@KendallFrey I though that was odd too
 
12:00 PM
Sounds like it would be more accurate to describe it as "per joule-second"
maybe
still odd though
 
.......... just got a response from a test case ..... why on earth is .git commit history is considered necessary to be submitted....
 
@GeoPhoenix from your test case? What are you testing?
 
the testee, of course
or testees, if there are multiple
I just went from quantum physics to bathroom humour. I'll show myself out.
 
@KendallFrey ok ok, no need to be testee
 
12:10 PM
hi folks, can u put a link in a variable as HTML? it says illegal token
 
As in, in a JS string, @KirstyMarks?
 
yes
well im declaring a variable of a block of HTML code that i want to throw into a div
 
Suse, that's possible.
 
did you escape " properly?
 
but i need a link in there, but its coming up with illegal token,
i think so :S
 
12:12 PM
show us :v
 
^
 
var sunnyweather = "<div class=''>
    <a href='http://www.google.com'>Google!</a>
    </div>";
i have probably got this wrong, i copied it from a question on here
 
@KirstyMarks replace ' with " and vice versa
HTML doesn't tolerate single quotes
 
@KirstyMarks You can multiline them like that
 
use ` instead of "
then you can use multiline strings
 
12:14 PM
still came up with illegal token :S
 
note that's ` and not '
 
do what kendall said
 
ok, i will rewrite this
perfect, worked :) thankyou
 
@BartekBanachewicz HTML doesn't tolerate? LOL..
 
@Neil just an interview test case , it didn't mention to even use git .. yet it was mention as negative in the result....
 
12:18 PM
1103
Q: Creating multiline strings in JavaScript

NewyI have the following code in Ruby. I want to convert this code into JavaScript. what's the equivalent code in JS? text = <<"HERE" This Is A Multiline String HERE

All you need to know, @KirstyMarks.
 
Be warned: some browsers will insert newlines at the continuance, some will not. — staticsan Apr 30 '09 at 2:22
amazing
 
thanks @cerbrus for that
 
seriously is there a single thing that ES6 introduces that isn't broken in one way or another
 
@GeoPhoenix I would have made the same mistake. Evidently, the git information is worth providing
The only word that is spelled incorrectly is incorrectly.
 
@Neil if i was the reviewer i would put ".git is missing" in "Minor negative" instead of NEGATIVE
 
12:22 PM
@GeoPhoenix then it is not all bad
 
@BartekBanachewicz Babel :-D
 
using hyphens in your emoticons makes them unbelievably creepy
 
Why so?
 
:—D
 
12:25 PM
flagged
 
> Any new line characters inserted in the source are part of the template literal.
 
Wait. :-D is a smiley? I thought it was a jellyfish all this time
 
uh so why don't some browsers insert those?
 
:-) was the first emoticon
2
 
Nothing can quite make a phrase uncomfortable like an inappropriate emoticon. "My grandma died this week. Keep her in your thoughts and prayers. :-) "
 
12:32 PM
I need quick help.
Can someone check this out
I need to make the script to apply to the checkboxes. When the checkbox is ticked on, it should display that, if both are ticket, they should be mixed up, both displayed, etc.
 
OK... now that Edge no longer supports IE emulation, what is the recommended way to test the behavior in old IE?
Use case: I want to scream at my user if he accidentally switches his IE11 to IE7 mode
 
@JanDvorak maybe... test it in old IE
 
greetings, programs!
 
I'm not a program
or am I
 
I've found a Microsoft page where they offer VM snapshots with old IEs, but they only go down to IE8, and using a VM seems a little heavy-handed
So... which VM should I get? Must be one of those listed here and must be free for commercial use.
 
12:39 PM
ok I think I am done smacking my head against a wall when trying to figure out a means of solving an SO question (stackoverflow.com/questions/37066665/…), either with a Factory method or other some-such solution... so I am contemplating a bounty on my problem. what would you fine people recommend is the going rate for an SO bounty?
@JanDvorak i'm a fan of VirtualBox
ah you edited your question... then i retract the VB suggestion
 
I'm a fan of windows calculator and notepad
 
@BartekBanachewicz not an abacus and parchment? :D
 
I don't use paper
well, try not to
 
user3119231
hello.
 
greetings!
 
12:45 PM
VirtualBox has an IE image for and seems free. Its extension pack isn't, but I don't know what that it is.
 
@JimmPratt I prefer butterflies
 
@Neil ha!
@JanDvorak well the extension package only does stuff like support for USB 2.0 and USB 3.0 devices, and I think RDP and PXE network booting. so if you can live without that, VirtualBox should do fine.
 
OK... apparently IE can coexist with Edge and even lives hidden within each copy of Win10.
 
@JanDvorak IE offers an emulation of the older versions
 
@KarelG that's not what he means
 
12:56 PM
@JanDvorak So, use an IE11 VM and set it to IE7 mode
 
If you uninstall IE enough times, you will eventually get IE 8
 
i just emulate the older IE versions if i need to test there
 
@rlemon I tried those all dressed chips over the weekend; they're not even that good. You Canadians are crazy.
 
@ndugger inb4 sorry
 
12:58 PM
heading home.. i'll pester you people again about the bounty later tonight... take care!
 
@JimmPratt take cake (cake is better)
 
@Neil i was always told the cake is a lie!
 
@JimmPratt the lie is a lie
 

« first day (2046 days earlier)      last day (2905 days later) »