« first day (1388 days earlier)      last day (3559 days later) » 

12:00 AM
So then base it on the server system's clock and enable/disable processes based on that
Like, for every request that comes in, run a check against the time on the server to determine how you respond.
 
Yeah I get what you mean; but because of the reactiveness of Meteor I want to take users who are currently on the site seeing a 'countdown' clock til the next game to the game once the clock hits zero... so I really need some kind of reactive flag that gets published... if I do it based on a request from the user, that's 10,000+ requests for the server rather than one publish from the server to the users.
 
12:17 AM
is there any way to compile bootstrap as a series of templates, then dynamically create my own stylesheets to include only what I need on each page?
eg, if I needed carousel and scaffolding on a page, and the default css, but nothing else
 
12:48 AM
Does anyone know about any tutorials for viewing audio data that is currently playing that is currently working in chrome?
 
1:06 AM
@rlemon you been playing Last of Us at all?
I'm currently replaying it, love that game.
 
1:47 AM
@Loktar I'm replaying too, fuck it's pretty on PS4
 
@phenomnomnominal hah nice
tbh I dont notice a huge difference
but I played over a year ago
 
2:01 AM
@Loktar Just started playing it on the PS4
It's pretty fuckin' impressive. They've absolutely nailed the character animations, and the atmosphere is uncanny
 
yeah the game has really good atmosphere for sure
gets so tense when multiple clickers are around lol
 
I'm making my gf play it haha
 
 
2 hours later…
4:02 AM
 
4:17 AM
@loktar what was that oculus js demo you wrote
?
 
@BenjaminGruenbaum it does feel good knowing the work I do helps people.
 
@SomeKittensUx2666 codepen.io/loktar00/pen/gpuLE
its actually a cheater demo
just distorts it but isn't true 3d
oh and it needs a flag enabled for the css shader
 
4:36 AM
@BenjaminGruenbaum stackoverflow.com/q/25111589 :(
 
4:47 AM
@Sterling :)
@Zirak LOL that dude is so confused
@Sterling the work you guys do at ISIS really helps keep the world safe
 
Nobody says that about ISIS
Unless..
Oh god...
You and mother?!
:hurls:
 
It's alright kiddo
 
5:26 AM
why is the tbody made sortable in a table?
i mean
<table>
<tbody class="selector">
..
</tbody>
</table>
$('.slector').sortable();
why putting class='sortable' in each 'tr' doesnot work?
 
this not a support room for various jquery plugins
 
jqueryui is a plugin!!
fine don't answer. if it works that way, then it works that way..
:)
 
5:44 AM
Well, think about it. Would you rather have one wrapper class, or potentially hundreds of tr classes?
@tereško c'mon now. You don't have to answer him, but you don't have to discourage him asking either. It's a legit question in my opinion
If I was discouraged for asking why I would be a terrible developer
!!developer
 
@SterlingArcher That didn't make much sense. Use the !!/help command to learn more.
 
yeah, that is one point, but i was testing with three tr .. and they weren't getting relocated to their new positions..
@SterlingArcher
oww icy
that was a stupid uestion i asked, nevermind.. :D
 
old
 
m59
@BenjaminGruenbaum would you recommend I create a module for each of my angular components (like a service that I might use in another project) and put them in their own github repo?
I go back and forth about that subject a lot :/
I'm so obsessive I almost want to make a repo for every reusable function I write haha. I can't decide where the line is on modularity/reusability/dependency management stuff
Sort of like if jQuery had been 1000 modules and you would just use bower to include the functions you need. That, I guess, is not the right way. But including jQuery for a few functions isn't good. Copy/paste? Then you don't get updates on the functions. Sigh.
Not referring to jQuery specifically, of course. I no longer use that for anything.
 
6:23 AM
!!weather Melbourne
 
@monners Melbourne: 13.54C (286.69K), Sky is Clear
 
!!weather prague
 
@JanDvorak Prague: 17.62C (290.77K), broken clouds
 
Warmer than this morning
 
