« first day (2698 days earlier)      last day (2254 days later) » 
02:00 - 13:0013:00 - 21:00

user5500750
2:58 AM
Is it sufficient to save an image as a BASE64 string in an SQLite table?
 
Why not a blob?
 
user5500750
I think this will be my first time saving a blob to a database. How does that compare to saving a string?
 
user5500750
It is binary?
 
user5500750
Of course; BLOB => Binary Large OBject
 
mr5
3:37 AM
o/
 
mr5
why not Zoidberg?
 
o o
}}}
 
 
4 hours later…
7:14 AM
o/
 
7:40 AM
anyone know when deleted answer is completely deleted from the question page (the answerer doesn't see it anymore)
 
Yo.
I'm not sure it ever is.
346
Q: How does deleting work? What can cause a post to be deleted, and what does that actually mean? What are the criteria for deletion?

jjnguyWhat circumstances can cause a question or answer to be deleted, and what does that actually mean? How can a post be deleted? When can't I delete my own post? Can I see a list of my deleted posts? How can I undelete one of my posts? What does deletion mean for a post? How do votes to delete wo...

This implies that deleted posts over 60 days old won't be shown in your profile, but will be shown in the question page.
 
this is cool, it means I won't bother saving my answer on my computer
 
Are you also one of those who stores their files in the Recycle Bin?
 
I'm a big fan of the "restore item" button :'D
 
If you might need the data later, store it locally. Don't trust online services as the only storage medium.
 
7:53 AM
Tomorrow, SO might change their deleted item storage policy. Then what?
 
it just feel better there is a copy of the answer somewhere- the recycle bin syndrome
 
A copy, fine. Not the master copy.
 
Indeed. Whatever is important: store it locally, and store an encrypted copy off-site
 
you're right
 
8:19 AM
good morning
 
good morning
 
8:45 AM
GoOoOoOoOoOoOoOoOoOoOoOd Mornin' neglecterinos squirrelerinos pleberinos!
 
=_=
 
o_o
 
mr5
o/
 
🕺
 
mr5
"An item with the same key has already been added"
I thought `HashSet` doesn't throw when you read/write to a same key?
 
8:53 AM
Goood morning sharperinos!
Doesn't every Set throw when that item is already there?
 
mr5
Oh I was wrong, it was Dictionary
 
I was surprised too
4 squirrels...
 
only 4?
 
mr5
@Squirrelkiller ideone.com/Srstjj
no
 
Thought that would throw o.O
 
8:58 AM
naming hashset list... priceless
 
It doesn't throw in .NET, but Add() does return a boolean stating whether the item was added or already exists.
It spares you the need for verbose Contains checks before each Add.
 
mr5
So the Dictionary[key] = value is much safer in my case ideone.com/Srstjj
 
Always depends on your use case
 
good morning
 
@Squirrelkiller Noooooooooooo
YOU CHANGED IT THE WRONG WAY
 
9:05 AM
Has the DDoS on github been discussed here already?
 
there was one?
again?
 
There has been a DDOS on github?
 
why
 
yes
but the IT guy must je Jon Skeet or something, because it took 10 minutes to repel completely
few people noticed
 
* NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO *
 
9:06 AM
1.35 TB/s
they say it's the greatest attack to date
 
@mr5 "Safe" is a fiction here. It won't throw an exception, yes, but it might make you lose data.
 
and they shruged it off like it was a booger in their nostril
 
mr5
@AvnerShahar-Kashtan yes. I am double checking if the existing keys have been updated, else we're dead finding the issue
 
So they must have gouda hardware
 
Morning!
 
9:11 AM
@Squirrelintraining what a cheesy line
 
@HéctorÁlvarez GH didn't handle it. ;-)
 
mr5
yes. the Dictionary[key] = value does updates the value if the key is already existed. So it's safe in my use case
 
No pun intended i assume
 
@RoelvanUden nah it was akamai, but still
 
Give credit where credit is due eh.
 
9:12 AM
Gouda (English: ( listen), Dutch pronunciation: [ˈɣʌu̯daː] ( listen) Dutch: Goudse kaas), meaning "cheese from Gouda, the Netherlands", is a mild, yellow cheese made from cow's milk. It is one of the most popular cheeses worldwide. The name is used today as a general term for numerous similar cheeses produced in the traditional Dutch manner. == History == The first mention of Gouda cheese dates from 1184, making it one of the oldest recorded cheeses in the world still made today. The cheese is named after the Dutch city of Gouda, not because it is produced in or near the city, but because it...
 
"city, but because it..." BUT BECAUSE WHAT?! :O
 
cliffhanger
and it is probably not worth clicking though
 
I am hopping mad because the story does not continue
 
> but because it has historically been traded there.
There you go!
 
Spoiler allert!
 
@mr5 Assuming you're not accessing the dictionary concurrently, of course.
 
mr5
var list = new Dictionary<key, value>();

foreach(var pair in list) {
	DoSomethingWithList(list);
}
is that prone to concurrency issue? @AvnerShahar-Kashtan
 
Is there a way in LINQ to return null if there's more than one element in the sequence
 
Why are you calling it a list?
@mr5 What does "DoSomethingWithList" entail? Only reading the values?
Also, I assume you meant DoSomethingWithPair(pair).
 
I mean a method that works like Single, SingleOrDefault &First etc,
 
9:28 AM
var array = new Dictionary<key, val>();
 
mr5
@MohamedElshawaf fixed. read & write.
oh too late to edit
 
var collection = 10;
 
mr5
:D
it's supposed to be map sorry
 
rather than throwing the "more than one element in the sequence exception.." return null.
 
@MohamedElshawaf Simple enough to write your own.
 
9:30 AM
I thought there already a method doing that
 
Yes, SingleOrDefault()
 
SingleOrDefault will throw on multiple items.
It means "default(T) on empty, collection.First() if length=1, and throw if length >1". You want the same, but with default(T) for the first and third usecases.
 
mr5
Now that I learn GPS is plotted using a spherical surface coordinate, my mind starts to melt thinking how does the algorithm work for drawing a straight line in a sphere.
all I ever know is how to draw a curve line - so how do you draw a straight line using the combinations of these: (a)sin, (a)cos, (a)tan?
 
@mr5 you have to combine several projection systems into one
the final output can then be transformed to 2D representation, and you can add layers, rasters, points...
 
mr5
9:47 AM
why can't I find a single people in my place who knew all these stuffs?
@HéctorÁlvarez that's scary
 
not really, it's pretty straightforward once you realize how simple it actually is, all you need is to reduce the complexity to the lowest level like you do with any math calculation
 
dynamic z = -x * (x == y + 1e10) - 0x0;
 
@RudiVisser I saw that! You were non-dynamic there for a second!
 
I know, I had to optimise for performance
 
mr5
@HéctorÁlvarez it's quite scary to implement in a language that doesn't support operator overloading like Jaba
I wanna learn trigo
 
9:50 AM
ESRI has ArcGIS, that gets the job done in python.
 
Learn J#
 
there are other solutions, but that works.
 
More job prospects
 
@mr5 Didn't you learn that in highschool?
 
@RudiVisser dynamic for performance? Hah, what a joke.
 
9:51 AM
I mean, I've forgotten all the trigonometry I ever learned, sure, but I still learned it.
 
@RoelvanUden The DLR is faster than static typing
We've been over this
 
Hol' up, no we haven't, and no it isn't.
 
Yes we have and yes it is it was proven by science
 
I need to see this proof.
 
mr5
@AvnerShahar-Kashtan no. as I said, I haven't met a single person who know how those things really work. They only know their definition but not it's usage or real life applications
 
9:53 AM
Mar 1 at 14:50, by Roel van Uden
@RudiVisser what.
You replied!
Damnit Roel
You forget everything
You forget our old love, you forget how fast dynamic is
There's no hope is there?
 
Dynamic sure isn't faster than 'static typing'. Because dynamic does the static typing steps, at run-time, once it knows the type of the thing that you marked as dynamic, and stores the result for each type it encounters being dynamic.
 
dynamic roel = false;
 
This might go on for a while, huh?
 
Yep
 
Dynamic is life
Dynmaic is love
 
mr5
9:56 AM
you might like JavaScript instead?
 
Now there's a dynamic language that's actually faster in a lot of situations.
 
static void Main(params dynamic[] args)
 
facepalm
 
ExpandoObject or gtfo
 
@RoelvanUden which?
 
9:59 AM
public static main(params gtfo[] args)
 
Does anyone know where can I find the data for a DataRow type object? I can easily select row[0]["my_column"] and retrieve the info, but when I add row[0] to the watch, I can't find the definition for "my_column"
 
what is the real diffrence between object and dynmaic anyways?
 
object is a thing, and dynmaic doesn't exist.
 
@ntohl JavaScript.
 
you're right, dynamic does tho
37 secs ago, by Squiggle
object is a thing, and dynmaic doesn't exist.
 
10:01 AM
I am technically correct, which is the best typeof(correct).
 
@Squirrelintraining object knows himself, that by default it's empty. You have to extend it. Dynamic thinks it's good for everything. And allows .Foo even if there is no Foo in it
 
Can I cast an object to a dynamic to avoid using reflection?
 
@ntohl Aye, that i can agree on
@Squirrelkiller as Squiggle would say: try it!
 
mr5
Feb 27 at 13:42, by MikeTheLiar
Waterboarding at Guantanamo Bay sounds awesome if you don't know what either of those things mean.
 
Oh shit guys it works
 
mr5
10:07 AM
Guantanamo reminds me of that kid that refuse to say "Ice Cream" but instead say something like Guantanamo
 
casting to dynamic > reflection
C# interactive log:
> o = new DateTime(DateTime.Now.Ticks);
> ((dynamic)o).ToShortDateString()
"06.03.2018"
(o is object)
 
@Squirrelkiller but... why though?
 
mr5
using JavaScript > C# with dynamic ? true : true
 
Because you don't need reflection of course!
 
but you don't even need any of that in the first place
 
10:08 AM
Legit question; does dynamic respect modifiers e.g. private?
 
mr5
Squirrelkiller is you the negleterrorino guy?
 
Like a private dynamic? Why wouldn't it?
@mr5 I may too be a neglecterino, yes
 
class A { private int _a = 10; }
var a = new A();
var o = (dynamic a);
Console.WriteLine(o._a)
 
@RoelvanUden I would say so, scope access modifiers shouldn't have anything to do with types. Am I wrong=
@RoelvanUden throws exception because _a can't be accessed?
 
@RoelvanUden I'd guess so, but as Squiggle would say, try it!
 
10:11 AM
Throws, yeah.
using System;

class A { private int _a = 10; }


public class Program
{
	public static void Main()
	{
		var a = new A();
		var o = (dynamic) a;
		Console.WriteLine(o._a);
	}
}
Run-time exception (line 12): 'A._a' is inaccessible due to its protection level

Stack Trace:

[Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'A._a' is inaccessible due to its protection level]
   at CallSite.Target(Closure , CallSite , Object )
   at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
   at Program.Main() :line 12
 
welp, know we know atleast that there is a _a #hackery
 
mr5
everything is possible, you just parse the binary executable and convert it into something
 
Reflection can access it so yeah. Science proof: reflection>dynamic
 
I'd still love to hear about this, because the god damn results view doesn't tell me the column names
13 mins ago, by Héctor Álvarez
Does anyone know where can I find the data for a DataRow type object? I can easily select row[0]["my_column"] and retrieve the info, but when I add row[0] to the watch, I can't find the definition for "my_column"
datarows don't have a field with the column names to access them like DataRow["myColumn"] but it works, and MSDN ain't helping!
 
mr5
me too
48 mins ago, by mr5
var list = new Dictionary<key, value>();

foreach(var pair in list) {
	DoSomethingWithList(list);
}
I'd like to hear if this is prone to concurrency issue
just don't mind the names
 
10:15 AM
@mr5 shouldn't give any problems... as long as you don't try to operate the list while it's being operated by someone else
use a mutex maybe?
 
@mr5 That looks strange. For each entry in your list, you go over the complete list?
 
mr5
@Squirrelkiller yeah it really is. I don't know what comes the mind of who did that (not me)
 
maybe he's removing keys if they match a pattern
 
@Roel Casting to dynamic is way faster than using reflection though. For reflection you always gotta get the type, get the class, get lists, pick from list, reflect into object with that.
While using dynamic you just go cast->execute
 
Are there any easy tools to generate enum with large set of data?
 
mr5
10:20 AM
I'm just basically fixing <insert pronoun here> issues
 
@Taurib Enumerable.Range(1,2000000)... and whatever you want to insert
@mr5 them
 
@HéctorÁlvarez I think I phrased it bad, I has set of existing data, from which I want to generate enum out of
And I'd wish to generate enum file from that data
 
Copypaste in to notepad++ -> column select -> add a comma after each line -> copypaste into enum class
 
mr5
@HéctorÁlvarez why do I need to use mutex here?
@HéctorÁlvarez what does this mean? will I ever bump into the same instance of list from a different threads if that code snippet executed several times?
 
@Squirrelkiller Well, this would be one solution, but it's rather time consuming, if I want to give values for each row as well
 
10:25 AM
Excel it is then.
I mean, it's like the dude trying to process 2GB of data from a database. If it's much data, you have to process it somewhere. You may find a shortcut here and there, but you gotta process it somewhere.
 
I don't know what kind of concurrency you have, or what's happening to the table, but I would assume you might be accessing this code from several threads simultaneously, and if you alter the structure of the list you'll get dirty reads, which will lead to exceptions, e.g.
> Process 1 reads list
> Process 2 reads list
> Process 1 deletes key ASDF
> Process 2 deletes key ASDF --> Exception, you are trying to delete something that doesn't exist
If you mutex it it would turn into
> Process 1 reads list
> Process 2 wants to read list, it waits
> Process 1 deletes key ASDF
> Process 1 ends, yields to Process 2
> Process 2 reads list (ASDF doesn't exist any more, so it will act accordingly)
then again, this is such a wild guess, because that "DoesSomethingWithList()" could be anything and the concurrency may not be what I picture
but that's what I'd check first definitely
 
mr5
@HéctorÁlvarez so a different thread might arise from a single loop on a single function call?
 
@Squirrelkiller alright, thanks for the input
 
mr5
or in other words, different threads might spawn on a single loop?
 
@mr5 I don't think that would be possible unless you run operations async
 
mr5
10:31 AM
because currently, it is using different instances on every run of it
so how come I would bump into the same dictionary on a different thread?
correction: it was dictionary after all
 
@mr5 If two threads concurrently try to do dict[key] = value with the same key, not only would you not be able to guarantee which value is stored, it might also throw an exception.
 
mr5
but it's different instances? unless the thread suddenly shows up on a single loop
 
can we return view in web api?
 
Are you sure it's different instances?
 
If the dictionary is created and processed entirely within the same execution? Yeah, probably. Hard to tell without context.
@jsonGPPD No, because it's WebAPI, not MVC.
 
10:39 AM
different thread != different instance
 
You can return HTML and show it, if you really want to make puppies cry.
 
I understand thank you @AvnerShahar-Kashtan :)
 
I just earned the tumbleweed badge for this question
0
Q: Can't connect to SSRS Report Portal remote, but locally works jsut fine

Squirrel in trainingSetup: Windows 7 Hard Machine (Dev/Client Machine) Windows 10 Virtual Machine (Server Machine) Individual IP & Networkcard Diffrent Domains SQL Server 2016 Problem: I've set up a test environment so I can learn how to deal with the SSRS. If i try to deploy Reports from my Dev machine to th...

 
How to implement ooverflowException should be thrown if the operation result exceeds minimum or maximum value in basic add, minus, divide and multiply?
 
What's to implement? Just throw one.
 
10:46 AM
I have 4 methods for Add, Substract, Multiply and Divide
 
if(true)
    throw new MotherBlippingOverloadException();
Ye
 
each of them has parameter of int a, int b
it's only for divide right?
 
Why would it?
For Add:
if (int.MaxValue - a < b)
   throw new OverflowException()
 
can I use try catch there? like this
try
            {
                return a * b;
            }
            catch (OverflowException e)
            {
                Console.WriteLine(e);
                throw;
            }
for +, -, * and / ?
 
@jsonGPPD hit ctrl+k
 
10:49 AM
Oh thanks mate :)
 
