« first day (3633 days earlier)      last day (1298 days later) » 

1:31 AM
 
 
3 hours later…
mr5
4:19 AM
o/
how do you idiomatically/slangy(?) describe a small amount of water?
 
4:32 AM
a drop
how small?
a splash
 
mr5
example: he drank a "small amount" of water while singing in the beach
 
sip?
I took a sip of water (drinking a small amount of water)
I took a gulp of water (taking a big sip of water. sometimes you make a noise while doing it)
 
mr5
he accidentally drank a "small amount" of sea water while singing in the beach
@CupOfJava how about using gulp in my second example?
 
do you mean "singing", or "swimming"
 
mr5
he accidentally gulp sea water while singing in the beach
singing
someone is doing a back float while singing in the beach and he accidentally drank <insert adjective here> sea water
 
4:42 AM
that sentence doesn't seem right to me how I would write it: "He accidentally swallowed some water while singing at the beach"
I would just say "some"
inhaled?
 
mr5
lol no. inhaled most likely be mistaken as going through nose rather than mouth.
so replace "drank" with "swallow"
 
yeah I would just say "action: swallowed" and "amount: some"
Sorry if I couldn't be more of a help
 
mr5
don't be sorry brother. you're here replying to me while most are out there enjoying their social life.
 
lol
 
mr5
hmm
why don't I feel sorry when someone is asking for help but I couldn't give any?
is this a psychopath behavior?
> showing no remorse towards other people
 
5:17 AM
I think you're a long shot from a psychopath
 
 
2 hours later…
7:23 AM
0
Q: How does one position elements in RelativeLayout in Xamarin?

d4rk4ng31I relation to my question No property, BindableProperty, or event found for “HeightRequest”, or mismatching type between value and property error in Xamarin.Forms, is there any way I can place the username and password entry elements right below the Welcome Label? So, basically, the app should lo...

This was a question I had asked, which has already been answered.
But that's for RelativeLayout
And what we're using is a StackLayout
 
7:35 AM
Anyways, I posted a question :)
 
mr5
is there converter class resides in namespace ConverterClasses only?
 
Yes
I mean, the class is DeviceProperties
namespace ConverterClasses
{
	public partial class DeviceProperties : IValueConverter
	{
		public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
		{
			double retVal = 0.50 * (double)value;
			return retVal;
		}

		public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
		{
			throw new NotImplementedException();
		}
	}
}
 
mr5
with just one month on not doing any XF project, I completely forgot the syntax how I do it. tf
can you try this: HeightRequest={Binding DeviceHeight, Converter={x:Static converters:DeviceProperies}}?
 
Okay
 
mr5
not really advisable to use that syntax inside <DataElement>
 
7:44 AM
Syntax for x:Static is "[Member=][prefix:]typeName.staticMemberName".
the error
 
mr5
hold on. I'm recalling the syntax
 
mhmm
 
mr5
btw
your syntax should also work
and I noticed this: public readonly double Device_Width = DeviceDisplay.MainDisplayInfo.Width;
 
Yes
 
mr5
this is not a property but rather it is a field
 
7:46 AM
Oh!
Then what do I do?
 
mr5
also, do not mix casing. You should only use PascalCasing in C#
change it to a property syntax
remove the readonly modifier.
it took me almost 2 days to solve the 2nd problem under "easy" category in leetcode :(
 
public double Device_Width
{
	get;
	set
	{
		value = DeviceDisplay.MainDisplayInfo.Width;
	}
}
Something like this?
@mr5 That ain't leetcode
This is a project I currently have
 
mr5
public double DeviceWidth { get; } = ...
 
Oh!
 
mr5
@d4rk4ng31 yeah I would doubt that if it is.
 
7:50 AM
public double DeviceWidth { get; } = DeviceDisplay.MainDisplayInfo.Width; right?
 
mr5
idk
 
Nope not working
 
mr5
removing the setter of property is the equivalent of readonly modifier in fields.
 
You want me to default to the normal syntax of the syntactic sugar?
 
mr5
did you update the XAML to DeviceWidth also?
 
7:52 AM
Wait
But that's a redundant property
I ain't even using it!
 
mr5
??
 
I instead switched to FillAndExpand
The converter is for the Height!
 
mr5
wat
first, test your converter on other controls other than label such as BoxView
also, set the VerticalOptions to Start
 
A little doubt
When I say Binding DeviceHeight
It tries to find that variable right?
Or does it declare that variable?
 
mr5
the former
 
7:57 AM
But there's no such variable in my .cs file...
 
mr5
dude, wat
 
lol
I have to define that variable in the ConverterClasses namespace right?
 
mr5
no
 
Then in the MainPage?
 
mr5
your binding context is its code behind file
 
8:00 AM
 
mr5
think of the XAML mark up when you do something like this: ...Binding DeviceHeight} transforms into if (BindingContext is MainPage bc) a = bc.DeviceHeight
 