m59
@rlemon hmm, what does the webcam thing do? Nothing happened for me.
 
6:34 AM
It steals your soul and blackmails you with all the ugly bits.
 
m59
hmm. That's an impressive program in such few lines.
You could probably sell that to satan for like, a ton of money.
 
6:53 AM
@blackbee According to that, it's perfectly fine for a 6 year-old to date a 10 year-old :P
Morning
 
7:08 AM
i feels proud :D
 
7:54 AM
modi is a fashionable dude
 
Is there a way to do a split type function as you would on an array on an object literal containing key value pairs?
 
@mibbit Welcome to the JavaScript chat! Please review the room pseudo-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.
 
@mibbit what would that do?
 
@CapricaSix thanks, I just posted my question. I couldn't find an answer on stack overflow so I thought I could get a quick answer here
@JanDvorak find a key in an object and replace the value with another value
 
obj[key] = value?
 
8:02 AM
@JanDvorak YES!
@JanDvorak lol idk why I couldn't remember that one thanks
 
8:14 AM
@JanDvorak Ok so I thought that would work too. Basically I have a value newKey = number,number
@JanDvorak then in an if statement I'm trying to replace the object which has the key of newKey with a different value
 
code sample (jsfiddle.net), sample input, corresponding desired output?
 
@JanDvorak I marked it up so you can read it, I am getting the desired result for all but one variable
@JanDvorak My problem is I can't remember the right technique to do my intended operation
 
8:33 AM
For starters, arrays with the same contents aren't automatically equal to each other.
They are also never equal to objects with those values.
 
@JanDvorak I didn't set the array and the object equal to each other
 
at L12 you are comparing them. This comparison will always return false.
 
@JanDvorak Map is an Object of key value pairs, not an array
@JanDvorak L2
 
objects with the same contents aren't equal either
 
@JanDvorak Game.map[newkey] returns .
hm
 
8:50 AM
for functional testing, is it acceptable to put code to manipulate date/time purely for testing into the JS?
 
@mibbit consider using 2D arrays instead of generating keys. Array access is much faster than string concatenation. Also, any chance newX and newY may contain commas?
 
How smooth is that to you guys?
 
@SecondRikudo could be better
 
@JanDvorak Have any points for improvement? (All code is on this page, view source)
 
@SecondRikudo what's the clock precision?
 
8:59 AM
I have no idea I'm on a tutorial
 
Google dev-tools claim ~500 FPS, which seeems ridiculously incorrect to me.
 
@JanDvorak It doesn't look like 60fps to me, so I'm guessing its lying.
 
@SecondRikudo re L44: hint: Math.PI / 4
@SecondRikudo I'd rather guess the performance is OK, but the clock is too coarse-grained
try polling Date.now instead
 
@JanDvorak I know, I wanted a general function to use with the more exotic numbers
 
@SecondRikudo Why use degrees at all?
 
9:02 AM
@JanDvorak It's more comfortable to me to think in terms of degrees rather than radians
 
Hi, just for info.. I have a code like `elem.next('li')`in jquery..
Can I call it something similar to like this `elem['next'].bind('li')`(_returning some function_)
 
@Mr_Green did you mean $.fn.next.bind(elem, "li")?
 
@JanDvorak ohh I see. I wasn't aware of that.. but you didn't mention "li" anywhere?
ok thanks I will try this
 
Huh... the three.js clock seems to work at millisecond accuracy
 
@JanDvorak still it is returning a function instead of jquery object
 
9:08 AM
@Mr_Green well, yes
 
hello jan, green, madara o/
 
@Mr_Green did you mean $.fn.next.call(elem, "li") (which seems kinda pointless)?
 
I am not sure really.. I will check this too :)
$.fn['next'].call(elem, "li")
 
@m59 but it is not working after de-structuring... I wonder why is that so?
 
^ something like this
because the string is coming from somewhere else. I mean the "next" string
 
9:10 AM
@SecondRikudo oh. Now that I've disabled continuous page repainting it shows me pretty belieavable 5 FPS.
@Mr_Green elem["next"]("li")?
 
