« first day (1868 days earlier)      last day (3074 days later) » 

crl
11:00 AM
@ivarni @Sheepy isn't that overkill?
 
@crl Not really. An iframe make sure the content will not be affected by the page's styles or scripts.
 
I am using the following structure [NodeName, ...children]
 
crl
basically they generate the whole html in a new page
 
to create a tree
 
crl
@Sheepy what if I want it to be affected by it
 
11:02 AM
the idea is that a shallow clone each time when an array is manipulated
would act as a method to utilize react's pure render mixins
 
crl
the wysiwyg would be in an iframe already separated from the admin (of a CMS)
hmm, checking that
 
The PITA is
i want named props on that array
I originally thought of creating getters and setters
but then realized doing that on every clone is stupid
should I just suck up and functions that operate on this POD ?
(named props are for debugging purpose only)
 
@Sheepy huh i'm not doing an ajax call?
 
@djsmiley2k I mean you can think about how you pass parameters into the function.
Which, technically, only accept two parameters
 
crl
MCE has maybe an inline mode tifftiff.de/contenteditable/editor.html (down?)
 
11:05 AM
@Sheepy oh right
so I could call oonSubmitToJiraDone({
  redmineId: 1234,
  datafixId: 4567
})
type thing?
 
Exactly :)
 
ok brill
How do I access them once they are passed?
 
any suggestion ?
 
The details depends on your desired browser support and/or whether you have jQuery.
The general idea is you fill in default values and then destructure it into local variables.
 
I have jquery.
 
11:10 AM
my condolences
 
Then the "fill in default value" part is usually done with $.extend
 
for example, in a ajax call how would I access the value of url: ?
:D
 
crl
ok phew.. we can do without a damn iframe output.jsbin.com/fofejo
 
After that you get an option object filled with all options you need (I hope). Sorry I am a bit busy right now. Perhaps others can help. You may also read jQuery source code which is pretty easy.
 
crl
11:12 AM
!!isrebecca bit.ly/X4rgke
 
crl
fuck :/
 
hah!
 
@tereško hahaha
btw the db book you suggested was wonderful :-)
 
that's why I suggested it
it lets you make that jump from "beginner" to "advanced"
 
11:16 AM
hmmm
i'm confused. My function has 4 parameters
I pass it 4 parameters, some come out as undefined :/
It there an actual hard limit to the number of parameters you can pass to a function?
 
unfortunately no
I suspect they were already undefined when they were passed
 
k
/me puts a console.log higher up
 
Hi.I'm missing something with bower. Say I've installed many packages with bower install . so now I do have the project with all the packages. now what's --save do is saving those as a depenecies. But why would I need that? I can open the project anywhere. I can even send it to someone and he will see exactly what I see. so where does bower.json comes into play ?
 
crl
Is it the book from carvin, or a name like that? 6 letters I think
 
@RoyiNamir A lot of people prefer not checking external dependencies into version control, then those who check out the code will need to bower install or whatever it's called in bower-land
 
11:23 AM
console.log(dataS, datafixId, redmineId, environment);
// can I do this or do I need to do dataS + datafixID + ...
 
!!> console.log(1,2,3)
 
@ivarni "undefined" Logged: 1,2,3
 
k sweet :)
 
