DaveAmour 160 Mmmmmm beer Featured Poster

I won't give up my day job just yet then!

I'm not in it for the money anyway, I write articles for myslef as a learning exercise so its just nice to share.

diafol commented: That's the spirit! +0
DaveAmour 160 Mmmmmm beer Featured Poster

I still get it and I tried on different machines.

Could it be because I am in the UK? Do you want the url mine generates?

DaveAmour 160 Mmmmmm beer Featured Poster

Ooooo money, what kind of figures are we talking?

DaveAmour 160 Mmmmmm beer Featured Poster

Sorry one more question.

Does Article is Currently a Working Draft mean that I can do a little each day and save it for example until it is ready to be approved?

DaveAmour 160 Mmmmmm beer Featured Poster

Ok no probs, I have a public flag on my articles as some are just for me - I will just set that to be hidden for any I put on here.

DaveAmour 160 Mmmmmm beer Featured Poster

I have written quite a few tutorial type articles, mainly for my own benefit really. They are on my website but I don't think many people read them due to lack of exposure. Is it ok if I put some on here? Mine do have quite a few images on though - can you put images on the articles here?

DaveAmour 160 Mmmmmm beer Featured Poster
DaveAmour 160 Mmmmmm beer Featured Poster

Do a screen shot and do it as an image

DaveAmour 160 Mmmmmm beer Featured Poster

1 and 3 look the same to me

DaveAmour 160 Mmmmmm beer Featured Poster

Hi

Post your code and I shall take a look at it.

Only kidding. Email it to me and I shall see if I can think of anything - send me a private message and I will give you my email address.

DaveAmour 160 Mmmmmm beer Featured Poster

My bit to add - just have a normal non submit button and wire up to the click event on that.

DaveAmour 160 Mmmmmm beer Featured Poster

Yep I'm sure

http://www.paxium.co.uk/daniweb/error1.png
http://www.paxium.co.uk/daniweb/error2.png

I assume from your incredulity that it works ok for you?

DaveAmour 160 Mmmmmm beer Featured Poster

Hey you are in the same county as me!

Can you show me your html form or sample post data?

DaveAmour 160 Mmmmmm beer Featured Poster

If you provide me with Create Scripts for the Schema and some sample data I will have a go at it.

DaveAmour 160 Mmmmmm beer Featured Poster

Did you create your table like this?