or using int.MaxValue - a < b will do the job for me
Oh
        if (int.MaxValue - a < b)
        {
            throw new OverflowException();
        }
Is this all for add, minus, multiply and divide?
am I correct sir @AvnerShahar-Kashtan?
OverflowException should be thrown if the operation result exceeds minimum or maximum value.
 
This would ensure that A+B won't go over int.MaxValue without triggering the exception. Well, only manually.
 
A.B.C = 3;
Write(A.B.C); //Output: 3
A = null;
Write(A?.B?.C); //Output: ??
 
Avni, arn't you in London yet?
 
10:54 AM
if (dynamic.MaxValue - a < b)
 
what do you think will happen there?
 
@HéctorÁlvarez null
 
@HéctorÁlvarez The return value of A?.B?.C is an int? with the value null.
 
Aswell as Squiggle said, try it!
 
@Squirrelintraining Nah, in a month.
April 3rd-6th.
 
10:55 AM
good morning
 
@Squirrelintraining I did, but since I wasn't sure about the result until I saw it I wanted to share it
 
And now I got an email saying the AirBNB we wanted fell through because they only accept reservations for a minimum of 5 days. Grrrr.
 
will it work if I put in in Substract, Minus and Division as well?
 
sometimes the dumbest test makes people think twice
 
