Best posts made by Monarch
-
RE: Common Core math question is Algebra!!!! *gasp*
http://thefederalistpapers.integratedmarket.netdna-cdn.com/wp-content/uploads/2014/09/common-core-math-problem.jpg
So, no they don't.
I would come the next day with a calculator and ask the teacher to prove it.
-
RE: Polish electorial calculator
this.servers[0] = "https://syswyb.kbw.gov.pl/";
I see what is the problem. They are using perl
would not have happened if they used php
-
RE: Windows shutdown script fustercluck
or buy one of my patented invention
You will need
- Mouse with light sensor
- Adhesive tape
- newtons cradle (with battery backup)
-
Del/Ins corrector - Composer Extension (UserScript)
//Monarch $(document).ready(function(){window.PagedownCustom.appendButtons.push({id:"wmd-del-button",description:"del/ins correction",execute:function(a){a.before+="<del>"+a.selection+"</del><ins>";a.selection=" ";a.after="</ins>"+a.after}});$(document.body).append('<style> #wmd-del-button::before {content: "\\f12d";}</style>')});
Thanks @Zecc for the original idea, and @Onyx for the
ideainspiration.http://what.thedailywtf.com/uploads/default/20521/143513050ab042af.mp4
-
RE: Post_type explanation request
Might be just poor naming and it could be that. But I'd rather hear it from the horse's mouth.
Here you have it
-
RE: Windows shutdown script fustercluck
Hey guys my kick-starter is also going to sell this kit based on my other patent.
let me know how many of you want this. I can give you early bird pricing.
-
RE: New Google Fiber Cities
He is good at his fetish, because he trained.
I wouldn't be so happy with google taking over the world, from my experience with google services. At first it is like they sprinkle soft sugar powder with vanilla flavor - all over your body.
But what you don't know is that in time they plan to turn it into caramel.Filed Under: bring back google wave and google reader.
-
RE: The Game
> Close reddit app > open Browser > go to what.thedailywtf.com > intuitively you navigate to a topic Titled: The Game > Inception
-
RE: Your Google account was just used to sign in from London
It wouldn't be hard at all,
multi billion dollars company, and this is how they combat phishing.
http://www.computerworld.com/article/2509783/security0/google-boosts-gmail-s-anti-phishing-feature.htmlnot much changed since 2011
how about those phishing alerts give you an option to jump to the legitimate site?
Mockup:
How about using this phishing alerts to create a multilayer phishing scam.
where the "back to safety" button take you to a fake login page, with some clever social engineering you can
create the illusion that the browser actually protected you, and that will lower your guard. -
RE: Which is the bigger problem?
having to sit at a desk 8 hours a day, 5 days a week, 50 weeks a year, for most of your life, is being unemployed
it is worst to sit at a desk 8 hours a day, 5 days a week, 50 weeks a year, for most of your life. and realize that you did more when you were unemployed.
-
RE: My own WTF interview
One time I went to a made up interview for a company that make a navigation app for mobile devices.
I had hard time finding the place so I called them and I said that I can't find the office and asked if they can give me some directions.
They laughed and said you should have used our app. I laughed and said I do. -
RE: And you thought outsourcing to *India* was bad.
Reading material for the ios developers among them.
-
PM/Chat Plugin - break it or leave it. V1.4.5 & 2.3-beta
Thanks for all the people who send me PM today and allowed me to get the plugin to version 1.0
The code is obscure and safe and no warranty is provided.
Features
- direct access to the last ~15 pm
- shows if new or how many unread messages in a conversation
- quick preview of the last replies inline
- participants avatars in conversation, hover to get name tooltip if needed.
Known stuff & miscellaneous
* preview messages does not show date and time - what a shame-
preview is stealth and will not mark messages as read.
-
developed on desktop was not tested or design for mobile.
* The plugin does not auto-refresh, if you want to update you have to open the envelope.
the other notification will show you if you have new message anyway.* I started the idea of adding an inline reply in the preview section to provide a chat like interface but this feature is not there yet.-
run in console and should work if add to an extension(greasemonkey)
-
security: The preview functionality almost got me with xss. I was trying to show a text version only due to visual issues,The conversion allowed html tag to be rendered. I moved back to just rendering the "cooked" version
and instead added some styling to fix the visual issues. I consider it pretty safe on that aspect, but testing is welcomed.
* there is a small bug, it may show 1 even if there are no messages need attention blah- 1/20/2014: click on @mention in the preview will go to the user page as a new page which will reset the widget
###Inline preview of the last replies
###code (Version 1.4.5)
(function(f){f.Styler||(f.Styler=new function(){var c={};this.loadStyle=function(a,h){c.hasOwnProperty(a)?0==c[a].added&&(c[a].content=h,this.appendStyle(a)):(c[a]={content:h,added:!1},this.appendStyle(a))};this.listLoadedStyles=function(){};this.removeStyle=function(a){c.hasOwnProperty(a)&&(c[a].added=!1,f("#Styler_"+a).remove())};this.appendStyle=function(a){c.hasOwnProperty(a)&&(c[a].added=!0,a=f("<style id='Styler_"+a+"'>"+c[a].content+"</style>"),f("body").append(a))}})})(jQuery); window.APIHelper=new function(){this.get_last_page=function(f,c){window.Messages_plugin.getCache();var a=window.Messages_plugin.get_topic_data(f),h=a.preview_posts.last_post_number||1,n=void 0===a.preview_posts.last_post_number,k=Math.ceil(h/20);$.getJSON("http://what.thedailywtf.com/t/"+f+".json?page="+k,function(a){var g=Math.ceil(a.posts_count/20),q=20-(20-h%20);g>k?0==q||n?$.getJSON("http://what.thedailywtf.com/t/"+f+".json?page="+g,c):c(a):c(a)})}}; window.Messages_plugin=function(){function f(a){if(null===g.json_result||null===g.last_fetch_time||1E4<Date.now()-g.last_fetch_time){var b=Discourse.User.current();b&&(b="http://what.thedailywtf.com/topics/private-messages/"+b.username+".json?_="+Date.now(),$.getJSON(b).then(function(b){g.json_result=b;a(b)}),g.last_fetch_time=Date.now())}else a(g.json_result)}function c(a,b){var p=$("<div></div>");_.forEach(a.posters,function(d){var e=_.find(b.users,{id:d.user_id});d=e.username;e=$("<img src='"+ e.avatar_template.replace("{size}","20")+"'></img>");e.attr("title",d);p.append(e)});return p}function a(a){var b=a.topic_list.topics;n.find("div.loading").hide();g.unseen=0;var p=0<n.find("li").length;_.first(b,15).forEach(function(d){if(l.hasOwnProperty(d.id))return!0;var e="<span style='float:right;margin-top:-2px;padding:3px;border-radius: 3px;'>"+Discourse.Formatter.relativeAge(new Date(d.last_posted_at),{format:"tiny",wrapInSpan:!1})+"</span>",e=$("<li><a>"+Handlebars.Utils.escapeExpression(d.title)+ "<span>"+e+"</span></a></li>");e.data("topic",d.id);e.data("preview-posts",{preview_rendered:!1});e.attr("data-topic-id",d.id);e.data("preview-posts");var b=$(e.find("a")),f="",m=d.posts_count;d.unseen&&(e.addClass("unread"),e.css("background","#D6F5FF"),b.append($("<span class='badge-notification new-posts'>new</span>")));null!==d.last_read_post_number&&(f="/"+d.last_read_post_number,m-=d.last_read_post_number);0<m&&(b.append($('<span class="badge-notification">'+m+"</span>")),g.unseen+=1);b.append(c(d, a));var m=$("<div class='last-message'><div class='messages'></div></div>"),k=m.find("div.messages");k.css({"overflow-y":"auto","max-height":"209px"});var q=$("<div class='quick_preview'><span style='background:#fff;color:#979797;border-radius: 3px;cursor:pointer' class='qr_btn badge-notification'>preview</span></div>");e.data("preview_rendered",!1);q.click(function(){l[d.id].preview_posts.preview_rendered&&$(l[d.id].last_message_preview).toggle();"none"!=$(l[d.id].last_message_preview).css("display")&& h.update_topic_preview(d.id)});e.append(q);e.data("last-message",m);e.append(m);b.attr("href","/t/"+d.slug+"/"+d.id+f);e.css({padding:"5px 5px 5px 5px","margin-bottom":"2px"});p?n.prepend(e):n.append(e);l.hasOwnProperty[d.id]||(l[d.id]={model:d,element:e,preview_rendered:!1,last_message_preview:m,last_message_preview_messages:k,preview_posts:{},active:!1})});0<g.unseen?(_pm_notification.html(g.unseen),_pm_notification.css("display","block"),$("#user-messages").css("color","#48AAEF")):(_pm_notification.html("0"), _pm_notification.css("display","none"),$("#user-messages").css("color","#999"))}var h=this,n=null,k=null,l={},g={unseen:0,last_fetch_time:null,json_result:null,last_notifications_history_unread:{},chunk_size:null};this.debug=function(){return{self:h,_list_outlet:n,_dropdown:k,_max_topics:15,_max_preview_messages:3,_list_items:l,_cache:g}};var q=function(a,b){var p=a.preview_posts,d=a.last_message_preview_messages;_.forEach(b,function(a){if(p.hasOwnProperty(a.post_number))return!0;p[a.post_number]= !0;p.last_post_number=a.post_number;var b=$("<div></div>");b.addClass("preview-stream-msg");b.attr("data-post-number",a.post_number);b.css({background:"#E6E6E6",margin:"3px","border-radius":"6px",padding:"5px"});var c=$("<div>"+a.username+"</div>");c.css({display:"inline-block","font-weight":"bold"});var f=$("<span>"+Discourse.Formatter.relativeAge(new Date(a.updated_at),{format:"tiny",wrapInSpan:!1})+"</span>");f.addClass("relative-date");f.attr({"data-time":new Date(a.updated_at),"data-format":"tiny"}); f.css({color:"#9AAFFF","margin-left":"5px"});var g=$("<img src='"+a.avatar_template.replace("{size}","20")+"'></img>");g.css({"margin-right":"5px"});c.prepend(g);a=$("<div></div>").html(a.cooked);b.append(c).append(f).append(a);d.append(b)})},r=function(a){var b=h.get_topic_data(a),c=b.preview_posts,d=b.element;if(1!=c.preview_rendered){c.preview_rendered=!0;d.addClass("active_preview");b.active=!0;var c=$("<div class='quick_reply_container'><div class='qr_input_container' ><textarea></textarea></div><span class='quick-reply-button badge-notification'><i class='fa fa-reply'></i> reply</span></div>"), e=c.find("span.quick-reply-button"),f=c.find("textarea");f.keydown(function(a){a.ctrlKey&&13==a.keyCode&&e.click()});f.focus(function(){d[0].scrollIntoView();$("#messages-dropdown").css({overflow:"hidden"})});f.blur(function(){$("#messages-dropdown").css({overflow:"auto"})});e.click(function(){var b=$(this).find("i");b.addClass("fa-spin");$.post("/posts",{raw:f.val(),category:"",topic_id:a,is_warning:"false",archetype:"regular"}).done(function(){f.val("");b.removeClass("fa-spin");h.update_topic_preview(a)})}); f.css({background:"#E2E2E2",width:"97%",height:"45px","margin-bottom":"0px","margin-top":"3px","padding-bottom":"0px"});e.css({margin:"5px 0px 5px 0px",border:"1px solid #8D8EE3",background:"#3D7FFF","border-radius":"4px",cursor:"pointer"});b.last_message_preview.append(c)}};this.get_topic_data=function(a){return l.hasOwnProperty(a)?l[a]:!1};this.update_topic_preview=function(a){var b=h.get_topic_data(a);APIHelper.get_last_page(a,function(c){b.element.css("background","#BDD8FE");var d=b.last_message_preview_messages; d.css({width:"100%",background:"#F5F5F5","max-height":"250px",margin:"-2px 0px 5px 0px",overflow:"auto"});c=_.last(c.post_stream.posts,3);var e=d[0].scrollHeight-d[0].scrollTop==d[0].clientHeight;q(b,c);e&&d.animate({scrollTop:d[0].scrollHeight},"slow");r(a)})};this.getMessages=function(){f(a);this.showDropdown()};this.showDropdown=function(){k.css("display","block");$("#messages_menu").addClass("active")};this.hideDropdown=function(){k.css("display","none");$("#messages_menu").removeClass("active")}; this.prepare=function(){f(function(c){a(c)});h.hideDropdown()};this.getCache=function(){return g};(function(){var a=$("ul[role=navigation] li.notifications"),b=$("<li id='messages_menu' class='messages'><a class='icon' href='#' id='user-messages'><i class='fa fa-envelope-o'></i><span class='sr-only'>notifications of @name mentions, replies to your posts and topics, private messages, etc</span></a></li>"),b=$(b);b.insertBefore(a);_pm_notification=$('<a id="pm-notification" href="#" style="background:#48AAEF;margin-left:-14px;" class="badge-notification"></a>'); _pm_notification.css("display","none");$("#user-messages").append(_pm_notification);$("#messages_menu").click(function(a){a.preventDefault();"block"==k.css("display")?h.hideDropdown():h.getMessages()})})();(function(){var a=$("div.panel"),b=$("<section class='d-dropdown' id='messages-dropdown'> <div id='messages_container'><ul><div class='loading'>Loading ... </div></ul></div> </section>");b.css("width","480px");k=b;n=b.find("ul");a.append(k)})()}; function hook_to_user_notifications(){window.MessageBus.subscribe("/notification/"+Discourse.User.current().id,function(f){window.last_notification_call&&300>Date.now()-window.last_notification_call?window.last_notification_call=Date.now():Discourse.ajax("/notifications/history.json").then(function(c){c=_.where(c,{read:!1,notification_type:6});_.forEach(c,function(a){window.Messages_plugin.get_topic_data(a.topic_id).active&&window.Messages_plugin.update_topic_preview(a.topic_id);window.last_notification_call= Date.now()});window.Messages_plugin.getCache().last_notifications_history_unread=c})})}$("document").ready(function(){Em.run.next(function(){hook_to_user_notifications();window.Messages_plugin=new window.Messages_plugin;window.Messages_plugin.prepare()})});$.Styler.loadStyle("custom-pm-styles","#messages-dropdown li:hover .last-message a{display:inline-block}#messages-dropdown li .last-message a{display:inline-block!important}#messages-dropdown li .last-message a.mention,#messages-dropdown li:hover .last-message a.mention{background:#cfcfcf!important}#messages-dropdown .last-message a:not(.mention){background:0 0;display:inline-block}#messages-dropdown .title{float:none;display:block;height:auto};"); $.Styler.loadStyle("custom-pm-styles2","div.last-message::-webkit-scrollbar{width:8px;height:16px}div.last-message::-webkit-scrollbar-track {-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); }div.last-message::-webkit-scrollbar-thumb {-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);background: rgba(162, 162, 162, 0.49); }#messages_container .last-message .preview-stream-msg {background:#fff !important;border:1px solid #cecece;}.qr_btn{margin-top:3px;}#messages_container li:hover a:not(.badge-notification) {background: rgba(138, 138, 138, 0.1)!important;}#messages_container li{ margin-top:5px;}.quick-reply-button:hover{background:#519FFF!important;}");
-
RE: Post_type explanation request
No, Discourse comes from the other end of the horse.
No, What comes of the other end of the horse is actually useful. therefor
-
Belgium Discourse App
Bookmark this link and use in case of emergency.
Belgium Discourse AppVisit the page and show your support. every click literally count!
@accalia maybe you can embed this as a widget whenever http://isitjusmeorservercooties.com/ detect failure.
and allow user to release some steam. -
RE: CodeBabes.com
I may be a little late to the party, but I'm confused by CodeBabes. Satire? Sexist? Sexy? Supportive? Something??
little late myself
I used the site, it improve your coding abilities with one hand. -
RE: Bug: avatar in topic list Errored
Can we get 'there' from 'here'?
To get from 'here' to 'there' we need to borrow a 't'...
Filed under: Common Core
-
RE: How should I celebrate having a job!?!????!????!??! what shoulD i BUy!?!?!@@ Also I am drunk
I am not making that much moneyzzz.
only 62.99 + shipping. what kind of job did you find?
a chick magnet
** magnet not included -
RE: Just because you're a neurosurgeon doesn't mean you're sane
>"A lot of people who go into prison go into prison straight — and when they come out, they're gay. So, did something happen while they were in there? Ask yourself that question," he said.
what kind of sick twisted person says that.
Also composition fallacy.
Also this guy wants to be president.
-
RE: Your Google account was just used to sign in from London
How difficult is for gmail to detect this email as a phishing attempt.
-
evil delivery time:
-
fake From field
-
link show one url, but actual href is to a different domain
-
-
RE: How stupid Facebook users can be?
2. How stupid do you need to be to fucking XSS yourself?
not that stupid just naive, we are all susceptible to social engineering
On number two, yes, people are quite stupid. I remember back in the days sending people the sub7 installer over IRC or ICQ and have some fun with their CD drives
@Eldelshell said:(I pretended to be a girl)
Here using unintended clever social engineering you go Eldelshell confessing to a criminal activities in his pass. distributing maleware /viruses, Phishing/Impersonation.
-
RE: Couple trapped in car for 13 hours: AKA common sense WTF
An eye witness said that they tried to break the window with a smartphone banging it hard on it, when that failed they just sat in there playing Candy Crash, waiting for their life to end. They were fortunate though, every 20 minutes they got a new live and that kept them going in those difficult times.
-
RE: GNU coreutils `sort -u`
python might have some other reasons for yielding faster results
relevant:
-
RE: You merely adopted the 500. I was born in it, molded by it. I didn't see a fully rendered Discourse page until I was already a man
That means properly identifying the root problem and fixing it.
Root problem Identified: Discourse.
-
RE: Post_type explanation request
I... think. I'm confused now.
when in doubt always check the documentation.
oh right... Discourse
-
RE: From the TDWTF Google+ feed
the biblical view on Go
https://www.youtube.com/watch?v=gtLcELU1brA -
RE: 🙅 THE BAD IDEAS THREAD
Apparently changing your browser user-agent to a random 8000 byte string. which is just enough not to trigger a 4xx error is a bad idea.
With the amount of background requests going on discourse for example .
You guarantee to get DISK_SPACE_NOT_FOUND pretty quickly by filling up the logs.1000 requests will generate about 8MB of log data with a useless 8000 bytes of user-agent string.
now do the mathsaving such a big log in the first place is also a bad idea
-
RE: PM/Chat Plugin - break it or leave it. V1.4.5 & 2.3-beta
heh
it is for the loading animation
If you find any bugs, I am using this thread as a bug tracker. source control. and suggestions box.
-
RE: Freak acccident.
@Intercourse said:
“A tape measure is like a gun at a construction site,” Mr. González said. “Like a police officer, you don’t pull it out unless you’re going to use it.”
-
RE: 🙅 THE BAD IDEAS THREAD
Don't some of the userscripts here use DCVCS?@monarch
Yes,it is also agile, DCVCS enforce 1 week release cycle.
It uses a special file format know as: DisContent
-
RE: Poll: Is the universe deterministic?
18 posts and no mention of branching-out multiverse? You disappoint
Someone did just in a different branch
-
RE: Windows shutdown script fustercluck
This is a respectable forum.where civilized conversation taking place. why are you trying to degrade it? wtf is wrong with you?
-
RE: RAID is the best backup
rubber hose
Find the differences:
Lets use brute force to crack this password, no lets use brute force to crack this password. -
RE: GIMP is not bad
even if it is wrong you can simply add an entry to wikipedia to make it a fact.
-
Wrong or no poster avatar in quoted post if visiting a different topic.
1.open a topic.
2.click reply to a post
3.presscurrent output:
4.navigate to a different topic
5.add some text to your reply in the open composer.output after step 4,5:
if the post number you reply to exists in the topic you navigated to, it will load the avatar of the poster in the new topic.If the post number you reply to does not exists or not actively loaded in the view. no avatar will be rendered.