« first day (2313 days earlier)      last day (2653 days later) » 

12:34 AM
lol
 
1:24 AM
@Mosho well, there's Siddig El Tahir El Fadil El Siddig Abderrahman Mohammed Ahmed Abdel Karim El Mahdi who played in DS9
 
1:48 AM
I am creating a Github repo
but I have some pieces of code taken from some websites
what should I do?
 
dunno, leaving a comment on where you got the sources from would be a good start
 
I visited the author website just now
it is not reachable
I cannot find any github related page anywhere
I am looking for the author but I do not remember exactly when and how I got this
my repo will be 100% open source so I can leave a comment?
the script was called "a_library.packed.js"
it helped me editing the JSON through a GUI in the admin page
if I can state in the repo what I am saying here, I would just do it
 
2:23 AM
I think that's cool enough
@neoDev I'm also borrowing some unlicensed work here github.com/langri-sha/langri-sha.github.io/blob/gh-pages/src/…
 
3:20 AM
Anyone know how to use jQuery's $().remove(); in a way that it cannot access the element later on?.. Or moreso what I can use instead of $().remove();. Or, is it possible to select only elements that are active in the DOM with jQuery?
 
@Alesana what you mean by "in a way that it cannot access the element later on?"
 
If you want to keep track of multiple elements as active in the dom, perhaps you can add a class to those elements and later on use $('.myclass') to access all those elements. Afterwards when you no longer want to keep those elements as active, you can remove this class from those elements? Perhaps there are better ways to do this?
 
3:36 AM
That's a good idea @john
I mean, if I do $('.element').each(function(){...}; it will also iterate over elements that have been removed from the DOM
 
Meteor reactivity blows.
 
@Alesana As far as I know, if the elements have already been removed from the DOM, then jquery cannot iterate over them. It will just iterate through the existing elements that have the mentioned class.
 
Unfortunately, it does @John
Ah, reading more it only does if you have reference to the node from before you removed it. Maybe the parent element keeps references to all child elements even, ie they are removed from the DOM but the parent element still refers to it
 
3:57 AM
@BadgerCat Haha, only, she says. Will it be recorded or streamed? I'll be there in spirit :D
 
4:12 AM
can anyone help me fix this nodejs that I am trying to learn. the error says unexpected token function. jsfiddle.net/02dbx6m9
never mind, I got it to work, just need to add brackets.
 
You had an extra brace } at the end of the first function
 
well yes thanks.
 
4:41 AM
Humble Freedom Bundle: A special bundle for a special time. All money goes to American Civil Liberties Union and other charity that fight for freedoms. Limited Availability. Also include books like "R in a Nutshell" and "The Smart Girl's Guide to Privacy".
3
 
now I am having an error TypeError: callback is not a function. why is callback not a function?
nodejs really does complicated.
 
Yeah. Want to learn C#, Java, or PHP instead? Much less callbacks.
 
well you guys keep talking about nodejs that's why I want to know what is nodejs.
 
@jacobian I know I don't keep talking about it :p
But then I'm a sheep.
 
do you count sheep when you go to sleep?
 
4:54 AM
@jacobian you've passed something other than a function and treating it as a callable, that's why you're getting the TypeError
 
so how to fix it?
 
!!> var foo = null; foo('bar')
 
@FilipDupanović "TypeError: foo is not a function"
 
go to the function where you're calling callback() and trace the stack back to where you incorrectly passed something other than a function as the argument for callback
 
I don't understand, I got this code from tutorials and the tutors can get it working while me get an error.
 
4:59 AM
@jacobian I dream of pastures and two legged servants. Your fiddle code do not seem to create a case where that would happen; is this happening in some new code?
 
here I made it into stackoverflow question. stackoverflow.com/questions/42218120/…
@Sheepy feel free to find duplicate
 
@jacobian Not even worthy of a dup.
 
well thanks, I guess?
 
@Sheepy sheepy can you fix the code and put it in jsfiddle so I can better understand
I am still learning nodejs here.
well I can get it working finally.
haha... thanks SO
 
5:45 AM
So much wrong with your code...
 
well yes, i am still learning nodejs here.
I'll fix it later and will update again if any error happen
i think I want to create photo albums using nodejs.
will see if that's going to succeed
 
To be fair, I am sure I wrote worse code at this stage. Coders today are dealing with more complicated concepts than when I started. I didn't learn async programming until I have a few years of code under my belt.
 
you do know I am using async programming. you're quite an expert sheepy
 
Do you people also know each other in real life ?
 
