« first day (2845 days earlier)      last day (2107 days later) » 

mr5
1:49 AM
o/
Today I've become 1.5k. Thanks to this crappy answer of mine: stackoverflow.com/a/43883965/2304737
 
 
1 hour later…
3:00 AM
Why does RSACryptoServiceProvider cant run on online conpiler
 
 
3 hours later…
5:43 AM
Goood morniing CeeeShaaaarp!!
 
ohayou
 
6:24 AM
GoOoOoOoOoOoOoOoOoOoOoOd Mornin' squirrelerinos!
 
Moorning!
 
Hello Good Morning!
C# EXCEL + Can someone suggest me how to identify a cell, if it contains a dropdown items?
 
@WpfBee My guess is it is a cell with a dropdown arrow on the right-hand side
 
@Neil I mean, how to check it programmatically?
 
6:35 AM
if(cell.BeeDropdown) tell(WpfBee);
 
Ah, not familiar with the api, sorry
It's probably easy enough though
consider the possibility that the cell isn't a dropdown in of itself, but rather it contains a dropdown
 
ok, I'll figure it out. Thank you.
 
Oct 26 '10 at 15:12, by tom.dietrich
Hi, this is now the Wasp channel. We are discussing wasps.
 
@Xariez don't bee silly
 
I went back in time and it's so obvious that i did
I mean damn the starred messages are odd back then lmao
 
6:47 AM
\o
 
o/
 
\[T]/
 
wish me luck
 
@M.Aroosi Ok, I wish me luck
 
6:58 AM
thanks ;g
 
Anytime ;)
 
Good luck Mor. What are you up to?
 
I might finally get a job :/.
 
As a...java dev?
 
c#. not many companies close to where I live look for junior devs.
so I've been straggling to get an interview.
 
7:10 AM
Nice. Good luck, hope you do well in the interview!
 
7:23 AM
@Squirrelkiller fanny
@RoelvanUden o/
Go nail it!

Funfact:
Nagel Sie/Es (litteral translation of nail it in german) is slang for Bang her/it.
 
@M.Aroosi Be confident but not cocky, that's my advice
And don't ever lie unless you think you're really really good at lying
Even for a stupid lie, it's a dealbreaker
 
Neil.. Are you saying that slamming my dick on the desk was a bad Idea at my Job interview?
But why did they take me then..?
 
@Squirrelintraining maybe, depends on the situation
 
!!youtube hose runter schwanz vergleich jbo
 
@Squirrel I guess they didnt see it
 
7:28 AM
Geez, gotta do caps job now
@Squirrelkiller You know.. You might have a point there.
 
Wait...Cap didnt even answer?
!!alive
 
@Squirrelkiller That didn't make much sense. Maybe you meant: live, llike
 
Oh thank Zirak
 
what's up my fam
how's everyone?
 
Amused. I took 4 tickets today.
Not reproducable, waiting for response.
Not enough information to reproduce, waiting for response.
One-line-fix; waiting for branch so I can merge.
PEBCAK, closed.
 
7:38 AM
!!urban PEBCAK
 
