« first day (3195 days earlier)      last day (1738 days later) » 

mr5
3:00 AM
o/
void PreLoad(string source, int sizeInBytes);
How would you effectively describe a parameter that it is supposed to be a size in bytes?
 
3:35 AM
You mean byte size
int size in byte s make no sense to me
int can be cast to byte and exception thrown when overfow
 
Rob
Using byte size means you can only load 255 bytes at a time
 
oh my bad I think no exception would throw, c# just truncate it from extra bits
 
Rob
int numBytes might make sense... you're telling to read a number of bytes, not a size of bytes
But what you have right now is pretty clear, at least to me
 
var i = (int)2424;
i=i-5;
Console.WriteLine("Meow "+((byte)(i))); //115
 
Rob
Casting to bytes isn't relevant here. It's an amount of bytes. It's not a value stored in a byte type
At least, that's what I understand from the signature
 
3:41 AM
What? Then it should name bytesLength or just length
 
Rob
Why? You can describe a file size as it's size in bytes
And that value has nothing to do with the byte type
 
I thought it was size in form of type byte
bytesLength will make sense to everyone btw
 
mr5
Adding more context to the sizeInBytes parameter, it will describe the chunk of bytes it will store in the file system
byte length might be misleading as I am interpreting it to be a description of a file rather than a buffer size
I am also thinking of turning it into enum since I also don't want it to grow, let's say, 1MB
hmm maybe not, maybe 5MB is maximum since
oh well, I'm actually not sure yet what the maximum bytes would be.
 
3:56 AM
Ohh it was a file size then fileSize
Developer will be curious about the unit and they will check description
int.max in bytes equal around 2.1G
 
 
1 hour later…
5:08 AM
What was the last time you felt like smashing your keyboard
 
mr5
5:54 AM
never feel it
 
@mr5 what was the last time you lied?
 
mr5
I actually never feel smashing my keyboard.
I am playing a very stressing game like Dota 2 but I have never feel the need to smash anything just because I am infuriated/annoyed.
 
I mean that is understandable, why would anyone want to incur expenses because they got infuriated
 
mr5
6:13 AM
so what are the other reason you might want to smash your keyboard?
 
Slow internet in Africa, so they are unable to send log files and the bug is incurring only in devices in Africa, the transfer kept failing, it was quicker for me to Image a device here with the Image for African devices and update it, crash it, then get the logs, the frustration kinda went away once I realised the second point
And yeah as per common sense, shouldn't actually smash keyboards
 
GoOoOoOoOoOoOoOoOoOoOoOd Mornin' squirrelerinos!
 
mr5
morning
@Squirrelintraining where's our daily "have you XXXX lately?"
 
6:29 AM
Have you eaten cabbage lately?
nah, I'm not capable. He does it better
 
Why are you guys aslways mixing up the squirrels man?!
It's the killerino which posts that stuff @mr5
 
mr5
oh wrong squirrel
your avatar looks quite similar
maybe try another pose
 
@mr5 Speciesim you biggot
 
@mr5 ಠ_ಠ
 
mr5
¯\_(ツ)_/¯
 
6:37 AM
@mr5 we jave
 
6:50 AM
y
o
 
ohayou
 
How can I geolocate checking IP address in .net core?
 
@bradbury9 you have to depend on some service like iplocation.net
 
Everything I read are kinda limited services if you want it for free
 
yeah, of course. they want money :)
google will let you translate anything you want, for a price
Though in my experience, if you get anywhere close to reaching the limits of the "free" service, then you can probably justify paying them something
 
7:00 AM
IANA et all dont seem to have free services
 
@bradbury9 well, it costs them money, all that scraping up public databases and paying off shady cellphone companies to collect all that data.
IANA won't really have good information. IP addresses aren't assigned geographically in any meaningful resolution.
A cellphone company might have an assigned block of IP addresses, but each IP's last known geo-location can be anywhere in its carrier's network range.
 
Python does have some libraries, that use external databases as well, but they are free. Probably not very exact, but free. For example pypi.org/project/python-geoip
 
user10655999
Have xml response which have random string in PKCS7 format. I need to embed that PKCS7 string to pdf.
 
user10655999
1
Q: Read xml PKCS7 response and embed to pdf C#

shwetacHave xml response which have random string in PKCS7 format. I need to embed that PKCS7 string to pdf. What is the step to do the same in asp.net c# Find Input xml file Input XML Output Digital signed pdf

 
@bradbury9 "Library for processing Vietnamese poetry"?
 
7:07 AM
a bad copy-paste
 
