« first day (1099 days earlier)      last day (3852 days later) » 

6:05 PM
0
Q: Fries Form Spinner - changing the value of the selected spinner

RylieXI'm using this Android-like UI framework called Fries from jaunesarmiento. (google it if you have never heard of it) I am using a form spinner in a few places on my demo app which is essentially a form drop down in android terms and I want to be able to change the value of the selected spinner. ...

 
@m59 In a couple of hours
GAH I thought you were @OctavianDamiean
 
m59
hahaha
 
Hello all!
 
@Tomarinator thanks
 
how do I format code in the chat?
 
6:17 PM
@Delarn CTRL+K
 
$("#map-search :checkbox").click(function() {
        var idCb = [];
        idCb = $.each()
        var mId = $("#map-search :checkbox").attr("id"), // just get the marker id wanted from the checkbox id
            checked = $("#map-search :checkbox").is(':checked');
        disabled[mId] = !checked; // store the state

      if (clusterer) {
        clusterer.filter(function (data) {
          return !disabled[data.id]; // handle never clicked and clicked many time
        });
      }
    });
thanks
 
@Delarn your CTRL+K unformatted it
please reformat
 
ok
I'm blocked at the each iteration
 
m59
@Delarn it looks like you have a good bit of global variable mess going on
 
uh, what's the desired effect of that line?
 
6:20 PM
I want to take each checkbox id and sort them in an array.
 
it won't work this way
 
I know
 
$().each takes a function and calls it for each element
 
ok
I want to show/hide markers on google maps api
 
it can't cause the code that follows to execute multiple times, however
 
6:22 PM
I should get my array in global, and my validation in the function?
 
always avoid global variables
 
why?
 
namespace pollution
 
ok
so how should I write this ?
 
every piece of code that uses the global scope has the same global namespace. If two pieces use a variable with the same name, they will overwrite each other's
 
6:25 PM
ok
 
if you need something to be visible to one module in your application, you can use an IIFE to create a module scope (where there's less contention)
 
how do I do that ?
 
(function(){/*code*/})()
 
hum ok
 
but, always use as small a scope as possible
 
6:30 PM
Someone please ping me.
 
@OctavianDamiean why?
 
!!afk yo
 
@DannyBeckett There goes the neighbourhood.
 
!!ping OctavianDamiean
 
@Delarn That didn't make much sense. Maybe you meant: sing
 
6:31 PM
@JanDvorak Needed to catch the event that's fired when releasing ping notices.
 
@OctavianDamiean do you want a non-reply ping, too?
 
Cheers.
 
@aMother 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.
 
@CapricaSix ok
 
ok if I want to make it work before getting it better. I want this "event" click on those checkbox will show/hide my markers.
I just want it to work
 
user1125394
6:35 PM
o cool I thought france was much higher, en.wikipedia.org/wiki/… now feel a bit safer
 
user1125394
gonna move to Samoa else
 
@cc where's Vatican?
 
!!help
 
user1125394
@JanDvorak more or less like Italy..
 
6:37 PM
lol
 
@cc I mean, on that list
 
user1125394
not listed..
 
Italy: 1475 p.a.p.c; Vatican: 0, I guess
 
vatican is a parody
 
user1125394
6:38 PM
popody
 
:-D
 
@JanDvorak can you help me get it to work?
 
I don't even understand what the code is supposed to do
 
trying to change value of the selected spinner and need some help in the right direction. Here is the jsfiddle
 
it is supposed to be an onclick event.
a marker filter
I could make you a jsfiddle to show you tho.
 
6:42 PM
How do I motivate myself and a few of my coding-partners to work on a startup?
 
I don't promise it will help, though
@Ale110 think of the money you get if you succeed
and booze
 
Lightbox scripts.. so full of fail.
 
@JanDvorak I tried. It doesn't help me, though. Sometimes it works with my friends who help me (one is designer and another guy is going to start making Android app).
 
@Ale110 find a motivator / team-leader
some guy to convince you you'll get a yacht if you follow their crazy business plan
 
Where can I?
 
6:48 PM
hello guys
 
usually each team gets one for free :-)
@PuzzledBoy hello puzzled boy
 
@Ale110 Be excited about what you're gonna do.
Fuck money
Imagine how fun it'll be to run it
 
is there any buddy friendly with url rewriting ?
 
enjoy the company of the programmers you've got around you
if your project gets you money, the better
 
@JanDvorak how do I share it to you?
 
6:53 PM
hey guys i need some assistance with this issue i am having can anyone help
0
Q: Google Maps Extending Polyline When Marker Stops Animation

