« first day (2245 days earlier)      last day (2706 days later) » 

12:00 AM
so long as it isn't a visual basic asp.net question
 
oh i want to ask about visual c#
 
@TravisJ will do
 
I want to update records in one of the tables when transferring amount of money from one user to another
My application works just fine but it updates only a record
Shall I refer to my question on this site
all relevant code are there !
0
Q: Action method updates only 1 table MVC

Dodi82I am newbie and still learning asp.net MVC. I have created a send action method which works by sending amount of money from a user to another based on the account number and the sufficient funds. My program works just fine but whenever I try to send money from one account to another, the update w...

Any idea guys
 
12:21 AM
ALTER TABLE and allow nulls on the column causing the exception
 
1:07 AM
@Dodi82 your transaction model has a nullable public DateTime? TransactionDate { get; set; } but your database says that field is not nullable.
set TransactionDate on your transaction objects before you save them.
also.. i don't see anywhere in your code that you are creating or modifying CheckingAccount objects.
you create two transactions, add them to the db, and save. nothing about CheckingAccount in there.
all you are doing is setting the foreign key fields in Transaction. that's not going to automatically do anything to the other table(s)
 
 
4 hours later…
5:21 AM
Hello Guys
need one help
I am working on an outlook addin where I am fetching a remote location from editbox....the text in the edit box is(say):

\\01HW546036A\EPRS_Outlook_Plugin\Config_for_EPRS

but when I am retrieving this text from edit box it appending extra character '\'
and now the string is in the form:
\\\\01HW546036A\\EPRS_Outlook_Plugin\\Config_for_EPRS
How do i convert this string to the original one?
here is the question:
http://stackoverflow.com/questions/41032432/removing-addtional-characters-from-a-string
 
 
2 hours later…
7:28 AM
ohayou
 
Anyone out there? :)
 
ojo jakob :)
how is it going
 
All good thanks! Apart from B-Day and sick. Still went to work and I think it was a bad idea
you?
 
good, nothing i can complain about
and we had the first snow this year
 
7:37 AM
Sweeteroni!

Sleighbells ring. Are you listening. In the lane. Snow is glistening
 
Anyone knows how to pass a string to an ICommand?
 
i wonder if i'm gonna break anything this year on ice/snow
how do you mean pass a string
 
public ICommand ChangePageCommand
        {
            get
            {
                if (this.changePageCommand == null)
                {
                    this.changePageCommand = new ActionCommand(
                        parameter => {
                                this.ChangeViewModel((IPageViewModel)parameter);
                            },
                        parameter => parameter is IPageViewModel);
                }

                return this.changePageCommand;
            }
I basically have that command.
The parameter is an object that implements IPageViewmodel.
First parameter of ActionCommand is the action.
Second parameter of ActionCommand is the predicate.
 
An ICommand's Execute method receives an object. You can pass anything to it, bound via the CommandParameter property on most XAML controls that can bind to Commands.
 
<Button Command="{Binding ChangePageCommand}">
                                <TextBlock Style="{StaticResource TitleBarIcon}" Text="&#xE10F;" />
                            </Button>
I have that Button with that command.
Whenever a user clicks it,
I want the parameter to be: MyDictionary["Dashboard"]
Passed to ICommand
How would I get it done?
 
7:43 AM
Right, then. Just add a CommandParameter={Binding MyDictionary[Dashboard]}, assuming MyDictionary is public and on the DataContext.
 
yeah as avner said the execute method accepts an object
 
<Button Command="{Binding ChangePageCommand}" CommandParameter="{Binding MyDictionary[Dashboard]}">
<TextBlock Style="{StaticResource TitleBarIcon}" Text="&#xE10F;" />
</Button>
I did that, it doens't let me click the button anymore.
I think it is because we need to bind "Dashboard" and not Dashboard.
MyDictionary["Dashboard"]
When I do that, it give sme an error.
 
That's C#, not XAML. C# needs "" to signify strings.
XAML doesn't.
Check the Output pane in VS, see what binding errors occur.
MyDictionary is a public property on the same object that ChangePageCommand is on?
 
No errors actually.
Yeah.
 
Property, yes? Not field.
 
7:47 AM
private Dictionary<string, IPageViewModel> pageViewModels;
public Dictionary<string, IPageViewModel> PageViewModels
        {
            get
            {
                if (this.pageViewModels == null)
                    this.pageViewModels = new Dictionary<string, IPageViewModel>();

                return this.pageViewModels;
            }
        }
I'm so stupid
 
@HassanAlthaf Be careful, people like starring comments like that. :)
What was the problem? You didn't fill the dictionary?
 