Better :)
 
I'm helping with a bot development for a quite old game, that has no anticheat, so to ban cheaters we must check IP locations
 
Their freely downloadable databases seem to be scoped, at most, to a city.
It looks like their service is oriented towards fraud prevention, which is exactly your use case.
 
City is specific enough, we will have a "!follow nickname" command, that stores the suspicious player location. Once a location is followed, when admins enter a message is sent "player XXX is connecting from a followed location, check his/her playgame"
The phyton bot was awful, but that geolocation plugin was quite nice
 
I disagree,
Poll the wikipedia IP-Adress site, parse that info, extract where your IP is and which company bought it, poll the wiki site of that company, check it's location ... PROFIT!
 
7:28 AM
An IP can be assigned to an ISP. An ISP can serve users in a very large area. In Israel, ISPs are national. Simply knowing the owning company will tell you nothing.
 
@Squirrelintraining There are so many ISP around, doing all the company checking would be a huge task
 
@bradbury9 automate by wikipedia/companyname and pray you don't get a 404
Might work, might not
@AvnerShahar-Kashtan Also ya, would be country-wide at best and not city-wide
 
ok, I admit, Rider takes up a lot of RAM
(If you have 31 projects opened)
 
@Squirrelintraining That's probably what companies like MaxMind do. Which is why we want to use the results of their work instead of replicating it.
 
I have seen a free service that allows 2 IP lookups per second. If I add some IP caching it could work
 
7:32 AM
you can always retry once a second until you get the lookup you need
depends entirely on how often you think the requests will be done
 
2 per second seems perfectly satisfactory for your use case.
 
@AvnerShahar-Kashtan maybe
 
if you expect more than 7200 requests an hour, you may have problems
 
Not so many players, server is 18 slots
 
but really, if you get that frequency for a program you've sold, you can spare a bit to the service
 
7:34 AM
@AvnerShahar-Kashtan Also is it posssible that android checks your public IP-adress and reports that along with your geoposition to google, so that they could map in theory which ip belongs to which region?
Does that make any sense at all
Or am I going all tin-foil-haty?
 
if you're using for data collecting, don't make it part of the critical operation
have some post-op background task do it with no real hurry
 
@Squirrelintraining Yes, almost certainly. Android sends google telemetry not only about your public IP address and any information the cell-towers report, but also your GPS location, and the list of all wifi networks around you, which helps them know the locations of people on wifi as well.
 
if the operation can't complete because it can't get the geolocation and you don't really need it, it is probably a bad choice
 
Advanced geolocation use multiple services like WLAN + IP
 
Morning wetwipes
 
7:36 AM
with IP you can get only a rough estimate, if they get to know what wifis are around, that is a boost in geolocation
morning capi
 
Oh that makes sense (the wifi part).
Yeah i knew about the telemetery part, but wasn't how sure they are allowed to go.
 
Ethics aside of course.
 
