« first day (524 days earlier)      last day (4424 days later) » 

9:06 AM
lol
 
I want those stamps!
 
@OctavianDamiean one for your too
 
speak into the backup mic
lol
 
If I ever become a teacher I'll get a couple of those stamps.
 
9:10 AM
I can see myself wasting a lot of time on this, I better stop
 
@FlorianMargaine feature request: attempt to detect width/height char numbers and colors automatically if omitted
 
\o\
/o/
\o\
Those stamps
are the best thing ever
 
I know right? :D
Already seen the WTF and OMG ones?
 
@andrewjackson don't need to, XPM format is made to handle this
 
9:25 AM
so you're saying it's already a feature?
 
well, if you save something as xpm, width height, characters and number of characters are how a xpm file is made
 
just not sure why an XPM reader would need those
if it reads all of the colors first
 
an XPM file just doesn't omit this
I'm not sure if I understood correctly tho :/
 
that's what I'm say, make it a feature to make it optional
 
well I want to support xpm files :p
 
9:30 AM
it's useful for when you're just messing around, and writing your own image
 
but you can add an issue, I'll see depending on the complexity added :/
 
that's why it's optional
it's your project and all... so my opinion doesn't really matter...
 
I don't want this little object to be bloated for little messing stuff... you know what I mean :/
and you can fork if you want to :p
 
but I'm just saying, it can't be too hard to detect whether the first line is a header or not
 
I don't see what you mean then
 
9:32 AM
maybe I'll add that to show you... I really doubt it would add much overhead at all
 
 
yeah coz I don't see what you want there
@GNi33: thought about it when I said it :D
 
:D
 
http://jsfiddle.net/andrewjackson/njaeD/9/
this line: "36 17 2 1",
make it go away lol
 
oh
that'd add way too much complexity
how do I know how many colors there is?
 
9:33 AM
because you're already looping through the colors, might aswell count them
 
count all the colors!!! fuck performance, i want to write 1 line less!!!
 
I know where to stop because it was specified
 
arithmetic is fast, it would have hardly any overhead
of course... if it's from a generated file, that line is going to be there...
 
no but I mean, how do you know where the image begins? every line is just an argument
 
and then you won't need to count
which is why it's optional...
 
9:35 AM
@andrewjackson yea but would you really want to "write" a xpm - "image" yourself?
 
small files, no header... large generated file, a header
sure, why not?
that header made it a pain in the ass, is all
 
2 mins ago, by Florian Margaine
no but I mean, how do you know where the image begins? every line is just an argument
you still didn't answer
when do you know you stop specifying colors and start drawing the image with your characters?
 
@FlorianMargaine well, you detect if the first line is a header... if it is, fork off to an optimized efficient loop... if it's not, run a loop that would detect it
 
yeah
and the question is
how do you detect it?
 
some char(s) followed by the letter "c" followed by hexadecimal value?
 
9:39 AM
not "how do you detect if the first line is a header", but "how do you detect where the colors stop"
 
I mean, it's not going to be foolproof without a header...
obviously
 
ok :)
so you need some regex...
I avoid them as much as possible :3
headers are not hard to guess once you know what they mean
sorry, but this'd add unnecessary code for nothing :/
you can fork if you really want it tho
 
well... them make a separate function exactly like this one, that accepts colors object, and a lines object
 
lol
that wouldn't be very xpm then :p
 
9:41 AM
the basic goal of this object is to handle some pseudo-xpm format, but you're like going far far away from the format there :/
 
what's XPM.create now would used that same function, but use the header to make determine that objects
I'm expanding=]
 
Hello!!
I need your help!
0
Q: Implementing a carosel with <div> conent and swipe events

VansFannelI'm developing a HTML gallery with images and something else. Gallery items will be a div with an image and a href inside. <div> <img ...> <a href...> </a> </div> This galley must support two things: Swipe left event (because it is part of an iOS application). ...

 
@VansFannel no
 
@andrewjackson no?
 
9:44 AM
@VansFannel you're from Spain, right?
@VansFannel I assume you speak Spanish?
 
Yes, I speak spanish
 
@VansFannel I think it's the same in Spanish... no
 
@andrewjackson In Spanish or in English, you explain badly.
 
hahaha
@VansFannel: it's just not very appreciated when you barge in and says "I need your help!!!!"
 