Oh!
 
mr5
I'm eating rn, can't type properly.
 
Yeah, its fine :)
And now you've made me hungry
 
mr5
???
 
8:03 AM
Well, its lunch time
 
I'm typing rn, can't eat properly
 
lol
 
mr5
4pm here lol
 
Ah! Snacks
 
3:30am here
 
8:04 AM
hmm... whatcha eating?
 
mr5
r u from other planet?
it's definitely 4pm
 
???
 
mr5
I'm eating fillet
 
Err... what's that?
 
@mr5 other side of the planet
 
mr5
8:05 AM
the chick fillet from mcd
 
Wow!
Is it like spicy?
 
mr5
nope
 
lol, my clock is wrong, it's 4:05 am here. Mr5 we are on opposite sides of the planet
 
@mr5 Then it ain't my CupOfTea
 
mr5
@CupOfJava -0800utc?
I'm guessing, you're from LA?
@d4rk4ng31 yeah, but there's no spicy fillet un4t8ly
 
8:09 AM
No
FL
 
@mr5, Please Take a look at the updated question, when you are done eating :)
@mr5 That's bad
 
mr5
 
You guys ever eat Indian?
@CupOfJava I am guessing that's Florida
 
mr5
that's cannibalism
 
lol
 
mr5
8:11 AM
oh no.
the adventures of florida man starting with cupofjava xD
 