@SecondRikudo won't it be better to use css3 to do that?
 
@JanDvorak yup working fine :(
 
@SecondRikudo does new THREE.BoxGeometry(100, 100, 100) mean a cube with six 100x100 grids for faces?
That seems kinda wasteful.
other than that the code seems fine.
if it means 100x100x100 cubelets, that's even worse.
 
9:25 AM
Morning
 
Guys, if you find yourself searching for a name for your site, project or whatever I've found this site to be of big help: 64notes.com/find-good-names-for-projects-startups
@zigi Morning man
 
The player gets something out of playing, that's why they play, the core reward is the experience of the activity itself. Work makes a mockery of freedom, the official line is that we all have rights and live in a democracy. The liberals and conservatives and libertarians who lament totalitarianism are phonies and hypocrites.
You find the same sort of hierarchy and discipline in an office or factory as you do in a prison or a monastery. After all, a worker is a part-time slave. The boss says when to show up, when to leave, and what to do in the meantime.
He is free to carry his control to humiliating extremes, regulating, if he feels like it, the clothes you wear or how often you go to the bathroom.
 
That's also why communism and related "philosophies" are born out of that.
 
He can fire you for almost any reason or without a reason, he has you spied on by snitches and supervisors and talking back is called "insubordination", just as if a worker was a naughty child.
 
But they did it wrong.
 
9:29 AM
@SufiDeveloper Totally wrong, communism promotes work
I promote playing with the clear idea of knowing that the result of that play is for the greater good of all of us.
It doesn't matter anyways, within 50 years a lot of the jobs would be replaced by machines, doctors wouldn't have to heal cause symptoms would be detected in their birth and would be treated by machines accordingly.
 
Communism (from Latin communis – common, universal) is a socioeconomic system structured upon common ownership of the means of production and characterized by the absence of social classes, money, and the state; as well as a social, political and economic ideology and movement that aims to establish this social order.
 
Postman would be replaced by a drone
@SufiDeveloper you are a Sufist, right?
 
@zigi I actually have a project to replace postmans or most of them with drones.
@zigi Yep
 
yep, that's great!
 
@zigi Great because I'm a Sufi or the drones thing? :)
 
9:34 AM
both
:)
I like sufism a lot
I mean it is one of the religions I think that has quite a lot of good in its ideologies
And replacing postmen is good as long as it doesn't harm anyone
 
!!wiki sufism
 
Sufism (Persian: تصوف‎ taṣawwuf; Arabic: الصوفية‎ al-ṣūfiyya) is a concept in Islam, defined by scholars as the inner, mystical dimension of Islam; others contend that it is a perennial philosophy of existence that pre-dates religion, the expression of which flowered within Islam. Its essence has also been expressed via other religions and metareligious phenomena. A practitioner of this tradition is generally known as a ṣūfī (صُوفِيّ). They belong to different ṭuruq or "orders" – congregations formed around a master – which meet for spiritual sessions (majalis), in meeting places known as zawiyahs...
 
Oh ok :) Yeah, it's actually a religion and a philosophy on its own.
 
yes
 
Well, postmen would just be trained for drone control and still have a job.
 
9:37 AM
ah I see
but aren't drones limited in the sense that they can carry less weight
 
@SufiDeveloper I thought you were follower of jalaluddin sufi
 
and they have like 30 min battery
Watch this guys
I think you would like it
it is safe for work
 
!!should i go or not
 
@AbhishekHingnikar not
 
alright my mom
 
9:41 AM
@TheRealHamza Not directly, but he's wise and there's no sin in following his sayings along "vanilla" Sufism :)
 
> Some people, when confronted with a problem, think ‘I know, I’ll use regular expressions.’ Now they have two problems.
^XD cc @JanDvorak
 
@SufiDeveloper Ya i did't say its a sin I follow him myself he was a great man.
 
@zigi For the weight it can be solved with a stronger propulsion system and use lighter materials if need be.