dev_darinI have a function that sets routes on a map this function creates polylines from start to destination. Once the ploylines have been drawn i then animate markers along these paths. When a marker has been animated along a polyline and has reached its destination i would like to extend the destina...

 
@Delarn the fiddle? DUmp the link here
 
@Zirak I'm trying to. Well, it might be that I just don't want to work because everybody else doing nothing. I were just looking for a way to stop this "loop".
 
I think I made something wrong... it shows nothing in the result
 
also here is a jsbin of my code jsbin.com/eFihUNI/1/edit?html,output
 
..
I need to rewrite this:

http://www.example.com/jobs/job/samplepostname

to

http://www.example.com/jobs/samplepostname
 
6:56 PM
@PuzzledBoy It might be the wrong place to ask this. But well, ok. Do you use Apache?
 
yes.
 
Are you allowed to use .htaccess on your server?
 
yes
 
@JanDvorak do you see it ?
 
nothing shows in the result
 
6:59 PM
me neither
 
Okay, why don't read this for a start: addedbytes.com/articles/for-beginners/…
RewriteRule ^jobs/([0-9]+)/?$ jobs/job/$1 [NC,L] is the rule you want.
/me away
 
@JanDvorak the code is from an other program, it should react on .click but it doesn't
I've put the code into my initialization of the map.à
 
I'm still stuck on how to change the value of a selected spinner and it seems kinda simple to do but I don't know how?
here is the fiddle
 
@Ale110 thnkx
 
!!afk hurricane
 
7:10 PM
@Zirak Nobody cares.
 
Man I'm tired... working on that problem for 3 days
it is not triggering and it is not doing what it should.
 
I should totally use that picture when someone here starts posting bad code and vampiring for help again :D
 
@ThiefMaster stfu
sorry not in a mood for jokes
 
That wasn't directed at you. I didn't even read the last messages in here.
 
ok sorry...
I'm making filter for a google map... and I'm not able to find the way to make it work.
I'm using gmap3 library to do so.
but it is not going well so far
 
user1125394
7:20 PM
you could fuck gmap and make you own svg layer on top
 
the function I'm making is supposed to get all my checkbox id. check if it is checked or not, then send to the clusterer and show/hide markers inside my clusters
but man I'm not able to make it go
and that map is awesomeà
@cc you know google map a little?
 
7:41 PM
Wut
 
user1125394
8:03 PM
@Ale110 browser?
 
user1125394
Firefox.. nvm, no idea
 
Firefox 23
 
user1125394
@Delarn nope
 
@benlevywebdesign you mean, on the blank line?
 
8:11 PM
what blank line?
 
L30 has no code in it
 
oh the formatting got screwy
 
any chance one of your ID selectors doesn't match anything?
By the way,
 
this line `document.querySelector('#show-toast').addEventListener('touchend', function () {
var toast = new fries.Toast({ content: "Hi, I'm a Toast notification." });` which is l31
 
!!tell benlevy mdn getelementbyid
 
which type error?
 
`document.querySelector('#show-toast').addEventListener('touchend', function () {
var toast = new fries.Toast({ content: "Hi, I'm a Toast notification." });`
 
that you cannot call addEventListener on null?
Check your IDs then
 
Well I am using the script exactly just as the original website fries but not using all of the android like UI components and it shows no errors on the original site
 
maybe it tries to attach an event to something that doesn't exist?
 
8:16 PM
yes
could I figure that out somehow?
 
@JanDvorak <s>At least it's not JQuery</s>
 
jQuery works with sets, but native DOM works with elements
 
and you can't attach an event to nothing
 
DOM can work with sets
!!mdn queryselectorall
 
@Ale110 DOM can't attach an event to a set
 
I don't know what event it is trying to attach to?
 
The code looks up an element that doesn't exist (thus null), then tries to call a method on that null.
 
wait
hold on
I fixed it all up and now no errors
 
@JanDvorak Umm... yes, you're right.
 
8:21 PM
now what about this: I am trying to make the spinner change to the selected items value when selected jsfiddle
 
Firefox, Y U NO show pseudo elements in developer tools...
 
0
Q: Please review this code (javascript webapp)

ud3Please review my code/ code quality... Thanks. var textarea = document.getElementById("textarea"), inputFile = document.getElementById("input-file"), prtHelper = document.getElementById("prt-helper"), overlay = document.getElementById("overlay"), help = document.getEl...

 
@ThiefMaster does Chrome?
 
dunno, haven't looked yet. but probably not yeah it does
 
I think it shows the pseudo-element CSS on the real element.
 
8:29 PM
hey can i get some assistance with this question stackoverflow.com/questions/19391995/…
i just cannot seem to figure this out for a few days
 
@Retsam Yep! He actually got Demetri's style well!
 
Yeah so
 