<Button Command="{Binding ChangePageCommand}" CommandParameter="{Binding PageViewModels[Dashboard]}">
<TextBlock Style="{StaticResource TitleBarIcon}" Text="&#xE10F;" />
</Button>
Wrong bind variable.
But still didn't fix the issue.
CommandParameter="{Binding PageViewModels[Dashboard]}"
I have filled the dictionary
In the constructor.
        this.PageViewModels.Add("Dashboard", new DashboardViewModel(this));
        this.PageViewModels.Add("Statistics", new StatisticsViewModel());
The Dictionary returns an Object that implements IPageViewModel
public ICommand ChangePageCommand
        {
            get
            {
                if (this.changePageCommand == null)
                {
                    this.changePageCommand = new ActionCommand(
                        parameter => {
                                this.ChangeViewModel((IPageViewModel)parameter);
                            },
                        parameter => parameter is IPageViewModel);
                }

                return this.changePageCommand;
            }
That is my ICommand
Am I doing something wrong in there?
Fixed the issue.
 
What was it?
 
Predicate
this.changePageCommand = new ActionCommand(
                        parameter => {
                                this.ChangeViewModel((IPageViewModel)parameter);
                            },
                        parameter => parameter is IPageViewModel);
You see the second parameter?
By default, parameter is not of the type IPageViewModel for some reason
The class is DashboardViewModel
We have to cast the parameter to (IPageViewModel)
So, obviously, the predicate fails and doesn't let me click the button.
But it should work
class DashboardViewModel : ViewModel, IPageViewModel
 
8:03 AM
morning o/
 
DashboardViewModel : ViewModel, IPageViewModel
@Kieran Morning! :)
parameter => (parameter as IPageViewModel) != null); Doesn't work either.
-_-
There is a Null Exception on CanExecute
Meaning parameter is missing
 
@HassanAlthaf That's strange. is should work with interfaces easily.
 
user6438653
Hey guys, scarce here.
 
user6438653
Hey @HassanAlthaf I'm @shad0wk, I changed my name.
 
user6438653
public class c# { c#(String jsisbetter) {} }
 
8:17 AM
Morn all
 
user6438653
Morning @Ggalla1779. 9:20pm....
 
I just found this interesting
 
Yeah. Pretty impressive considering the limited infrastructure and resources for such companies.
 
yea I know
but whats with the obsession with sheep and goats
 
user6438653
Palestine.
 
8:22 AM
2/12 icons are goat related
thats 16.6% goated
 
user6438653
@misha130 Come to New Zealand, the's plenty of sheep, and cows.
 
user6438653
And goats. We have a goat island.
 
Two? I see one sheep, one goat.
 
well I counted them together
 
Sheep will be insulted.
 
8:24 AM
goat/sheep related*?
 
user6438653
What about the bird?
 
I am so sorry for my sheepish activity
 
user6438653
The poor bird.
 
@misha130 Duly goated.
 
user6438653
lol
 
user6438653
8:25 AM
What's up @AvnerShahar-Kashtan?
 
@WATERYMEL0N Breathlessly waiting for the weekend.
 
@AvnerShahar-Kashtan aren't we all?
 
Putting the kid at her grandmother's place and going off on a weekend, just me and my wife. Last weekend of peace and quiet for the foreseeable future.
 
user6438653
@AvnerShahar-Kashtan lol
 
user6438653
@Kieran We are all.
 
8:27 AM
@WATERYMEL0N I KNEW YOU WERE THE ILLUMINATE
 
user6438653
@AvnerShahar-Kashtan Grandmothers are great.
 
These violent delights have violent ends
 
user6438653
@Kieran What are you talking about? I have no idea.
 
@WATERYMEL0N Looks like nothing to me
 
@Kieran true
 
user6438653
8:29 AM
@Kieran Oh, thank Satan, our great illuminated god!!!
 
lmao
No one is getting the reference :C
 
user6438653
Reference?
 
I know it's a Shakespeare reference, I just don't understand your point with it.
 
Mornin'
 
8:31 AM
o/
 
I was unaware it was a Shakespeare reference
 
Ah. Haven't seen Westworld yet.
 
