« first day (3407 days earlier)      last day (1524 days later) » 

12:46 AM
Anyone know how to access an the HttpContext of a controller function from an Attribute? [CustomAuthFilter(HttpContext.request.etc)
 
mr5
1:40 AM
@V.7 Xcode. It's very infuriating to create UI there using its interface builder. Some resort to writing a code behind but it would take me more or less 500 LOC for just a single login page.
 
 
1 hour later…
2:44 AM
I am using open source admin UI for identityserver4. It is called skoruba. I used the UI to add a client but when I hit the url to get token it give me error. What am I doing wrong

http://localhost:5000/connect/authorize?response_type=code&client_id=postman&scope=postman&redirect_uri=https://www.getpostman.com/oauth2/callback
 
 
3 hours later…
mr5
5:43 AM
not sales though
halp!
I'm stuck in this Xcode
 
6:44 AM
What is M. ?
 
Mobile?
 
mr5
wtf
why does this looks like a deja vu
I think I've seen that image in my dream
 
7:02 AM
var images = ";istock.jpg;leaf.jpg;mind.jpg";
var image = "leaf.jpg"
How can i delete image from images
and get ";istock.jpg;mind.jpg"
 
mr5
use string.Split
and Linq.RemoveAll
 
Buenos dias amigos
@markharringson images = images.Remove(image);
 
public IActionResult DeleteImage(int id, string img)
{
Venue v =new Venue();
var image = _context.Venues.FirstOrDefault(x=>x.Id==id).Image;
var checkout = image.Replace(';'+img , "");
v.Image = image.Replace(';'+img , "");
_context.Venues.Update(v);
_context.SaveChanges(); return RedirectToAction("Edit","Owner" , new{ id = id});
}
 
Ah sorry: images = images.Replace(image, "");
 
this is not workiing
 
7:14 AM
ctrl+k to format your code message
Like
{
  this;
}
 
!~>()=>{
    var images = "istock.jpg;leaf.jpg;mind.jpg";
    return images.Split(';').Where(x=>x != "leaf.jpg").ToArray();
}
!=>["istock.jpg","mind.jpg"]
 
mr5
noo
don't give the fish nyc
 
 public IActionResult DeleteImage(int id, string img)
        {
             Venue v =new Venue();
             var image = _context.Venues.FirstOrDefault(x=>x.Id==id).Image;
             v.Image =   image.Replace(';'+img , "");
            _context.Venues.Update(v);
            _context.SaveChanges();
             return RedirectToAction("Edit","Owner" , new{ id = id});
        }
var image = ";istock.jpg;leaf.jpg;mind.jpg";
and img="istock.jpg"
 
!~> () => {
return "dang...";
}
 
<!>No overload for method 'Join' takes 1 arguments
<!>Argument 1: cannot convert from 'System.Collections.Generic.IEnumerable<string>' to 'string'
!=>"dang..."
 
mr5
7:20 AM
!~> () => {
var images = ";istock.jpg;leaf.jpg;mind.jpg";
return string.Join(";", images.Split(';').Where(x=>x != "leaf.jpg"));
}
 
!=>";istock.jpg;mind.jpg"
 
yes man
 
lol
I passed parameters in wrong order
I'm not a good programmer :(
 
you guys are genius
 
mr5
Give a Man a Code, and You Help Him for a Day. Teach a Man To Code, and You Become A Teacher.
 
7:22 AM
Teacher!
 
mr5
@DKDhilip lol. I just copied your code
 
lol
 
mr5
how is your project going DK?
 
Err...still long long way to go
And I wasted time to earn some reps in SO
Can I just give up and...
Go back to normal job? lol
 
mr5
how old are you?
 
7:28 AM
You make a guess...
 
mr5
49
 
Whaaaaaat?!
 
he is 30
 
Do I look that old?
 
yes DK?
 
7:29 AM
Yeah...you just stalked my profile
How old are you guys?
@nyconing How old are you little cat?
 
can u guess how old am I?
 
mr5
I'm 19
 
@markharringson 27?
 
mr5
@DKDhilip yes
lol
 
@mr5 Are you seriously 19?
 
7:34 AM
@mr5 NO way u are only 19
 
mr5
why? lol
 
wtf, i am just 16
*26
 
Aww...off by 1 error
 
mr5
lol we're same age
 
30?
 
mr5
7:36 AM
26
got u
you're already 30
 
I'm 31.
 
mr5
so old
granpa roel
 
Age just a number, I'm still young lol
 
Well, there's a huge upside to your 30s... you've got vitality AND money.
(Unless you have kids lol)
 
But...where's my money?
 
7:38 AM
Lets get some money
@DKDhilip : i m making refer and earn app you can refer your friends and get money
:-D
 
Sounds like MLM scheme lol
 
@DKDhilip It sounds like you're doing something wrong :-P
 
hello how to become genius in programming
 
mr5
@RoelvanUden what's the meaning of vitality?
I only learn it from games but it means health
 
health + energy
will power
 
7:43 AM
^ all of the above
 
mr5
those games lied to me
 
It depends on the game. In many games vitality increases damage resistance and your health pool.
Which in some sort means energy :D
 
it's ridiculous when you think about it. With most games, you can still operate with 100% efficiency even at 1 health
 
mr5
I'm stuck for 5 hours with this Xcode shit
 
Drink more energy beverages
Then you got more energy :D
Wow...my reps suddenly +200
 
7:47 AM
I do enjoy games where mental health is important to keep up as well
 
+300 exactly
 
like in darkest dungeon, you can be stress attacked and if it gets high enough, you gain some querk which is usually negative but can sometimes be positive
like if a character becomes paranoid he or she will shout messages during battle that raise the stress of everyone else in the party
as you can imagine, such querks can be very bad if left unchecked
 
@Neil Unless it's ARMA or something.
 
I haven't played ARMA
but if it is like similar games, you can only crawl until you're revived?
 
7:56 AM
like in dota2
 
I think it was wolfenstein that first proposed this system of showing your health as a percentage from 0 to 100
 
"Hm I gotta reset 3 commits and check how exactly it broke then"
- commit wip
- reset HEAD~3 --hard
"...fuck"
 
mr5
@Squirrelkiller delete your .git folder before pushing to remote
seriously don't do that haha
 
that it is, sir. That it is
 
8:10 AM
@Neil It depends on where you're hit. If you're hit in your shoulder, holding the gun becomes difficult and accuracy suffers. Your legs might cripple you, making your vision sway and you'll move slowly. If you are hit in a critical area, you'll bleed to death.
 
mr5
o/ avnir
 
ah that's a cool idea
though I don't suppose you could realistically use it to weaken your opponent
if you could shoot a leg it would make more sense to shoot for the head at that point
 
No, but stray bullets are a lot scarier when it's not just a tick off your health pool
You also physically stagger when you get hit from the impact and pain haha
 
I almost bought ARMA 3, but I read that the playerbase is diminishing
I guess I was late to that party
 
diminishing?
The single player missions are still cool
 
8:19 AM
yeah, that the number of servers is always smaller and smaller
not many players who still play it with respect to how it was to start
then, could be completely false, I have no idea honestly
 
good morning yall o/
 
\o
 
@Neil I just recently started playing it. It's not very good alone. It's funny with a friend.
 
I've been playing a lot of deep rock galactic
more fun to play with friends also that game
you kind of get swarmed and the situations can get intense
 
mr5
I'm almost done. Fuck this Xcode!
 
8:33 AM
My friend told me Xcode is the best IDE lol
 
Because its Apple
Apple products = 100% best
^ For Apple fans
 
He even use a water bottle with Apple's logo on it
 
@DKDhilip clearly a superior water bottle then
 
I'm pretty sure XCode is great when you've never used a decent IDE before.
 
iBottle?
 
8:36 AM
@Neil what about DayZ servers
 
@MwBakker what about DayZ servers?
 
@nyconing Apple == fashion item. You pay more for things that can be a lot cheaper with same specs but it's a brand like hugo boss
@Neil Aren't they still crowded? People roleplay in those at a very professional level killing zombies etc
 
well it was released in december of 2018
it's still fairly new
 
Arma3?
 
8:48 AM
For me Apple just a evil company that produces expensive useless thing
 
Then what is best for you?
 
Many people will claim Apple best nothing can beat, yeah its true, for $2K on that thing
 
Arma 3 was released in September 12, 2013 according to the wiki
 
@DKDhilip HP obviously, HP is the master race
 
@DKDhilip Obviously Harry Potter is best
 
8:52 AM
Sony, and Bose builts earphone.
Peoples said
"yeah useless, I dont need ANC anyway"
"yeah my $0.50 earphone served for me 1 years and still intact"
"hmmm no demo units?"
moments later...
Apple built an earphone for the first time:
People :
 
mr5
they're queueing for iPoop
but tbh, I'd like to own iPhone someday =P
 
For me, M$ Surface is quite good
 
For what concerns quality, I respect Apple for that. They tend to make high-quality products
What irks me is that there are people who will buy it just because they are Apple products, and so the price is way higher than it needs to be
 
mr5
Entire Japan is using iPhone. I can't see any Android phones there
 
So I'm almost always going to automatically assume the Apple version is going to be overpriced for the quality
iPhone is the popular pick also in the states
 
8:55 AM
Even PRC Chinese prefer iPhone over their local phones
 
You see Android being used in Europe
 
@mr5 me never x) they are the worst quality for the price you are paying
 
@mr5 the only reason they stand for quality is because they remove user admin rights on their phone so even dumb-dumbs can't mess up anything
Hence I call iPhones Fisherprice-phones
 
mr5
iPhone performance are sleek. You can't argue with that.
 
At least they have some art senses
 
8:57 AM
it's true, they do tend to dumb it down, like to simply change the battery you'd need an "expert"
 
to be fair for changing battery in Android phones it's the same situation
 
Some android phone manufacturers prevent you from changing the battery and I don't tend to buy those either
 
I was talking about softwarewise, and unfortunatly some android phones do the same thing locking bootloaders without codes
 
android suffers from bloatware, some more than others
samsung is pretty bad for what concerns bloatware
 
root it and you can remove it
 
8:59 AM
Unable to change battery, but water resistance, is a good trade-off
Unable to change battery, but still not water resistance = bad design
 
Too much human resources wasted on making shitty UI shell and bloatware
 
And never Huawei, bootloader are not unlockable
 

« first day (3407 days earlier)      last day (1524 days later) »