« first day (1946 days earlier)      last day (2985 days later) » 

7:02 PM
I want to use this line to add programmatically various objects to another object's key: s[seccionIndex][itemIndex] = itemObj;but it does always override the value. Does it work instead: s[seccionIndex][itemIndex] += itemObj; ?
 
How could Time() be useful for Avg. Joe?
 
hi
Can I make like padding left : ... animated using JQuery?
 
7:18 PM
@DomagojSabolic try it out
 
@Loktar ?
oh I did
It didnt work but I googled and found you must type paddingLeft not padding-left like in CSS
 
css transitions are better and work
 
But I need when some element is clicked other must be moved
 
7:35 PM
Hey Florian
we were discussing on that domain.com/profile thingy
I got the gist there
 
8:14 PM
http://willhamill.com/2014/12/04/application-health-checks-with-dropwizard/
is there anything like this in node that is widely accepted? i see some packages for healtcheck but nothing popular (at least when it comes to github stars)
 
@Srle health checks are usually application-specific
 
so one should implement it manually right?
lets say that application needs to check RabbitMQ, http, file system, postgreSql so how to do health check? What i have in mind is just
1. RabbitMq, assert dummy exchange and dummy queue, publish and consume it, if ok => RabbitMq is "UP"
2. GET /dummy, receive response, http is "UP"
3. read and write to dummy file if ok, file system is "UP"
4. read write to dummy database if ok, db is "UP"
 
@Srle it's application-specific, e.g. rabbitmq has /api/aliveness-test/, see hg.rabbitmq.com/rabbitmq-management/raw-file/rabbitmq_v2_2_0/…
Intended for use by monitoring tools. If everything is working correctly, will return HTTP status 200 with body:
{"status":"ok"}
hmf
the only way to implement pipes and redirections is by having a real parser :(
 
8:30 PM
@FlorianMargaine, /api/aliveness-test/ thank you on this one! great exactly what i need
 
@Srle read the doc.
 
@FlorianMargaine, dont understand this one
"the only way to implement pipes and redirections is by having a real parser :("
 
it's not for you, don't worry
 
@Zirak heh
 
8:37 PM
Good evening, how do I stop repeating form id when selecting inputs in jquery? For example avoiding $('#myformid #country') $('#myformid #city'). Is doing something like var myForm = $('#myformid'); myForm.find('#city) is a good idea?
 
Yes
 
I am using the form id to avoid confusion with other elements with the same id.
 
@Muhammet you shouldn't have 2 elements with the same id on an HTML page.
 
If you give your form a name then it's even more easilly accessible: document.forms.formName or document.formName
 
otherwise it's not an identifier
 
8:39 PM
@Muhammet That's bad practice
 
@FlorianMargaine they can be in other pages, same merged script is loaded for all pages.
 
You should give your inputs names and find them by their names; names aren't supposed to be globally unique.
You already should give them a name, after all.
 
I meant like I might use #country on some other element in some other place.
 
It's still good practice to name your forms and inputs, so as a result you won't have to use an id to get them.
 
hey ppl :)
 
8:42 PM
@Zirak that makes sense, but what if I have some input on other page with same name and the script executes for that? If I use it with the form id together, it won't happen. That was my point.
 
@Muhammet So you first access the form, and then you access the form's input.
Your original point is valid. To stop repeating yourself, store the form in some variable and query against it.
 
@Zirak Thanks just wanted to make sure, using id seems redundant when it can be targeted by name, but it's easier to target by id :)
 
Not really. You can access form inputs by doing form.elements.inputName
 
would anyone mind showing me how to load dynamic database information into a modal using an AJAX Request? here what i got so far :) jsfiddle.net/tz86x0kf
 
Is that in vanilla js?
In jquery $("input[name='inputname']") hard to type.
 
8:48 PM
@Muhammet Pure DOM baby
2
 
Can I just append jquery .on event listener to that, I think I can't.
 
You can wrap elements in jquery by just passing them to $
 
Thanks @Zirak.
 
May you live a long and fruitful life.
 
and @FlorianMargaine
@Zirak May we all.
 

« first day (1946 days earlier)      last day (2985 days later) »