Some of us here do. I don't. I am practically hatching my baby in my room.
 
5:59 AM
heh? hatching ... isn't it the process of sitting on your egg until the young ones come out ?
!!urban hatching
 
@FlyingGambit Hatching The sexual act of climaxing in which two people are role playing, one as an ostrich and one as an egg. Typical in the North Country of New York, this act involves the male (or more masculine partner) to sit on the female (or more feminine partner) just as an ostrich would sit on an egg. When the female climaxes, this is considered the "hatching" of the egg.
 
wow now I know
 
@_@
 
this is the only example of sex and eggs I know of youtube.com/watch?v=NqA-mP0MhZg
 
Just an reaffirmation that, in a male-dominance society such as programming, anything can be sex related (sigh)
 
6:02 AM
@FilipDupanović Almost opened that link ... I am in office
 
it's safe for work, PG 13
 
@Sheepy Most developers maybe male but most of the females are managers
 
Tried that. Strangled some. Did the work for others and fired them all.
 
Keep up the good work
But a team full of male would suck
 
I have the impression that an all male team would be all about phones, cars, and sex. No?
 
6:08 AM
@Sheepy yes, thats why we would need a mix for the occasional healthy office flirting
 
phones, cars, sex, 9gag, the gym
 
really gag ?
!!urban gag
 
@FlyingGambit gag the point where one is about to throw up due to a cock reaching too far down one's throat, whilst giving head.
 
not the act of gagging, but the website 9gag.com
 
oh I thought it was a typo
 
6:10 AM
the gym has become quite popular in recent years, I feel like I'm the only developer that's not doing it
 
I have been trying to get a gym membership since last year :C
 
the youtube video is inspiring.
 
"- hey bro, watcha doing? - I'm doing my legs this week. - I meant in life, duh"
 
Eat 5 times, work, exercise, sleep 9 hours = my dream life
 
most managers that are female don't really understand programming. they only know where to send bugtrack to each programmers
 
6:12 AM
@jacobian yeah, I'm not into food fetishes, but the movie has some super erotic scenes
 
its still PG 13 ?!
 
yeah, well, it's only sexually suggestive
 
so do any programmers here celebrate valentine's day?
 
@FilipDupanović There are some restaurants in Japan, serve food on naked ladies $_$
 
@jacobian I used to. Before the baby is born. I'd buy two steaks and cook at home. Feels like a lifetime ago.
 
6:18 AM
guys I need some help
 
@jacobian Not in this company, in my last company we celebrated a lot , HR team organised many events
 
I cannot figure out how to update an object string into an object
 
@Sheepy Ask mommy to help too
 
@Sheepy are you planning to have another baby?
 
@neoDev what does that mean ?
 
6:20 AM
this is the string
 
@jacobian only in spirit, never managed to have a gf on Valentine's
 
winnersArray[i][2][xxx]['name']
this is the new object
obj.entities[winnersArray[i][2][xxx]['name']]
for some reason I cannot do just
 
@FlyingGambit Already helping, which is the primary reason I have time to chat. :)
 
winnersArray[i][2][xxx]['name'] = obj.entities[winnersArray[i][2][xxx]['name']]
otherwise it becomes undefined or something..
 
@jacobian Not really...
 
6:22 AM
@neoDev shouldnt xxx be "xxx"
it should work, check if anything is undefined
check its value after each index
 
@FlyingGambit yeah, their culture seems super advanced... religion and feudalism has really stiffled talks about sexual arousal in my region
 
Baby wake up and is silently staring at me from his bed. Bye all Q.Q/
 
if I do:
winnersArray[i][2][xxx]['name'] = {"ok": 1}
 
@Sheepy Bye bye
 
then it is updated
so I don't understand.....
I even tried to remove it, then add again
and didn't work
delete winnersArray[i][2][xxx]['name'];
winnersArray[i][2][xxx]['name'] = obj.entities[winnersArray[i][2][xxx]['name']];
 
6:25 AM
is this line undefined ? obj.entities[winnersArray[i][2][xxx]['name']]
 
no
it is an object as it is supposed to be
I've checked
 
if you put a debugger, just below the line and check both its value, are they correct ?
 
yeah
both
I even checked the typeof
 
Then it is probably getting changed somewhere else
 
mmm
maybe you're correct
ok let me try a thing :)
 
6:30 AM
mailchimp.com any open source code like this website
like mailchimp.com application sample source code ?
 
yeah... figured out
it was inside a loop
last cycles contained undefined values
and they were overwriting it with undefined
because I were missing a if(value)
xD
 
