« first day (640 days earlier)      last day (4322 days later) » 

12:55 AM
hello everyone :)
can you help me here http://jsfiddle.net/sevtiandy/seXmc/29 ?
I've a looping to create a collapsible list (with table content), but it create so many duplicate collapsible list with empty content. please help me :(
 
1:39 AM
RT @kylebarrow: Introducing Chibi, a tiny JavaScript micro-framework. Just 5KB, 2KB gzipped: https://github.com/kylebarrow/chibi
 
3:03 AM
@Feeds wow, a tiny micro-framework. It'll fit with my large giant.
Wow. It's amazing how unoriginal these people are.
 
@Zirak hi
 
Yes, I've seen your question. No, I don't want to waddle through a gigantasauros of inline html
Sorry, got up with a crappy mood already. You don't want me to help you.
 
@Zirak it's okay :)
 
3:41 AM
If you have the fortune package, run this a few times for teh lulz: perl -e 'print join("... in bed", `fortune fortunes` =~ m/^(.*)(\.|\?|\!)$/), "\n";'
zirak@Zirak:~/dev/OctoGod$ perl -e 'print join("... in bed", `fortune fortunes` =~ m/^(.*)(\.|\?|\!)$/), "\n";' | cowsay
 _______________________________________
/ You're being followed. Cut out the    \
\ hanky-panky for a few days... in bed. /
 ---------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
 
 
2 hours later…
5:51 AM
LOL
Good Morning
lets see what we have got in here :-)
@Anusha refresh the chat and you should be able to talk in here now :-)
 
6:06 AM
var last = new Date().getTime();
function fn(){
 console.log("Function running");
 var
 now  = new Date().getTime(),
 left = 1000 - ( now - last );
 setTimeout(fn,Math.max(left));
 last = now;
}

setTimeout(fn,1000);
that should run the function ever 1000 ms aye ?
 
6:34 AM
@FlorianMagraine having read your actual code. It's a rather silly framework
 
6:47 AM
@Raynos Any comments on my code ? [ just above in here ]
is there any method to make it more accurate ? [ other then doing it from C++ ]
 
@Abhishek Yes. What on earth did you think when putting the var on a single line?
 
@Raynos margaine, not magraine :D silly framework? why?
 
@FlorianMargaine it doesn't do much of value :D
also you implemented pies wrong
each pie should be an ncore core
and pies shouldnt talk to each other directly
 
@OctavianDamiean github.com/Ralt/tartempion
@Raynos how do you want pies to talk to each other then?
 
6:53 AM
is hungry now
 
@FlorianMargaine seaport
 
Talking pies? :O
 
@Raynos the framework is there to make it easy to add reusable pies, having some defined files et al just makes it straightforward
 
@FlorianMargaine I see your concerns
I will look into a way to make this easier using ncore directly
 
reusable pie? That's just gross!
 
6:56 AM
YAY :D
@OctavianDamiean I'm trying to make an easy-to-use web framework
"pies" are "apps" a la django
 
Out of pie.
So you can't eat them?
 
no, the framework will eat them for you. Sorry.
 