Ok then...
1) "You're developing an image gallery"
2) You're placing an order for someone to give you already made code
3) Google yeilds tons of results for alrady made code
4) You're using jQuery
 
9:48 AM
5) Obiwan Kenobi
 
@FlorianMargaine Ok, it's that. Thanks for your explanation.
@andrewjackson Yes, because I'm terrible lost. Thanks.
 
*terrible and lost
fixed that for you
 
I'm lost in translation. Ha ha ha.
 
@VansFannel I'm sure you can find something in here
 
Thanks, but my problem is that I'm not sure if with this image galleries I can use <div> instead of <img>
Photoswipe is great, but I don't know how to use <div> instead of <a href...><img></a>.
 
9:58 AM
why are you fixated on just the first result?
 
You're asking how to embed an image, without using the image tag?
 
No, sorry. I didn't explained well.
I want to use something like Photoswipe, but PhotoSwipe allows unsorted lists, with list items like this: <a href...><img ...></a>.
And I need to add a list item like this: <div><img ...><a href...></a></div>
 
10:23 AM
@FlorianMargaine push for objects is slightly slower in chrome jsperf.com/objects-array-push
@FlorianMargaine also, what's up with this:
characters = arguments[1 + i]
?
how about:
nbColors = ++parseInt(firstArgument[2], 10)
and:
for (i = 1; i < nbColors; ++i) {
?
not trying to give you a hard time or anything...
@FlorianMargaine I'm pretty sure this is where your bug is:
for (i = 0; i < height - 1; ++i) {
why is it subtracting 1?
 
10:51 AM
@FlorianMargaine pastebin.com/eEznLy23
 
@andrewjackson stop micro optimizing :-p
 
well... I'd say it would be appropriate here ;)
it parses potentially fairly large inputs
I'm glad you pinged me, I almost feel asleep on my keyboard =S
 
We should get Zirak's bot to randomly ping Andrew.
 
gotta stay awake some how
 
is there anything free to upload whole code containing javascript and html and some of jquery files, I tried snipi and jsfiddle and ll common option they kick me in balls when I run the whole code, so many annoying conflicts, I got a problem and Dont know how to show you guys :( can someone suggest something?
 
11:04 AM
Note the epicness of those tags.
0
Q: django-ajax json response

user1199036I have a django url : '127.0.0.1:8000/showsym' mapped to view returning json response def get_symptoms(request): bp=BodySubPart.objects.get(body_subpart="head") data1=bp.symptoms.all() data = serializers.serialize('json', data1) return HttpResponse(data,mimetype='application/json...

@Pankaj Sure, jsfiddle.
 
@OctavianDamiean I tried this but no luck...it goes weird
 
You gotta try harder then. ;)
 
@OctavianDamiean can I explain to you a bit if you have time?
 
@Pankaj you need it for temporary use?
 
11:07 AM
@andrewjackson Yes just to show my problem
 
have an ftp client?
 
there is something which dont let me put this on Jsfiddle properly you can see this horrible result jsfiddle.net/8fjZA/9
@andrewjackson yes I have filezila
 
@Pankaj hold on
 
On my local system it works fine..
 
user: pankaj@temporary.mihopa.net
pass: xLm}fUO*=;d(
files are uploaded to: temporary.mihopa.net/pankaj
 
11:10 AM
@andrewjackson Okay I am putting this hold on
 
Greetings all!
Anyone got time to help me with a jquery script? :)
 
@Pankaj connect okay?
 
-2
Q: An array of booleans in javascript

sbguyNot so new to javascript, but the following gives an error in javascript, where as my textbook says it should work. Boolean imgDirection[] = new Boolean[60]; What's the problem?

LOL @ "Not so new to javascript"
 
@andrewjackson Wait i made a mistake in code wait a minute please
 
@AndyE wtf? is that even Javascript??
 
11:19 AM
No (although it might have been valid according to the ECMAScript 4th Edition that never was)
 
The hell?
 
maybe that's Java?
I don't even...
 
Yes, he probably meant Java
 
Yes it is Java.
 
@andrewjackson Its not connecting what should i put on host name?
 
11:22 AM
ftp.temporary.mihopa.net
 
@andrewjackson its connected now but not showing anything
 
well I would hope not
 
i created a folder named pankaj
 
@andrewjackson yes here it is
 
11:28 AM
Yea, the code is still failing.
 
yes I know let me put it again
let me tell you what is the prob
there are 5 tabs
 
For god's sake!
 
on every tab image will be changed and the as per the number also
 
You have some errors in an endless loop!
 
@OctavianDamiean yes I know and I knw the reason also
actually i have to submit this mock up to my boss last night I played a trick
 
11:30 AM
holy shit
 
Then fix it ...
 
there is a function of slider
 
start over
scrap it... start fresh
 
when I put the same slider in another tab it goes weird so I copied the same function and pasted with diff name and diff values
it worked fine
I just know the name of java script nothing else :(
 
I don't even want to look at your code tbh...
this website looks like it should be extremely simple
I can't imagine what you have going on that's turning such a simple thing into a huge mess
 
11:33 AM
@andrewjackson I had a sword on my neck and I tried everything to save it..
@andrewjackson can you tell me easy way of doing so
 
it's such a simple site
 
I know I am dumb in front of you guys but i had no choice thats why I did all these silly mistakes
 
basically, you have one page with five tabs, right?
 
@andrewjackson yes
 
you need to work in steps
 
11:35 AM
all tabs having different images
@andrewjackson the effect is not working let me show you the example effect
 
step 1) start fresh
step 2) prepare your first page/tab
step 3) add your second tab
step 4) make a function to switch between tabs
step 5) when your function is working, add another tab that should work exactly the same
step 6) if that works without a flaw, add the rest of the tabs
 