Hi
 
@developer 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.
 
help needed related to JS
i am new to it
1
Q: Android - How to get get result string from Webview using Javascript?

developerI am using a webview to show captcha like this: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.captcha_layout); mContext = this; progressDialog = new ProgressDialog(mContext); mApp = CommonForApp.getIns...

@neoDev @IvinRaj
 
6:49 AM
@developer Please do not ping users
 
ok sorry
 
yes @neoDev
 
I've looked at your question, unfortunately I cannot help you
 
@developer try in android chat room
 
okay No problem sir @neoDev
Any reference related that one?
 
6:52 AM
@IvinRaj from now you are muted
 
okay
 
7:22 AM
@neoDev so harsh :o
 
@KarelG what you mean?
 
@Sheepy Sheepy, if your kid is making noise and you're calming him, is that then the silence of the lamb ?
 
7:38 AM
Hi
 
@faraa 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.
 
0
Q: update a canvas Image after upload in angularjs directive

faraaI am using angular-file-upload (nervgh) to upload file...I used main library and developed a directive that extends it features as my need. Now I want to add canvas Image for all uploaded file and set an default image for some types and set real image for type image . But I can not get context of...

 
8:10 AM
I just created this github.com/neodev2/ils
 
@neoDev Nice! Put it up for review on Code Review
 
thanks ok :)
 
Madara, I was just rolling through some edit reviews
apparently some people makes it a game to add tags whose are nothing more a different versions of a given tag (eg asp.net 4.0 -> added asp.net tag)
 
8:29 AM
0
Q: update a canvas Image after upload in angularjs directive

faraaI am using angular-file-upload (nervgh) to upload file...I used main library and developed a directive that extends it features as my need. Now I want to add canvas Image for all uploaded file and set an default image for some types and set real image for type image . But I can not get context of...

 
8:40 AM
@KarelG They're usually people trying to game the system to get easy rep
Because they feel like they can't answer.
 
i just reject with irrelevant tags if it's really irrelevant.
that effort for just 2 rep points ...
 
@KarelG It's not really an effort.
They shoot in all directions, what gets rejected gets rejected, what gets approved nails 2 points
Flag them if you see repetitive behavior from the same user
 
here I have fixed the code to make it easy to read. jsfiddle.net/uqLgb868/1
 
9:00 AM
google.com/doodles/teachers-day-2016-ecuador .... the last one is so kawai
 