@Squirrelintraining PEBCAK RTFMs [big brother], it stands for Problem Exisists Between Chair and Keyboard. A popular term among office network engineers and [IT support] departments, it arose due to a need to descretly describe arrogant users (who falsly believe [[the system]](urbandictionary.com/def(snip)
 
good morning
 
MOrning ntohl o/
 
we usually finish half done features in the name of "maintenance"
4 tickets would mean half year of work
 
7:57 AM
im confused
we got an exception that has no inner exception
the stack trace ended on a very particular line
throw;
that is exactly what it should prevent
 
ok, well you say this because the debugger stopped on that line?
or because the stacktrace points to that line?
 
the logged stacktrace kind of stops there
 
Because it should retain the old stacktrace
What type of exception is it?
 
at System.Net.HttpWebRequest.GetResponse()
at SomethingSomething() in C:\Something\Something\Something.cs:line 863
normally, the line numbers show where in that method they called the method of the stack frame above them
 
line 863 points to throw;?
 
8:02 AM
but because of the rethrow the line number is not correct any more
line 863 is the throw yea
 
that is strange, though technically it retained the full stacktrace
Had the stacktrace gone on another 5 or 6 levels, you'd see all 5 or 6
 
now, I am lucky since there is only one call to GetResponse() in that function and the catch+rethrow is in the same function
but we had this issue before with null reference exceptions
there, we are just clueless
the stack trace starts at the "Main"
 
Java doesn't manipulate the exception on rethrow (retaining the original stacktrace)
 
and ends at the GetResponse()
 
but then you do "throw ex", and not "throw;"
 
8:04 AM
@Neil that is a very helpful comment :D
 
yes, I know it
 
you know how PHP does this?
 
die()
No, not really. I don't use PHP
But I'd assume it handles it in the worst possible way imaginable
 
I assume it handles it in at least 3 different ways, and all of them you'd never imagine
 
8:29 AM
My method calculates days from a date to another date (simply put).
If start date is after end date, is that an IllegalOperationException? Or ArgumentException?
 
ArgumentException imho
It brings the idea home to me that I screwed up the call
Whereas IllegalOperationException is a little more generic
 
@Squirrelkiller make your method calculate the timespan from two dates
and make that timespan get the time in days
ow wait, that already exists
TimeSpan span = end-start;
double totalMinutes = span.TotalDays; (or something)
 
It's a little more complicated than that
 
Yo mama is moa complicated killerino!
 
8:44 AM
Na my mom's easy. Wait...
So anyone know a c# library to calculate number of interest days depending on interest method?
Ah well
!!wietlol2
 
Sep 13 '17 at 15:07, by Wietlol
i will most probably write my own
 
Wtf is an interest method
or an interest day? Also good morning all
 
You pay interest per day of a loan.
BUT, sometimes it isnt that easy.
Some banks say "Every year has exactly 360 days, and every month has exactly 30 days".
That's called 30/360.
 
Oohhh
 
Other banks say "Nah we use the exact days", that's actual/actual
 
8:50 AM
Doesn't it also depend on whether it's calculated daily or <other period here>
Only really applies if the interest compounds
 
13 mins ago, by Wietlol
TimeSpan span = end-start;
double totalMinutes = span.TotalDays; (or something)
totalMinutes = span.TotalDays...
sounds about right.
also if the start date is after the end date, I don't think you should throw an exception... just return a negative number of days.
 
Don't question the Wietlogicâ„¢
There's a reason that he says
 
Sep 13 '17 at 15:07, by Wietlol
i will most probably write my own
 
!!wietlol3
 
Jul 11 at 10:13, by Wietlol
I am an idiot.
 
9:01 AM
he also says that tho
 
If you haven't said that in this room you don't deserve to be here
(or equivalent)
 
@LeeButler it is a method I write
my methods are always interesting
not particularly good, just interesting
 
and now I want to go back to scotland 'till summer ends, too damn hot around here.
 
That's one way of putting it
 
@M.Aroosi :D
 
9:03 AM
my way is just using haskell functions, that way I don't have methods to deal with.
 
but he wanted days, so i replaced the TotalMinutes with TotalDays... but i dont care about some variable name :D
 
I prefer if you don't vary my ables.
 
methods > functions
objects > loose data
Kotlin > haskell
there fixed it
 
mr5
@Wietlol uhm, I thought they're the same?
 
9:06 AM
methods belong to objects
methods have method groups
method groups allow overriding
 
excuse my grammar in advance
 
functions are just functions
 
you know, I was in scotland, and I passed near glasgow, but I didn't go in there even tho the haskell compiler is called glasgow haskell compiler, or ghc for short.
 
spent 3 hours already trying to make a vb6 pp work
 
@M.Aroosi If you vary your ables enough, you get special treatment and free money, and people push your around and give you free stuff
2
 
9:07 AM
app
 
usually, you use one term for both cases, but when you make the distiction, you should make it like that
@M.Aroosi when I go to indonesia, I wont visit Java, Lombok, or any other of those islands or cities
 
yeah, but scotland is a nice place, except for the roads with no shoulders, and not driving on the right side of the road.
 
What is it with some people and being beyond obnoxious?
cough some coworkers cough
 
cough C# master race cough
 
the air is obnoxious, people started coughing too much
 
9:20 AM
Can I write a <summary> block that goes for several variables? Say, one <summary> block for the next 5 variabless?
 
Sounds confusing.
 
sounds like you need to merge those variables in a single/separate class
 
I should. But then I have to refactor like 150 calls to them.
 
you dont use an IDE?
too bad for you
 
I do. But comlpicated solution/projects architecture. Not sure if I wanna use a day to refactor and another 2 days to repair my shit.
 
9:26 AM
how about changing the variables into one variable that's a tuple?
 
Same amount of refactoring
@Squirrelkiller, sounds like you need another method with the correct parameters, and then obsoleting the first :D You're good at that.
 
I'm actually working on rebuilding the original method completely, because after 10 years it turns out it's slightly wrong on every calculation.
I guess I'm building another class.
 
"refactoring" should keep all functionality intact. R# can refactor (as a true refactoring function which doesn't alter functionality) variables into a single/separate class.
 
That's why I wanted to just rebuild the method without new classes or enums at first.
(And also repair the calcuations that way).
 
@ntohl Not across unconnected projects though. But it's a step in the right direction.
 
9:58 AM
Why isnt there a parameterless DateTime.DaysInMonth() that just takes the instances data?
 
YouGov are at it again - "Four in ten players have purposefully killed their Sims"
47% of 18-24 year olds have made themselves and their crush in the game and made them be in a relationship. It's also more common for females to do this than males
 
@LeeButler Only?
 
18-34 tends sees it at around 55%
Once again, females are worse for that one too
Drowning is the favourite way of murder
 
@HéctorÁlvarez what type of app edit* purpose?
 
10:23 AM
Hello, I have a question in EXCEL using C#.
 
!!XY already
 
But what is it? Just ask the question instead of informing us that you have one
 
@WpfBee most questions are in utf-8, I never heard of the EXCEL encoding
 
@WpfBee Is this the same problem you had before?
4 hours ago, by WpfBee
C# EXCEL + Can someone suggest me how to identify a cell, if it contains a dropdown items?
 
10:25 AM
Oh.. Yes. Kind of. I would like to validate if a cell is dropdown type or normal value cell?
 
> normal value cell
in excel, there is no such thing as "normal"
 
How are you even talking to Excel in C#?
 
@LeeButler using Microsoft.Office.Interop.Excel;
 
And why do you need to know if a cell is a dropdown? This screams weird to me
 
The android app is more bugged than Bruce Banner's thoughts
 
10:29 AM
The stack app? Yeah it's trashj
I wouldn't mine it if it actually had the chat inside it
 
@LeeButler If it is a dropdown, I would like to inform other part of my application that it has a list not a single value.
 
Is there an API I can tap on to slap a decent app to chat around here?
 
@WpfBee Oh so you're doing an addin, that makes more sense than what I was thinking
 
sounds like a tongue twister huehue
 
[presses F12]
Somebody say somthing
 
10:32 AM
the desktop version isn't terrible on phone actually
 
Better than the mobile version?
 
Anything is better than the mobile version
Also the chat relies on websockets, and the SE API doesn't mention chat at all
 
seems nothing changed from 2010 meta.stackexchange.com/questions/57040/…
 
New meta question to try again?
 
10:39 AM
@LeeButler Any suggestions on this?
 
Nah I've never touched addins sorry
 
@WpfBee have you tried cell.Validation.Type and testing that value against the XlDVType enum?
^just from looking through the docs
So I'm probably wrong.
 
@M.Aroosi No any item of cell.Validation, I can access it throws exception
 
what about inspecting the type of cell.Value?
 
@M.Aroosi Accessible.
 
10:54 AM
And what is its type?
(in case of a list vs some other value)?
 
string
for both cases: cell with & without dropdown both
 
@Squirrelkiller a thousand times better. The mobile has a lot of annoying stuff, opens links without clicking them, the top bar hides randomly and sometimes doesn't even come up, replying is really hard.
 
11:09 AM
Guess I should try the desktop site next time I' here on mobile o.O
 
11:35 AM
So whats a nice way to go "if a-b is 0 or -1 return 0"?
I just have
if(a==b) return 0;
return a-b-1;
Because I need number of full months between given months.
Also how would I call that if it weren't months? GetIntegersBetweenNumbers? GetCountExcludingBorders?
GetExclusiveCount?
 
Why not new TimeSpan
 
Is there a better way of doing this?
public DateTime SelectedDate { get; set; }

        public string SelectedDateResult
        {
            get
            {
                return SelectedDate.DayOfWeek.ToString().Substring(0, 3) + ". " + SelectedDate.ToString("dd.MM");
            }
        }
 
@nyconing Because I need integers. new Timespan().Months would be the same, or I just directly use the dateTime.Month integers to calculate.
@Xariez I believe there is something like ToLongDateString()
 
Hm, a bit long though, since it takes the name of the whole day (=> Monday instead of Mon), and the month, and the year
Got extremely limited space
 
Use custom .ToString(format)
"ddd" is short day
 
11:44 AM
    public DateTime SelectedDate;
    public string SelectedDateResult => SelectedDate.ToString("ddd.dd.MM");
 
Although maybe "ddd, dd.MM" for nicer reading.
 
Ah, perfect, thank you @Squirrelkiller
 
Hey Avner how to get full months between two datetimes, and how to name my GetIntegersBetweenDates/GetExclussiveCount to make that general?
 
11:49 AM
upset
 
@Squirrelkiller What do you mean with full months? I may not be the legendary avner but i still want to ask
 
Months that have all days.
Between 2018-03-15 and 2018-08-15 there are 4 full months: 4, 5, 6, 7.
8-3-1 = 4
 
> What one programmer can do in one month, two programmers can do in two months. -Fredrick Brooks
 
I wrote compilable example
But not the one be thanked
Ah anyway
 
11:53 AM
Between 2018-02-15 and 2018-03-15 there are zero full months. 3-2-1 = 0.
But between 2018-02-15 and 2018-02-18 are zero full months too, although 2-2-1 = -1, which isnt zero.
 
@Squirrelkiller I dont get it
 
But I'll do this calculation in several methods, so I want a general GetExclusiveCount -> Between 3 and 8 are 4 exclusive integers.
 
Let me doing example on 2018-03-15 and 2018-08-15
 
4, 5, 6, 7
 
I know what you mean, and thats a really good question actually
 
11:57 AM
Let's do it without special rules for now: Calculate days (without using TimeSPan) between two dates, where every month has 30 days flat.
Betweeen 2018-03-15 and 2018-08-15 and 15 days in march + 15 days in august + 30*CountOfFullMonthsInBetween
 
Why wouldn't it be a full month between 2018-02-15 and 2018-03-15?
 
        var a = new DateTime(2018, 3, 15);
        var b = new DateTime(2018, 8, 15);
        Console.WriteLine("Hello, world!"+(b-a).TotalDays/30);
 
Because it's jsu t two half months
 
Hello, world!5.1
 
Two half months dont count
 
11:58 AM
ah, I see what you mean
how many calendar months then
 
sorry for the porential spam
was not as big as anticipated
 
Basic dont have dependencies
 
Anyway, time to eat something.
!!afk lunch
 
It should tho
 
Just went and had a little nosey at a local bank robbery
 
12:10 PM
How was it?
 
Is it succeed?
 
Kinda
 
Is it very bank robberylike?
 
The same branch got hit in roughly the same way about 2 years ago, and they didn't learn
 
You're from Liverpool?
 
12:19 PM
Nah, he's from Spleenpond
 
Sure, "liverpool"
 
Bank robbery seems impossible without conspiracy with internal employee
 
"Allport Lane"
 
LOL Why they put same poster on every glass?
The ultimate investigation report of missing MH370 is now transparent to public.
I may feeling proud of my country hiding the plane so perfectly. kidding
 
We already know why it was never found; It was the 404th Boeing 777 produced
 
12:33 PM
@Squirrelkiller Oh, sorry was away. You'd want Math.Floor((end - start).TotalMonths).
 
dam dam dam
 
@AvnerShahar-Kashtan Squirrelkiller is afk: lunch
 
What does the report say @nyconing?
 
The report says the plane still cannot explain
It does not exclude the possibility of third party interference.
The captain and deputy head of the aircraft held a qualified flight license and experience, good health, no financial pressure and abnormal performance. The radio telephone communication between the two and the air tower did not show signs of anxiety or pressure.
The # MH370 turns around not because of mechanical abnormalities, nor in autopilot mode, but under manual control.
There is no record or report of the aircraft. There are any defects or failures in the aircraft.
There is no communication before the change of flight path, maybe the system is manually or intentionally closed.
The limited evidence shows that the loss of communication between aircraft high frequency communication (HF) over frequency communication (VHF), Aircraft Communications Addressing and reporting system (ACARS) and satellite communication (SAT COM) is caused by deliberate closure or power interference.
Instead of connecting the Vietnam air traffic control tower in the first time, the Kuala Lumpur air traffic control tower relied on the location information provided by the Malaysian Airlines; the air traffic tower did not start various emergency phases as required, and delayed the search and rescue operation.
MH370 and the satellite's 7 handshake signals determine the flight path over the India ocean.
The main debris of MH370 has not been found yet. 3 pieces of debris have been identified from MH370, and the other 7 are almost certain.
MH370 carrying lithium ion batteries and Mangosteen items are packaged and loaded according to standard operating procedures.
In the absence of flight data and cockpit recorder information, he could not confirm the reason why the plane flew to the southern India ocean.
Conclusion: the investigation team is unable to determine the real cause of MH370 loss.
Thats all the impotant points in the report
 
Wasn't the majority of that already known
 
12:42 PM
Yup, but not same this time is the report has been certified by representatives of seven international air crash investigation organizations, including Australia, China, France, Indonesia, Singapore, Britain and the United States.
 
Also regarding the satellite connection drop, that happens on a semi-regular basis mid flight anyway
Also holy shit that was over 4 years ago
 
Yeah, the report will not to be publish until more the plane's debris is found.
 
> However, it dismissed theories that had suggested the pilot and first officer brought the plane down in a suicide mission
 
But the time is forcing them to publish it. They said.
 
Why not? That's the only logical reason if everything looked fine and there was no indication of any problems reported
Interesting that a lot of major incidents have been related to a problem with ATC though
 
12:50 PM
Thanjks @nyconing
 
The report will be great in the library.
 

« first day (2845 days earlier)      last day (2107 days later) »