« first day (1132 days earlier)      last day (2538 days later) » 

3:25 AM
~ Mr. Wizard
 
 
3 hours later…
6:32 AM
~ Not everything is star-worthy...
 
 
1 hour later…
7:41 AM
@KennyBOT @rene can we tell what has been starred?
 
8:23 AM
@ShadowWizard You like summer, when it's not soup @ShadowWizard ?
 
9:06 AM
@ShadowWizard yes, I know the message_id, not the user who starred.
 
@JoErNanO no, too cold
@rene nice... Think it will be good idea to expose it?
 
9:26 AM
@ShadowWizard i'm considered to "be here"? :o yeah quite good, pays way less, but its cooler :)
and i got a looooooooot to do :x
 
9:37 AM
@ShadowWizard what would be the idea then? To have the BOT respond with [this](link to chat message) is not star-worthy?
 
9:52 AM
@ClemensHimmer so ask for a raise... ;)
@rene or just have the "everything" link, without changing the wording. :)
 
Ok, will work on that tonight
 
10:21 AM
:)
 
@ShadowWizard It's used like 3 times in a year and no spell has been awarded for over a year... let's be honest, it's dead. If I can sacrifice a totally unused feature for compacter and cleaner code, surely I do that.
 
10:50 AM
@ShadowWizard 5 months in and asking for a raise? uuuhm well
i dont think so ^^
 
11:32 AM
@ClemensHimmer oh well, at least you don't have lots of expenses... :)
 
11:43 AM
in Tavern on the Meta, 20 secs ago, by DroidDev
this question is copied exactly to this site (although not a pretty good one). Should I raise a flag or something?
@Sha ^
got the answer....
 
12:24 PM
@DroidDev cheers!
 
 
1 hour later…
1:24 PM
~ Man in the Shadow
 
~ Woman in the Shadow
 
2:03 PM
@Sha you know how can I manually call a click on something in jquery
something like below:
    $('id-of-view').click(function (e) {
          e.preventDefault();  //stop the browser from following
          window.location.href = arr[i];
   });
 
$("#id-of-view").click();
 
IIRC that's just:
... what @Sha just said
xD
 
but I need to get the click event also, and then do that window.location.href and e.preventDefault(); thingies
 
@DroidDev no sure I follow?
You mean change the handler?
 
2:05 PM
umm...lemme try your method first
@ShadowWizard umm...yeah, I need to have a handler on click and must do those two lines of code inside it, that I posted above
that allows me to download multiple files from aws directly via their urls
 
@DroidDev that's what it will do...
@DroidDev not really, once you change the window.location.href, you lose control over the page.
It's redirecting to the URL.
 
$("#id-of-view").click(function (e) {
       e.preventDefault();  //stop the browser from following
       window.location.href = arr[i];
   });
I tried above
@ShadowWizard that's why e.preventDefault()
 
@DroidDev it's meaningless.
 
it prevents page from following and just downloads my links
 
Page will redirect because you say it to redirect with a JS command.
 