8:44 PM
WebRTC and WebAUDIO / ProccessedVideo
look like a mishap
you cant process a video and send it
you can't process an audio and save it
what the fuck !
// u can save the video though
 
you can send a source to multiple destinations (if we're talking about the same spec), can't you?
 
@JanDvorak audio Source yes
but u can't save it !
and camera is processed using canvas so you can process the video but you can't send it :P
what an amazing job rtc !
they should make a spec for sending the states of an arbitary element
as frames
that'd be kickass cool
 
you can only send unprocessed video?
 
yes
you have to process on each cleint
 
hm...
 
8:49 PM
you can't even decide which video to send :P
 
it's a young spec, it's going to change, I assume
 
@JanDvorak no i give it to you they will add this
processed Video cause hangout requires it
but they won't add a common spec to save this amazing processed stuff !
on audio
i wanted to write an mp3 editor / encoder completely client side
but meh looks like it wont ever happen
the funniest part is its almost 40 lines to do in C++ with ffmpeg / or lib<audio-format> if you prefer
doing it the javascripty callback way :-/
 
9:12 PM
almost to the point where I can start building all the levels..
only 1 level currently
saves your time and stars collected though to unlock the next yay!
also theres a bug with music.. so if you try it I recommend turning music off
2.46 is the fastest time I've ever been able to hit, and I only hit it once
 
broken in firefox
 
ah damn I haven't tested it in ff in forever
wonder what the problem is
 
vendor prefixes? :-)
 
shouldnt be
 
what about not enabling music by default? i can just speak of myself but is there anyone who actually wants music in those games?
 
9:15 PM
its all just canvas
@ThiefMaster yeah thats a good idea, Im going to have the settings save as well via local storage
 
@ThiefMaster music is fine in games if it's disableable and not autoplay
I.E. music is fine if opt-in
 
user1125394
!!urban fourier
 
@cc Fourier A man who believed wrapping himself in blankets was good for his health.
 
arg.. it is a drawing error lame
I hate how FF handles canvas drawing sometimes
whats funny is grapplehero.com vs works fine on it
so I need to see wtf I changed
ah I know why.
Damn FF you make me so mad sometimes.
 
@Loktar Yay!
 
9:18 PM
I am trying to clear all map overlays can someone assist with this
http://stackoverflow.com/questions/19391995/google-maps-clearing-all-markers-and-polylines
 
ok should work now in FF
thanks for catching that @ThiefMaster
 
Hello...
 
@SomeGuy you have no idea how hard it is for me working on this.. Ihave another project I want to jump on so bad man
 
@ThiefMaster can you assist?
 
but Im going to finish this one dangit
 
9:19 PM
YEAH!
You have to finish it
 
user1125394
@dev_darin overlay.setMap(null)
 
It's nearly done now
And it's awesome
 
Does anyone know of a good library for string encoding?
 
@cc thanks
 
thanks man
yeah I need to add enemies still, and an enemy grappler too
then I need to make all the levels, that part should be cake though
and then particle effects.. and then endless mode
lol everytime I think about it theres more and more stuff
 
9:21 PM
I think it's hard enough without a time stress of any kind
 
well you dont have to beat it in a certain amt of time
it just tracks how fast you did complete it
the only thing that matters is getting the key
and the stars are just a bonus thing as well
 
@cc this did not work
 
@OctavianDamiean any multi-touch guesture lib ?
/ windows people be silent... OSX people may troll /
 
Who here uses mac? Who here uses windows?
 
/me uses windows and linux
primarily windows though
 
9:28 PM
@cNduo 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.
 
Win7
 