For the second issue you raised, I thought about "postal drone fields" distributed in the earth where drones are charged before departing again.
 
@SufiDeveloper you can make a rotational principle
1 drone flies
 
You also forgot that energy sources can be found everywhere
 
9:45 AM
comes back and starts charging
the second one flies
etc.
true, but you suspend the drone
 
@TheRealHamza Yeah :)
 
unless you could make some great wireless charging from the ions in the atmosphere
like people speculate Tesla did
 
@JanDvorak What would you do differently?
 
I doubt you can do it without a rotational principle
 
1,1,1?
 
9:47 AM
^
 
haha "cubelets" such a cute word
 
@zigi That's how I thought about doing that. Just an option in a million.
 
if you want smoother lighting (and you use a vertex shader), dropping to 10x10x10 still provides a 100x increase in performance
 
@SufiDeveloper with a ion charger?
haha :D
 
Earth radiates infrared radiation too in the night
 
9:49 AM
@JanDvorak See madara.ninja/globe/index.html again
 
it is true
 
It can be converted in energy if properly handled. You can build a fridge out of that infrared radiation, and with that same cooling system you can generate energy from differential temperature.

The fact is, how much energy would come out of that?
 
I also changed the rotation to -= .05 instead of relying on a clock
Is there a specific reason to rely on a clock?
 
neither did help
I still get 5 FPS
 
@JanDvorak I actually am seeing an improvement
 
9:51 AM
madara why is it located under a folder called "globe"?
 
Where can you see the FPS?
@AwalGarg In the master branch for that repo, it's a globe.
 
kk
 
@SecondRikudo open the chrome dev tools, enable the fps meter and disable continuous page repainting
 
@SufiDeveloper can you give me some more detailed articles about the fridge thing, I am interested now
 
@JanDvorak how to enable fps meter? ok got it.
 
9:53 AM
@SecondRikudo shrinking the canvas helped significantly. Does my GPU attepmt to raytrace or pixel-shade anything?
 
@SufiDeveloper but shouldn't you collect that energy 100 feet from the ground so you can capture it
 
@SecondRikudo switch to Phong illumination. IIRC, phong is vertex-shaded while lambert is pixel-shaded
 
oh well, I am seeing 60 fps... why?
 
!!do I still want to keep Apache on my machine?
 
@JanDvorak Definitely
 
9:56 AM
huh...
 
@zigi You can see a mention here theguardian.com/environment/2011/nov/04/… but given that I've not found anything else and that I have to contact the engineer, I couldn't make any calculation about its efficiency, just mere theoretical speculation.
 
!! do I want to disable autorun for it?
 
@JanDvorak No
 
@JanDvorak I can't see it
 
@SecondRikudo esc > rendering
 
9:57 AM
Aha
 
@SecondRikudo lol. I spotted it easily, why can't you? :D
 
@SufiDeveloper you know that collecting the cosmis energy requires you to have an antenna high in the sky - the higher the better and it uses a more complicated model than Tesla's invention which has been upgraded by Moray's device
 
Anyway that was just a theoretical option and we have likely dozens more
 
They are called Moray's oscillator tubes
 
@zigi Oh I see. So the Moray's oscillator tubes have been proven in practical applications?
 
10:00 AM
I can't say, I have just read about it
 
Uhm.. It looks interesting and feasible on paper. Gotta document myself a little more and experiment it
 
yes, could you be so kind to tell me next time if you see me and have something, I really want to experiment with such things but I currently don't have the time
not that I don't but I am doing some other things and I want to finish them first
 
@JanDvorak I get approx 20FPS
 
@zigi Sure. I'll post everything on my blog and send you the reference. Actually I'm also busy with that other project I've been telling you, so it will take some time before I dive in it.
 
sure
no problem
 
10:05 AM
And I'm suspecting the antialiasing
 
it is just really interesting to follow such things
I'd be more than glad to read your blog
 
Yeah, without AA I get 60fps
 
@SecondRikudo especially if you are 94, you must have a lot to say
:D
 