:(
Then it's a stupid framework. I want the pie for myself.
 
anyone familiar with sencha touch here?
 
nope
@OctavianDamiean getPies()
@Raynos also, I don't want users to bother with ncore (I mean, dependencies.json file), that's why there are just some routes.json and pies.json files, to make it easy to define stuff, and it works
 
7:08 AM
why is dependencies.json complex
but pie & routes are not?
 
pie & route are business logic
dependencies.json is dependency management, it's not directly related to business
you see what I mean? :|
that's why it's just a wrapper around ncore
to just do business logic, work on your app, not bothering about how dependencies are injected
 
interesting
maybe ill refactor your pie app first
or maybe I wont
 
well I still have some work to do on it
 
@OctavianDamiean dunno just pressed enter was too lazy to press backspace
 
support middleware/dynamichelpers
refactor the core.js file
and make a correct config.json file
 
7:14 AM
iqtest.com // dont us JavaScript
 
btw
don't do can.bind(this)
@FlorianMargaine put can as a property on the controller
then it automatically has the this value bound correctly
 
yeah I thought about it
but then was just lazy to refactor again :D
but it's on the todo list
 
it's an example app :p
there's no db support yet either
 
correction
its a shitty example app
and its a silly framework
"there is no db support"
 
7:16 AM
shitty example app = correct
 
as if db access is something that goes in the framework layer
and shouldnt be called correctly
 
it does :|
 
your just building a magic box
 
well, it will
one less hassle
 
that's incredibly hard coupled to your needs
your doing it wrong.
 
7:17 AM
that's incredibly hard coupled to a web framework needs
 
build small modules that solve problems.
 
in my opinion, yep.
 
don't build a hard coupled complex web framework that has zero flexibility
 
small modules is nice, but it's messy once you start using them together
 
no it's not
 
7:18 AM
and it's "too geeky", you have to know how to use them, and how to use them together, a "hard coupled framework" just makes life easy
2
but yes, I'm building a black box to make reusable pies, just business logic, a little like django or RoR
or mojito
 
7:50 AM
> Every now and then the db locks then these two apps breaks cause the cant connect to mongo and this is seriously not cool!
0
Q: MongoDB - Keeps locking, what am I doing wrong

HarryI have two apps using mongoDB as the database. The one app is running Django and the other is running Node.js The node one just stores user clicks when ever a user clicks a certain button, so no real usage there. The Django one uses it the most. Is there a specific way to set this up? Im new...

> this is seriously not cool!
 
@FlorianMargaine lol
 
8:33 AM
o/
 
@GNi33 \o
 
8:44 AM
it's offtopic, but does anyone's got an idea how to change the position of the placeholder-text in input fields with css?
safari is displaying them very bad
usual input - value looks fine though
 
hm
IIRC, there's stuff like .class[placeholder]
oh, no, just vendor prefix stuff @GNi33 css-tricks.com/snippets/css/style-placeholder-text
and look at the comments too
 
hm, okay, will try the webkit one
 
587
A: Change an input's HTML5 placeholder color with CSS

toschoWebKit only: input::-webkit-input-placeholder {} But be aware: This is not a permanent solution. The discussion about the best implementation is still going on. Update 30.Sept. 2010 Mozilla (Firefox 4) now supports :-moz-placeholder: Note that Mozilla is using a pseudo class, not a pseudo e...

 
works fine everywhere but safari
but i'm pretty sure i'll have to edit the whole input-field
 
8:50 AM
Safari is (and will probably always be) a weird browser
 
heh...
is there any other way to check if an object is empty?
 
50,000,000 op's per second isn't good enough for you? :D
 
it's not about performance
it's about ugliness :D
something like !!{} would be nice
 
well, you're right
 
trying call on the length property of arrays doesn't work either ^^
 
8:59 AM
but pack the function away to somewhere and make it look like a native function, problem solved ;)
 
@FlorianMargaine and you'd really consider this less ugly? haha
 
using non native methods is ugly :(
 
well, maybe it's just me, but this [].call(...) stuff is one of the most ugly things i can think of
it just feels like a hack all of the time i need to write this
 
I think it's ok
 
9:04 AM
hmmm, placeholder doesn't even care about a padding on the input-field
wow, but behaviour really differs there between webkit-browsers
you can style almost anything when it comes to placeholders on chrome (like position and so on), but the only thing that worked on safari was color
 
arf
oh btw
found another really nice way
!!Object.keys( {} ).length
 
oh, that seems like a good way
performance?
 
dunno, jsperf is bugging
how do you microtime in js?
 
i honestly have no idea ;) never tried anything like that
 
var start = (new Date).getTime();
/* Run a test. */
var diff = (new Date).getTime() - start;
 
9:17 AM
how to cache the video in sencha touch 2
 
sometimes, i really love the questions in here
 
Even the whole files ,so that it should run in offline mode
@ThiefMaster pls helpme
 
It's like bursting into a bar without any greetings, shouting "Why is my car not working?"
gotta try that one time
 
okay
I guess I get 0 at both because they're so low in numbers? :D
yep that's it
working correctly
@GNi33 Object.keys isn't faster
but it works nicely :)
 
9:34 AM
nice :)
 
0
Q: IE Restrict JavaScript third party domain access on *.currentwebsite.com

sublayIt is possible to disable JS at all. It is possible to disable JS on certain domains by adding them to Restricted Zone for example. I wonder if it is possible to block/restrict third party domain access other than *.currentwebsite.com for enabled JS in IE. This could be somehow useful in ad bl...

 
oh, come on safari, now you're starting to piss me off
not even line-height is working
what's up with the CSS room? not really active whenever i have a look
 
