« first day (1650 days earlier)      last day (3299 days later) » 

12:38 AM
@Zirak proposed a good question: how does google hangouts allow screencasting without a plugin?
is this baked into the browser?
a google backdoor?
 
12:54 AM
My guess would be it's baked into the browser
 
> P.P.S. We do not encourage or display profanity levels above the social norm in the work place. As such, profanity will not be accepted in lieu of skill.
 
Hangouts is a browser plugin
Wait, isn't it?
 
if it is, it is not listed
 
about:plugins
 
> your ex-coworkers will stay in touch too but honestly fuck 'em, you'll have new, better friends.
 
1:03 AM
@copy unless it is Native Client I see nothing about hangouts
 
Says Google Talk for me
Maybe because I'm using Chromium
 
that isn't hangouts
that is gtalk
specifically in hangouts, I can screencast an entire monitor
mouse included
no native app, no extension
 
WebRTC can do that can't it?
 
i have no clue
!!summon 29074
 
I don't have an official ref, but per this page apparently there is a "screen"/"desktop" media-source option for WebRTC in Chrome and Firefox.
 
1:09 AM
@Zirak !!youtube is broken
@JeremyBanks \o/ welcome new mod dude
!!welcome JeremyBanks
 
@JeremyBanks 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.
 
bahahahahahhaah
 
:D
 
Thank you, @CapricaSix, I will keep that in mind.
 
@JeremyBanks thankyou, it would be very helpful if you did
 
1:11 AM
Where'd I put that Cylon detector...
 
If my owner didn't feel bad about voting twice, I totes would have voted for you. <3
^ any mod can check that(?). I did not vote.
 
Mods have access to user actions?
 
I added a (?)
 
Yeah i m asking as well
 
by mod I really meant employee
 
1:14 AM
se staff can probably do that
 
not going to lie, briefly thought about it
briefly.
but fuckit
not worth it by far
 
Haha, well, I do appreciate the sentiment. :P
Though it's probably best for both of us that you did not cheat.
 
Tbh i had no idea you were in the election x.x
 
hah, I can't abuse cap
 
cap is community property ei
 
1:15 AM
I have upvoted her, but only on answers @Zirak added under her control
 
chat would suck without her :P
 
I've tried to be very careful not to abuse voting with her
it is strange because more than one person has her login. (3 to be exact, including me)
and i'm not positive one of them remembers it
 
I onced favourited a post I wrote on a sockpuppet. I wasn't sure whether that would be considered voting. Probably not, but I avoided doing it again in the future.
 
You're such a rebel
 
see I figure I'm okay because A) i didn't author the answer I voted on, and B) I don't use her to vote on other accounts.
but if I'm not I'll fully accept the removal of the votes I put on the 1 or 2 answers :P
 
1:19 AM
just write a jquery answer and get 10 insta upvotes when you need rep
 
heh, I don't need the rep
she doesn't either
 
Fortunately I do not yet have enough confidence in my moderation to feel justified raining fire down on Caprica for that admission.
 
well, on meta she does. and on SE
 
beep you don't scare me! beep
 
Haven't seen you around here before though, did you use the chat before becoming mod?
 
1:22 AM
I do pop in occasionally, but I'm not a frequent chat user.
 
maybe in the py room
 
Yeah -- a bit more often.
 
@JeremyBanks you should be
 
a cool
 
we're way cooler than main
 
1:22 AM
chat > main
 