@AvnerShahar-Kashtan Kek
 
10:56 AM
like that time when I presented my peers with the following: 7 + (6 × 52 + 3)
most people didn't get it right
 
@AvnerShahar-Kashtan What kind of accommodation are you looking for Avni?
@HéctorÁlvarez in theird defence, I would be to lazy to calc 6*52 in my head
 
@Squirrelintraining An apartment, with room for two adults + one child in the same room or a very closeby room. We're looking around Paddington/South Kensington. We want the apartment to be as close as possible to a commercial street, so you don't step out and it's just residences everywhere, but to have a little grocery store or cafe available.
 
am I correct sir @AvnerShahar-Kashtan so I need to implement the same in divide, minus, multiply?
 
@jsonGPPD The logic is different. You don't really need to compare to MaxValue for subtraction, do you?
 
I didn't see this icon before!
 
11:00 AM
is this for substract @AvnerShahar-Kashtan?
if (int.MaxValue - a > b)
            {
                throw new OverflowException();
            }
            return a - b;
 
@jsonGPPD No, sorry, right now you're trying to copy-paste code. If you can't figure out how to model basic math, I can't help you.
 
please sir. I'll try to learn it soon.
 
@AvnerShahar-Kashtan what's taking you to London? not moving, are you?
 
Just the reference as well.
 
