« first day (2217 days earlier)      last day (2714 days later) » 

12:06 AM
@Zirak nice
I really liked it
 
whos me
 
@KevinB who ARE YOU
 
oh this kevin b!
So sorry, didn't make the connection at all
party hard, @Loktar? :P
 
Slept hard
 
i know i don't post as often as a lot of others here, but hell i've been here a while, :p
 
12:11 AM
fair enough
 
lol @KevinB yeah this is the second time you've been asked that today
 
oh you have, kevin the B
 
I see you all the time..
 
pfft, i've been here longer than you kevinb
 
12:11 AM
or just notice you all the time idk
hah yeah @david you've been here a long time
 
can someone tell me why that wouldn't display the second alert when an li element isnt there
 
if you never made that amazing fiddle I would never remember you
but you earned mad respect for life
 
:DD someone remembers!
 
@Tantrik try logging the inside of the condition
 
dude how could I forget something so great?!
 
12:12 AM
if only javascript was as simple as it was back in those days v.v
 
hah yea
even by todays standards it's pretty badass
 
@towc
@towc what do you mean by that
 
im learning react now, so maybe soon i will be able to do another cool thing
 
@Tantrik you have if( cond ){} else {}
now try console.log(cond)
you'll see it
 
ooooh hmm ok let me play with that
wait why would I want to log a condition im confused lol
oh wait no I get that
but how can you log document.getElementbyTagname
I thought pretty much that's what was happening
 
12:18 AM
As soon as the question with the elections in the US has been solved, isn't it time to decide are inline styles at the react project good or bad? Need help with this, because I have a back-end development background and trying to implement some frontend stuff at the moment
 
@Polyakoff Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
wait a minute I might have it lol
 
@Polyakoff I prefer traditional stylesheets, but if you like inline, look at github.com/Khan/aphrodite
It makes <style> tags based on inline-like styles.
 
@david It can't replace Flash if it is as simple as before and we'd all be using some new language from Apple, Microsoft, or Adobe instead.
 
still a little confused
rewrote it to that without any luck
 
12:25 AM
@Tantrik what does document.getElementsByTagName return?
log it and
 
@Tantrik getElementsByTagName never returns null, so that's why your check fails
 
@Luggage v interesting
 
we call it "magic"
because it it's magical
 
@Luggage I really don't prefer anything, just a matter of future convenience for me. Don't know which approach is easier to change/maintain in future. I have doubts that inline styles would be that much reusable in components since different projects have their own styles. Probably, the best approach will be to have a very own folder with js and css for every component

Thanks for the link, I checked it out. But didn't get quite well what's the initial problem with inline styles this library is trying to solve?
 
@towc it returns an empty array... is that the 'always true' thing going on there?
its seeing it as there but empty?
 
12:28 AM
true inline styles don't allow things like hover styles.
 
even though its not? lol
 
think it through
is [] === null?
 
apparently not lol
I would have thought it was since it's empty but null = ceases to exists I guess
 
@Loktar you made me curious
Mar 1 '11 at 23:29, by david
this is where the isometric thing ended up: http://jsfiddle.net/ctrlfrk/hNaYu/74/
that's pretty fuckin sweet @david
 
12:30 AM
yep and check out that year
 
yea I did 😛 don't worry
 
@Luggage thanks. looks like there really is not any reasonable vote for inline styles all in all
 
@Loktar I was slightly disappoint when I saw the jQuery at the end, but I let it slide because it was so awesome
 
And in 2011, no one yet knew that jQuery would be responsible for the deaths of millions of puppies.
 
fuck man... over 5 years ago
 
12:34 AM
I'm just poking fun. he used jQuery for onready and a keybind. after all that wicked code. 😃
 
good old jquery
this is a slower version jsfiddle.net/ctrlfrk/hNaYu/64
it sends out little squads of 5 and is easier to keep track of
i made other changes but i lost track of which revision it was, and people kept updating so i have no idea
 
@rlemon Is the stream coming up ?
 
i wish jsfiddle had some kind of timeline/history/branch tracking thing
 
idk, don't know if I feel like playing tonight
 
12:38 AM
i should stop being lazy and actually setup obs
 
I wish I could stream
 
obs isn't too hard to set up
 
it isn't
 
couple months ago our upload speed got dropped to 1Mbps
 
in fact these days i think it has the proper defaults all ready to go
 
12:39 AM
but i don't like just having nothing but a single scene with nothing to put up when afk, etc
 
ahhhh, so you mean actual proper setup
yeah i just used notepad messages :D
 
yeah, it's setup enough to just stream junk
 
the problem is you don't get any viewers :( at least i didn't
 
don't have my ptt setup, so no voice :p
just doing boring shit atm tho
skyrim to come later
 
Wow, the roaming simmulator.
 