I got this last night for a message from Thursday :(
 
The innapropiate content, is your avatar?
 
I mean in, germany atleast, an IP might be considered as something that can be used to determin somebodies Identity, and thus it isn't allowed to use such data in the telemetery
@bradbury9 Hang on, so if you have GPS disabled, but wifi enabled, in theory, google or any other app could calcualte your position based on the wifi signals around you?!
 
7:39 AM
In many countries IP is considered a protected data, but when money is involved companies do store and sell wifi maps
@Squirrelintraining Allegedly some emergency rescue apps do provide that funtionality
That would be the legit usage ^-^
 
@Squirrelintraining Definitely not going tin-foil-hat there. That's how it works.
@bradbury9 Emergency services use a different mechanism for the most part. When you make a call, your phone triangulates your position and sends it in the call to the operator. So emergency services immediately get your location. Their fallback (e.g. older phones, countries where that doesn't work yet) get cellphone location from broadcast towers (which area?). Additionally they can send you a SMS with a browser link to submit your GPS to them.
I think the first option was since Android 8 and iOS 11. EDIT: Nope, Android 4 apparently.
 
@Squirrelintraining Yes, google knows where wifi access points are
 
@Squirrelintraining Yes. Notice in Android you have two levels of location granularity - GPS (high-precision) and network (low precision), which uses cell signal and nearby wifi networks.
 
Do LSP and ISP solve the same problem, but LSP is for classes and ISP is for interfaces?
 
7:46 AM
@mshwf LSP is for cLasses, and ISP is for strIngs.
Sorry, sorry. Not trying to confuse you.
 
sorry not sorry
 
They both try to prevent the complexity brought on by coupling and dependencies, but do it quite differently.
 
@AvnerShahar-Kashtan I thought ISP is for internets.
 
And for different aspects of coupling.
 
how do i 'sum' on this object list?
  var InterestRates = Model.TimeToolDataList
           .Select(x => new {RATIO = (decimal.Parse(x.INTERESTRATE) / decimal.Parse(x.INTERESTRATE).sum * 100})
           .ToList();
take the sum of all interest rate values in timetooldatalist
 
7:54 AM
@mshwf LSP means I can substitute a subclass for a baseclass without breaking things - a method that expects a Stream can receive a MemoryStream or a FileStream and keep working correctly because the subclass is designed not to break your expectations of the base class's behavior, so you're not coupled to a specific class, but to the whole class hierarchy.
 
var sumOfInterestRates = Model.TimeToolDataList
           .Select(x => (decimal.Parse(x.INTERESTRATE) / decimal.Parse(x.INTERESTRATE)) * 100).Sum();
@Adan : Why are you dividing the INTERESTRATE by itself?
 
I will use this geolocation, seems pretty easy, just a web request that returns json data
 
ISP means that if your Stream has a Read() method and a Write() method, it would be better to have an IInputStream interface with Read and an IOutputStream interface with Write, so that if all you need is reading, you don't have a dependency on a class implementing Write().
@bradbury9 Yeah, if you just need city resolution, it looks fine.
@Adan it looks like you're trying to get the sum of all interest rates, but inside the loop, meaning at a point where you have just one interest rate (the one in x).
 
IP geolocation is absolute wank
 
Sometimes is necesary, if no other alternative fits the requirements
 
8:02 AM
@AvnerShahar-Kashtan true
 
var sumOfInterestRates = Model.TimeToolDataList
           .Select(x => decimal.Parse(x.INTERESTRATE)).Sum();

var interestRates = Model.TimeToolDataList
           .Select(x => (decimal.Parse(x.INTERESTRATE) / sumOfInterestRates) * 100).ToList();
@Adan Is this what you mean ^
 
yea
im sorry for asking something simple like that
my brain is tired tonight :/
 
good morning
 
@Adan YOUR BRAIN HURTS?
https://www.dailymotion.com/video/x2nedgv
Why are they all missing the propper ending? xox
 
@AvnerShahar-Kashtan It's just not the same as a marvelous cat gif
!!Wietlel or Wietlol
 
8:16 AM
@Hans1984 Wietlel
 
haha,ok
 
8:39 AM
ahoy mateys
@CaptainObvious what inappropriate content did you post?
 
I'd link it but Feeds deleted it and the banned me
 
ahoy
Hoist the sails !
we are leaving
throws Roach over board
he wont mess up our Whisky supply this time
 
@CaptainObvious if you can link to the deleted message, i can probably see it :D
 
I can't even find it anymore
 
:(:(:(
fair enough
how is everyone's Tuesday so far?
 
8:43 AM
I thought Feeds was a robot
 
Feeds is a robot
 
@CaptainSquirrel it's too early to tell..
 
its just 10:45 over here :(
 
@CaptainSquirrel getting my new Bose headphones today :)
can't wait
 
8:45 AM
But it's actually 9:45
 
Hoe much money have y'all wasted on Prime Day so far
 
Can you imagine the programming nightmare once timezones from Mars also get added
 
about 300 euros
my wife got a "dry fryer" that she's been wanting for some time
and I got the headphones
 
@Neil waifu
 
8:46 AM
0.00000€
 
I don't think I'll be buying more though
 
@CaptainObvious Closing in on 30$
 
My mouse and headphones are on offer again
 
saved about 70 euros on those headphones
I don't mind paying more so long as they don't break
 
Oh shit
 
8:48 AM
the last headphones I had literally shattered
 
If you saved 70 Euros, how much do they actually cost?
 
154 euros
 
I'm currently in about £240
£200 on SSDs for my home server
 
would have been 224 otherwise
 
8:49 AM
Mind linking the headphones here
 
I linked mine before. Had these for years
2 mins ago, by Captain Obvious
My mouse and headphones are on offer again
I've had the pair i'm wearing right now for about 2.5 years, and I bought another pair for home about a year ago
My home PC wired headphones I've had about 3 years too. I like Sennheiser headphones
 
My current headphones start paining my ears, that doesn't happen in these right?
 
I'm using a 7? year old razer naga
 
@anand_v.singh turn the volume down
 
Probably more
 
8:53 AM
@CaptainSquirrel Why did I read the n-word?
 
:D
 
It's actually muscles over the ear that hurt not inside the ear, so if I turn it off and still wear it for a few hours it will happen
 
then you Need to tone down your ear muscle workout
 
Mine are over ear
So unless you've got ears which stick out loads you should be good
 
8:56 AM
Yeah I was thinking side planks supported by the ear
@CaptainObvious they kinda do, that's the issue
I think I will try it in the store or something
@Hans1984 you are from germany right?
 
They don't lean on the ear, they lean on the head around it, so it shouldn't be a problem,
 
@CaptainObvious okay, then perhaps that's what I will order
 
If you've got Amazon prime you may as well order them today while they're heavily discounted, and if they don't fit well you can return them
 
@anand_v.singh yes, why ?
didnt you realize when i did o/ all the time
j/k
 
@Hans1984 I am visiting next month and tourist traps
 
9:01 AM
LSP is meant to keep class hierarchy working well, otherwise it's broken in run time.
ISP is meant (more) to decrease the coupling between classes so minimizing interfaces to only what-needed-members across implementations
right?
 
and must do things
 
@anand_v.singh oh nice
enjoy
dont get robbed by some immigrants
just kidding
 
@Hans1984 YOu are the third person giving me that warning
 
what cities you gonna visit ?
 
@mshwf Pretty much.
 
9:02 AM
better safe then sorry. thats why i carry a knife and K.O. spray with me all the time
 
I am in a city named AAlen for 4 Weeks, so I will have weekends
I haven't really decided which cities
Thinking Frankfurt
 
yeah you better watch out
 
Munich
 
@AvnerShahar-Kashtan thanks!
 
I live in a rather small town (140k) but its much worse in bigger cities
 
9:04 AM
The Issue is I am alone and not in a group
 
well just inform yourself where to go if you go at night
you ll be fine, it's not like this is Brooklyn or something xD
 
I don't think I can travel with a knife, but yes informed travel is a good idea
 
and if you are from india you ve probably seen much worse
in your cities
 
I actually survived brooklyn on my own
 
then you ll be good
 
9:06 AM
@Hans1984 I grew up in a very crime ridden city, but the issue is growing up you always have backup, in a foriegn country that goes down
 
thats true
it also depends on your build and mindset
im rather bulky(6ft 225lbs) I was never attacked so far
 
Ohh that's nice
 
@anand_v.singh Brooklyn isn't bad during the day
 
I am 6Ft, not 220 pounds but have a fight mindset
 
Basically anywhere in the city at night might not be so wise
 
9:08 AM
@Squirrelintraining BECAUSE YOU ARE RACIST, YA RACIST
 
@CaptainObvious I actually had a pleasant time in brooklyn
 
I set up an external monitor, like a professional software developer, and set the multiple displays to "Extends these displays", but some windows open in one monitor and others open in the other monitor, randomly, how do you set up yours?
 
I'm not gonna lie, even during the night Manhattan isn't bad.
 
i think it goes for all cities: Watch where you go at NIGHT
 
@CaptainObvious I was thinking of taking trains in Night to travel to other cities of europe, that suddenly doesn't seem like a bright Idea
 
9:10 AM
For "the city that never sleeps", walking like 10-15 blocks down broadway it was pretty damn dead
 
@anand_v.singh mindset is the MOST important part
 
Meaning they back off easy?
That I can handle
I have been in multiple fights since I was a kid
 
something something
FITE
 
FINISH HIM!
FATALITY!
 
BRUTALITY
KILLAMONGARO
KILLTROCITY
KILLING SPREE
 
9:13 AM
KILLIMANJARO
Now that's a place to go to
 
I ALREADY DID THAT ONE LEE
GOD
 
But I did it better
 
I'll have you know
you can shut your face
 
:O
Fucking hell that's a big mouth
:o
 
9:14 AM
And that just looks like every girl in town
Hmm
 
....that looks like every girl in town
 
impressive
 
user image
2
 
Duck face is a photographic pose, which is well known on profile pictures in social networks. Lips are pressed together as in a pout and often with simultaneously sucked in cheeks. The pose is most often seen as an attempt to appear alluring, but also as a self-deprecating, ironic gesture making fun of the pose. It may be associated with sympathy, attractiveness, friendliness or stupidity.A 2015 study found that people posting duck face pictures are more likely to be associated with neuroticism.In an animal communication studies of capuchin monkeys, the "duck face" term has been used synonymously...
 
9:16 AM
the duckface i get
but how does oOo look like a duck face
 
You either get it or you don't
 
clearly i do not
Now if you'll excuse me
 
It's like closing your eyes and stretching the upper lip, since the cheeks are pushed in the eyes appear apart
 
Im going to listen to SOAD and reminisce about halo
 
It's a representation get over it
 
9:28 AM
@CaptainSquirrel tRUE
 
should I commit .csproj file?
 
It's only the project file containing everything about how the project compiles, so I'd say, definitely not.
 
Me vs. my company sysadmin:
Him: - You developers install unauthorized software
Me: - I dare you to check all the software and tell me non work related one
Him: - See? You have VLC!
me: - Indeed I do, client XXXX does use an ActiveX plugin and I developed the asp.net+js code
 
9:38 AM
:o
 
Man, that did feel good!
 
A developer that doesn't have admin access to his machine is gonna have a bad time anyway lol
 
@bradbury9 is that really any of his business, frankly?
 
It was kinda cool, a train CCTV, with a N amount of videos playing in sync
 
if he puts limitations on what you can install, his job is done
not really his duty to judge and berate you for installing software despite the limitations
 
9:40 AM
Some years later that client moved into HTML5 video features and got rid of the VLC frontend, I "forgot" to uninstall VLC
I should add: That sysadmin is stupid. When devs complain about slow performance (network or IO) he always blamed devs installing software
 
My last place we all had regular accounts
and admin specific accounts
Also, how is installing software that probably isn't running at the time of slowdown related in anyway to network/io speeds
 
I AM MY OWN ADMIN
 
My dev machina was an state of the art, VS versions between VS2005 and VS2017, 4 different SQL Server versions also
And everything worked!
@CaptainSquirrel Did I mention he is stupid?
 
Hello
 
9:44 AM
Hi deepak
 
I have a issue 'BitmapStub' does not exist in the namespace 'Android.Graphics' Using Xamarin.Forms
Please see this
How can access BitmapStub in Xamarin
 
This place is bad
 
oh look its this guy again
 
We have admin accounts as our dailies in IT
 
this is not the Android room ether....
 
9:46 AM
Nobody else has admin though so it's not that bad
 
Okay Thanks :)
 
have you tried this

[iOS][Android][ChaosOverFlow]

Join to become part of the community, not to simply ask questi...
 
A quick search in docs.microsoft.com/en-us/dotnet/api/index?term=BitmapStub shows it is not regular API
 
@Deepakyogi
 
9:46 AM
maybe you are missing some references/nugets
 
@CaptainObvious yeeeee, you probably shouldn't be running your admin account all the time
AFAIK we have local admin on our machines to install whatever here
 
Probably yeah
 
And then everything else is locked down for the infra guys
 
+1, when shit happens, if you are under admin, it hits hard
 
9:50 AM
I am the infra guys
So it's fine
 
THEN FIX YOUR SHIT
 
Don't fix your shit and get turbo stomped when your network gets fucked
 
Me: I dont get to production server XXXX using the corporate VPN
 
Fix your shit and have less of an issue when your network gets fucked
 
9:51 AM
Head sysadmin: No problem try again
Solution: They put my in their VPN group
 
My network has been fucked before and it wasn't even by admin accouints
 
Now I have access to all servers...
:facepalm:
 
Sysadmins are lazy
 
Not all of them, but some of them are lazy bitches
 
9:53 AM
u maek me do a hurt
 
In fairness
 
And I studied sysadmin, it just happened I fond a dev work 15 years ago, and I am still coding
 
The company who bought us want us to do it
We will probably end up doing it soon
 
I didn't mind doing the window sysadmin stuff that i knew about
What i did mind was my old colleague freaking out when i had to get into his users files because he had locked out domain admins
 
I once had to remove the dust from my CCNA certification, connect to a cisco wifi hotspot and reconfigure it so the users could work again, because sysadmin did not remeber the wifi password
 
9:57 AM
To the point that i explicitly broke it when given the chance, even though i could just reset his password and get into his account
@bradbury9 amaze
 
I once removed dust from an old Server and there was a sysadmin hiding beneath the Server.
 
"because he had locked out domain admins" that is a poor security practice, admin account should not have long lock periods
@Hans1984 rofl
 
@bradbury9 domain admins didn't have access to his user files & even if our head it support guy changed it, he'd always change it back
We had a IT Support guy with a cisco qualification that wasn't happy when we referred to him as the network guy or asked him to do network things lmao
he knew what he was doing, however it was like drawing blood from a stone sometimes
(I was no angel either)
 

« first day (3195 days earlier)      last day (1738 days later) »