@Squiggle Just a small trip with my wife and older child.
 
11:03 AM
for basic add, minus, multiply and divide sir.
 
@AvnerShahar-Kashtan I could* ask my Uncle, they live in wimbledon, if they've still got a room for rent for holidays.
 
ah, fun :) I'll be moving there in the Autumn!
 
If you're intrested
 
@jsonGPPD No, sorry. This is so basic, that refusing to figure out the logic here is obstinately refusing to learn. I'm not here to write your code for you. I think I've helped enough.
 
@Squiggle Why are you moving to lundun?
 
11:03 AM
@Squirrelintraining Wimbledon's a bit farther out, isn't it?
 
FWIW, I've used the Staybridge Suites in Vauxhall a few times. They're good, central.
 
Also, we're looking for a flat to rent, not just a room.
 
@AvnerShahar-Kashtan TBH I am not so sure :D
 
@Squirrelintraining wife can't find work in Switzerland. More opportunities in London.
 
Anyway, I have to head out now to feed my dad's cats.
 
11:05 AM
plus i can start my own business again when I'm back in the UK :D
 
@Squiggle Aberch diech schwitzerdütschen sindch superch
(my impresson of swiss german)
 
Naiie dini Schwiizerduuch ish schleggt
 
Chäse choacha
 
Chäääs
 
