« first day (3152 days earlier)      last day (2021 days later) » 
04:00 - 11:0011:00 - 22:00

mr5
mr5
04:01
o/
What's the difference between DateTimeOffset.Now and DateTimeOffset.UtcNow?
As can be seen here, they return exactly the same value.
Of coz it will be same value
But the time zone in it will not same
We need to beware the time zone when using DTOffset
mr5
mr5
They have the same offset
or I will using unix timestamp all the time
No, they have different
mr5
mr5
I have included it in the link
Console.WriteLine("Hello, world!"+DateTimeOffset.UtcNow);
Console.WriteLine("Hello, world!"+DateTimeOffset.Now);
Hello, world!03.06.2019 04:08:27 +00:00
Hello, world!03.06.2019 06:08:27 +02:00
mr5
mr5
04:13
Oh. The machine it was running is in the UK
I'm expecting DateTimeOffset defaults to UTC +0000
The UtcNow just adds more confusion. They should just renamed Now to LocalNow
Agreed, it is confusing. I take soo much time and produced many production bugs to handle DT Offset properly.
Rob
Rob
@mr5 Why would you expect that?
It's a type specifically designed to hold an offset... assuming the offset is zero doesn't to me sound like a good default
mr5
mr5
well default(int) is zero
Rob
Rob
That's a bit different..
default(DateTimeOffset) is also 1/01/0001 12:00:00 AM +00:00
But assuming DateTimeOffset.Now refers to an offset of zero, to me, doesn't immediately make sense
Your suggestion of LocalNow I suppose, does make sense
mr5
mr5
I thought it was created because of DateTime's shortcoming to handle UTC.
They could have totally get rid of the Now property since it was the reason why there are lots of bugs (at least, from the articles I've read and in some of our projects)
So now, I also need to remember to use .UtcNow while using DateTimeOffset when serializing data
Rob
Rob
04:31
@mr5 Which bugs? I'd say most bugs are because people aren't aware of the problems that come along with dates
I doubt the name is misleading
Storing times in UTC doesn't fix problems with dates, either - at least, not entirely
If you're only ever using UTC, why are you using DateTimeOffset rather than DateTime?
mr5
mr5
04:44
Since in .NET Core, when you serialize a DateTime object using Newtonsoft and the receiving end is a .NET Core also, the origin of time zone is lost because it automatically converts the DateTime object to the current locale.
When you lost the origin of the time zone, you basically disregard the date+time preference of your user.
Maybe, it's the problem of the backend that it automatically localize every DateTime it receives
Rob
Rob
Hmm yeah, in that case it does make sense to use DateTimeOffset
Though if you want to fully capture the user's preference, you also need to store the time zone, not just the offset
Admittedly, that's usually over kill in most applications
05:31
@Squirrelkiller I want design file to copy into my another project
is it possible ?
Good morning
@HéctorÁlvarez morning
06:07
Buenos diaz
@ZMAX Just copypaste the .designer.cs file's contents into another one that you created in the new project.
Buuuuuuut why not WPF?
GoOoOoOoOoOoOoOoOoOoOoOd Mornin' squirrelerinos!
'sup Squirreeeel o/
y'all ludicrous this morning
And I'm here enjoying the cleaned up starboard
Kinda cleaned up. It's still like 60% me.
06:23
We still have the top 3 from last week. I still laugh at all 3
Only missing Wietlol's "Can't argue with that"
Damn it's like Bender saying "I'm sorry" or "thanks"
06:36
@Squirrelkiller o7 killerino
@Squirrelkiller thanks :) . I don't know much about wpf . I'll try with wpf now
WPF is soo nice @ZMAX
Eh, it's better than WinForms, but it's still quite bad. :-D
They should at lease copying the idea from iOS AutoLayout and Android ConstraintLayout
Then WPF will fine.
What do those do?
06:50
Build maximum design with minimum cost. And it fits all screen variation.
That doesn't make much sense for desktop IMO, the whole point of responsive UI for mobile devices is that you can rotate the screen
and you have several different resolutions to provide service to
WPF is designed to target multiple screen variation
But designing on it cost too much time and acknowledgment.
*compared to AutoLayout and ConstraintLayout.
Yeah but it's something you'll never use because it's counter-intuitive to design responsive UI for desktop apps.
We're talking about 1080p screens out there for 100€
No I mean how do you lay out stuff with them?
I know ANdroid LinearLayout just stacks views behind one another, in the given orientation.
RelativeLayout places every view in relation to others (like leftOf/rightOf).
FrameLayout jsut stacks stuff on top of each other.
What does ConstraintLayout do?
facing one problem now
06:55
@Squirrelkiller from what I've read it looks like you can place controls relative to one another, but also add constraints.
E.g. Element A will be below element B, but will also have a minimum margin of 20px
Responsive layouts for mobile? Hah, just lock the app in portrait mode!
ConstraintLayout is upgrade of Relative layout
ConstraintLayout is a ultimate replacement of RelativeLayout
my new project is web application means I have aspx file now and my old project was in c# . So i copied designer file from c# project and paste it into aspx designer file
06:56
hi nyconing :D
My English cant proficient to say how ConstraintLayout does it magic, please look at googl;e
it's throwing error
zmax take a nap
@bluetoothfx can't i have to finish project
06:59
sorry man..just kidding
tell us the error...if someone familiar he may give you some insight.
What is the error
If text is too big then you may use pastebin.com
@ZMAX ASP.NET uses C# as programming language
Saying "My project was C# but now is aspx" is like saying "my pet was a cat but now it's an animal"
I can only guess you probably pasted the code into the wrong place.
I can only say
!!xy
07:02
i know that but how can i copy design and add that into aspx page . just copy and paste designer file
The goal here is to port a WinFOrms project to the web?
yes
1) WHY?!
2) I believe WebForms is a web port of winforms basically, but I really have no idea about that, I only heard it is really bad.
You don't copy designer code over between two different types of projects.. they aren't compatible. You can only copy over the business logic and such.
3) Why do you want to port a WinForms app to the web? If it's really a step your company wants to do, do it right. Don't jsut paste shit into a web project. Web apps work differently from desktop apps.
07:06
Also ^
@ZMAX Oh well I didn't notice this... then we'll have to re-instantiate the x-y thing
If your code is tightly coupled and you can't strip the logic from the rest of the project, you're bound to manually copy-paste chunks or do it from scratch, basically porting the functionality.
You cant just 'copy' the Winform designer to WPF. You need to re-design it, with reference from your previous project. Before to do this, you might need to split up logic, behavior and some foundation from the UI part.
Pro tip: Don't rush your project. If you somehow make it work by copy-pasting a winforms which is probably suboptimal too, the moment another dev has to touch it you'll have a shitstorm coming in your direction.
Yes. The 'port' are actually re-design. Not just simply copy. The entire project will be re-designed which mean it cost your time same like you're build an new app.
07:21
@ZMAX What's the reason for porting this app to the web? Perosnal project? Internal tool your boss would like in the web? Actual product being sold that your company wants ot do the next big step on?
I understand he's just migrating winforms to ASP.NET, is he not?
Winforms to ASPX sounds like a platform port
@RoelvanUden heresy!
I know this is evil. I suggest you to drop the project unless you think the port are really earn.
WinForms to Web sound like XY
So...I tried to take a step back
C# to ASPX sounds like XY too
07:29
its a school assignment, your task is to do the exact thing you are not supposed to do in the business world
ohayou
gokigenyo
bakayarou
damn you are too good at this
my resources are more limited
no, Im only know few of it?
07:36
nani?
nanidesu?
screeching intensifies
Don't worry about it being VB.NET the language is not important. The bigger the existing desktop winforms app is, the more work it's going to be though.
07:44
@ZMAX We need answers here. We're just throwing ideas we think are clever into the void.
good morning
Good morning net to hyper loop
dude your name's a gold mine xD
'nade to half life
Killerino
YOu're sure loving that XY stuff
08:02
@Squirrelkiller you know after deployment into production I can't find all codes . I can only have html files . not .cs files which has model codes . so I have to make copy of this project where i don't have full codes . but there is one way to do so . decompiling .dll files . but unfortunately bin folder is also empty in production server .
@Squirrelintraining I slowly realize that 90% of problems devs have are XY problems
So I have a console application it's working but many features are different from production . So now I am making exact copy of production and it's too much work .
The problem isnt "how to copy a .designer file to an aspx project". The answer to that would be ctrl+c, ctrl+v. The problem is "how to port a winforms app to the web".
@ZMAX Do you have the actual source code of the WinFOrms app?
Also, woiuld you kindly asnwer my above question?
yes it's working . the file has these form.cs , form.designer.cs , form.resx
now .resx written in xml . so I can't copy html codes from there
Oh lol you're actually trying to copy-paste a desktop app to web
There's no direct translation from one to another
08:09
@Squirrelkiller oic
No you can't copy that, you have to make it new.
yes but some of them are not working at all . don't have full code also and it's a headache
Then again I'm here wondering if it's causing too much work to maintain the desktop app, what's the reason why you have to make this migration in 1 day?
Smells like nobody estimated the cost of migrating and the boss assumed it would be free.
all this nonsense is done by previous developer . Now don't have full code . :((
Right... but now you're creating a new nonsense by trying to take the shortest route
08:13
no I already created new way . but I was searching can it be done that way
if you want to get from the bottom of the mountain to the top you can't run vertically up the cliff, you'll have to walk up the rocky path.
Did apple just patent While Loop?
*Do while loop...
@ZMAX If you don't haev the whole code, you'll have to rebuild it from the bottom up. If you don't have the full code, decompiled sources will lack many things like constants or inlined functions.
@anand_v.singh I don't think it's quite the same...
Whoever told you to take a prgoram whose code yo udon't have and port it to the web, has to understand that you can't work on an app you don't have the code for.
08:27
You're a Wizard! Harry
@anand_v.singh well... then better use IEnumerable
I made a whole list of enumerable chains that are equivalent to primitive loops
@anand_v.singh written like that, it does seem rather stupid
@HéctorÁlvarez How, it looks like a do while loop, if authentication failed due to improper Image, Begin again....
Does this mean that nobody else can retry facial recognition because Apple patented it?
iirc (cant find it), it was like Generate().Select(action).DropWhile(condition).First()
08:29
as if this were some groundbreaking new technology
@Neil On a serious note I think apple has found some ways to identify if the face was too close and thus the facial recognition failed or it's someone else, in the first case they try again
That's what I understand\
isn't that normally how it works?
I don't know I haven't worked in that field, but from this it looks like if the process fails to authenticate it waits for manual input smh...
Face face = FindFace(photo);
while (face == null) {
    sleep(1000);
    face = FindFace(newPhoto());
}
I think the function is called only when you press the unlock button and the screen wakes up
08:33
Or sometimes when the phone detects it is being held upright
my android phone will already do that I think
Maybe I haven't really used apple
If I'm looking at it, it unlocks.. and I'm sure it doesn't continually check or it'd run down the battery in no time
@Neil My Android begins detecting face once the screen wakes up...
But Apple is sPeCiAl
08:34
What I get from that article is that biometrics are pretty flawed nowadays, so they've patented something that makes one of these flaws disappear.
I suspect it won't be long before we'll start living in a world like minority report
E.g. if you put your face in front of the screen there are the following options:
- Logged in succesfully
- Failed to log in -> wrong face
- Failed to log in -> correct face but wrong read.
where you'll get targeted ads based on facial recognition
They try to address the 3rd case where you should log in, but instead got blocked and told to use password instead.
though if I recall, in the film it was based 100% on eye recognition, which was important for the plot
08:36
Examples of criteria for the images include distance between the camera and the user’s face, attention of the user in the images, pose of the user’s face in the images (e.g., pitch, yaw, and roll of the face), and/or occlusion of the user’s face in the images