Mac. But I prefer windows... :(
 
@Loktar windows has nothng in guestures if u have used an apple touchpad
holy hell that thing makes using mac so much more fun !
 
@AbhishekHingnikar it has a few
the double swipe down to scroll
 
@Loktar i know xD
 
9:29 PM
thats the main one I can think of
 
my Asus G55vw came with an apple like trackpad
 
I rarely use a track pad though
only when im on my chrome book
 
not as good as that apple one though :$
 
I am on an IPad right now
 
@Loktar i use it a LOT because of office
 
9:30 PM
I have two-finger scroll on my laptop
 
@AbhishekHingnikar it should be installed by default.
If not, then I think it was utouch.
 
provided by Symantec
 
@OctavianDamiean no i mean i want something like triple finger swipe to change tabs in Chrome / Firefox
 
I like CTRL+Tab
 
@AbhishekHingnikar cool story bro, get the Chromium source code, bake it into Chromium, compile.
 
9:31 PM
@OctavianDamiean Apple Does it for Safari :P
 
or better yet, CTRL+PgUp
 
and besides ginn will let u do it
 
can you do application development on an ipad?
 
@AbhishekHingnikar Good for Apple and Safari. Canonical doesn't control Chromium.
 
@OctavianDamiean Ginn is an application ( i can't get it to work ) but i read a post about
 
9:32 PM
Bye
 
@dev_darin can you ride the unicycle everyday, eight kilometres, in the rain?
 
you can tell it to do x-keyboard shortcut on a specific application when
you do something from the trackpad
which is amazing but doesnt work :-(
 
@AbhishekHingnikar have you rad how old Ginn is?
 
Autohotkey fulfills the first half
 
@JanDvorak i know it was not possible i was wondering if anyone was introducing it
 
9:33 PM
There isn't even any LP page for it anymore.
 
@OctavianDamiean yes
 
It was a Maverick and Natty thing.
 
they shouldn't have dropped it though :-(
 
but i think the ipad is a cool device
 
it would have been so cool !
 
user1125394
9:34 PM
!!wiki maverick
 
Maverick Recording Company was an American record label owned by Warner Music Group, operated and distributed through Warner Bros. Records. The label was founded in 1992 by Madonna, Frederick DeMann and Veronica "Ronnie" Dashev. Active from the early 1990s through the middle 2000s, the label scored its more notable success with such acts as Alanis Morissette, Michelle Branch, The Prodigy, Deftones and Candlebox. Since 2008, however, the label has been in hibernation, with its retained acts now recording for Warner Bros. directly. Company history Beginnings Maverick Records was launche...
 
@dev_darin I'd rather buy an android
device
 
@JanDvorak i like the fact that apple makes a device for a specific purpose however their pricing is ridiculous
 
YES the pricing is nuts..
 
@JanDvorak android is pretty cool as well however i think it will become a target like windows in the future
 
9:36 PM
iPad... iPhone... iPod... iPay :-(
 
@JanDvorak lol
 
@JanDvorak iPhone is worth it ... rest everything apple makes is useless
 
@AbhishekHingnikar Does for me.
 
and even iPhone just for the hardware ... not software
@OctavianDamiean cool :-(
 
9:36 PM
@AbhishekHingnikar I'm not convinced
 
They are running out of design ideas
 
The exact specifications and gestures might have changed a bit.
 
user1125394
!!urban apple
 
@cc apple The alternative to the orange.
 
!!s/design ideas/companies to sue/
 
9:37 PM
@JanDvorak That didn't make much sense. Use the !!/help command to learn more.
@JanDvorak They are running out of companies to sue (source)
 
@JanDvorak don't hate apple
they do what they are good at :P
Making fanboys
 
user1125394
!!s/apple/facebook/
 
@cc @JanDvorak don't hate facebook (source)
 
@AbhishekHingnikar so do guns
 
@AbhishekHingnikar file an issue against the Chromium project if you want gesture support in Chromium.
 
9:38 PM
imho apple only makes one product perfectly FanBoys
@OctavianDamiean i am using ffox
and chrome-stable
 
Well, then against Firefox.
 
lol
i thought these guestures were OS level supported
 
Isn't there an extension for gestures?
 
You know that Chrome is based on Chromium, right?
@AbhishekHingnikar How would your OS be able to take care of that? What if a certain application wants to have certain gestures?
 
@cc the markers are clearing however i am setting routes with directionsService
@cc how can i clear the route on the map?
@cc i tried directionsService[i].setMap(null) however i am getting directionsService[i].setMap(null) not defined
 
9:43 PM
@Octavian @Abhishek there is an OS level needed as a driver. The driver needs to support gestures. Most do though.
 
@FlorianMargaine Ubuntu does that.
 
aaaand I love C the more I do it.
 
Out of the box.
 
Yes, because the touchpad driver supports gestures
as I said, most do
 
Yes and because Unity has been expanded to support extended gestures.
Due to Ubuntu Phone.
 
9:45 PM
oh yeah, on the application level sure
 
@FlorianMargaine they removed some stuff
 
I love that so much
it's so awesome
 
@AbhishekHingnikar like what?
 
did you notice that it's an android screenshot? teehee
 
@OctavianDamiean What would you think if I went through all of the plugins, figured out a way I can organize them (some listen, most set commands, some do both, only room owners/moderators, etc), and introduced "#uses someSpecialPartOfTheBot" to the top of each one, and had build.js pack them up in an easy way to organize them?
I think that it would be a step towards converting the bot to node, and working best in both worlds.
 
@AbhishekHingnikar have you ensured that Unity 7.1.2 doesn't have it either?
 
@Shea implement browserify and that's a real step towards node
 
@Shea porting it to node would be almost a complete rewrite.
 

« first day (1099 days earlier)      last day (3852 days later) »