12:51 AM
idk, we'll see. I might stream later. had kinda a shit night so not feeling games but starting to cheer up 😃
 
yeah these world quests are awful
i liked them the first week
but... now it's just a chore
planning out my new skyrim character
 
being sick sucks
 
Think i'm going to do some kind of... heavy armor, destruction character
may or may not level 1hand weaps
 
three different quite painful parts of my body in three days
 
@rlemon What happened to your night ?
 
1:05 AM
not worth getting into, few things.
 
Just lending an ear
 
@rlemon my condolences
 
My current skyrim character is a level 1 orc that uses a bit of everything
never leveling up makes it a very different experience
 
1:50 AM
@KendallFrey want a 4th?
 
morning to all \o/
 
@rhavendc Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@phenomnomnominal I'm afraid to ask which one you're thinking of
 
m59
// Poll:
// A.
const setsOfArgs = []
string.replace(pattern, (...args) => setsOfArgs.push(args))
// B.
const setsOfArgs = collect(push => string.replace(pattern, (...args) => push(args))
// C. ??
 
2:09 AM
@KendallFrey ;)
 
@m59 Neither
 
m59
@Meredith There's a C. for that =D
What's better?
 
Wtf are you doing calling an array const and then pushing to that
 
m59
what's wrong with that?
 
that's actually valid, the identifier always points to the same array
even if the array is mutable
 
m59
2:10 AM
I prefer immutable array, but const is better than not
My proposition is assuming an immutable library is not an option
 
What are you trying to do?
 
m59
That's not relevant, but I need to collect the arguments from string.replace. There are other cases where the code in A arises, of course.
I've acquired an obsessive hatred for mutating arrays, so I prefer B. Just wondering if anyone else feels that way or has a better suggestion.
 
dat XY problem
 
m59
There's a better way to get the args?
 
Seriously though I'm not sure what you're trying to do
 
m59
2:13 AM
I don't have a problem, my code works great =D
 
Neither is particularly readable
 
m59
@Meredith The code does what ought to.
Can't really get any easier than A.
 
"collect the arguments" isn't very meaningfull
 
what's wrong with string.match(pattern)?
do you really need the index and full string arguments too?
 
m59
I need the exact same arguments.
 
2:15 AM
string.match(pattern).map((x, index) => [x, index, string])
 
m59
There might be another way (be glad to hear it), but I was really just wondering if anyone else preferred to use a function to avoid mutating an array.
 
that will give the same arguments
 
m59
hmm. Neat.
 
Define exact same
And for what
 
m59
I'm literally implementing the string.replace spec. It's for an async version. None of the npm library for async string replace are what I need.
I went the intuitive route and just captured the args that it produces and used those.
 
2:17 AM
Ok so what's the problem
 
m59
I don't have a problem lol
 
It looks like you have a problem
 
99 of them
:drops beat:
 
m59
I don't know where you're getting that. I've never presented a problem.
 
The problem is collecting the arguments
 
m59
2:20 AM
"Problem" assumes it doesn't work
I was asking opinions about mutating arrays and the preferred method of avoiding it
 
🎧 beats by lem
 
A solution can work and it can still be a bad solution
 
m59
Yeah, we're not going to get anywhere
let's move on
 
@m59 [...arr] done
 
I'm just trying to figure out why you're running either of those lines of code
 
m59
2:21 AM
I explained that
 
Poorly
Very poorly
 
m59
@david understood it perfectly
 
Ok
Yeah...just find the arguments the same way string.replace does it
No need to get weird
 
m59
It makes sense to me, if you want the argument from string.replace, just to get them from string.replace =D
It's simplest.
 
It's so easy to find them yourself though
 
m59
2:31 AM
but I can see the argument for the other way.
 
Guy got a question
guys
out of bounds error is type of overflow
?
 
FIGHT! FIGHT! FIGHT!
 
2:47 AM
✊
 
just found some sweet code
public booleanToYesNoValue (value: boolean): string {
    if (value == null) {
        return 'unknown';
    }
    return value ? 'yes' : 'no';
}
 
That's something
 
That looks familiar for some reason
was it on a coding horror post?
 
Quite possibly, but it's literally in our codebase
part of some analytics bullshit
 
I have code that stores string values of 'true' and 'false' for lookups against localstorage
I'm a terrible person
er, not localstorage. data-* values
😃
 
3:01 AM
🦄
 
Please anyone!! )::::
when you get out of the bounds of an array its an overflow right?
 
go away
 
NOO i need an answer
 
did you post a question on SO?
 
3:03 AM
@AsafFisher 42
 
Cant the stupid system blocked me
 
Why did the "stupid" system block you?
 
Its stupid because it does not tell you why...
 
209
Q: What can I do when getting "We are no longer accepting questions/answers from this account"?