Almost got it :D
 
11:06 AM
fasssst
Baslerdeutch is weird, even by Allemanisch standards
Even after 5 years I can barely get by
 
^^
You're not from swiss originally?
 
hah no, I'm from Leeds, UK.
Yorkshire! Yorkshire! Yorkshire! etc etc
 
can you teach me the basics of overflow exception sir?
 
|||||||||||||||||>overflow
@Squiggle Me too #represent
But not Leeds, ew
 
I got this for Substract sir :)
if (int.MaxValue - a > b)
            {
                throw new OverflowException();
            }
            return a - b;
 
11:10 AM
@Squiggle So what the heck is an enlgish man doing in schwiitzerland?
 
I tried 1,300000000
 
Private banking
 
so it is overflowexception is it right sir? :)
this is for my divide
if (int.MaxValue * a <= b)
            {
                throw new OverflowException();
            }
            return (double)a / b;
and for multiply
if (int.MaxValue / a >= b)
            {
                throw new OverflowException();
            }
            return a * b;
are they correct sir based on my logic?
@AvnerShahar-Kashtan
 
11:32 AM
o/
 
@Squirrelintraining Moved for a girl. Ended up working in a bank, then doing mobile dev, now back at the Bank (because I like money)
Girl got her PhD, but can't find work in this town, so we're moving.
 