omg
@AvnerShahar-Kashtan do yourself a favor and start tonight.
 
user6438653
Morning @RoelvanUden. (It's @shad0wk).
 
Its beaten some of GoT' records
Think it was most viewers in its first week or something
@AvnerShahar-Kashtan its confusing, but the good kinda confusing
the kinda confusing that leaves you wanting answers and thus draws you into the next episode.
I've still not seen the finale ;_;
 
8:33 AM
@Kieran Too many other shows in the queue.
 
@AvnerShahar-Kashtan make time
 
I'll get to it, probably soon when all the other shows take their Christmas breaks.
@Kieran As I mentioned earlier, this weekend is my last quiet weekend. In two weeks my second child is born, and I can't make any plans for after that. :)
 
oh man
congrats
I was completely unaware of that lmao
 
No reason for you to be.
 
@AvnerShahar-Kashtan Ahhh i didn't see this
your message before i mean
My bad
 
user6438653
8:36 AM
@Kieran I'm glad we spell COLOUR normally.
 
I do spell colour the correct way.
Even if google chrome is telling me its "color" :|
@WATERYMEL0N better?
 
user6438653
Lol. I don't like how it's "Color" in C#
 
user6438653
@Kieran Eh?
 
Haven't watched GoT either, actually.
 
@WATERYMEL0N I thought you were critiquing my spelling/gammar
:O!
That's also a show i recommend
 
8:38 AM
I want to read the books first, and I don't have the energy to read them at the moment.
 
@AvnerShahar-Kashtan You could always read them during the 3am feedings
 
@Kieran That's what back-lit Kindles were invented for. :)
 
user6438653
@Kieran Nope. It's just, google.UK is in the UK, the land of correct English spelling.
 
Then boom, there's your answer :P
@WATERYMEL0N Also the land of the english language
;)
 
user6438653
Yep :)
 
8:41 AM
Once again, im experiencing why i hate javascript
 
Interesting tidbit: many instances of American spelling or pronunciation that differ from the British are actually closer to the British versions, circa the 18th century. British English changed a lot, for many reasons (Empire, Europe and others), while American English preserved a lot of things.
 
user6438653
Did you know that the queen is The queen of the commonwealth, and the queen of New Zealand.
 
I think you spelt ruined wrong @AvnerShahar-Kashtan
while American English ruined a lot of things. FTFY ;)
 
user6438653
@AvnerShahar-Kashtan Bull.
 
@WATERYMEL0N She's also the monarch of canada
 
user6438653
8:43 AM
Ohh... interesting...
 
and Australia
 
@WATERYMEL0N Looked into it a bit now, and it's not bull, but it is an oversimplification. Specifically, pre-18th Century British English was mostly rhotic (as in, they pronounce the R sound in words). Over the last centuries, most British accents became non-rhotic, while most American accents kept it.
 
user6438653
Rrrreally?
 
user6438653
bye
 
huh
 
8:52 AM
hey ppl
 
@Kieran why js is awesome.
 
lies
@Proxy you are a liar!
a liar i say!!!
 
i know
 
:O!
 
i just started with js
well i did it before for some basic stuff like form checks, picture library etc
 
8:57 AM
The first steps with JS is "It lets me do anything!". The next steps are "Please make it stop letting me do anything!"
 
but now i'm learning it :)
 
You basically need to learn about three things to use JS effectively:
- Prototypes.
- Implicit type conversion.
- Strict comparison.
 
Obligatory javascript equality chart:
 
Thank god we've got strict comparison, I'd never remember that
 
As opposed to the strict comparison operator (===):
And finally, == vs. === vs the newer object.is:
 
9:03 AM
yeah but prototypes need some getting used though
and don't forget callbacks
 
Callbacks are nothing new.
And mostly irrelevant now
 
well i'm struggling a bit with them, i guess i need more practice
 
Events in .NET are basically callbacks with a nicer registration mechnism.
 
@AvnerShahar-Kashtan If I gave you the source, would you be able to help me out?
 
yeah but they are much nicer
 
9:08 AM
@HassanAlthaf No, sorry. No time to really dig into things right now.
 
@WATERYMEL0N Hey there dude! :)
 
Every time you pass a function as a callback to a method in JS, think of it as subscribing to an OnComplete event.
 
Have any idea why this does not work?
 
Or, if you're more into .NET 4.0's TPL, think of it calling ContinueWith with a continuation task.
 