CREATE TABLE t1
(
    col1 CHAR(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci
)
DaveAmour 160 Mmmmmm beer Featured Poster

Hi Suzie

If I click on your profile there is a send message button. That button is also there if I view my own profile. The button should not be displayed if you are viewing your own profile.

Jim - good point, I shall ponder on that on!

DaveAmour 160 Mmmmmm beer Featured Poster

You need to get a collection of customers in your model. You do this in your controller and pass the model to your view. For example:

var model = new MyModel();

model.Customers = GetCustomers();

return View(model)

Then in your view you have something like:

@Html.DropDownListFor(model => model.CustomerId, new SelectList(Model.Customers, "Id", "Name"), "")

DaveAmour 160 Mmmmmm beer Featured Poster

Sorry still not working :(

The LinkedIn import gives the same error.

Any chance you can increase the 5000 limit? Mine is only a bit over that.

Thanks

DaveAmour 160 Mmmmmm beer Featured Poster

Is this what you need?

("Update Medicine_Details SET UnitsInStock = UnitsInStock + " & rs3.Fields.Item(3).Value & " where ProductID='" & rs3.Fields.Item(2).Value & "'")

DaveAmour 160 Mmmmmm beer Featured Poster

Sometimes it can be an illegal position - ie someone moves but they are in check. Or someone says it's mate in 3 but it isn't. Or sometimes the players are supposed to be good but the position is clearly arrived at by rubbish play.

I play chess evey day and have done for the past 35 years so can spot them instantly. To me chess is like the Matrix, I don't see the code any more, I just see the blonde!

DaveAmour 160 Mmmmmm beer Featured Poster

I have been coding in C# for 13 years and happy to help anyone if they need help just ask away.

ddanbe commented: Try a Duvel! +15
DaveAmour 160 Mmmmmm beer Featured Poster

What game is this?

DaveAmour 160 Mmmmmm beer Featured Poster

I hate films with chess positions or games in which are wrong.

I'm a strong chess player and can spot these in seconds and it really winds me up.

DaveAmour 160 Mmmmmm beer Featured Poster
DaveAmour 160 Mmmmmm beer Featured Poster

You will need to be a bit more specific. Can you give a few more details?

DaveAmour 160 Mmmmmm beer Featured Poster

When you issue an update-database command from the package manager console, the migraiton inserts a zipped, base64 encoded representation of the model into the migrations database table in the model column.

My question is when is this data determined? Is it when you create the migration using add-migration or is it done in real time when you issue the update-database command? If the former, where is it stored until you issue an update-database command?

Thanks

DaveAmour 160 Mmmmmm beer Featured Poster

Line 7 you declare bytes as Byte. I think that should be an array of Bytes.

DaveAmour 160 Mmmmmm beer Featured Poster

Why not write from scratch. HTML and JavaScript Front End, SQL Back end.

Doesn't sound like too much work, or are you only after something off the shelf?

DaveAmour 160 Mmmmmm beer Featured Poster

Shit I am probably going to get banned now!

Apologies, too much birthdy whisky

<M/> commented: lol +0
DaveAmour 160 Mmmmmm beer Featured Poster

Ok Fiddler on standby!

DaveAmour 160 Mmmmmm beer Featured Poster

Ok I was hoping you win fabulous prizes maybe.

You get a point for changing your profile photo. I have 3 today for that!

DaveAmour 160 Mmmmmm beer Featured Poster

Shit sorry that wasn't quite in Q A format!

DaveAmour 160 Mmmmmm beer Featured Poster

My dog has no nose.

How does he smell?

Of badger blood.

DaveAmour 160 Mmmmmm beer Featured Poster

What are activity points and what can you do with them?

Thanks

DaveAmour 160 Mmmmmm beer Featured Poster

Do you get an error message?

DaveAmour 160 Mmmmmm beer Featured Poster

Have a look at the Interpretor pattern

http://www.dofactory.com/net/interpreter-design-pattern

DaveAmour 160 Mmmmmm beer Featured Poster

My grandfather has been ill recently so we rubbed lard on his back but then he went downhill really fast.

Reverend Jim commented: Boo! +0
<M/> commented: XD +0
DaveAmour 160 Mmmmmm beer Featured Poster

Road signs are polilte these days.

Beware Deer

DaveAmour 160 Mmmmmm beer Featured Poster

There is a bug on the site. I was able to send a message to myself.

Should this be allowed? How do I know it was from me? Maybe it was from future me????

DaveAmour 160 Mmmmmm beer Featured Poster

Cursors are slow. Avoid them if you can, it will be much faster.

DaveAmour 160 Mmmmmm beer Featured Poster

Try putting [] around the words with spaces in

DaveAmour 160 Mmmmmm beer Featured Poster

I tried to put my CV (Resume) on here.

The Import from LinkedIn crashed with the following message:

invalid redirect_uri. This value must match a URL registered with the API Key.

Also when I tried to copy and paste mine instead it wouldn't let me as there is a limit of 5000 chars :(

DaveAmour 160 Mmmmmm beer Featured Poster

Worlds shortest joke

Dwarf Shortage

DaveAmour 160 Mmmmmm beer Featured Poster

I've been happily maried for 6 years.

Miserable for the oher 4.

DaveAmour 160 Mmmmmm beer Featured Poster

Do you control the DNS?

DaveAmour 160 Mmmmmm beer Featured Poster

What database are you using?

Does Bank Account really have spaces in? Also does Account Name really have spaces in?

DaveAmour 160 Mmmmmm beer Featured Poster

Hi Alfonso. With a name like Alfonso C, I hope you code in C!

DaveAmour 160 Mmmmmm beer Featured Poster

Hi

A hashed password in my system looks something like this:

$2a$10$dfLab4y467mdxJeSDlvAIOOjKmrW8Tbm80IN9qm5WVd7ALGZTQkBe

In my table they are all the same length - this is usually part of the hashing algorithm.

When someone attempts to logon you take the password they typed in and hash it. You then compare it with the hashed password in the database. If they are the same then you can log them on. If someone were to get their hands on your database they would not be able to use the passwords as they would not know what the actual password is. It is practically impossible to reverse a hash.

Check out http://en.wikipedia.org/wiki/Cryptographic_hash_function

I don't do PHP so cannot advise on the second part of your question. Generally hashes are the same length. All of them in my table are 60 chars.

From wikipedia: A hash function is any function that can be used to map digital data of arbitrary size to digital data of fixed size.

Hope that helps.

DaveAmour 160 Mmmmmm beer Featured Poster

Thanks Dani, all working fine now :)

DaveAmour 160 Mmmmmm beer Featured Poster

Ok thanks, no rush though its only to put my ugly mug on your site!