« first day (223 days earlier)      last day (1115 days later) » 

6:30 AM
morning
 
7:18 AM
yo
 
7:28 AM
ghurt?
help
I can show a custom page for 404 error, but for 404.0 I can't
 
7:46 AM
lol
 
http://localhost/Device_part_label/Details/007 doenst give custom error page
http://localhost/Error/PageNotFound?aspxerrorpath=/kgb this one does
nice url btw :p
lol stupid mistake
 
8:04 AM
the fk u trying to do
 
return HttpNotFound();

didnt see this line
 
ugh
:D
 
8:21 AM
what is better?
This:                 return Content("<script language='javascript' type='text/javascript'>alert('Page not found, return to previous page!');</script>");
or this return RedirectToAction("PageNotFound", "Error");
 
Redirect imho
 
thought so
damm... if I had known this before, I could have aced my exams
 
@Roland_dfa Please don't ever do this
 
But happy with the current result :)
wouldnt have time either
@RudiVisser am not complaining about anything ;)
 
8:39 AM
Hey Rudi
 
Morning beautiful
 
wow
 
Stop asking me how much you owe me I've ignored you enough times to insinuate that I don't want your dollar :D
 
well good morning me, just found all the HttpStatusCodes...
 
Haha sure @RudiVisser I will compensate it later anyway
 
8:47 AM
@Falcon just send that dollar by letter
 
Could do if UK was using* Euros like everyone else.
I wonder how long it will take to ship from UK to NL
 
UPS never collected so I'd shipped it via post-office, they said 3-5 days
I'm guessing Monday?
 
business days? or including weekends?
 
Who knows but I've never known anything international take more than 3 days even on a slow service
That's why I normally ship UPS but they're assholes recently, this is the third thing they haven't collected
 
no worries
 
9:37 AM
 $(document).on('click', '#backLink', function () {
        history.go(-1);
    });
learning everyday :)
 
Good
You should
 
10:10 AM
despite the standard bootstrap layout, pages don't look too bad
ssshh to the design experts :p
 
Morning all!!
 
Apparently I can't sleep in anymore. I always wake up at 7 am
And that really sucks cuz today is my only free day
And I am still tired AF
 
10:30 AM
lol
 
10:55 AM
Hi all
 
Hi Alex
 
Hi @Alex
wow... i made a custom page for 500 errors... what do I get when running it?
a 500 error...
 
Hey Falcon and Roland
 
11:37 AM
0
Q: one file is converted to machine code i think, not sure how to revert back to original visual studio

Ram SinghMy System switched accidentally and I was doing code. when I started the PC again and opened my project in Visual Studio. I got this now when I am writing anything in this file it is in the same format, is in the image. I have done a lot in this file. but didn't commit in after lunch. Pleas...

please help me
 
12:22 PM
2 messages moved from WPF
Afternoon
 
12:38 PM
Hey Maverik
 
12:49 PM
@Luca saving a device status is possible again
 
1:43 PM
turns out the question wasn't even mvc relevant - just a corrupt file :) - i feel bad for moving that here
 
1:55 PM
Nah, no worries, Maverik
 
2:35 PM
  if (!pricelist.Any())
                {
                    ViewData["empty"] = "No data found";
                }
magic :)
 
2:48 PM
Please don't do that
Remember if you're using ViewBag you're doing something wrong
Where you need data passed down to your view, you should have a view model that the controller action can populate
 
it is just a\ small bit of the code
 
Hi guys
I have 1 table : BankTransactionErrorDetail
In this table i am updating ApplicationNo and AccountNo
So what should be the name of method in my data access layer for this?
What should be the appropriate method name
Sorry if this sounds like a stupid question
 
Method names contain verbs, such as "GetSuchAndSuch" or "SetThisAndThat"
What are you trying to do with the update at a higher level, if you were to explain it to someone who is non-technical?
 
In this table i want to update ApplicationNo and AccountNo of user
 
What does that accomplish?
 
2:59 PM
I am trying to update correct ApplicationNo and AccountNo for user
Which will be entered by ADMIN
 
UpdateUserAccountDetails()
It's still too generic sounding
 
But this is not userprofiledetails
Only account no is part of user profile details
 
See my update
 
BankTransactionErrorDetail
Above is my table name
 
UpdateUserTransactionDetail()
 
3:03 PM
Yeah this looks good
Thank you so much alex :)
 
You're welcome
 
I have kept like : UpdateAccountNoAndApplicationNo
as i am just updating this 2 only
 
That works too
Properties are nouns, methods are verbs
 
So i just wanted to know that does this method name looks good as per industry standards
?
 
3:10 PM
Thanks
UpdateAccountNoAndApplicationNo
but with this method name i wont understand in which table in am updating exactly
Dont you think?
@Alex
 
