« first day (187 days earlier)      last day (20 days later) » 

7:56 AM
0
Q: Badge Oneboxer for Chat.SE

QuillThis script makes it possible for badges to onebox in Chat. The install requires Tamper/GreaseMonkey. Click here to install, and it's on GitHub and StackApps! // ==UserScript== // @name Badge Oneboxer // @description Converts tag-like badge comments to badges // @version 0.1 // @match *://c...

 
 
3 hours later…
11:11 AM
0
Q: Parsing "mailto:"

l2aelbaCan you help me to review my pasing "mailto:" function ? Since Im try to code less and simple as possible. Im not sure there is some bug or better solution. All feedbacks are welcome thanks :D var href = 'mailto:hello@world.com?subject=My+Subject&body=My+Body'; function getMailto(s) { va...

 
11:34 AM
tl;dr MutationObservers are screwed, and so is my code for some reason
 
lol
what's up
 
each message is stored like this
<div class="messages">
    <div class="message">
    <div class="message">
        <div class="content">
Inside the content are the content of the messages
Your two messages look like that, and each message block is stored like that, with each appending message getting its own <div class="message">
 
Okay, so what's the screwed part?
 
MutationObservers require a single DOM parent to be able to watch the children, but seeing as new messages from the same person only trigger inside the child, new children aren't added
 
I am pretty sure I told you how to fix this yesterday
Or the day before
Because I got it working...
 
11:39 AM
so the script won't trigger the render badge function for anything over 1 message in the same block
I'm not using subtree, that thing hung my browser tabs everytime I used it
 
m.observe(document.getElementById("chat"), {childList: true});
Yes, it hung your browser because didn't exclude elements.
subtree is the thing you have to use here..
 
anyway it's not causing the bug, it just means badges render when another person messages
 
this is effectively causing the bug:
!!> "Buzz".replace("", "Fizz")
 
@Quill "FizzBuzz"
 
11:43 AM
somehow null data sets are appending new data in front of them
 
sounds like a problem for SO
 
[badge:javascript]
 
12:11 PM
alright, bug 1 fixed
now onto that magical MutationObserver
 
Interestingly, even though I don't use JavaScript, it's the only language I have naturally evaluating (as in, there's an app for that) in my own language.
 
nice
 
I might add AppleScript simply because it's my bae.
 
wat
Oh, I missed the first comment
 
that usually does it
oh hey @danpantry that SO link does not work, like I thought
the only other thing I can think of is to attach a mutationobserver onto every message block
ooh, this app is going great along with my radiohead cd playing :P
!!/wiki Emo
 
12:24 PM
Emo /ˈiːmoʊ/ is a style of rock music characterized by expressive, often confessional, lyrics. It originated in the mid-1980s hardcore punk movement of Washington, D.C., where it was known as "emotional hardcore" or "emocore" and pioneered by bands such as Rites of Spring and Embrace. As the style was echoed by contemporary American punk rock bands, its sound and meaning shifted and changed, blending with pop punk and indie rock and encapsulated in the early 1990s by groups such as Jawbreaker and Sunny Day Real Estate. By the mid-1990s numerous emo acts emerged from the Midwestern and Central United...
 
!!/summon 34045
 
!!/help
 
@FlagAsSpam Information on interacting with me can be found at this page
 
!!/summon 33864
 
!!/eval inter${'polate'}
 
12:27 PM
@DanPantry "interpolate"
 
wow.
 
it lets you eval coffeescript as well
 
You should make it eval Vitsy. c:
 
@FlagAsSpam I can summon him to 19th byte if you want :P
 
:o No, thanks.
 
12:28 PM
@FlagAsSpam That is an incredibly long acronym in the GH name...
 
I need to actually do work anyways. >.>
 
ROs have the magical ability to kill this special bot magically
later, then
I'll ping you once I've fixed the bug
 
ROs?
\o/
 
Room Owners (and blue text named users -> mods)
 
room owners
people with italic names
makes them 200% more awesome
 
12:29 PM
I have a bold name. ಠ_ಠ You're just not looking hard enough.
 
LOL
 
Well, then.
LOL
 
I think that's a meme on Gaming
 
12:30 PM
@StackExchange ಠ_ಠ
 
It's weird that you can only cancel stars in the side bar
 
It's weird that only mods and room owners can cancel stars.
 
@FlagAsSpam wat?
 
it's like favouriting
 
12:36 PM
Ehh, people use it more like voting, though.
See: star spam.
 
What is the Memer supposed to do?
Replace messages with memes?
Or vice versa.
@DanPantry ಠ_ಠ I use a laptop.
 
@FlagAsSpam it replaces chat words that are memes in the memer db with hoverovers that describe the meme
 
Huh.
Like deal with it?
 
@FlagAsSpam No, 2nd monitor is a chat room known for star trains.
 
12:39 PM
@DanPantry Oh. Uh. Okiedokie.
 
For example, if a user wrote "Alex is wrong" in The Nineteenth Byte, it would have a hover over to say "He just is"
ಠ_ಠ hovers over to be ಠ_ಠ ಠ_ಠ ಠ_ಠ ಠ_ಠ ಠ_ಠ ಠ_ಠ ಠ_ಠ ಠ_ಠ
basically just my summaries of the meta meme answer
 
Huh. I have the script on. Does it need to be in The Nineteenth Byte?
(no it doesn't)
 
yeah, it's room specific to parent site
for example, monking flags here
 
O.O I just got pushed to a ad.doubleclick link.
I'm pretty sure it's another site. >.>
 
12:46 PM
it looks like an ad hover, but it links to meta
 
I'm deeply confused now. xD
 
 
2 hours later…
2:23 PM
hey @DanPantry I've got this really obscure bug, do you think you could take a look?
 
@Quill nice try, but I saw it in the tavern earlier
also, yt is blocked in work
 
goddamn it!
!!/ping codingbat.com
 
@Quill That didn't make much sense. Use the !!/help command to learn more.
 
!!/help
 
@Quill Information on interacting with me can be found at this page
 
2:30 PM
!!/listcommands
 
@Quill help, listen, eval, coffee, refresh, forget, info, listcommands, tell, afk, ban, unban, convert, define, doge, google, hang, imdb, jquery, learn, live, die, mdn, meme, mustache, moustache, nudge, spec, stat, stats, summon, unsummon, undo, unonebox, urban, user, weather, welcome, wiki, xkcd, youtube, zalgo
 
3:19 PM
!!/doge
 
       wow
                 very fail
                           so user
such pro
 
3:53 PM
0
Q: Concept - Creating client side validation from PHP object

Alexander WeihmayerI am making my own MVC framework and I was thinking of a way to do "automatic" client side validation controller. Among other functionalities, my forms, elements and validators are objects that work together somewhat like this (inside the form object): $this->addElement('text', 'myInput'); $this->

 
 
2 hours later…
6:12 PM
0
Q: Improving the code design of my JavaScript Canvas game?

nicezebraI created a canvas game that works well, but I'm trying to become a better programmer. I believe my code design could be much better. I'd like to know how I could improve this code. Here were my objectives for this code Create descriptive variable names and functions so anyone can tell what th...

 
 
2 hours later…
8:20 PM
0
Q: pass canvas content from client to admin using web socket

Below the RadarThe application aim to transfer drawings from client canvas to the admin canvas using web sockets the most smoothly possible. At every mousemove event, the client canvas is compressed to png and sent to server through websocket to finally arrive in the admin window where the image is drawn into t...

 
 
2 hours later…
10:43 PM
0
Q: setTimeout and setInterval

overexchange Problem statement After 10 sec, start reading the property descriptors of each property of an object and continue reading all remaining properties each, every 3 seconds until done. Solution function Timer(obj, start, interval) { var PDO ={ obj:{value: obj, enumerable: true,...

 
 
1 hour later…
11:57 PM
1
Q: JS form verification

XingD123I have three checboxes in my form. I have to check which one is checked and start the action. What do you think? Is this the easiest way of doing it? Checkbox 1 = cat Checkbox 2 = dog Checkbox 3 = dog Only cat -> form action Cat & any of dogs -> play music Dog & dog -> play ...

 

« first day (187 days earlier)      last day (20 days later) »