And note, Promises and async/await do exist in JS nowadays.
 
9:14 AM
@HassanAlthaf I'm guessing it's a question of updating. Just like properties need to have RaisePropertyChanged called on them to update bindings, so does a Command need to have RaiseCanExecuteChanged.
 
I have a must-read book list as i suppose some of you guys might read them. I am a semi-experinced developer on enterprise web|desktop app programming and about to start a new app, i wanna do things properly, i don't have much time to read all these books and take advantage. So, which book or two books should i read that would be helpful to make my app properly?

Book List:
The Clean Coder Robert C. Martin
Clean Code Robert C. Martin
The Pragmatic Programmer Andrew Hunt,David Thomas
Refactoring Martin Fowler
 
i know my coworker is reading this one: Patterns of Enterprise App Architecture Martin Fowler . how good is it i do not know
 
I have design pattern book beside me and every 10 minutes I force myself to try and read it
so far I got past the first chapter
its been 9 months
 
user5093161
9:29 AM
Hello I am facing problem to install my application on client pc any idea?
 
whats problem?
 
user5093161
The app require assembly log4net version 1.2.10.0 be installed in global assembly cache (GAC)
 
user5093161
I have googled and stackoverflow but solution not working
 
did you make an installer?
 
user5093161
Yes I have deployed with clickonce but problem is still there
 
9:32 AM
@AvnerShahar-Kashtan yes well, it's ours and we can change it if we want to
 
@ibubi Define "app"? It's a web site? Web application? What technologies? Your business case? Requirements? SPA/traditional? Real-time or not? What database? Etc.
 
I presume Windows app
 
Something something assumptions
 
Client PC
Did you specify in ClickOnce that the dll is required?
 
@TAHASULTANTEMURI Didn't you install log4net via NuGet?
 
user5093161
9:37 AM
no how to install via nuget?
 
@TomW Which is basically my point. All English is English.
 
30 minutes is quick?
 
I honestly don't care. He's too lazy to google and read, so he's stuck with the 30-minute long video I feed him.
 
user5093161
Thank you
 
9:41 AM
I think thats a small price to pay for the knowledge
 
KNOWLEDGE!
 
Hi Roel. How are you?
 
Heya, is anybody here familiar with castle Windsor IoC?
 
Hey Kamil
there you go http://stackoverflow.com/questions/124871/what-is-castle-windsor-and-why-should-i-care
 
Nono, I just have a regarding question to you guys :D
 
9:52 AM
what do you mean by a regarding question?
 
Since I've started learning it, and in an example that I found online something feels mad wrong
 
just let the poor boy ask his question
 
Let me pop a link
 
cool
 
9:53 AM
@dotnetman Great thanks :)
 
Here, why would a ViewModel return a Model as if it was a viewmodel (look at StartPageViewModel)
Further on, the context binding of the View is bound to what ViewModel.Get() returns - and it returns a MODEL.
 
@RoelvanUden I decided to wait a bit...there was an article in July about new version of HTC Vive coming out in around 6 months... so will see if it does....
 
:O
want
 
@Ggalla1779 From what I've read so far, it'll be a minor upgrade. Mostly in wearing comfort. But yeah, I'm hopeful they'll include the wireless kit (and sell separately), but nothing about that is yet confirmed.
 
10:16 AM
Thank you for your reply, How do I commence the Update on the CheckingAccount table?
 
Hi, i have Order/OrderLine scenario, am i going right way?
I first Create order, get orderID redirect page into Order/Edit/id, from edit page i AddOrderLines using ajax calls (at that time they are added into order and persisted in DB) and when i click submit order, i change order status into finalized and save it
 
this is justin treadues game
the president of canada is making hockey games
 
lol what
 
tsk tsk tsk mr treadue
 
omfg how
 
10:29 AM
he never capped the the maximum random generation of the whatever they are called in hockey
mr president is a bad programmer
 
lmao
The hockey puck?
 
yea
 
see even the president is using javascript!
 
@Proxy quiet you!
 
@RoelvanUden aha ok..... I think they will go down to 1 box thing. Sure you can buy comfort pads for it now
 
10:38 AM
@Ggalla1779 1 lighthouse? No they can't.
 
there was some article about them reducing costs... 2 boxes to 1
 