ArjanDo not repost the question you were about to ask until you have READ EVERYTHING WE ARE ABOUT TO TELL YOU. While trying to ask a question, one could get: We are no longer accepting questions from this account. See the Help Center to learn more. Likewise, for answers: We are no longe...

 
So you can't think of any reason why it may have happened?
 
3:06 AM
Nope... i got banned once long time ago and i recovered my rep and had good questions but it blocked me again for some reason
 
did you delete shit?
get downvoted?
 
OFN
nope
 
then ask on meta
get it cleared up (or not, if that is the case)
 
Im considering createing new account and change my ISP ip
 
that is ill advised
 
3:07 AM
Go for it
 
Idk it seems that because of my first posts here they "remember me"
 
If you do that, ask better questions and be more patient.
 
getting around a ban with a new account is against TOS. do whatever you like, but it is ill advised.
 
My questions got improved by a lot since then, im talking about 2-3 years ago
 
Just don't mention that you're evading a ban and you're gucci
 
3:10 AM
buy really when you go out of bounds of an array is it an overflow?
 
Sure
What's the next question on your homework
 
Not homework a bet with friend haha i said that it is overflow and he keep claiming that its not because they call it in other name :P
 
depends
 
for example
 
let arr = [1,2,3,4,5];
arr[5];
 
3:13 AM
1 message moved to Trash can
@AsafFisher Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
that isn't js
 
ik in general
can you please return the code for 1 sec and then take it back to trush?
 
no
 
int[] ints = int[5]
for(int i=0;i<7;i++){
print(ints[i])
}
like that?
 
we will see
 
3:14 AM
so this is a type of overflow right?
 
id call it out of bounds error
 
yes but is it also a type of overflow?
 
not imo
 
I'm assuming that's java?
 
c++?
 
3:21 AM
0
Q: Array buffer overflow

user2455103I have been studying about buffer #include <iostream> using namespace std; int main() { char input[3]; for(int i=0;i<100;i++){ cin>>input[i]; } return 0; } The program goes on and on without stopping and with no signs of an overflow (tested in 2 linux boxes) The same happens if i ...

@Meredith lol
 
I took a nap today after work and I forgot to charge my phone
& I woke up and it was dead
 
3:38 AM
!!s/to charge my phone/my will to live/
 
@SterlingArcher I took a nap today after work and I forgot my will to live (source)
 
Oh yeah that too
 