@SecondRikudo I'm not getting AA
 
@JanDvorak renderer = new THREE.WebGLRenderer({ antialias: true }),
Line 33
 
10:06 AM
@zigi Yeah. Thanks :) I've been curious about electricity since I was 9 years old and free energy since 12, so that comes natural
 
haha cool
how old are you now if it is not a secret
 
Nah, how would the age be a secret? It doesn't give away anything. I'm 21 in a few months :)
 
ah I see, cool, still young, so you could do a lot
 
Yes haha :) Young but with a lot of experience
 
That's great
I have the same thing like you but with programming
started doing it on the age of 12
now I am 24
 
10:11 AM
That's cool! You must be a guru in at least one language?
 
haha in algorithms yes
:D
and I can use like 6-7 languages quite well
and learn easily
so
 
And you're also very modest.
 
yeah I try to help people if they need something
@SecondRikudo yes, thank you
 
I've also began programming at your age, but really discovered the potentials a few years ago
Wow, kudos to you!
 
In algorithms? As in, in anything related to logical problem solving?
 
10:12 AM
@zigi In which language are you the most proficient?
 
@monners algorithmic programming
 
!!define algorithmic programming
 
that's what I used to do
 
@monners It means I aint got time to learn your $5 words.
 
lol
 
@zigi That doesn't mean anything. Any programming is by its nature algorithmic
 
@monners yes I know, what I mean is I did programming for competitions
so solving problems in terms of optimization and speed
and proper structuring of large amounts of data
 
So what you really meant was: Maybe if a tack on a few smart-sounding words, people will think I'm an expert at something...
 
And I think that the last one is the most important in a real application case.
 
@monners I think I should ignore you cause you are just looking for trouble and belittling me
 
10:16 AM
@zigi I'm keeping you honest
 
sure
w/e
I remember when I used to go to some competitions in high school that there were some people with personal problems that were trying to excel in that area and they were always condescending and were patronizing me, can't we all just be good to each other instead of belittling others opinion trying to make them look bad?
 
yeah, that's what I'm doing. Hit the nail right on the head.
 
nice of you to do so
enjoy it
I have no real intentions to argue with you
 
Nor I, just can't stand the smell of bullshit
 
Well I have to stand and smell yours but I don't really care
 
10:21 AM
And what exactly have I said that's bullshit?
 
When you are in anger, the atmosphere itself feels threatening. But when you’re expansive, no matter what the weather, you’re in an open, windy field with friends.
 
So true Sufi
 
@zigi Be smart as I said the other day :)
 
Yes
 
That's good advice, I suggest you take it.
 
10:24 AM
Actually I realize my emotional intelligence is not one of the best ones so I will try to take care
 
Although I am still curious as to what you think I've said that you consider bullshit
 
It won't matter anyways
I am sorry I said it
 
Believe me, if you're emotionally smart you'll supersede whoever isn't and have more time for yourself, that also means your projects.
 
true
 
Apology accepted.
 
10:26 AM
you are more than welcome
 
Good :)
 
Actually I am going to do some work so cheerio
see you later people
 
@zigi Good work. See ya later :)
 
You too!
 
Thanks!
 
10:46 AM
Can anyone come up with some possible downsides for using a macro system like sweet.js? I'm planning to introduce it to my team and I want to be prepared when they ask questions
 
I had a brief look, but other than performance overhead I see no other issues. I'd wait for others more expert than me to give their opinion though.
Javascript class macros are still possible with vanilla JS, but sweet.js should make that easier and/or cleaner.
 
can i write these lines as these
$("#DivBadWife").empty();
$("#DivBadWife").removeClass("DivGoodWife");

as

$("#DivBadWife").empty().removeClass("DivGoodWife");
 
yes
 
thank you
 
11:06 AM
should this be closed?
 
11:22 AM
Anyone here good with d3 geo and able to help me understand this example?
 
@CustomizedName This is called chain ability and basically what happens is that the empty returns the selected DOM element to which additional functions could be applied further
 