I wish there was chat rep
I would be drowning in it
:(
 
^^^ there should be
 
Sausages being rep, you being the chick
@Neal you guys need a redesign
 
Chat is certainly special.
 
1:29 AM
Now where's the "I want a free TShirt" close option? — Ivo Wetzel Aug 28 '11 at 15:00
 
@rlemon I assume @CapricaSix uses Node/IOjs?
 
can anyone help me with vlc
 
As opposed to, say, Ruby.
 
@JeremyBanks hah!
bookmarklet
thank @Zirak
!!help
 
@rlemon Information on interacting with me can be found at this page
ignore me
 
1:31 AM
Ah, I see. That could be convenient.
 
really a userscript that loads the master.js
but can be loaded via bookmarklet
beer!google hello world
 
wait a sec we can get you to output things by beer!google-ing?
 
disabled already
 
:(
 
beer! is the default invocation pattern for dev mode
!!has @JeremyBanks banned you yet?
 
1:36 AM
@rlemon That didn't make much sense. Use the !!/help command to learn more.
 
aww
you suck
 
I've never used even room-owner powers on another user.
I'm not familiar with them.
 
they are not interesting
kick-ban
 
beyond kicking there's nothing else
 
I see a kick-mute option. Do I get to specify a duration?
 
1:37 AM
that is it
 
nope
no duration
 
first time is 1 min
 
Can I undo it?
 
second is 5 min
3rd is ban
 
nope can't undo
 
1:37 AM
iirc
 
3rd is 30min iirc
+ mod flag
 
!!! test
 
but an actual chat ban
 
@JeremyBanks That didn't make much sense. Maybe you meant: d, π, !!
 
not just that room
 
1:38 AM
@JeremyBanks minus the space
and just 2 !!
 
!!test
 
@JeremyBanks That didn't make much sense. Use the !!/help command to learn more.
 
so the first 2 are room specific?
boot me for a sec
 
!!commandName or !!>js code are her two most positive functions
yea they are @Kitler
 
💣
!!test
@CapricaSix !! does this let you back?
 
1:39 AM
chat doesn't let you post the same message twice
she's telling you she doesn't understand
!!echo I don't know that one
 
I was wondering if the super-ping would clear her ban.
 
did you kick the bot? :P
 
After you complained that I hadn't, yes.
 
she is no longer in the room
 
LOL
 
1:40 AM
I kicked @Kitler too.
 
and i'm not at the pc that controls her
WAY TO GO @JeremyBanks!
 
ah damn
 
A disadvantage of running in a browser like that, I guess.
 
yup
 
she's still in the html room, can you summon her from there? or !!summon only works in here
 
1:41 AM
I'll stick with Python for my bot.
 
I can host her from here, but her memory is in localStorage
so none of the user taught commands will be there
 
should host her on a DO droplet or something
 
[redacted] figured out the hosting but when I was adverse to giving him the login without the other two people he backed out.
I just didn't wanna make a decision on behalf of all of the bot maintainers
 
I'm curious who the third user is
 
jesus, definitely jesus
 
1:46 AM
@KendallFrey the one I gave ownership to dr eval too
just don't feel like pinging and getting into it again
 
2:06 AM
whos running linux
 
linus torvalds
 
Rofl
 
2:22 AM
hey guys, new to this chat, how's it going?
 
Badly for me. Have some big problem with Crystal Report, that is costing a great deal of my time causing other delays.
 
user1596138
I tried to schedule a ton of push notifications earlier from the control panel I made at the end of the day and i couldn't get it to work so I went home and left it for the day... Wrong timezone. I basically scheduled spam for myself
 
user1596138
@rlemon because the bot can't be run on any account but CapricaSix, obviously.
 
@ChrisHennighan great
you?
 
2:39 AM
57 mins ago, by rlemon
I can host her from here, but her memory is in localStorage
 
3:19 AM
@Sheepy I know this doesn't help your immediate problems, but I've fallen in love with XSL Formatting Objects for my report generation needs.
 
i've been spending the last few days on a drop down style search with data being sent from the server
does anyone have a basic one that I can plug in the content to, and isn't like a full page
 
@phpPluginMaster did you happen to use a... php plugin?
haha just joking
last autocomplete plugin I used was in jquery ui
 
'combobox' pulling data thorugh ajax?
 
what issue are you currently having with yours @phpPluginMaster
 
3:30 AM
i've been trying to use an autocomplete, but i get stuck on the communication between the two
 
they are pretty easy to make generally, I mean pulling/getting the data anyway, the front end portion is the hardest part
ah yeah select2 is crazy popular
 
Oh I remember you now
 
it's not perfect for mobile, buse but it's pretty damn capable
 
you have the kickass avatar haha
 
3:31 AM
is there a sample one?
nvm
 
k
ajaxlivesearch.com was too complex for my needs
 
@Luggage Thanks; I tried and gave up XSL last decade. Now I use SSRS.
 
:-? looks fairly easy, but I wonder if I can get it
let me try
 
i went the oposite direction
 
3:35 AM
Lol
 
designers are easy to get started, then always fell short
but i use handlebars to generate the xml from my data instead of xsl
 
Well, I put most logic in database to keep the report simple. Just pass parameters to a stored procedure and focus on formatting.
 
yea.. i do as much trnsform as possible until i have a json blob the rought shape pf the report
then just convert that to xml-fo
 
in select2 can you use pure html?
 
works well. the same mostly-transforms json goes into excel exporters, html pages, etc
 
3:39 AM
k
 
@phpPluginMaster html and javscript, of course
it needs jQuery. I don't knwo if tht's a problem for you
 
Yes. Perhaps I should revisit XSLFO next time. :)
 
playground.jsreport.net/#/playground/gkxJuycgR5 (i use this to render my FO, but the commandling app would work, too)
 
formatting objects
 
3:40 AM
k
 
old-ish xml format for feeding into an engine to make PDFs
 
k
I actually never used ssrs in production. I used Active Reports for years
 
sql server reporting services
a report designer / runner that was once heavily tied to sql server and now might be usable standalone
but all microsofty and tied to ms shit
 
3:48 AM
k
 
i knew that was coming :)
 