I'm 2 weeks into my new project and I'm already stressed to hell :(
On the bright side, this show on IFC is amazing. Stan Against Evil
 
3:47 AM
Harambe wouldn't have voted for trump
 
Harambe would vote for Dwayne Herbert Elliando Mountain Dew Kamacho
 
Lol
 
4:44 AM
@Meredith actually he very well may have
Trump carried Ohio, and was one of the instrumental states in his victory
and Harambe was in Cincinnati
 
gorillas cant vote
 
Harambe was no ordinary gorilla!
/me presses F for respect
 
sup noobs
 
5:40 AM
^ I think my so called dignity died laughing at this pic.
Sorry guys
 
6:03 AM
0
Q: Multiply 2 Matrices using multithread

Stephenson HeuletMy program multiplies two matrices and there are fixed numbers of thread and each thread performs certain number of loops. I have a class "Work" which stores two 2D array whose values are taken from main thread class Work { int[][] array1; int[][] array2; int row; int column; public Work(int...

 
@StephensonHeulet Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
hello i'm having some problem in my program . Can anyone help me,please?
 
Try the java channel
 
thanks :) ...can u provide me the link please?
 
hi
anyone there?
 
6:25 AM
US election is mostly like Javascript. You never know what you gonna get.
 
@ГригорийШепелев Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
7:03 AM
So Americans are now Trumpians?
 
my ui-router was not working because i was using the wrong version. They had the old version in bower repo. Have the majority of the people move away from bower ?
Are people using something new now ?
So far all the front-end libs I really needed for running the app was in "bower_components" and the libs for needed for other things like running test cases, static server were in "node_modules". Now that ui-router stopped updating bower, I would need to install it through npm and it would put the lib in "node_module" folder
Is there any other frontend package manager ?
 
user3119231
7:30 AM
Good morning Ladies and Gentlemens. Let us enjoy the last days on earth.
 
user3119231
@Mr_Green You mean they live in Trumpica now?
 
user3119231
7:51 AM
@bitten now we both grills
 
My landing page is @ 6kb / 268ms. Thoughts on it? slow/fast?
 
that's ok
 
DomContentLoaded @ approx. 309ms
Is network latency time included as part of the DomContentLoaded
?
 
@Maurize yeah
Hillarians / Hillerica .. they lose this
 
user6820627
8:11 AM
Hello, World!
 
YOU
How to make iframe full width?
opps
 
width="100%"
now the height is the annoying part
 
user6820627
this:
 
user6820627
iframe {position:absolute;width:100%;height:100%}
 
user6820627
that's all.
 
user6820627
8:24 AM
remember:
  position:absolute
/*^very important*/
 
And a terrible idea if you have any other kind of content on the page
 
user6820627
what do you mean? you need jquery?
 
8:45 AM
I've set html5mode to true to remove # from the routes in my angular app. When I go to localhost:8080 the page will redirect to localhost:8080/view1, but when I hit localhost:8080/view1 directly, it gives 404 and looks for an index.html in view1 directory. If I hit localhost:8080/#/view1, then it works fine. How do I make it work on hitting localhost:8080/view1 directly?
 
@codeln Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@codeln You need to configure your server to return the same HTML for all those urls
How to do that depends on what server you're using
 
I'm using python -m SimpleHTTPServer 5000
 
@CapricaSix Do you have a boy friend ?
 
@codeln I'm not familiar with python unfortunately
 
8:50 AM
I also make it work using http-server command
which is based on nodejs, I think
 
If you're comfortable using node I'd recommend express and history-fallback
 
will look at it, thanks
 
@ivarni Damn, 12 files for 6loc
 
user6820627
localhost:8080/#/view1 =>
send request to localhost:8080
then angular will process #/view1
that's why 404 not found.
 
And 13 dev deps
 
8:56 AM
I tend to not worry too much about the size of my serverside JS but I'm sure there's more lightweight ways to do it
 
@LearnHowToBeTransparent yes, that's the problem. Need a solution, currently trying ivarni's suggestion
 
The ecosystem is crazy
 
user6820627
first you need to understand why do you need it. ivarni's suggestion is a good idea. but if you need it for seo, trust me, it's useless for seo.
 
It's not for seo, I have to deliver this to a client who doesn't want special characters in the URL, it's something to do with their architecture
 
heya
 
9:05 AM
@AlexM. Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@CapricaSix thanks bots, noted
 
user3119231
how would you realize an circle as loading indicator with "width" increasing over time?
 
user6820627
@Maurize no one knows.
 
user3119231
I will figure out myself, nerds.
 
user6820627
9:17 AM
is it code or ux question?
 
user3119231
both
 
user3119231
I will just use canvas. Is a good dude I think
 
user6820627
ok. i use bootstrap a lot and i want my code like this
.a {sameas: .container .col-md-6}
<div class="a"></div>
not
<div class="container col-md-6"></div>
can you help?
 
user3119231
you want to assign classes via css?
 
@LearnHowToBeTransparent You need to use css pre-processor for that
For instance, like SASS
 
9:40 AM
@littlepootis @SomeGuy The new notes are crappy as fuck. I bet 500 INR that the new 500 INR note won't stand sweaty Indian hands in Indian heat for 5 minutes.
 
Haha, you already got your hands on them, huh?
 
Yeah
They degraded coin quality (compare 2002's 1 Rupee coin to today's 1 Rupee coin...), and now they are after notes.
 
@AwalGarg What was the queue like?
Can imagine there was quite a havoc when an immediately defunct currency needs changing.
 
@BenFortune Wasn't that long. And, you know, some of us have arrangements and stuff to avoid the queue altogether :P
 
@ssube oh there's nothing bad, i just think if there were more questions about memes it would give a fairer advantage. i just don't recognise the majority of the names whereas my parents would be like 'yes bruce fairbairn did produce slippery when wet' kinda thing" lol
 
9:45 AM
it's not defunct, you have to transmognify it to electriity through your nearest Blank
 
Well, I am actually surprised that the country hasn't gone to shit at once. Things seem pretty normal for the most part.
 
@Maurize what happened? i see no change
morning all ^^
 
user3119231
@bitten Nothin' but a G thang
 
@FilipDupanović hey
 
9:48 AM
@Maurize hey grill
@AwalGarg that.. sucks
 
Make notes great again!
 
I have a 100 of those 500 notes.. I wonder if there's a way to legally exchange them all at once.
 
@littlepootis deposit in account?
 
deposit in bank ftw
 
@AwalGarg uh, yeah
 
9:50 AM
You can't exchange for new notes right now though. 20k a week, 10k a day.
Or if you have accounts in various banks, you know ^^
 
It's 4k here
 
I myself don't keep much cash, other than what they give as shagun wrapped in pretty envelopes. That amounts to around ~12k.
 
you need to keep all your money in the bank, so one day you can wake up and read the announcement that the money isn't yours anymore and that its used to repay debt
 
you keep all your money out of the bank, so one day you can wake up and read the announcement that your money isn't money anymore. it is paper.
 
someone from Zimbabwe can hi5 you on that, but he'll loose the ATM queue if he turns around to wave
 
9:57 AM
I wonder what all those people with all that black money notes of 500 & 1000 will do with that notes???
 

« first day (2217 days earlier)      last day (2714 days later) »