It's not meant to be that descriptive. You put a summary above the method to provide that information
 
I am just trying to understand how you guys think while giving naming conventions to methods
 
Type three /// above the method and you'll see the summary
Name-verb pairs, not all the details of how something works
 
Less is more. It identifies the method. Later, from another class, when I'm calling it, I can find it using dot notation and know what it does
 
3:13 PM
dot notation means?
 
If you're going to have multiple types of that method in the same class, then you may wish to be more descriptive
 
Sorry didnt get you
 
You put the . and Intellisense gives you all the members of the object
 
Whatever you decide on, follow it throughout your app as the standard
And by all means, be as descriptive in the method name as you wish if it helps to later identify it easier
 
3:19 PM
@Roland_dfa That's how everything starts!
and then you just want to add one more variable to go to the view... oh viewbag was used, I'll just use that again
 
3:51 PM
@RudiVisser better ideas to let an user know when no result is matching the input?
 
4:03 PM
I'm not saying don't pass that data to the view, I'm saying don't use ViewBag
public class MyActionViewModel
{
    public bool IsEmpty { get; set; }
}
// ..
var vm = new MyActionViewModel();
if (!pricelist.Any()) {
        vm.IsEmpty = true;
}
return View(vm);
// ..
@model MyActionViewModel

@if (Model.IsEmpty) {
    <div class="alert alert-warning">No data found</div>
}
 
 
5 hours later…
9:47 PM
Nice screen, but already got 2
Nice blog btw
 
ha
been a while
but speaking of!
my first 6 months horror:
 
You're just 3 years older
 
Yeah you sound surprised
 
Kinda
 
Why?
When people see me somewhere they often think I am like 17 or so
;p
 
9:52 PM
Same problem...
 
Eternal youth - love it!
 
I know
seems cool
it's late already.. girlfriend is sleeping and yet I can not.
Too damn hot.
 
Single life :)
 
Single life isn't that bad neither
 
9:55 PM
Never had it different
 
Enjoy it :p
 
Can't miss what you don't have ¯_(ツ)_/¯
 
Correct
What r you doing at this hour?
 
Trying to survive the pain
 
Oh still?
 
9:58 PM
Yeah
Just horrible
 
Last of us:
 
Lol
 
Fits you well :p
 
Yeah true
At least the pain doesn't get worse
 
Champaign is good for pain
 
10:01 PM
It's decreasing the last 1-2 days, very slowly
 
Spend 650€ this month on bottles.
Time to stop the alcohol for a little while after this :p
 
Haven't had a drink since Sunday
New record
 
hha
Sunday == Grand-Prix in Germany.
Got tickets.
 
Nice
I got the option to go
 
for the GP?
You should!
not my favorite track though!
Monaco is literally the best to visit
 
10:04 PM
Zandvoort :p
 
Got family in Monaco it's beautiful
 
Maybe we'll meet Sunday
 
Otherwise we will meet in Amsterdam soon enough right?
Although I really dislike Amsterdam
:p
 
27-28th
 
Yeah
Wow that's soon!
 
10:06 PM
Next week
 
Got to show Rudi the wallen obviously.
Probably the main reason of his visit haha
 
Haha
 
it will be fun though!
 
Indeed
 
Luca etc also joinin?
 
10:08 PM
Don't know
 
hmm
We're not going out right?
Amsterdam clubs are horrible :p
 
Lol
 
Don't know what plans rudi has in Amsterdam
 
Me neither
I've heard there will be champaign.
 
10:12 PM
To the wallen and coffee shops?
 
Most likely
Only the smell of those shops makes me sick :D
 
Never touched a sigarette, let alone a joint
 
hehe nice
 
Would like to keep it that way
 
I've been smoking from 13-23
22* I quit smoking just before my b'day
when I started working from home I started to smoke 1,5 pack a day.. decided to stop
 
10:15 PM
Good choice
 
yeah definitely
not sure if you can see:
 
Yeah
 
6 years ago @coffeeshop :
 
You're the left one?
 
young dumb and stupid :D
Nah
Right one
Left one is obviously dutch haha
 
10:18 PM
Haha
 
With my Taylor gang hoodie
Like I said: Young & Dumb.
 
Me on a low quality picture
 
Decently dressed :O
haha
 
Haha
Tnx
 
How old were you again?
cba scrolling up
;p
 
10:24 PM
21
 
Perfect age
Typical sunday :p
Although we no longer drive shitty cars - thank god!
 
Haha
 
3 years ago alrdy.
was your age
Time flies!
 
But I will try to get some sleep. The pain is just killing me
 
Same ! Will have to work tomorrow
gn
 
10:30 PM
Me too
Gn
 

« first day (223 days earlier)      last day (1115 days later) »