i tried posting the two parts of "loading remote data", and it doesn't put the box
textbox
maybe i should start with the original way, and build u from there with help
 
@Luggage Somehow I'd rather be Microsofty than Googly or Facebooky...
 
@Sheepy?
 
@phpPluginMaster Mea?
 
3:59 AM
what are you talking about?
 
@phpPluginMaster Responding to Luggage. Nothing to do with JS.
 
@Sheepy k
I wish there was a plugin search like google/facebook that was easier to use than 3.14159265358...
cause i can't seem to plug in select2
people on git like to put all these other things with their code
 
 
2 hours later…
5:47 AM
0
A: Should framework comparison questions be deleted?

Benjamin GruenbaumYES these questions should be definitely be deleted. JavaScript frameworks move really fast and change from version to version. Comparison questions are often very opinion based anyway and what happens is that they end up containing a lot of misinformation. So while choosing a framework is a re...

 
@BenjaminGruenbaum Good answer, I would perhaps add that choosing a framework also is about context and which problems your app is going to fix. Is it SPA? Is it CRUD? Is it heavily data-driven? What skills/experience do you have in the team? All these things matter IMO, and any given random SOer won't be able to factor that in when recommending a framework
 
The problem isn't really context - it's that it's opinion based.
It's for the same reason I wouldn't open a "should I use callbacks or promises" question
or "should I use jQuery or vanilla"
Although, these can be asked in a different appropriate way sometiems - that would make them a completely different question.
 
From SOs perspective the problem is opinion based, but I still argue that when choosing the right framework one should consider context, which makes it a bad idea to ask on SO even if it was on-topic here
 
Add an answer :)
 
I've a fairly high treshold for posting answers on meta, I'm still relatively new to this site :)
And you're right that from SOs standpoint the fact that it's opinion based is already enough to shoot down framework-recommendation questions
 
6:19 AM
boo, got downvote
 
6:42 AM
I think I'll just give up on the "Help and improvement" queue... stackoverflow.com/review/helper/7793006
 
(derp, wrong PR)
!!afk sleep
 
good morning xD
 
7:03 AM
@ivarni I usually do the close queue filtered to duplicates only
And to javascript, php and html only
My golden badge helps clearing it quickly
 
@MadaraUchiha I don't have a hammer, so close queue feels a bit unproductive
besides I've done 1024 close queue reviews and I don't want to ruin that nice number :p
 
@ivarni Understandable.
 