hahaha
Aww man, I really am in the mood for some Chicken Biryani, but that's for tomorrow's lunch :(
 
I saw a gator walk down my street today (adventures with cupofjava)
 
Errm, okay food aside, the debugger's not breaking on the Convert Function
 
mr5
okay, so Florida is -0500 UTC. My calculations were wrong. I thought that negating the sign of our datetime offset is the same meaning as opposite side of the Earth.
 
interesting
 
8:18 AM
No, really, it isn't
Most of the things don't mean the same on the 2 sides of the world
 
mr5
yeah, the way how the timezone offset has been mapped tells it.
btw, the exact opposite of Florida is in the middle of Indian ocean and the nearest island to it is French Southern and Antarctic Lands
 
How are you getting wifi at the bottom of the Indian ocean?
 
He's not
He's using fishfi
Or do I say fishfry? :P
yumm
 
mr5
Plebs! I'm connected to Starlink WiFi
 
8:35 AM
Has that been released yet?
 
8:52 AM
They are in orbit, at least.
A lot of them anyway.
 
interesting
 
9:30 AM
Hey there
@Cfun
Am I to create new files for each class?
 
hi @d4rk4ng31
it possible to have different classes in one file but it better to have 1 class/ 1 file
 
Oh!
 
also, it is better to have an average of 30 lines per file
 
otherwise what to do? split how?
 
Eh, no need to stick to 30 lines, but yes, keep classes as small as they can be to fulfill the one job they're supposed to do.
 
9:33 AM
also, dont forget rule #1: when in doubt, dont listen to Wietlol
 
hehe
 
I think @Hozuki and @Wietlol mean partial classes
 
ah
 
oh no, not partial classes
 
No, no, no partial classes.
 
9:34 AM
@Wietlol That is why I did not switch to Kotlin :P
 
dang it
 
lol
 
I'm talking 'bout SOLID:
 
i believe we start to get far from topic @d4rk4ng31
 
In object-oriented computer programming, SOLID is a mnemonic acronym for five design principles intended to make software designs more understandable, flexible and maintainable. It is not related to the GRASP software design principles. The principles are a subset of many principles promoted by American software engineer and instructor Robert C. Martin. Though they apply to any object-oriented design, the SOLID principles can also form a core philosophy for methodologies such as agile development or adaptive software development. The theory of SOLID principles was introduced by Martin in his 2000...
 
9:34 AM
Yeah sorry
 
Or
The single-responsibility principle (SRP) is a computer-programming principle that states that every module, class or function in a computer program should have responsibility over a single part of that program's functionality, which it should encapsulate. All of that module, class or function's services should be narrowly aligned with that responsibility.Robert C. Martin, the originator of the term, expresses the principle as, "A class should have only one reason to change," although, because of confusion around the word "reason" he more recently stated "This principle is about people." ��2�...
 
@d4rk4ng31 but also dont forget rule #2: when not listening to Wietlol, keep in mind that Wietlol might still be correct
 
Wait guys, We're working on something here!
This thing's been bugging me for almost 2 days now
 
Have you tried debugging it ;-D
 
@Cfun but yea, you should keep classes as simple as possible
give them one responsibilty and one alone, then make it
often times, classes would end up having only one or two public functions, but that is ok
 
9:36 AM
@Hozuki Yeah
It does not break at the breakpoint!
@Cfun
it's missing some import
Ah! dear old Visual Studio fixed it on its own. Great
 
hmm...
 
@Cfun, nope. Still old screen
Did exactly as you told
Can this be caused by the emulator?
 
Emulator?
 
Whoa
Okay
Changing the API somehow worked!
 
@d4rk4ng31it working with me, so at this point I don't know what is the problem
 
9:43 AM
It's working now :)
API needed to be changed
But now, its filling the whole screen
Err... no wait
Done :)
Finally!!!!!!!
@Hozuki Yeah, I spilled gravy on my ports. I am using an emulator will the water dries :P
 
doing a confuse
 
I still have no idea what emulator you're running.
 
@Wietlol Well, you see, I'm not just a dumbo, I am a clumsy dumbo
@Hozuki The default Visual Studio one
 
....
 
I am just missing the context
 
9:47 AM
Same here.
 
so either, you are geniuses that communicate with each other on a level that I cannot even comprehend...
or... other reasons
 
The former :D
 
:)
 
You see, I am from beyond ;)
 
Wait, are you doing Android shit?
Is that the emulation you're speaking of?
 
9:48 AM
Xamarin.Forms
 
We solved the mystery @Wietlol
 
ah, I am happy I don't know the context
no no no, keep it a myserty Hozuki
 
lol
 
I dont want to know
 
I'm sorry..
 
9:49 AM
Oh no, but you know now :P
 
Know what?
 
Figure that out too ;)
Anyways, gotta run
byee
@Cfun you are a gem
 
@d4rk4ng31happy to help
 
@Cfun Err, just one question
can you please explain what you did?
😅
 
has 20 projects, 18 of them have a node_modules folder, but none of them are node.js, one project is node.js, but doesn't have a node_modules folder
this is heresy!
 
 
9 hours later…
7:14 PM
Hi folks, how are you today?
When we forget to delete an allocated memory in C++ with delete[] or delete, why cannot the allocated memory be freed by the operating system itself? I am so curious with this phenomena. Could you tell me why?
 
8:00 PM
@NotAZoomedImage because you told the OS to hold it..?
You told something to, and it's doing it's job holding it.
One the reason pointers are so powerful, you can access that memory even when it's not meant for you.
 
8:33 PM
@NotAZoomedImage You're asking the operating system, "Hey give me some memory the size of x" and the OS goes "Sure bud here you go. I'll make sure this is yours.".... And then you never tell it to let it go. Therefore, it's still reserved for ya.
The OS has no knowledge whatsoever about when your program is done with the space it reserved 'till it's told so
 
8:49 PM
@Hozuki: Thank you very much! Understood!
@juanvan: Thank you very much too!
 
Good luck
 

« first day (3633 days earlier)      last day (1298 days later) »