« first day (3393 days earlier)      last day (1572 days later) » 
05:00 - 15:0015:00 - 22:00

3:00 PM
@Hans1984 pro tip: don't take antibiotics unless you really need them
 
true
 
even against the advice of doctors
 
but why would anyone
antibiotics are terrible
they always mess me up
 
they tend to prescribe them too quickly
that said, if you take them, take them as recommended by the doctor because it also doesn't make sense to take it for a day or two
 
and most important: if you take them take them aslong as your doctor says. Dont quit on them early. Thats the worst thing you can do.
 
3:01 PM
yep indeed
that's all the bad side effects and none of the good ones
 
even if you feel better
 
I almost envy people who are allergic to penicillin; they're already building immunity to some awful stuff on their own
 
in general you should avoid whenever possible drug solutions to illnesses
drugs are encouraged way too much
 
Only do the cool drugs kids
 
yep, and don't let me remind you all of how uncool you all are
 
3:10 PM
cool as it can be
 
So I'm looking at the population by country, specifically the density.. China has 153 p/km^2.. India has 464.. pakistan 287.. USA 36..
 
Emma Bostian on January 30, 2020

In the first post in this series, we examined the basics of micro-interactions: what are they, why should you use them, how you build them. In the second post, we built two animated menus.

In this tutorial, we’ll build two fun animations: a modal and an image gallery.

Modal:

Image Gallery:

We’ll use react-spring’s useTransition to illustrate how you can mount and unmount a component, in our case a modal, from the DOM and mount photos to and from a photo gallery.

Embed Code Sandbox:

In the previous blog, we looked at the pieces of a micro-interaction. Let’s define the interaction trigger, state definition, and animation definition for our modal component. …

 
Then I see Bangladesh.. 1,265!
there are literally 1265 people per square kilometer in Bangladesh on average..
 
mr5
@Hans1984 does your government temporarily bans incoming travel from China?
 
you know full well we Americans don't do km^2 -- so the actual number is 22
 
mr5
3:14 PM
Because our government just recently thought it's a good idea to make a temporary ban after a confirmed case
I don't feel well this night and I'm scared af
 
@AlRey 22 what? in a square mile?
I think you have that backwards
 
@mr5 not yet
 
@mr5 we're not at pandemic level yet..
get scared when 1000 people are infected worldwide
 
yus 22 per sq mi
 
mr5
What have we, millennials did to deserve this kind of leadership. I'm so disappointed with our country
 
3:17 PM
@AlRey a square mile is larger than a square kilometer
So if anything it would hold more people
 
@Neil who's gonna tell him...
 
yeah that's why the number is smaller :P
millennials did uh...avocado toast
 
mr5
@Neil we are near to China and there's Chinese people everywhere in the subdivision I'm staying
 
@AlRey that makes no sense
@mr5 there's not a lot you can do other than avoid going to movie theaters and places with large crowds
 
nvm
 
3:19 PM
@CaptainObvious ahh...tits
 
mr5
@Neil a single person that is not even showing any symptoms could inflict the virus to other people already. Mind you, just by touching anything outside, you could have it and you'll only know you have it after 2 weeks!
 
so the number's 57; I was right to edit the message, wrong to edit it back
 
@mr5 that's what makes it scary. you can get infected by people who seem perfectly normal
 
good thing I'm always sick B-)
 
that said, I think it is somewhat more difficult, not being as prevalent in the human body
 
mr5
3:24 PM
I've been in contact with Chinese people this week unfortunately
 
well you just kind of have to trust that they're doing their best not to contract the virus..
again, not a lot you can do.. you can't just stop going to work
though if like 10% of the population had it.. might be reason enough to take some time off..
 
@mr5 RIP mr5
@Harry who doesn't love tits
 
though there is one small plus. I told my wife that I passed by three Chinese that were coughing and I managed to freak my wife out
 
they are so beautiful
 