I mean these look like can't be done just from software to be honest
I personally suffer from this actually, my laptop sometimes refuses to let me in when I use my fingerprint, and that's really frustrating
having to fold it back into position and use the keyboard when I was in tablet mode
@Neil Haven't seen it, is it good? Is Minority report the Tom cruise one in which they prevented future crimes?
@HéctorÁlvarez But you will need manual input i.e. rescan your finger
will the facial recognition work for lions?
I mean google has learned to recognize pets...
you think a lion is a pet?
08:41
Rest I mean we only have you, so we will face a problem seeing if it can differentiate between lions
No lions, and no far-east asians either
mr5
mr5
@Wietlol look for YOLO2
will need different algorithm for lions
@Squirrelkiller I remember when the Meme became popular that not all Chinese look the same and Apple saying Hold My beer....
mr5
mr5
uhm, sorry it's a different thing you're asking
08:42
@Ravi Nah, will probably just require to be retrained
@anand_v.singh Right but maybe it runs extra checks.
I don't know, I haven't coded it.
@anand_v.singh Yeah, it really had a great premise to it
there were holograms being used to show personalized ads to you as you were walking down the street
@Neil Will probably watch this weekend
and a camera provided your location and identity overlooking everyone
it also plays with the idea that your future is or isn't already written
08:45
@HéctorÁlvarez Maybe guess one has to apply to next job opening at Apple to find out
Still saying Apple patented a do while loop will be the one of the funniest interpretation of it
and I prefer the funniest interpretation of everything
It's 2019 and there are new question about using iframes in emails...
why does everyone keep thinking this is a good idea?
I don't think they fully appreciate the kind of damage you can inflict by allowing iframes in e-mails
> appreciate
aka respect
09:05
The damage of being automatically detected as spam
@HéctorÁlvarez assuming the guy in charge knows how to setup a mail server, sure :P
09:27
one more question how to display some content in tinymce editor . I mean the content is coming from another page and I want to display that content into main page tinymce editor
another Qs :- can tinymce editor be used instead of web browser
@Neil IMHO its probably because they dont know other things, web developers stick to ancient technologies
my idea is that it isn't the web developers asking for this
probably far more likely it's some guy in marketing behind a desk
The guy probably has a marble coaster and some incredibly cliche 80's style paperweight on his desk too
Well they could do implement that marketing idea using HTML5 video tag
how dare you tell marketing how to do their job! ;)
But things went south when "requirement -> iframe"
09:39
my experience is that everyone thinks they know the best technology to use, and they're not even the ones who use them regularly
Instead doing "requirement -> modern technology". For reference How to send an email with any video file?
why is that?
I don't go to some construction worker working on my house and tell him to use aluminum tubing for the pipes
"everyone thinks they know the best technology to use" Humans do have big ego
Why not? aluminum is shiny!
I mean ok, if I'm paying for the house, they're not in a position to argue with me, but that makes it all the more stupid that I insist
If your boss tells you to use a certain technology, you do it.. afterall it's his dime, but it's also incredibly stupid imho
Also because if the technology doesn't work you get blamed
What does imho mean?
09:46
in my humble opinion
Humble opinion, you @Neil Lies I tell ya
the cake is a lie!
@anand_v.singh well maybe not so much this, but still
though I have had bosses that would also blame you for decisions they made
I no longer work for that company :)
Well I am in my first company and my manager even takes blame for my mistakes saying I am an intern till June end, so I have license to screw up
good boss then
not only is he doing the right thing, he also motivates you to not mess up again
without demeaning you or otherwise
But in my internship last year I had the worst manager ever, we were working on programming this microchip, to program it a custom part was required, which would be delivered after a week, our code was ready and he insisted that we clock in and out on time and sit doing nothing
09:51
It's important to break stuff from time to time, that's how you learn.
@Neil Yup he is as good as I can Imagine
@anand_v.singh well I can understand that, he could get into trouble if he let you guys stay home
still, couldn't have been fun
@Neil I mean if that was the case he didn't explain it, and no it wasn't I came to the office and was catching up on TV Series
@anand_v.singh he was catching up on a tv series or you were?
Me and the other 3 interns
09:58
In my current job I am blamed by poor ideas my manager took and I did implement.
Blamed how?
Yearly promotion evaluation, they told me the performance of that solution was poor. And was that dude who told me to use that technology
That sucks
Long story short, im considering my current position in the company.
Unless I particularly trust my boss, I'll always insist that such things are in writing somewhere
even like a casual e-mail expressing my doubt of choosing that technology
so you never get in situations like this
I'll admit fault when it is my fault, but I can't accept getting blamed for something which I expressly said was a bad idea
10:05
Im not happy with the attitude of my boss and a couple of coworkers. And considering changing company after being 12+ years in it
12+ make sure you mention why you are leaving in the HR exit interview
HR department is a joke also
Not sure if "drop a bomb" after I quit, I got email proof on tax evasion but I gotta check how to send it anonymously to the spanish gobernment
WTF?
Ta ma de?
Spanish tax auditing are poorly done, campanies can divert money to specific concepts and auditors dont dig into suspicious numbers
I got an email between administration and accounting app support team because numbers didnt match where the answer was "That money is in the black account"
Not sure if in english that term is used. Black account = paralell, not declared money
10:24
@bradbury9 Spain has so much corruption I still wonder how we are not Venezuela 2.0
You do speak the same language
Mostly
Just like you also speak danish
mostly.
More like switzerland
I mean, I get their expressions but usually when it comes to detail I miss most of their statements.
I can get a general idea of what they're talking about and fill in the gaps, but american spanish has deviated pretty far away from us.
10:27
Literally our verb for "take" is their verb for "fuck"
You gotta teach me more then
I'm learning form my Colombian girlfriend talking to her ecuadorian friend
and duolingo, but nobody is sure how to correctly translate sandwich
Coger el autobus in spanish means "take the bus", but you say that in Argentina for example and they'll think you want intercourse with a vehicle.
Or "Cipote", that in "latin variant" means kid, but in spanish is slang for "dick"
Like, Duolingo says Emparedado, but merican spanish has sandwich and, like, words that sounds liek sandwich.
In english, while you can clearly hear a difference in accent between an American and an Australian, there aren't a lot of different word usages
10:29
I almost ban a player in a FPS server because of the nickname
or from American and English
@Squirrelkiller Emparedado definitely is a latin-american expression
Also "intercourse" used to mean conversation in english, so there's that :)
He was using "CipoteLoco" which I understood "CrazyDick" but he was meaning "CrazyKid"
If the file does not have a valid image format or if GDI+ does not support the pixel format of the file, this method throws an OutOfMemoryException???? exception.
10:30
Gotta love the different languages lol
Fortunately I talked to him about his name, so I did remove the warnings and did not ban him xD
the only word for sex in english for a long time was simply "coitus" and that was very much from a scientific perspective
every other reference to sex was using some euphemism or choice of words
That is a good missleading exception type nyconing
It's kind of interesting when you think about it
It's a bit like not having a word for the color blue for thousands of years
which incidentally is also true
@Neil Except fornication.
As a matter of fact the word "fuck" is a term coined after the fact that peasants had to request royal permission to have sex. Hence the term Fornicating Under Consent of the King, or something along those lines
10:39
@Neil @HéctorÁlvarez: Or copulate.
guess I'm wrong.. OR NOT!
Schrödinger's cat is right.
@HéctorÁlvarez: More likely F*** comes from Scandinavian Fukka or Focka.
> Instances of fuck before the 15th century are rare. Despite it commonly being classed as one of the Anglo-Saxon four-letter words,
class Fuck : AngloSaxonFourLetterWord
var rare = new Fuck();
also...
> One origin story for fuck is that it comes from when sex was outlawed unless it was permitted explicitly by the king, so people who were legally banging had Fornication Under Consent of the King on their doors, or: F.U.C.K. But obviously that’s wrong. And if you do believe that, stop it. Stop it right now.
@HéctorÁlvarez
German = ficken
Also my girlfriend said emparedado is specifically not Latin American Spanish. I don't know what to believe, every Spanish speaking person I know seems to have a different opinion on this.
10:53
@Squirrelkiller Rude!
04:00 - 11:0011:00 - 22:00

« first day (3152 days earlier)      last day (2021 days later) »