I've never seen it active
 
i like how they dropped support for every css-property that would be useful for me from 5.0 to 5.1
why would you do that?
or is it an MacOS vs Win - thing?
 
9:49 AM
@Ritesh Please don't do that ever again.
 
hello all need some help with some basic stuff that i knowi am doign wrong ..just need another pair of eyes
 
@NMFSDF go on
 
function table_style_state(){ some jquery code }
$(table_style_state);
 
hm, indeed
there's something wrong :-)
 
what i am trying to do is to run the jquery code in the function so that it c an be called multiple times including as soon as the page loads up...
 
9:52 AM
you just need table_style_state() to call the function
 
i was looking at this link .... stackoverflow.com/questions/5945368/… ....see the first answer
 
@FlorianMargaine we have a full scale jQuery developer!
 
oh wow
no actually it's not stupid
 
@phpGeek sorry about yesterday.
and hello :-)
 
hi florian...
 
9:54 AM
hi all
 
i have a datable lugin that need ot call..now i can write the datatable plugin without hte function but i am goign ot be doign a bunch of things hence needs ot be constantly called which is why i thought of putting it into a function ....
maybe this helps....
function table_style_state(){
var table = $('#sorting-advanced2'),
tableStyled = false;

table.dataTable({
'aoColumnDefs': [
{ 'aSortable': true, 'aTargets': [ 1,2 ] }
],
'sPaginationType': 'full_numbers',
'sDom': '<"dataTables_header"lfr>t<"dataTables_footer"ip>',
'fnDrawCallback': function( oSettings )
{
// Only run once
if (!tableStyled)
{
table.closest('.dataTables_wrapper').find('.dataTables_length select').addClass('select blue-gradient glossy').styleSelect();
tableStyled = true;
}
$("#tab-1").refreshTabs();
i jsut want to execute the table_style_state when the page loads up just like regular jquery...
 
$(functionName) .... ?
$ is really doing all the things :D
 
yes
 
aaah, i see, of course this works
 
but its not...
 
9:59 AM
$(function(){....}) is just a short-hand for $(document).ready(function())
 
i am callign the function $(table_style_state)
 
i find the latter more readable though
maybe just try it like that
 
ah so what you mena is have the $*functionname) out side the current document ready ?
 
$(document).ready(function(){
    table_style_state();
});
and see if that's really the problem
adds a not necessary anonymous function, but you'll know what's going on when looking at your code in a few months
 
㎀ ㎁ ㎂ ㎃ ㎄ ㎅ ㎆ ㎇ ㎈ ㎉ ㎊ ㎋ ㎌ ㎍ ㎎ ㎏
㎐ ㎑ ㎒ ㎓ ㎔ ㎕ ㎖ ㎗ ㎘ ㎙ ㎚ ㎛ ㎜ ㎝ ㎞ ㎟
㎠ ㎡ ㎢ ㎣ ㎤ ㎥ ㎦ ㎧ ㎨ ㎩ ㎪ ㎫ ㎬ ㎭ ㎮ ㎯
㎰ ㎱ ㎲ ㎳ ㎴ ㎵ ㎶ ㎷ ㎸ ㎹ ㎺ ㎻ ㎼ ㎽ ㎾ ㎿
㏀ ㏁ ㏂ ㏃ ㏄ ㏅ ㏆ ㏇ ㏈ ㏉ ㏊ ㏋ ㏌ ㏍ ㏎ ㏏
㏐ ㏑ ㏒ ㏓ ㏔ ㏕ ㏖ ㏗ ㏘ ㏙ ㏚ ㏛ ㏜ ㏝ ㏞ ㏟
wow unicode rocks!
 
10:03 AM
doesnt work... let me show you the structure
$(document).ready(function()
{
table_style_state () {
}
);
 
i thought you just want to call the function, not define it?
 
$(document).ready(function()
{
table_style_state () { // This tells .. what to do ..
}
table_style_state(); // This will tell do it .!
);
 
oh i am defining the function in and then wanting to call it on page load
 
and you're missing at least one bracket there
you don't need to do the function definition on document.ready
 
let me paste the code which should work as per abhishels...
    function table_style_state(){
         var table = $('#sorting-advanced2'),
                        			tableStyled = false;

                        		table.dataTable({
                        			'aoColumnDefs': [
                        				{ 'aSortable': true, 'aTargets': [ 1,2 ] }
                        			],
                        			'sPaginationType': 'full_numbers',
                        			'sDom': '<"dataTables_header"lfr>t<"dataTables_footer"ip>',
                        			'fnDrawCallback': function( oSettings )
this should work but doesnt work..
if removed the fucntion part of it it works perfectly on page load
all this lies within the document read barackets
 
10:08 AM
@Abhishek jsfiddle.net/rJFrb @Esailija's code
 
actually guys it does get called... i put in an alert jsut inside the function
and the alert shows up however the rest of code does not act...
 
May I ask how to disable css styling on <li> element for click and hover? I'm using jQeury Mobile 1.7.2?
 
then the problem is probably residing in your function-block
 
@nhahtdh you want to set all css styles to initial values?
 
@nhahtdh there shouldn't be standard :hover and :active (?) - states on li-elements
 
10:11 AM
the funny thing is if i call the function within the success blcok of an ajx call in jquery it works p[erfectly
 
hey
what are the opposites of these words?

Always
Coming
From
Take
Me
Down
 
I want to disable it for only certain page
Not for all pages
 
success: function(data)
{

table_style_state();


},
this actually works.
 
@FlorianMargaine oh, the trollz
 
:D
good one, heh?
 
10:14 AM
@Killah: I want the <li> to appear the same, even on click/tap
 
even better: add something like "85% of people don't know the opposite of these words"
 
hehe
 
sorry guys..stupid me.....the id's were differnt!!!!!!!!
now let me run away in shame
 
(Sorry, jQM 1.1.1, jQ 1.7.2)
 
oh my god!!
 
10:15 AM
@nhahtdh Hmm... maybe get the page's id and use css?
 
@NMFSDF so we spent 1 hour on nothing?! Really? 1 hour?!
 
@nhahtdh use css for stuff like this, really
 
You mean css() or css style?
 
@nhahtdh like
#pageid li, #pageid li:hover, #pageid li:active {
// do your stuff here
}
 
10:16 AM
1 hr ?
 
@nhahtdh do you know about :active and stuff in css?
 
@OctavianDamiean o/
 
@NMFSDF j/k.
@OctavianDamiean re.
ate your pie?
 
whew.,.i was reviewing timelines here
 
0
Q: rtmp or rtmfp p2p connections

Mark EnglandI know rtmp uses a TCP port whereas rtmpf uses a UDP port. Also, rtmfp i believe requires less bandwith. But I would like to know: (1). If they are any other major differences between the two protocols? (2). How do you know which protocol to use for your project is it just a personal choice or ...

 
10:17 AM
@Florian: I somewhat know about it
 
Yea, was delicious, thanks! :D
 
damn, I read "rtfm"
 
swear to god...thsis shits killing me..need to get outt here and go for some tennis
 
:D
 
10:17 AM
@NMFSDF Tennis? Is that relaxing?
I'd rather go for some biking.
 
well its ball you can hit without fearing where it lands...somethign like golf except a lot cheaper
it gets the agression out..
 
0
Q: it doesn't display correct number for amount of buttons that are turned on

user1490145I have a function where if the user clicks on a button, it will display a value in the textbox and it will perform a trigger to another function after a '#btn' button is clicked: function addwindow(numberAnswer, gridValues, btn) { $('#mainNumberAnswerTxt').val(numberAnswer).data('data-ignor...

 
could somebody please tell a client of mine that it's freaking impossible to make an system font look exactly the same over different browsers and operating systems?
 
the amount of buttons is too damn high
or: buttons turn me on
 
I was wondering, was here any question about Javascript that wasn't involving jQuery? Cuz now everyone thinks Javascript == jQuery...
 
10:18 AM
and that there's a good chance, that it looks different than the design after all? this crap is making me sick
 
dunno which part of this question's title is the funniest
 
GNIi - are you billing him for timespent on stupid things
 
@Killah there are some, yep
 
So there are some programmers in Javascript left ;)
 
@Killah Totally valid since JavaScript wouldn't exist without jQuery.
 
10:20 AM
GNi : have you usd cufon .. maybe thats an solution...
 
is obviously just trolling
 
Yeah :D
 
they are complaining about Arial.... Arial! FFS
 
i will not use cufon or stuff like that for Arial on a whole page
that would be.... absolutely crazy
 
10:21 AM
welll true not for arial....but it does get your client of your back...yes its crazy
 
the hell's cufon?
 
@OctavianDamiean js that turns your text into image, you're sure to get the correct font
 
designers love it.
 
Is it SE aware?
 
10:23 AM
I bet xD
 
well, it's JS, SEO runs before that
 
Mhmm.
Makes sense.
 
yup
it's a huge bloated stuff though.
 
I mean that it runs before JS but I still don't like it.
 
10:24 AM
Plus I don't like their website.
 
not the nicest thing but gets some of those difficult fotns to work.. once again mostly for designers...
 
maybe it's useful for edge-cases
but nothing more
 
oh btw
@GNi33 did you see the thing about glyph fonts?
 
@GNi33 Just use the Ubuntu font.
 
@FlorianMargaine icon fonts? yeah, we talked about them a few weeks ago
 
10:27 AM
yup, didn't know if you were there :o
seeing how you're in it et al, thought it'd interest you
 
There's no better font.
 
icon fonts are just awesome
easily customizable and scalable, really a thing to consider for templating in the future
 
@OctavianDamiean never saw that before... very nice font
 
When click (or hover), the style of the button changes. I would like to remove such effect.
What I was thinking is to prevent jQM from modifying the class of the ul element, but no success so far
 
10:31 AM
@nhahtdh you are still on that? Maybe just use CSS?
 
@OctavianDamiean it even has cyrillic characters... thanks for the tipp :)
 
@Killah: How can I override the default behavior?
If I use css
 
You have id of your list. That's everything you need ;) Wait a while, I'll edit your fiddle
 
0
Q: Make lines blink inside a canvas

Lghti'm currently working on HTML5 and Javascript project, using Kinetic Js and canvas to perform that. I have a lot of points on a map, and i have to choose 2 points. When i have my two points, it draws a line between them. I need my lines (Kinetic.Line) to blink. I've tried something, consisting of...

first comment is worth it
 
daFuQ did i just read ?
 
10:40 AM
@nhahtdh here it is: http://jsfiddle.net/Tj6yv/2/
Next time use Chrome's Developer Tools or Firebug to extract needed styles.
 
What did navigator.taint(); do in JS?
Never mind
 
navigator.taint
undefined
;p
 
@Killah: Probably I'll figure the solution myself
 
It used to be there till JS 1.2
Deprecated now
 
Thanks anyway
 
10:43 AM
0
A: CSS3 KeyFrame Translate Animation - Severe Frame Skipping in Android

AbhishekThis is hacky workaround. In the transform rule add rotateZ(0deg); so that it becomes -webkit-transform:rotateZ(0deg) translate(30,40); this forces webkit to use hardware acceleration if available and improvises performance by bits. Though there is no garuntee for this to work. And the a...

 
@nhahtdh but I gave you it on a silver plate...
@Amaan oh, so I'm curious now
 
> The data-tainting support was a short-lived means of sending data back to a server.
wut?
xhr precursor?
83
Q: Why is the Java main method static?

AlotorThe method signature of a Java main method is: public static void main(String[] args){ ... } Is there a reason for this method to be static?

heh... I like not programming in java.
 
Omfg
 
main entry point of a program: public static void main
 
10:47 AM
another bug report in a powerpoint-file..... RAGE!
 
@FlorianMargaine that's really old, see github.com/petkaantonov/unicode.js
 
@GNi33 lol :D
@Esailija oh right! forgot about your repo :o
 
@FlorianMargaine <3 philosophers in programming.
 
am I the only perverse one when I see this function's name?
 
reminds me of the question of @OctavianDamiean ;)
18
Q: How can I find out if a device has a vibrator?

Octavian DamieanI have a device of which I don't know if it has a vibrator. Is there a way to query for the availability of the vibrator?

love the name of it :D
 
10:54 AM
Hah
 
@FlorianMargaine re-writing work project
as webAudio modularity
:-)
that way we can keep the module open source
 
oh
ok
that's cool
 
whistles
 
@OctavianDamiean no NaN's atleast
i am so embarrassed about the Nan :-|
 
heh
Yea, it really made no sense. :D
 
10:59 AM
and the actual reason was the original wave form
just epic
but at the positive side i know most internal issues that can be caused (hehe)
 

« first day (640 days earlier)      last day (4322 days later) »