« first day (416 days earlier)      last day (4549 days later) » 

10:00 PM
@ThomasBlobaum FU spam
function isEmpty(o) { return Object.keys(o).length; }
 
its pretty funny actually
var foo = {
    0: 'foo',
    1: 'bar',
    2: 'baz'
};
console.log(foo);
displayed as object
 
you can now require('directory')(function (module, filename) { //do something with the module }) in node.js, kind of useful?
 
var foo = {
    0: 'foo',
    1: 'bar',
    2: 'baz',
    length: 2
};
console.log(foo);
still object
 
add splice and length you'll fool the console :P
 
yea :p
 
10:01 PM
 
var foo = {
    0: 'foo',
    1: 'bar',
    2: 'baz',
    length: 2,
    splice: function(){}
};
console.log(foo);
tadaaaa Array
 
user1385191
I don't understand
 
user1385191
why do you post a few functions and call it "a project"?
 
user1385191
what's there to comment on?
 
@Raynos but the API for that module isnt as nice
 
10:02 PM
Object.prototype.toString.call( foo ) === "[object Array]" You are not fooling me =D
 
depends
do you want to do something with the module?
All you really want is loadModules(directory);
 
also it doesnt recursively require files, thatsnot a good idea IMO
 
user1385191
if you want style comments, there's way too much inlining
 
it is a good thing
 
I guess the console fooling is by design, since I prefer array-likes to be displayed like arrays :P
 
10:03 PM
its based off the idea that you will be using index.js files to make your app modular
 
yea looks like its a pure console thing
 
I think it hits the right balance, which loadit and findit dont
 
neither Object.prototype.toString.call nor instanceof Array come along
 
user1385191
I'd suggest slicing this code up:
 
user1385191
var filename = path.split(dirname)[1].split(".js")[0]
 
10:04 PM
note that instanceof Array is not so robust as array from iframe will not be instanceof Array in another iframe
 
code like that is the reason its a module, not just to "throw a few lines of code up"
 
@ne
 
@Esailija: thanks for the headsup ;)
 
@ThomasBlobaum it really depends on your architecture style. I agree it is useful
 
/me coughs
 
10:05 PM
@Neal is there a job forum on SO? having trouble finding a link...
 
@RickD oy.... careers.so
 
thanks guys
 
I forgot to sign up during the 2 weeks my invitation was active
 
@RickD no prob bob
 
10:07 PM
var foo = {
    0: 'foo',
    1: 'bar',
    2: 'baz',
    length: 2,
    splice: function(){},
    __proto__: Array.prototype
};
console.log(foo instanceof Array);
works :P
 
For instance if you require('directory') somewhere where you have subdirs and they have indexes which use require('directory') you can load up your app in a way that feels like using main, and it works with the flow of node
 
@jAndy :-P
 
user1385191
ps: there's a node room
 
@jAndy, does it pass the ultimate test of Object.prototype.toString.call
 
node room is always dead :p
 
10:07 PM
@Esailija: no, of course not
 
@ThomasBlobaum psh
 
user1385191
well, let's populate it
 
user1385191

Node.js

Because you rock when you don't block
 
@MattMcDonald Y U HATE ON NODE
 
which marketing genius had the idea with that "rock block blah"
 
user1385191
10:09 PM
hate? where did I "hate"?
 
iirc instanceof just checks .__proto__ equality with prototype objects in the inheritance chain
 
block'n'roll
 
careers.so is overkill for what I need. Just a guy in a room trying to improve on a project and need javascript help. Willing to pay a reasonable rate. Will probably have more work in the future for the right person but it's just a few hours here and there.

Suggestions...?
 
that should be the text for php channel :p
 
@MattMcDonald Y U NO APPRECIATE MELODRAMATICITy
 
10:10 PM
@RickD i can do that for you?
 
user1385191
there's no way that's a word
 
@Raynos , wasnt it you who provided me with the code to fetch the data from database to generate selectmenu's?
 
lol
 
tblobaum@huskers.unl.edu or tblobaum on skype or devaholic on freenode
 
@RickD suggestion: ##javascript IRC. or drop me an email
 
10:11 PM
the word would be "melodrama", but eh
 
@wHiTeHaT: did he drop your entire tables?
 
user1385191
##javascript on freenode
 
@jAndy , no code was as far as i can tell perfect for me
lol
 
oh.. really. well I underestimated him then ^^
 
@RickD freelance.com or .yourcountry
 
10:13 PM
I'm just kidding and @Raynos knows that.. right? :D
I did some jobs on freelance.com, but.. wwuuuaaaarrhh its so annoying after a time
clueless people who want to have magic for virtually no money
like, expecting to get a second facebook for 500 bucks or something
 
user1385191
the best part is getting undercut
 
user1385191
by people from places like india
 
user1385191
who work for $5 an hour
 
the page is ruined by indians
yeaa
 
but the code quality is not so good?
 
10:15 PM
and the quality is as low as the prices
at least, what I have seen
 
user1385191
hi my name is sundeep bunshine and I know ASP.NET and C and C++ and C# and Java and Visual Basic and I give you best product for low price
 
but people don't care, they have no clue in first place, so why would they start thinking when someone offers half of your price
 
user1385191
they seem to love Microsoft out in India
 
Fortunately, Ondra was able to remove the backdoor before the Kerbleckistanian could access it. Well, maybe not fortunately; the rest of the code was pretty awful and was probably better off being deleted. But at least it was one-tenth the cost of doing it right!
excelent
 
10:19 PM
woooohhh I'm so excited. my company plans to create some kind of 'realtime preview' for "page teasers" for some of your customers. And GUESS who won the applications to implement it
I will do node and websockets so hard
its not even funny any more
finally
 
user1385191
one day, we'll find a client that gives us the keys to the server
 
user1385191
until then, it's 90% flash, 10% HTML
 
@Esailija , did you checked the link i sended?
 
@wHiTeHaT, no I tried to scroll for it but it was lost :( can you link again
 
@MattMcDonald .... dont look
 
10:24 PM
I forgot what was supposed to happen
 
position of submit button
load database.... link firstt osc2nuke.com/rot/db.html
after visit "shop list demo" click HardWare>GraphicCards>>> choose one of the two products
 
ok seeing it
the submit button is supposed to come after the ugly click me button?
 
the clickme was just test
no that button shouldnt be there
must come before ofcourse inside the <form tag
 
user1385191
lol
 
user1385191
the link contains "os", "nuke", and "rot"
 
10:28 PM
i told you not to look @MattMcDonald
:)
 
user1385191
I'm surprised Google hasn't marked you as suspected malware
 
i have friends @google
 
.ui-btn-hidden is position absolute, 100% widht, 100% height etc..
it's not in the flow
 
that code is generated by jquerymobile
 
also you are appending div after the button
 
10:30 PM
wuaaahh jQuerymobile
 
i did a pastebin of the code but ofcourse in chrome can see aswell
 
I had a quick glance on it today, because for the same project, we plan to do heavy mobile support
but jq mobile is a pretty big joke.. its just jQuery with some suggar on top, wtf
I expected a somewhat slim specialized lib
 
well I don't know what you expect to see with that css on it
 
zepto.js is jquery mobile
 
it will work if you do myform.append(div).append(mybutton)
 
10:31 PM
the pastebin maby makes it clearer,or even not
 
and remove the css class
I can see the code in the page as well
 
user1385191
@jAndy it's really ugly
 
user1385191
the automagical replacement is the worst part
 
user1385191
elements in the wrong order?
 
user1385191
won't work
 
10:32 PM
@ThomasBlobaum: I had a look at zepto aswell, no thanks
far away from beeing productive
I found 3 major bugs in the first 2 hours
 
@jAndy did you file issues on gh?
 
@Esailija, i tryed that and just verified again... it not work
 
@Thomas: I did more than that, I fixed them and did pull requests
 
well all I did was to remove css class and do that and i get this:
 
and then Thomas Fuchs closed it because only one commit per request is allowd
lulolol
so I was done with it before I actually got started
 
user1385191
10:34 PM
he's an egomaniac
 
i dont have that impression
 
lolz uploaded wrong image.. sec
 
and not even pr0n bah
 
yea it's from folder where I have UI snapshots :D
 
lol
 
10:36 PM
however, zepto is a good approach, but as I mentioned, far away from beeing usable in production
 
yeah... ofcourse i could do that lol... trick the css... but i think you should know better no?
 
I didn't trick the css I just didn't add any class name to it
 
isee
 
the class name it had wouldn't work because that classname adds shit like position absolute and width 100%
 
but that wouldnt work... then i have 2 ugly buttons
 
10:38 PM
well just add css class with styling... :D?
like class="my-submit-button"
 
@Esailija , it is needed for mobile device
around it it scale
 
since you already have a cool looking submit button in the top, you could add that same class name to the actual submit button
 
well then i would trick... but i dont think that is the correct way.
i personaly think i coded the appending wrong
it took me 2 months to get the dialog showing up
 
I cannot find in the code where the css class is added
 
and wont give up on a stupid submit button
i dont thonk it is css related
thonk=think
 
10:43 PM
class="ui-btn-hidden" aria-disabled="false"
where in the code are those attributes added?
when you add ui-btn-hidden it will get absolute positioning
 
jquwery-mobile's css
 
that's not css it's the resulting html
 
or rather

<button type="submit" name="" value="submit-value" class="ui-btn-hidden" aria-disabled="false">Submit</button>
that's the resulting html
it has nothing to do with .css ... your css doesn't magically add classnames to html elements
 
it does
that is what jqm does
 
10:48 PM
well I can run this in your site: $("<button></button>").appendTo("body")
and the result of that is
<button></button>
no css class added
 
trigger does the css trick
trigger("create")
 
right
where do you config what create does
 
jqm does , by tag name
button/textfield/forms etc
 
so it will automatically make all buttons hidden without any configuration power?
how useful
 
class="ui-btn-hidden" i dont think refers to actualy "hide the button"
 
10:52 PM
but it's effectively making the button hidden though
 
i not going to say you are wrong... i just dont think need to trik the code with aditional classes
 
can't see any documentation for create event
 
the whole concept of jqm is it generates for you
that i s why i assume i coded wrong
 
So here's whats happening:
Create event adds a class attribute to the button, which makes it hidden
But I cannot see any docs about that
 
let us check the button on "load database" link
ur right... class not there
 
10:59 PM
it has ui-btn-inner
 
mmm let me check on one of theire examples of form submitting , maby has to be couse of my button is in a form and the database button isnt
yep, this time i'm right, has class : class="ui-btn-hidden" in theire example for forms
bah... why i'm better in finding stuff instead of code
 
umm
that is not nearly the same
<div data-theme="b" class="ui-btn ui-btn-corner-all ui-shadow ui-btn-up-b" aria-disabled="false">
	<span class="ui-btn-inner ui-btn-corner-all" aria-hidden="true"><span class="ui-btn-text">Submit</span></span><button type="submit" data-theme="b" name="submit" value="submit-value" class="ui-btn-hidden" aria-disabled="false">Submit</button>
</div>
that's the html for the button
you just have <button></button>
 
man, isnt the shitty HTML chatroom somewhere else
 
I'd rather talk about js as well but it's pretty dead otherwise in here =D
 
<button type="submit" name="" value="submit-value" class="ui-btn-hidden" aria-disabled="false">Submit</button>
this is the generated content in the DOM
 
11:06 PM
@wHiTeHaT, yes that's what you have. And the above is what they have. See the huge difference?
 
that is couse of they use a specific theme
i use default
if i would change fieldset's theme i would have same
also can indepand change button theme
 
I don't know what to say, if you are using their theme and want the same result you need to use the same html
 
if there would just be a simular example to find on the net where there is a form generated somehow like mine .... then i could adapt
i strongly think it is couseof how i do the appending
 
It doesn't matter where you append, the html is the same and the classname is the same which result in absolutely positioned button with 100% width and height...
you can also add data-role="none"
to the button
mybutton.attr("data-role", "none") or something
 
not work
just tried
i also updated to relevant version
thought that was the "bug" , but i think i understand why....
fieldcontain ....
it is also what i asked before but you might missed
i wonder if is needed to have 2 fieldcontain tag's
in a multiple select
 
11:21 PM
Hey guys, Anyone know how I'd replace these "\n" charcheters with <br/> graph.facebook.com/139373546157232
I'm getting the data using jquery Ajax method
but want to replace the description string so that it maintains is line breaks in the mark up
when I inject it back into the dom
 
google "replace characters javascript MDN"
 
I know you can use the .replace mthod
but looking at the data I get back there does not seem to be and of those "\n" in the data object
any of those*
 
stripe
strip
shawnolson.net/a/499/… and after add <br>
 
w3fools =D
 
11:46 PM
@Esailija y u talk to yourself
@ThomasBlobaum y u no travis ci?
 
@Raynos I am lonely
=D
 
I meant, I have whitehat blocked
so it looks like you talk to yourself
 
yeah I was pretty much talking to a brick wall even if you didn't have him blocked anyway
 
I know
I have him blocked for a reason
Anyone understand what this is about? : dutherenverseauborddelatable.wordpress.com/2011/12/06/…
is that a firefox plugin API ?
Is that supposed to become a WHATWG spec?
 
I thought chrome's file system api was the one that was standard
 

« first day (416 days earlier)      last day (4549 days later) »