3
Q: Better handling of indentation and the TAB key when editing posts

balpha About This user script changes the behavior of a few keys (most notably the Tab key) within the post editor to behave more like it does in IDEs or text editors: When multiple lines are selected, Tab and Shift-Tab indent and dedent these lines When nothing is selected, Tab and Shift-Tab i...

 
@andrewjackson this was the effect which is working previously in tabs htmldrive.net/items/demo/243/…
 
get rid of that...
lol
find something else?
looks like shit imo
 
wait let me show you this correctly
 
11:40 AM
0
Q: Tooltip for fullcalendar in year view

karkiI want to add tooltip for the fullcalendar in year view. I tried with the below one but it added tooltip to month view. I tried with google but did not find anything related to this. Is there any other way to add a tooltip in year view? eventMouseover: function(calEvent,jsEvent) { xO...

 
wait... is this your code?
    var opts1 = new Array;
    var level1 = new Array;
    var img1 = new Array;
    var links1 = new Array;
    var titles1 = new Array;
    var order1 = new Array;
    var imgInc1 = new Array;
    var inc1 = new Array;
    var stripInt1 = new Array;
    var imgInt1 = new Array;
 
Hi
 
@Raynos: is node stable on windows?
 
@andrewjackson I made this trick to work but it didnot
 
Can anybody have any idea about this question?
 
11:41 AM
clearly...
you have 300 lines code for something that should be simple
no comments, no line breaks...
I don't want to touch this
 
@andrewjackson yes I am dumb and I accept that
can you give me 5 minutes
to show you the working thing
 
I'm going to do a ctrl-f for "while" and find your problem right away
 
Hello.
 
omg it's randomly working now
did you do this?
lol
 
What? Is that for me?
 
11:47 AM
@andrewjackson I am doing nothing
 
I removed jqFancyTransitions, and it works
 
I am new here.
 
> event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future.
Bad.
 
@OctavianDamiean that's just outdated jQuery
 
So basically jQuery.
> Uncaught TypeError: Object #<Object> has no method 'jqFancyTransitions'
 
11:51 AM
http://temporary.mihopa.net/Pankaj/pankaj/
now I put jqFancyTransitions back on, and removed your "experiment" crap and it works even better
@OctavianDamiean now its:
> Uncaught TypeError: Object #<Object> has no method 'jqFancyTransitions1'
just needed to remove 300 lines of garbage
@Pankaj is that not functioning the way you wanted it?
 
@andrewjackson yes
 
what do you mean yes?
 
i am showing you the same wait a minute I am bit slow :(
 
Yes as in Yes, it isn't or Yes, it is?
 
Shalom all!
 
11:56 AM
Okay now you guys see
its working fine
this is what I am doing
okay you guys can see the effect now on both first 2 tabs, I needed the same
what I did is you guys seen in my code I guess
making useless function again and again
@andrewjackson there
 
it's working fine, what is your problem?
 

« first day (524 days earlier)      last day (4424 days later) »