2:08 PM
@ShadowWizard umm..its actually working somewhere else. On an anchor tag
function downloadmultiplefiles() {

        $('#AttachmentsList').find('tr').each(function () {

            var row = $(this);
            if (row.find('input[type="checkbox"]').is(':checked')) {
                var url = row.find('.downloadfilefroms3');

                url[0].click(function (e) {
                    e.preventDefault();  //stop the browser from following
                    window.location.href = row.find('.downloadfilefroms3').attr('href');
                });

            }
this is working, without redirecting page to anywhere
it just downloads files
 
Try using iframe and change its src instead of changing window.location.href
 
umm....lemme see
 
Also, what are the URLs? @Dro
Maybe if it's a file, the browser is smart enough to just download it, and not actually redirect.
But it's browser dependant, and better not be used this way IMO.
 
@ShadowWizard those are files stored on aws. But, browser opens them if I just put redirect there. I need to force browser to download them all at once
 
@ShadowWizard Yes, indeed. If it's a HTML document, the browser will surely redirect. If it's like a .zip file or something, it will download.
 
2:12 PM
@ProgramFOX but resume control of JS from where you redirected? Not sure...
 
hm no idea
 
Anyway, using iframe should be better, no? @Pro
 
I guess
Personally I think I'd just have a <a>with the HTML5 download attribute and let the user decide when they want to download the file
 
I usually just give target to the links, and let users allow popups if they wish.
Don't love forcing anything.
 
hmm...maybe I can try to use iframe with hidden attribute and then put js on that page's .ready()
to download it
 
2:13 PM
@DroidDev Do you have server-side code?
 
@DroidDev yup that should work
 
@ProgramFOX yeah, I have
 
But you can't force download with client side code only, @Dro.
 
@ShadowWizard I am actually doing it somewhere else, with some other things. Posted code above
 
@DroidDev If you want to download "them all at once", you could make your server generate a .zip/.tar/.tar.gz/... of all files and throw that at you. I have no idea what your use case is though.
 
2:15 PM
@DroidDev that's not forcing any download. e.g. text file won't be downloaded.
 
@ProgramFOX actually, they are not on my server, they are on aws, so....
 
@DroidDev You mean?
 
@ShadowWizard they are. Not only text, but any kind of file. It downloads, since I am preventing browser from opening the file with e.preventDefault()
the location.href is then forced to download the file
@ProgramFOX the files, that I have to download, are public urls of aws storage server. If you type them in browser, they'll open the file, depending on browser's support
 
Ah
Well, I think your best bet is still to use the HTML5 'download' attribute, @Dro - developer.mozilla.org/nl/docs/Web/HTML/Element/a
> This attribute instructs browsers to download a URL instead of navigating to it, so the user will be prompted to save it as a local file.
 
oh...let me see it. I think this should do the job
umm...its used inside anchor tag. I am getting list of strings from my api
I only have urls in jquery
 
2:20 PM
well
then create <a> elements dynamically
with the URLs when you get them
 
hmm....gotta search on that too. Lemme google this
 
Also, I think you're misinterpreting .preventDefault. What it does, is avoiding that the default action on an event gets triggreed. So in case if a link click, preventDefault prevents the browser from navigating to the page. But if you then do location.href = ..., you're just simulating the link again.
 
@ProgramFOX umm....the click function is on anchor tag defined in html, so when I trigger manual click, it prevents the default and downloads file. This is one hack that I found on SO somewhere
 
(which, however, may be useful if you want to redirect the user to another page to where the link itself points too, but I don't see any use for that aside from needlessly hiding the real location from users, so I don't think you would need that :P)
 
but you are right about misinterpretation (woah, that word took a while to get written)
 
2:24 PM
@DroidDev Hmm, well if the said file is a text file, and you navigate to it with location.href, it would still navigate to that page, rather than download it, no?
 
@ProgramFOX it downloads, I have tried with a text, pdf, word and an image file
all at same time.
 
oh okay
 
it goes for multiple downloads
 
hadn't expected that
good to know, I guess
 
might come handy some day ;)
 
2:29 PM
@DroidDev so the AWS server is forcing the download, not your code. :)
(something with the headers)
 
oh yeah that's true, servers can do that
 
@ShadowWizard if I try without e.preventDefault() my browser opens the file
with it, it downloads the file
 
Well, that's weird.
throwing @ber on @Dro
 
haha
 
Now that should fix things up. :D
lol almost forgot @ber also pings @Ber :P
So now throwing @ber on @Dro means throwing two people on @Dro :D
 
2:40 PM
is @bers pregnant? :P
LMFAO
 
@DroidDev both males so no... :(
I suspect @Ber is teenager, 15-17 y/o, and pretty much innocent... :D
 
@ShadowWizard doesn't look that way from avatar, but if you say so
 
@DroidDev it's a friend of his
in Baker Street, 2 days ago, by Berry Holmes
no this is my friend
 
oh
 
ho
@Ber why so silent? :(
 
2:59 PM
!!blame
 
@ShadowWizard blames @Fawad for everything
 
3:11 PM
@ShadowWizard Nah I'm older than that :P
@ShadowWizard because I was answering some questions on Chem.SE
 
so we have two @Ber's now, confusing :P
 
@ProgramFOX You can always type @Holmes :P
 
However, @Holmes doesn't ping you :)
 
Oh!
Feature request!
 
3:29 PM
!!blame/@ProgramFOX
 
~ That is all gibberish to me...
 
Huh?
 
lol, !! is a prefix used by a non-!!blame-able bot here
 
@ProgramFOX but how do I blame a specific person using that bot
 
!!blame
 
3:32 PM
@ProgramFOX blames @Berry Holmes for everything
 
(idk let me try to find out)
!!blame Berry
!!blame testtest
Well, @Berry, you can't :P
 
@ProgramFOX :(
!!blame
 
uhh...
!!blame
@rene ^ The bot doesn't reply? I blame you!
 
KennyBOT is perhaps taking a nap
 
4:08 PM
@ProgramFOX 6 minutes
 
@rene Oh, why is there a timeout?
 
because you can't be trusted to not abuse it
With you I mean all regulars in this room of course
And no hard feelings
 
5:00 PM
throwing hard feelings on @rene
!!blame
 
@ShadowWizard blames @maňish for everything
 
Throwing hard @ShadowWizard on @rene
.... kinky ....
:O
 
5:16 PM
NSFW
 
 
1 hour later…
6:17 PM
~ Midnight Shadow
 
6:56 PM
@BerryHolmes 18?
status-invalid-argument
@JoErNanO I can't be hard with @rene, he is a sensitive Flower.
need to pee
!!pee
 
~ Open the floodgates ....
 
just in case...
!!poo
 
~ πŸ’© πŸ’© πŸ’©
 
Three!
 
~ πŸ’© πŸ’© πŸ’©
~ πŸ’© πŸ’© πŸ’©
 
7:05 PM
~ πŸ’© πŸ’© πŸ’©
~ πŸ’© πŸ’© πŸ’©
 
~ ~ πŸ’© πŸ’© πŸ’©
 
~ ~ πŸ’© πŸ’© πŸ’©
 
~ ~ πŸ’© πŸ’© πŸ’©
~ ~ πŸ’© πŸ’© πŸ’©
 
~ ~ ~ πŸ’© πŸ’© πŸ’©
 
~ ~ ~ πŸ’© πŸ’© πŸ’©
 
7:33 PM
!!flush
 
 
1 hour later…
8:34 PM
~ Two in the Shadow
 
 
2 hours later…
10:35 PM
~ The Shadow Box
 

« first day (1132 days earlier)      last day (2538 days later) »