|
Marc Clifton wrote: Software is often so brainless. Because the programmers also are.
I wouldn't expect the programmers at Microsoft get much of a say in the design and functionality of the software they create.
|
|
|
|
|
Did you type anything into any of the data entry fields (address lines included) and then clear it out. Outlook keeps a flag that says the message has been changed but doesn't know if it's been reverted.
|
|
|
|
|
..."Your eyes are red, have you been drinking?"
I asked "Your eyes are glazed, have you been eating donuts?"
Oh, we laughed, and laughed.
Anyway, I need bail money, and ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
You strange boy
"We can't stop here - this is bat country" - Hunter S Thompson - RIP
|
|
|
|
|
Did that joke escape the US and request asylum in Wales, or have you been admitted to the insane asylum (aka the US)?
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
I don't like to plan my day because then the word "premeditated" gets bandied about the courtroom.
Real programmers use butterflies
|
|
|
|
|
Does anyone has this?
I opted to get this piece of @#$% instead of a Logitech MX master. It is smaller, works over bluetooth or cable... 3 buttons in the thumb area, free or stepped wheel, integrated battery...
Good touch feeling...
It is nice except... it gets disconnected often when using it via bluetooth. After becoming tired of the bluetooth issue I decided to plug it using a usb cable... and from time to time the cursor just stops. And I have to unplug it and plug it again to be able to work with it.
Has anyone used one of those, found those issues and solved them somehow?
Of course, probably, the best option will be to send it to the mice hell and get an MX Master 3...
|
|
|
|
|
No to your questions, but I found this amusing:
Quote: The Electromagnetic MagSpeed wheel on MX Master 3 is up to 90% faster than scroll wheel of a regular mouse1Compared to regular Logitech mouse without an electromagnetic scroll wheel so you can effortlessly scroll 1,000 lines of code in a second.
Sigh - even they recognize that programmers write bloated files.
|
|
|
|
|
They have programmed the drivers of the mouse... go figure...
|
|
|
|
|
Is the surface mouse-compatible? All mice behave differently on surface matter. I've got a mouse at home that works fine on my wooden desk (no mouse pad). The same brand mouse at work is on a wooden desk but requires a mouse pad.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
yes, 2 different mouse pads and even directly to the desk.
|
|
|
|
|
Does the kind of surface affect Bluetooth or USB connectivity?
|
|
|
|
|
We are speaking of a Microsoft mouse... I can believe anything...
|
|
|
|
|
No, but if the mouse is not sensing the surface correctly, it won't communicate correctly regardless of how its connected (wired or wireless).
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
I am trying to insert record into two tables and fetch the UserId of first table and insert into another column of the same table and also into another table but it appears that when I insert data into the tables, the Id of the user is returned and inserted into the second table but inserted a different interger into another column of same first table.
For example, I have UserTable and WalletTable and I want to insert records simultaneously into the two tables and at the same time fetch the Id of UserTable and insert into columns of both tables.
Here is the structure of the first Table: I want to fetch “UserID” in UserTable and insert into “CreatedBy” of UserTable and UserID of WalletTable. But after inserting I discovered that interger “-1” is inserted in CreatedBy column of UserTable and on WalletTable the correct UserID is inserted. How can I correct this please?
UserTable:
UserID | email | pass | con_pass | UserRole | Name | CreatedBy | image | CreateDate |
WalletTable:
Id | UserID | email | Name | amount |
Here is my Insert code (C#)
if (mailtxtbx.Text != "" & pass.Text != "" & conpass.Text != "" & txtname.Text !="")
{
if (pass.Text == conpass.Text)
{
if (Filedoc.PostedFile.FileName != "")
{
if (check1.Checked)
{
int Uid = -1;
byte[] image;
Stream s = Filedoc.PostedFile.InputStream;
BinaryReader br = new BinaryReader(s);
image = br.ReadBytes((Int32)s.Length);
string query = @"INSERT INTO Users (email, pass, con_pass, UserRole, Name, CreatedBy, image, CreateDate) VALUES (@email, @pass, @con_pass, @UserRole, @Name, @CreatedBy, @image, @CreateDate);
SELECT SCOPE_IDENTITY();";
using (SqlCommand objCMD = new SqlCommand(query, con))
{
objCMD.Parameters.Add("@email", SqlDbType.VarChar, 50).Value = mailtxtbx.Text.Trim();
objCMD.Parameters.Add("@pass", SqlDbType.VarChar, 100).Value = pass.Text.Trim();
objCMD.Parameters.Add("@con_pass", SqlDbType.VarChar, 50).Value = conpass.Text.Trim();
objCMD.Parameters.Add("@UserRole", SqlDbType.VarChar, 50).Value = 'A';
objCMD.Parameters.Add("@Name", SqlDbType.VarChar, 50).Value = txtname.Text.Trim();
objCMD.Parameters.Add("@CreatedBy", SqlDbType.Int, 50).Value = Uid;
objCMD.Parameters.Add("@image", SqlDbType.VarBinary).Value = image;
objCMD.Parameters.Add("@CreateDate", SqlDbType.DateTime, 100).Value = DateTime.Now;
con.Open();
object returnObj = objCMD.ExecuteScalar();
if (returnObj != null)
{
int.TryParse(returnObj.ToString(), out Uid);
}
cmd.ExecuteNonQuery();
}
con.Close();
if (Uid > 0)
{
query = @"INSERT INTO UserWallet (Uid, email, Name, amount) VALUES (@Uid, @email, @Name, @amount)";
using (SqlCommand objCMD = new SqlCommand(query, con))
{
objCMD.Parameters.Add("@Uid", SqlDbType.Int, 50).Value = Uid;
objCMD.Parameters.Add("@email", SqlDbType.VarChar, 50).Value = mailtxtbx.Text.Trim();
objCMD.Parameters.Add("@Name", SqlDbType.VarChar, 50).Value = txtname.Text.Trim();
objCMD.Parameters.Add("@amount", SqlDbType.Float, 100).Value = 0;
con.Open();
object returnObj = objCMD.ExecuteScalar();
if (returnObj != null)
{
int.TryParse(returnObj.ToString(), out Uid);
}
cmd.ExecuteNonQuery();
lblsuccess.Visible = true;
Div1.Visible = true;
lblsuccess.Text = "Successfully Signed Up";
lblsuccess.ForeColor = System.Drawing.Color.Green;
lblMessage.Visible = false;
dvMessage.Visible = false;
mailtxtbx.Text = "";
pass.Text = "";
conpass.Text = "";
txtname.Text = "";
}
}
con.Close();
}
|
|
|
|
|
Be prepared for ironic comments.
From my side, better ask this here: https://www.codeproject.com/Questions/ask.aspx[^]
It does not solve my Problem, but it answers my question
Chemists have exactly one rule: there are only exceptions
modified 19-Jan-21 21:04pm.
|
|
|
|
|
I would handle odd numbers a different way than even numbers and add a special case for prime numbers.
|
|
|
|
|
Why is it that some people can't read? Or can't be bothered if they can read?
How much clearer does the text at the top of the page have to be, to prevent people posting coding questions where they are specifically excluded - one of three pages on the entire site where programming questions are not wanted?
And yet, here we go again. Another day, another programming question.
Please note that I didn't at any point describe the question poster in any way, shape, or form; and the total absence of any abuse towards the OP, particularly obscene or derogatory terms. But ... quite a few descriptive words did cross my mind while typing this ... and some of them may have fallen in both camps.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
From my point of view it is enough (especally for new members) to point out that the lounge is the wrong forum and mention what the right place is.
No need to make any ironic/sarcastic comments.
Only my 2 cents.
It does not solve my Problem, but it answers my question
Chemists have exactly one rule: there are only exceptions
modified 19-Jan-21 21:04pm.
|
|
|
|
|
0x01AA wrote: No need to make any ironic/sarcastic comments. But where's the fun in that?
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- Never argue with a fool. Onlookers may not be able to tell the difference. Mark Twain
|
|
|
|
|
Actually, as it turns out, it is a need.
Not only because it helps foster a feeling of community, but likely most important of all, Because We Can!
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
We're in a "lounge", not church.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
"We" can also become same arrogant like SO
It does not solve my Problem, but it answers my question
Chemists have exactly one rule: there are only exceptions
modified 19-Jan-21 21:04pm.
|
|
|
|
|
OP is / was in the lounge ... your point is invalid. He is one of "we".
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
Yes yes. Time for me to say good by here at CP. Only tried to help...
It does not solve my Problem, but it answers my question
Chemists have exactly one rule: there are only exceptions
modified 19-Jan-21 21:04pm.
|
|
|
|
|