@FlorianMargaine No.
 
Why do people in iOS still use singletons?
 
!!s/in iOS//
 
@SecondRikudo Why do people still use singletons? (source)
 
11:27 AM
That's better!
 
@FlorianMargaine Nope, it can't be...
@CapricaSix Because they can...
 
@BenjaminGruenbaum they don't know about DI maybe?
 
@zigi So just have a global?
 
@SecondRikudo Why do people make Caprica rewrite things?
 
@BenjaminGruenbaum let me ask some of my dearest iOS dev friends what they think
 
11:36 AM
!!s/Why //
 
@JanDvorak @SecondRikudo do people make Caprica rewrite things? (source)
 
@JanDvorak yea like that....
 
@BenjaminGruenbaum my friend said the following: 'iOS is mostly based on Singletons and to say the data for the apps is also stored in singletons'
it sounds a bit illogical to me
 
@SecondRikudo why should it be deleted?
 
11:41 AM
@AwalGarg Because it's already deleted.
 
@SecondRikudo but why?
 
For the ones hosting a site, what's your server/vps latency not counting the amount introduced by the app?
I'm looking for something like <180ms
 
@SufiDeveloper Like.. the result from ping?
64 bytes from liorgeva.com (81.4.127.186): icmp_seq=2 ttl=64 time=0.018 ms
64 bytes from liorgeva.com (81.4.127.186): icmp_seq=3 ttl=64 time=0.016 ms
64 bytes from liorgeva.com (81.4.127.186): icmp_seq=4 ttl=64 time=0.016 ms
64 bytes from liorgeva.com (81.4.127.186): icmp_seq=5 ttl=64 time=0.018 ms
64 bytes from liorgeva.com (81.4.127.186): icmp_seq=6 ttl=64 time=0.018 ms
I'm using ramnode
 
I just pinged liorgeva.com and got 146ms average
 
@SecondRikudo Yep. 0.018ms is pretty good man! That is not counting the app's time right?
@Meredith Maybe because you are farther away from the server
 
11:51 AM
@SufiDeveloper This is ping
Server sits in the netherlands
 
Yeah I live in florida so I'm pretty far away
 
@SufiDeveloper If you do purchase from RamNode, please do it through the above affiliate link (I get credit for it :P)
 
@SecondRikudo Got it. Well that's good regardless if it's the total or app-less time :)
 
Also, I can give you a 33% off coupon if you do decide to buy, so ping me if you do :)
 
Oh ok if I do I'll do that through your affiliate link for sure
 
11:53 AM
@SecondRikudo sorry I might sound a bit duchey
but isn't advertising something and offering discounts against the chatroom policy?
 
@zigi I'm not the one offering the discount, RamNode is. But that coupon is not something everyone knows, and I'm not getting anything for informing him about the discount.
 
ok then
just wondering
 
Ramnode is pretty interesting
Is there a discount for being referred?
 
Also, as for advertising, I clearly stated that this is an affiliate link and nicely asked him to use it. You can ignore my request if you'd like, but I think that since it doesn't cost you anything, there's no reason not to.
 
Or just the 33% thing
 
11:54 AM
Prices look good though. Added to my bookmarks
 
@Meredith I'm not aware of a referral discount
But 33% is pretty good, and they might have some other hidden coupon that offers even more than that XD
Oh, my bad actually
Seems as though they no longer accept coupons at all :(
 
Still, the prices look pretty good
 
I'll have to remember them when I can switch hosts in 8 months
 
There are also servers located in NYC and ATL which is good if your site is facing USA visitors
 
11:57 AM
@Meredith Bookmark my affiliate link their site :)
I think what I like most about RamNode is their support though
They have the standard support ticketing system, plus an IRC server
I've only had to open a ticket once so far, the rest was solved in the IRC.
It's a bit redundant to say IRC chat :P
Like the HTTP protocol
 
I open tickets as much as I can tbh
You can usually get them to do things for you
 

« first day (1388 days earlier)      last day (3559 days later) »