@Squiggle A real man!
 
(we're married now, btw)
@RudiVisser you're a Manc?
 
Congratz boi
How did you meet?
 
11:39 AM
met in a goth club in Leeds, innit. She moved 6 weeks later. I followed 2 months after that.
<3
 
@Squiggle Love at first growl :')
 
...
 
@jsonGPPD what are you trying to do here? Just took a glance and it looks like you are reinventing math or something
 
I don't think he knows.
 
@Squiggle From Hull, just live here
 
11:54 AM
@RudiVisser hah. I spent 4 years at Hull Uni. Did I serve you in Spiders? ;)
 
I think you should drop the code for now, and take a math book to see what is it exactly you are trying to accomplish, it's really easy to translate math into code when you actually know the math
 
12:13 PM
@Squiggle Ooooh look at you go! I'd certainly hope not, only went there twice in my life 😃 What years were you there?
 
Publish application, it works on my server
put on uat, it breaks
no real errors
Compiler Error Message: The compiler failed with error code -2146232576.
 
That's an error.
A real one, at that.
 
is there anyway I can get real error LOL
but I don't know why it's failing lol
 
I suspect that there's a compiler error.
 
agree with you, but what's the error :D
so many things can go wrong
 
12:23 PM
It's literally the first hit on Google, you know.
 
delete temp files, tried but not helpful
 
20
Q: IIS Compilation Error -2146232576 AspNetInitializationExceptionModule

feganmeisterI have a fairly simple C# WebAPI2 project that runs locally but after publishing to IIS on a remote machine (Windows Server 2012 R2 Standard) the web page displays the following (after setting customErrors to "Off"): Server Error in '/' Application. Compilation Error Description: An error...

 
what keywords you used please
 
I just used: error "-2146232576"
 
Searching for just "-2146232576" yields the exact same error and should be the very first thing you did
 
12:31 PM
@RoelvanUden I am feeling so stupid now
 
You should :)
 
I didn't paid attention to number
but I learned something really useful from you today, thank you :)
 
Well the error number specifies the exact error.. it always does.
 
12:48 PM
Up next: potty training.
 
@RudiVisser 2001-2005
@RudiVisser my wife is from North Ferriby
 
Is there a more English name than that?
 
02:00 - 13:0013:00 - 21:00

« first day (2698 days earlier)      last day (2254 days later) »