@MadaraUchiha why the coming back?
I kept typing @sec and there was no tab completion :(
 
I'm trying to get into editing, but I always end up just skipping because I'm not sure how to edit correctly most of the time
I actually wish I could opt-in to have edits reviewed even after reaching 2k
 
Typo ^
@ivarni It's a highly requested feature.
But then, who'd review the reviewers?
 
7:10 AM
@MadaraUchiha I guess rollbacks are the last defence against crap edits
 
@ivarni Yeah
Be bold, nothing will happen if you make a few mistakes.
 
I suppose.. I just feel my safety net was ripped away a bit early :)
 
7:24 AM
Hello,

I want to get an alert box to confirm if a person really wants to delete the post in php but everywhere I look on SO, I get the solutions where they echo javascript in php which seems like a dirty solution to me. How can I do this? I'm using a standard alert box like this:

function myFunction() {
if (confirm("Press a button!") == true) {
} else {

}
}

And my link is currently:
<a onclick="myFunction" href="index.php?del=1&id={{$id}}">Delete </a>

How can I do this?

echoing the script isn't the right way right?
 
@Loko Why does PHP need to be involved in the creation of the script?
 
@Loko I think going through PHP just to show a confirm is even worse, why do you think JavaScript is not the right way?
 
@Loko What I would normally do is have a button submit (after confirming) an ajax request to /delete?id=ID
 
@Sheepy I'm not really experienced with javascript but currently it will delete the post regardless of what you press, makes sense since the if and else statements are empty but I cant seem to figure out how to make the link not to execute if cancel is pressed.
 
@Loko Oh
 
7:29 AM
@Loko I see. So the problem is with the JS script.
 
Well, there are a couple of ways
 
@Sheepy Yes JS script is the 'problem'
 
If you return false from the handler, the click won't be registered.
 
Try this:

<a onclick="myFunction(event)" href="...">
...
function myFunction( evt ) { if ( ! confirm("Confirm?") ) evt.preventDefault(); }
 
@Sheepy Even simpler
 
7:31 AM
@MadaraUchiha like what?
 
function myFunction() {
    return confirm('....');
}
Should do the trick.
 
I don't like to return false. But yes it will do the trick, too.
 
@Loko confirm returns a boolean, and when you return false from the click handler, the click won't be carried out.
Although @Loko I wouldn't use a link in the first place.
 
the dots would be the question:"Are you sure you want to delete it?"
 
@Loko Yes
 
7:33 AM
In fact I think if you just return false, you can simply put confirm in the onclick attribute?
 
@Sheepy The onclick attribute itself is pretty evil, you know :P
 
@MadaraUchiha When I press cancel now, it will still delete the post.
@MadaraUchiha It looks like no matter what output javascript has, it will still go through the href="link".
 
@Loko Hmm. Weird. Have you tried my function instead?
 
@Loko Looks like it. Try @Sheepy's function.
 
@Sheepy Yup. It deletes the post as well when i press cancel
 
7:36 AM
@Loko Let's try a different thing
Don't use the onclick attribute, inistead, attach the event from JavaScript
 
@MadaraUchiha What do you mean?
 
Here is a minimal test case to prove that it should work. If it does not work for you then it is some other problem:
<a onclick="myFunction(event)" href="javascript:alert('a')">Test</a>
<script>function myFunction( evt ) { if ( ! confirm("Confirm?") ) evt.preventDefault(); }</script>
 
@Sheepy Apparently this works...
@Sheepy No idea how
 
var myLink = document.getElementById('myLink');
myLink.addEventListener('click', myFunction);

function myFunction(e) {
    if (!confirm('foo')) {
        e.preventDefault();
    }
}
 
@MadaraUchiha Sheepys code worked but I have no idea why that worked and the previous codes didn't
 
7:40 AM
@Loko Try Madara's solution, which can solve some event handler conflict. If still not work, got to debug with F12 tools.
 
morning
 
@Sheepy @MadaraUchiha Thank you. Both of you :D
 
@Loko You are welcome~
@Neoares morn~
 
8:11 AM
howl.
 

« first day (1650 days earlier)      last day (3299 days later) »