1 lighthouse won't be accurate enough in room scale scenarios.
Something, like your arm, could obscure the signal.
Of course, that won't happen if you're seated, so for seated and 180 degrees experiences, it would work.
But honestly, who wants that? That's almost as bad as an oculus :P
 
I would prefer better exp
 
The biggest thing I want is locomotion. I want a thread mill.
So I can really run through huge environments.
But my fucking Omni was cancelled
 
lol yeah running would lead to accidents i think
 
10:42 AM
Not with a threadmill.
 
did you get refund?
 
I should get my money back soon. Stupid Omni. :(
 
They will prob announce new HTC Vive 2 at CES show Jan 5
I can wait
 
I sure hope Valve comes up with a treadmill.
I'd instantly throw thousands at it.
I just want it.
And I want it yesterday.
 
@RoelvanUden ...do you mean a treadmill?
 
10:46 AM
That's what I said?
 
threadmill @RoelvanUden
 
I think if your using VR you would need/ want it (Threadmill)
 
@Kieran I never said that. :P
@Ggalla1779 For most current experiences its not really necessary.
But I still want it.
 
ORLY
😉
 
Because when Fallout 4 VR comes out, I want to run through the wastelands.
Not teleport. Run.
 
10:48 AM
lol
 
@Kieran You're dreaming. It doesn't say that.
 
my picture sure does provide great evidence of that
im sure the edit logs would as well ;)
but when you say treadmill, do you mean like a regular bog standard one?
or is there some amazing advanced one im not aware of
 
show him the pic of Omni
 
I've seen the omni
but he said he was cancelled
 
10:49 AM
see
 
That last one looks amazing tbh
ability to jump and crouch properly
 
Indeed, but it's Chinese.
 
well shit
 
Nobody has a goddamn clue what they're doing.
 
10:51 AM
Also trump will have you arrested
 
I sense a gap in the market....
 
So I did think of a way to build one yourself, using a Kinect.
I mean, it can detect your movement quite accurately.
The problem is suspension.
 
I would put in the circle with traction belts, that way you can run any direction
I dont get how you run in pics shown
 
its a very slippy surface
and you get specialised shoes with sensors in them
which detects your movements i believe
 
yeah not wonder there is harness and ring...belts would be cheaper
 
10:57 AM
I think that was actually an idea once
but they used rollers
 
It's all about suspending your place somehow and detecting movements.
Ironically, detecting movements is really rather simple.
 
tbh its only a matter of time before someone goes full on SAO on us
 
Would require so much more, so I'd say no. Gungale is a possibility.
 
I would be happy with headset and pair of VR gloves for now
 
You can already get them.
 
11:06 AM
well considering the tech for making shit move on your screen with your mind is available
 
Look at Leapmotion
Actual gloves are Q1 2017, but leapmotion is nice.
 
and that vr is slowly becoming more and more developed, wouldn't suprise me if someone is already trying to mash the two together
 
Well, sign me up for a virtual death match.
 
lmao
 
yeah its all new and will settle
 
11:12 AM
@All hi
 
Hey guys, if you got some time, consider helping me here. :)
 
man i just had the biggest brain fart ever
yes, 28 is bigger than 32
but how long did it take me to realise this?
too fucking long
tbf im looking at a version number but still
 
11:30 AM
keep taking the meds brother
 
11:52 AM
@RoelvanUden it is a web application on .Net 4.5 framework using Web API, ASP.NET MVC technologies, there will be both real time content and static content. Sql Server database will be used. Assume it as an enterprise framework that will be suitable for any kind of business line. These are not special things, as i said i just want to know which book gives me the maximum profit in short term?
 
@RoelvanUden Oculus Touch is surprisingly close to gloves, given that it recognizes gripping and some hand gestures
@RoelvanUden Dead and Buried is free with Touch, Loktar's been wanting to shoot me all week
 
Anyone good with encryption?
 
I was ok PGP
 
Trying to decrypt a string that has numbers and letters in it and its erroring out on Convert.FromBase64String(cipherText);
cipherText is a string that gets populated by data from a database
 
no idea used PGP.....
 
11:58 AM
Invalid length for a base-64 char array or string
is what im getting
 
11
Q: How to encrypt a string in .NET?

Ashish AshuI have to encrypt/decrypt some sensitive information in a Xml file? Yes I can do that by writing my own custom algorithms. I am wondering if there is already a built in way in .NET to do that and also what points I always need to take care..

try that
 

« first day (2245 days earlier)      last day (2706 days later) »