:3
( °///° )
 
plzzzzzzzzzzz someone help me :(((((((
 
Sowwy, don't know angular that much
 
can anyone who an expert in nodejs run that code and shared with me the result.
my results a bit fiddly
 
!!urban fml
 
9:06 AM
@FlyingGambit FML means Fix My Lighthouse. Back in the 17th Century, lighthouse keepers were tthe butt of everyone's jokes. When a lighthouse keeper was made fun of, his retort would be "why dont you fix my lighthouse!" which was shortened over time to FML. This term was made famous in the great battle of the Sole Bay in 1902 where 14 peolpe died and 1 person broke their glasses.
 
9:16 AM
@FlyingGambit indeed...
 
@CapricaSix hahaha
 
!!urban duck
 
@RaisingAgent duck A duck is a wholly wonderful creature. They also say "quack"
 
@CapricaSix is it okay to call some one a duck instead of a f°°k?
 
@KarelG Good one XD
 
Hey guys
 
@user3227070 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.
 
I tried for (var items in data) , then using data.items.naam for instance, but that doesn't seem to work
 
@faraa you have posted that SO question three times already. Not everyone here uses angular or would have enough time to check your question (some of us are at work). Please be patient don't post it again here.
 
@user3227070 Nobody is going to look at your code unless its well formatted
 
9:32 AM
^
 
@user3227070 it's an array of objects. Check for how to loop through an array. Then for each items, get your items. (PS: best to name your dutch keys as english to be consistent)
(hint: for-loop or ES5 forEach )
 
Created a fiddle, my bad for not doing it in the first place
 
I'll check that out, thanks @KarelG
 
@user3227070 Don't use for..in on an array. Use forEach or a normal for loop
 
9:37 AM
keh
checking dates isn't important anymore ...
 
@BenFortune Yea, haven't worked with Jquery/js in years, so forgot about the correct syntax, using C# instead. Got it working now with a simple for loop now.
So thanks guys
 
!!urban loop
 
@RaisingAgent loop driving around an area to partake in the smoking of marijuana, drinking alcohol, or just for the hell of it
 
10:01 AM
Does anyone in here happen to have knowledge of silviomoreto's bootstrap plugin bootstrap-select?
 
@user3227070 for (var items in data) alert(data[items]);
@user3227070 for (var items of data) alert(items); // Alternatively, in the modern age
 
I have a row with a select dropdown and a button that creates a new row, creating a new select dropdown. The problem is the new select doesn't work right off the bat (styled well but I can't select anything), so I go ahead and do $('.selectpicker').selectpicker('render'); or ...('refresh'); and in that case it makes two selectpicker boxes where I only wanted one
 
Google Chrome's sandbox feature hit by a patent troll. Supreme Court declined the case, now Google is ordered to pay $20mil.
 
@Sheepy Lol I tried that before. I made the mistake of doing data.items.id, and then data[items][id] while it should be data[items]["id"]. Lol.
 
Thanks
 
10:07 AM
Modern age doesn't seem to work yet though :)
 
@user3227070 Curious. It is supported by all browsers except IE.
 
Using chrome
Haven't used exploder in ten years :)
But I'm working in MVC so that might be whu
why*
 
@user3227070 Works for me in Chrome: jsfiddle.net/uo1hpck4/1
 
lol exploder
 
@Sheepy That does work for me as well, accessing the properties by just using items doesn't though
Gives me undefined when I try
While using full path gives me the proper id
 
10:16 AM
@user3227070 Weird. Chrome has for of since ver 38 (2014-10-07). But if it doesn't work for you then it doesn't work for you.
 
Well that's okay, it's only a little bit longer but thanks for the help! :)
 
can anyone link me to that site in which someone had made this amazing flow of windows popups in a 3d scene, like the end of solitario games? I think it was using threejs
 
Hello guys any react-native developer here ??
How to override style in react-native
[style of button](https://paste.ofcode.org/37NdNNQJeDRs7WQQTJW6sRc)
I need same style except Flex in other screen
 
markdown isn't parsed on multiple lines
 
10:41 AM
@rlemon a cool ksb rocket gif that raises up quite fast? (it can go incredibly wrong as long as it's funny)
 
10:58 AM
hi guys. I wanted some help. I am searching for plugins which can give an automatic chat interface (like what is there in https://dev.botframework.com/ home page cellphone container). Is there any plugin you would suggest?

The plan is to have the conversation in JSON and load it via the plugin to display it in such way. I found out that what botframework uses in their home page is a video and thus is not flexible for changes later.
 
@vignesh Make your own.
 
@BenFortune: Yup. That is the last option if I dont find any plugins for the same
 
You aren't going to find a "plugin" to do exactly what you want.
A plugin for what?
 
Load a JSON and have a conversation using it with appropriate things like buttons, images, etc.
 
You're aware what a plugin is, right?
 
11:06 AM
yes.
 
Okay, a plugin for what?
 
i am sorry if I used the wrong word.. I guess I should have rather said a library
 
plugin, library , frameworks , they all just some code
 
They are, but they have different uses.
Like I said, it's highly unlikely you'll find a library to do exactly what you want.
Make one.
Especially if you're wanting to expand on it
 
11:24 AM
It's very likely you'll find plugins to do exactly what you want
But many times unnecessary as it includes lots of extra unused JS
Unless you're really utilizing it
 
@Alesana Find it
 
And delete the parts of code not being used?
 
No, just find me a library going off his description
20 mins ago, by vignesh
Load a JSON and have a conversation using it with appropriate things like buttons, images, etc.
 
@Alesana That sounds like lot of work
 
I wish there were a program that could find parts of JS/CSS that your script doesn't use
And I misunderstood @BenFortune I didn't see he was looking for something specific
 
11:28 AM
@Alesana There's plenty of libraries that do that.
Look up tree shaking
 
:O Wow I had no idea
 
Might be called something different with CSS, not sure
 
It shouldn't be hard to find, thanks for the tip
 
@Alesana Webpack automatically removes code branches that are never in use.
Webpack 2, anyway.
 
11:52 AM
Hello, could someone answer something for me once and for all, which do I use: .on(), live() or click() when using jquery to attach a function to a click event?
 
@captainjamie 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.
 
@captainjamie on
or click
 
@BenFortune Ok, thanks
 
@captainjamie do not use jQ
 
in AngularJS, is it possible to assign data from HTML tags?
nevermind
ignore the retarded question
 
11:59 AM
@tereško We're always happy to be your rubber duck.
@neoDev Why not?
 
@captainjamie On is useful if you want it to be applied to an element which is placed in the DOM after the event listener is made
 
@MadaraUchiha dunno. guys say it's redundant
 
@neoDev It's not if you know your usecases.
 
if you think about it, you can go even without
:D
 
@Alesana Ah yes, that is a good point. I'm not doing that right now though, but yes, you're right.
 
12:01 PM
I am a big fan tho
 
"Don't use <Tech>" is never a good statement to say, unless you are sure that you know what the usecase is, and what problem <Tech> is trying to solve.
jQuery abstracts DOM ugliness. If you need to support IE8 and aren't using something like React or Angular, jQuery is a fine solution.
 
@MadaraUchiha "<statement> never a good statement to say" is never a good statement to say!
 
@captainjamie not funny dude
 
@captainjamie Every rule has an exception. If you find a rule without an exception, it's the exception to the rule that says that every rule has an exception.
 
@MadaraUchiha XD
 
12:03 PM
There we go, paradox fixed
Thanks for that @MadaraUchiha
 
ok I got it now. big Madara
 
12:35 PM
@MadaraUchiha I am in that "I have no idea where to even begin" stage of making an AngularJs app
and to make it worse - it is a migration of a legacy app
which means that I have to add fallback to the old behaviour all over the codebase
it's really frustraiting
 
@tereško AngularJS in general is pretty frustrating
The problem is that no one really managed to figure out a good architecture for frontend, which developers (both senior and mediocre) can follow consistently.
JS is so loose, and you can break the rules so easily and without immediate consequence.
React isn't much better in that regard.
 
12:52 PM
@MadaraUchiha and that's exactly my problem
and I do "architecture" .. but when I start trying to do something with angular, I get this feeling of staring in abyss
 
Does it stare back?
 
nope
 
hey guys, I was just wondering how I would setup a javascript listener dra
 
@tereško Angular 2, at least?
 
no, angular 1.x
 
12:54 PM
Of course -_-
 
I can't migrate to 2.x
too much legacy code
 
sorry I meant set up an event listener for dragging google maps?
 
thanks
 
does anyone have any resources on how game of life computers work?
 
12:57 PM
"game of life computers"?
 
Conway's Game of Life?
 
@Sheepy wow this is a nice bundle! Thanks for linking
 
It works according to the rules of the game. Are you looking for a blueprint or something?
 
well, is it using a composition of logic gates, which part does which job, what's the minimal example...
it looks like a simple turing machine, not sure if it's even a computer
and couldn't find much about it after a quick googling
 
1:02 PM
@towc a turing machine is a computer
The author's page on it may be enlightening: rendell-attic.org/gol/utm/index.htm
 
@KendallFrey I'm probably looking for this
@KendallFrey the universe is a computer as well... I'm talking about the common meaning for computer, with cpus and stuffs
 
I always think of GoL when pondering the simulated universe hypothesis
Not sure what you want, a contemporary CPU simulated in GoL?
Because that's never been built
 
1:16 PM
but is theoretically possible for sure, right?
 
You do understand what Turing completeness is, right?
 
well, ofc it is theoretically possible, but I was hoping you'd give some other comment like "but would require more than X GB of data for a minimal setup"
anyway, gotta go
thanks
 
it may take a billion trillion petabytes, but that has nothing to do with whether it's possible
 
@towc OISCs would have an even simpler computation model en.wikipedia.org/wiki/One_instruction_set_computer
then there's also hypercomputers or sending your shitty wristwatch to orbit around a black hole
 
1:39 PM
Unrelated: Do 2K post editors still get 2rep for an edit?
Since their edits don't need to be approved
 
no
 
1:51 PM
someone understands why my matrix effect performance slows down after some time? jsfiddle.net/wf87c5jk/2
I am removing the elements from the body after they fall, but is something else I guess
 
@neoDev Profile it?
@neoDev Just ran a quick one, each is slow
 
uh profile... never used it. you mean the one in dev tools right?
 
Also try requestAnimationFrame instead of setTimeout
Yeah
 
@ben why?
 
To identify a decimal number I wrote this regex ^-?\d+(,\d+)?(\.\d+(e\d+)?)?$
The solution however was ^-?\d+(,\d+)*(\.\d+(e\d+)?)?$
 
1:56 PM
@FlyingGambit wat
 
Which one would be more appropriate to use ?
 
Neither?
What are you trying to do?
 
Trying to solve regex problems regexone.com/problem/matching_decimal_numbers
@BenFortune Do you think there is a better solution ?
 

« first day (2313 days earlier)      last day (2653 days later) »