@ivarni Thanks , so if I send a project to a friend , so I only send him my code + bower.json? (without actual code of 3'rd party code) ?
 
or if you want to get fancy console.log('value of 1: %s, value of 2: %s', 1, 2)
 
11:25 AM
(without actual code of 3'rd party code) ?
 
@djsmiley2k Kind of. Function parameter count limit is an implementation detail and depends on browser. Old IE was a few thousands. Firefox is a few hundred thousands if I recall correctly. It may also depends on your stack. You shouldn't run into the limit with normal code.
 
k ty
 
@RoyiNamir There's different opinions on that. I'm in the camp of people who prefer to npm install / bower install myself
 
just trying to figure out why it's undefined
 
@ivarni Ok , one last thing , say I do send him my core code + bower.json. — What should the friend do in order to download all those dependencies which is written in the bower.json that i've sent him ?
 
11:27 AM
Ah found it :) completely forgot to add the parameters in the previous function call
 
@RoyiNamir Basically yes. Assuming he has bower installed he should be able to just run "bower install" and it will install everything from the json file
 
@ivarni Thank you very much for your time and help .
 
Swwweeeeet that fixed it
@Cereal is a genius
Yes I agree having that many parameters is ugly, but it works \o/
 
crl
11:56 AM
I like that avatar that points at Cap's .... ->
oh no longer after refresh
 
@crl Is it winter there? Shouldn't you be hibernating, since you are a lizard :P
 
crl
it's not reallu cold yet :)
 
we got celebrities in stackoverflow > stackoverflow.com/users/5519052/jennifer-aniston
 
@crl wait, you live there?
 
12:07 PM
No matter how many times I read about bluebird's .reflect I just can't understand what it's for
 
crl
@AwalGarg yup
I'm a tourist
 
What usecase does it solve that .all can't?
 
@crl that looks like a really cool place to live in!
oh
 
crl
yes, lots of foreigners
 
!!weather Antibes, France
 
12:09 PM
@GNi33 [object Event]
 
you're on holiday in antibes ?
 
sweet, thank you Cap
 
or are you an inhabitant ?
 
crl
@KarelG yes full time holidays
 
Or were you a tourist and you liked it so much that you decided to not go back? ^^
 
crl
12:11 PM
nah, were born not far from here, then my moved with family 12 years in Martinique (West Indies) then returned here at 12
 
16° Celcius... you ******
 
crl
hehe
 
@ivarni debugging, it seems
 
 
@AwalGarg Apparently it somehow replaces .settle (see deprecation under bluebirdjs.com/docs/new-in-bluebird-3.html#deprecations)
That just leaves me more confuseder
 
12:19 PM
The PromiseInspection interface is basically not something I'd ever like to be used in userland code. I wonder what usecases there could be that bluebird exposes it.
 
yes, that reflect is a strange mind boggle from the devs
 
crl
!!tinymce or ckeeditor or voog or fuck?
 
@crl fuck
 
crl
thanks
 
Hello everyone
 
12:25 PM
@CodeMaster 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.
 
crl
!!s/ask(.*)//
 
@crl @CodeMaster Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't (source)
 
crl
hmm wanted the ask, I suck
 
Can I ask about Gulp and AngularJS in this room? I know that I should not ask that I want to ask something, but I want to make sure that I don't say something where it's not relevant to this chat room.
 
@CodeMaster yeap this is DA room , go ahead ask
 
12:30 PM
Thanks, I will.
I've purchased this theme: themeforest.net/item/…
 
crl
I john
 
It's on AngularJS. I'm developing ASP.NET MVC project where I was expecting to get JS,CSS files with HTML. But this was not the case. This theme requires to use Gulp in order to serve and inject scripts.
 
crl
what's the problem then?
 
Is there any possibility to extract the content such as all the required JS with CSS without using Gulp all the time?
 
Yes
 
12:33 PM
Google Angular Material has dependencies on AnguarJS but it doesn't mean to write based on AngularJS. So in that case I can easily use my MVC instead of AngularJS Views and Controller.
 
easily? Nope.
 
It's almost a week that I'm banging my head to find a solution. I've asked the designer and he said it's possible but it's not easy.
 
then for what exactly are you using angular ? if you don't require those features..
 
I mean easily, compare to my current situation :D
In order to use Angular Material, I should have AngularJS as reference.
 
If you want to use a theme made to work with angular, it's easier to start using angular than to remove angular from the theme.
 
12:36 PM
I tested it last night where I created a empty project. I downloaded Angular Material + AngularJS. I created a html page and reference both JS files and one CSS for Material Design and that was it.
But what I really want from that theme is the layout (look and style) not the AngularJS stuff.
 
Did you read what I just said?
 
Last year I bought another theme which it was on AngularJS. I was able to copy the src folder where it had all of the files such as css and js. I was able to import all of them manually.
@Cerbrus yes, but if I keep the AngularJS, it means to use AngularJS with all of it's routing, correct?
 
Not necessarily
 
really?
 
12:40 PM
Routing is optional
 
currently on my MVC, I have the controller which it passes the information to my views in inside View folder, am I still able to do that?
 
Why shouldn't you?
 
because, currently inside the theme folder there are bunch of folders:
http://i.imgur.com/1UwgLO0.jpg
and inside src: i.imgur.com/JEJknQO.jpg
 
you can just respond with json and let angular handle the rest.. assuming that you know your way around that
 
crl
that's frightening all those conf files
 
12:43 PM
the other limitation is that I'm not 100% allowed to use json for all of my controllers.
since I'm dealing with sensitive information and therefore our company wants me to do these things on server-side
 
crl
what does sensitive infos have to do with ajax?
 
isn't that so that json files get saved on the client's computer?
 
Nope
 
xml is not cool enough to handle sensitive info
 
hmm, ok
but that would be the second step, the first step is to install that theme without gulp and steaming
 
12:47 PM
define "sensitive info", please.
 
I still don't know where to put those files inside my project folder...
@GeoPhoenix sensitive info in our case is about people's bio information, bank account information + transactions.
It seems before me our company had somebody in charge to do the development and they found out that json files were saved locally on client's computer.
 
Anyone know if we can run node.js programmatically from a windows environment?
 
@Feeds we have some fucked up potato chips in Canada
 
and/or teamcity
 
@CodeMaster and what does "what the end user sees" have to do with "doing these things on server-side" , you just render data in client-side..

Unless you have like 200lines of code in an View which "decides" what will be rendered.. which i think is just wrong
 
12:52 PM
I actually see those files during development but I'm not sure about the production.
 
If I have a 32 bit integer, how do I "shrink" it so that every other bit gets discarded?
 
crl
@Billy like creating a file with node shit and executing it?
 
@Charly bit shift
Probably
 
crl
not sure it's the right way tho
 
I want to run npm install and some gulp tasks as such like node.exe <parameters>
 
12:54 PM
@GeoPhoenix you can render server-side without logic in the view
 
Just run the logic in the controller
 
For example, 11001010 should convert to 1011, removing every even bit
 
@AwalGarg sp0oky
 
@AwalGarg then what?
 
12:55 PM
@Cereal what controller?
 
@CodeMaster ?
 
@AwalGarg So retro.
I haven't seen that image in forever.
 
like, 1999 phpbb forums retro
 
@CodeMaster Don't ping people for help, if they're not helping you already
@Charly The controller that serves the page o.o
 
@AwalGarg I didn't ping for help, I'm just asking him about the image
 
12:57 PM
Oh
 
@Cereal yup
 
Your question still makes no sense
 
@Cereal stupid he didn't ping for help, just asking me about the image
 
Who the hell flagged that IP image?!
 
who flagged that?!
 
12:58 PM
Someone felt violated, obviously
 
!!pizza 800 600
 
I have everyones IP now
deal with it
 
/me terrified and hungry
 
That someone should get off of the internet if that violates them.
 
12:59 PM
inb4 /me gets 30 minute suspension
 
@AwalGarg it was invalidated
 
@rlemon Oh no you didn't
 
oh, cool
 

« first day (1868 days earlier)      last day (3074 days later) »