that was fun (I didn't actually pass three coughing Chinese)
 
3:28 PM
 
mr5
Do you think I should take a leave tomorrow? I kinda don't feel well tonight but that's the only symptoms I got out of 5
 
@mr5 see how you feel tomorrow
 
mr5
@CaptainSquirrel I'm gonna come in your country and spread it there 😷🤒🥵😈😈😈
 
@mr5 PLS NO
WE HAVE IT BAD ENOUGH AS IT IS
#BREXITAWAYFROMCONORAVIRUS
 
just give it to Boris Johnson
I can live with that
 
mr5
3:30 PM
No worries mate. I don't even have money to stay there for 20mins
 
to be fair i agree with neil
That's an ok thing lmao
 
mr5
@Neil but have you managed to look some Chinese in their eyes? Damn if you do cuz you already have the virus m8
 
@mr5 because looking into the eyes of some Chinese means I'll get it now?
if glances could catch you a virus, then we'd all be boned
 
mr5
Yeah that's what some Chinese people believed
 
hey look it's Mordecai
 
mr5
3:33 PM
Sightageous
 
ok I retract what I said earlier about aliens bringing disease
either that will happen or someone will design a virus so deadly it becomes the next black plague
it'll be like Spider-Man ps4
 
I hate to say it, but a deadly virus would be beneficial from some respects
it's population control without having to decide who lives and who dies
 
well yea..lotsa dumb people will die because dumb people don't wash their hands
 
world pollution would drop
 
mr5
The thing that worries more for some doctors are the mutation of this nCoV
 
3:35 PM
it would be like how a forest fire grows back quickly afterwards
 
mr5
We're going to be a sacrificial lamb again for the benefits of our incompetent leaders
 
still, it would seem the death rate is 2%, not 5% as I originally said
so if worst comes to worst, you still stand a very decent chance of surviving
 
the able-bodied people are always like... "cripples go first since they don't contribute to anything"
 
Flip a coin 6 times.. if they all come up heads, then you're dead, otherwise you're fine
the deadliest disease would be one that is airborne, doesn't show symptoms for say a month, then has a 97% mortality rate
everyone would die to that
 
3% wouldn't.
 
3:42 PM
you'd literally have to isolate yourself for a year to avoid the risk of contamination
well almost eveyrone
 
the ONE time I get a call this week that isn't a scam...happens to be my eye doctor
and I just happened to be away from the phone
 
the guy who delivers our packages would often say that he tried to reach us but we weren't available, even on days we were there most of the day
my wife got sick recently and was quite literally there the entire day..
we were able to catch this bastard.. he never rang the doorbell not even once
claimed he tried to reach us but we weren't available
not paying for delivery when shit like this happens
 
are squirrels immune to coronavirus?
 
3:59 PM
I have three tables in my database, one of which acts as a reference between the other two. That one has two fields in it, each of which has a foreign key with one of the other two tables. When I imported these tables into Entity Framework, the intermediary table was included as just an Association rather than a table in its own right.
The problem is that I actually need to get in and edit the information in that table. How can I do that?
 
But you said it only has 2 fields in it, which is the foreign keys
So that's all it is, just an associatuion
 
@erotavlas no
 
How do I edit the associations, though?
Add or delete associations
 
noooooo, what tragedy
 
yeah its too harsh for my eyes
 
4:03 PM
@CaptainObvious ?
 
4:18 PM
Are you doing database first I'm guessing?
If so I don't know, I always do code first
 
Hi, I have been researching for 2 days now about freehand cropping an image in WPF, but no luck. Right now I have tried the clip property of image control which allows me to easily select a part of the image. But can't find a way of how to export it with the clip property applied. Can anyone help?
 
Yeah you're gonna have to play with image libraries to do that. WPF isn't going to help you at all
 
4:34 PM
I do database first. It just makes sense to me to figure out the most logical way to store the information, and then pulling the data out of the database in a usable format follows from there.
 
Hi @erotavlas not exactly I am accessing a property from the image control which lets me clip the bitmap displayed currently, I haven´t tried that but since the intRect is a rectangle I guess that wouldn't work with polygons which is what I am trying to crop.
 
4:51 PM
@AndréMarques i don't know, but there's quite a few examples online codeproject.com/articles/20245/…
maybe theres some code you can reuse
 
Yeah I am trying to figure it out, but it seems like wpf and base libraries only allow rectangle crops which isn't really what I am looking for.
 
what shape are you doing?
I think no matter what you will have to save the final image as a rectangle, if you cropped a different shape then make the outer areas white, or transparent (if you save as PNG)
 
omfg I just figured out what was causing this error over the past week....literally all I had to do was move a single line of code down a few lines
 
5:24 PM
is it possible to do something like following so I can define the format for various types and call this function
    public static string GetStringValue(Object obj)
    {
        switch (obj.GetType())
        {
            case typeof(string): return (string)obj;
            case typeof(float): return ((float)obj).ToString("F3");
            case typeof(Enum): return Enum.GetName(obj.GetType(), obj);
        }
    }
would it be possible using generics?
 
public static string GetStringValue(Object obj) {
    switch(obj) {
        case string s: return s;
        case float f: return f.ToString("F3");
        case Enum e: return Enum.GetName(obj.GetType(), e);
        default: throw new ArgumentException("undefined");
    }
}
It's possible with pattern matching from C# 7
possibly return Enum.GetName(e.GetType(), e); instead of using obj.
 
5:45 PM
that switch statemetn is from 8... i only got 7.3. i think i got it though.... nvm it;s from 7
 public static string GetStringValue(Object obj)
 {
     var type = obj.GetType();
     if (type == typeof(System.String))
     {
         return (string)obj;
     }else if (type == typeof(float))
     {
         return ((float)obj).ToString("F2");
     }else if (type == typeof(int))
     {
         return ((int)obj).ToString();
     }else if (type == typeof(Enum))
     {
         return Enum.GetName(type, obj);
     }
     else if (type == typeof(System.Int32))
     {
         return ((Int32)obj).ToString();
 
you should avoid == for types
always try to use is or as
 
what does the switch pattern do? as? or comparison
 
6:01 PM
compiles to the IL isinst on whatever type, which is is.
 
good to know
cool. thx.
 
It's effectively the same as:
if(obj is string s) { /* string things*/} else if (obj is float f) { /* float things */ }
 
yo yo yo
 
hi, how can i ruun my httpmodule after the registertypes have been set
 
hi
im new
i get error 429 too many requests
when I try making requests to Google with my c#app
it happens after 50-100 requests
 
6:10 PM
How quickly are you making those requests?
 
there is also a ThreadSleep(2000) between them
so, like 1 per 2.5 seconds
 
Sounds like you're exceeding their limits. You should look into Exponential Backoff. The Polly library can support that for requests.
 
I need to know the limits I guess
 
Google's documentation for whatever API you're using will typically mention rate limiting
 
the only problem is...
...I dont use an API
I directly send a request to google.com/?search=
and pull the links out of it
with htmlagilitypack
using HtmlAgilityPack;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.ServiceModel.Syndication;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Xml;

using System.Globalization;
using System.Diagnostics;

namespace PlagiarismChecker
{
public partial class Form1 : Form
{
here is my complete code
 
6:16 PM
you probably just fix your own problem
 
I do
 
yeah
 
I did fix it
the only problem is
I don't use an API
I want to but I cant and none of the tutorials help me
 
you're sending too many requests to google itself it's filters are treating you like a bot (which you are) and refusing to let you go over the cap
when you search something on google their servers have to deal with that so they probably have a limit
 
CupOfJava yea but i just want to know the rate of that
how often can i "spam" it
 
6:21 PM
why don't you use the api? I think you can send more requests.....
 
I dont know how
and I want to know how google trats me like a bot. cuz on the same PC, google chrome works. is it about headers and stuff?
 
Well I doubt you're sending a user-agent, which is suspicious
 
lol, nvm, Google doesn't have a search api
anymore
@kahveciderin what are you trying to do? like what outcome are you looking for?
 
i m making a plagiarism checker
and i guess sending the user agent and the cookie works
but as i want to make my app public
i dont actually want to make my cookie in the app
So what can i do?
 
6:49 PM
@kahveciderin when I used to web scrape with python I would use a proxy server (VPN) so I would get blacklisted
scrapehero.com/… this might help
 
Thanks
 
7:08 PM
sorry, wouldn't ^
 
 
2 hours later…
8:59 PM
coronavirus has been transferred from one person to another in the US
uhh I don't care I was getting tired of living anyway
 
So has the flu
The flu kills between 12,000 and 61,000 people in the US every year
Do you know how many people have died from coronavirus? 170.
 
if you been paying attention, you'd know I don't care about corona :)
I mean I've never even caught the flu; not gonna catch corona, either
 
9:39 PM
Classic guy who catches corona talk right there.
 
05:00 - 15:0015:00 - 22:00

« first day (3393 days earlier)      last day (1572 days later) »