|
Rather than a C# handbook, the more important things to know are:
- Your recent projects, technical details about them, in addition to where they fit into the big picture,
- Were you just listening to instructions in this project, or did you propose suggestions, design changes, and why. What difference did you make?
- What aspects of these projects could you have done better, in hindsight,
- What did you learn during the last six months; do you have any evidence of this, in terms of producing artifacts.
|
|
|
|
|
|
|
Rob Philpott wrote: Well, since all the replies have been anything but helpful
I'd disagree: If he thinks that quickly reading a book on a subject as huge as this (and both your your recommendations are excellent, but will take weeks to read properly) then he is just wasting his time going to the interview, the employers time interviewing him, and if he gets the job (hah!) then everybody who could do the job's time until they realise and throw him back out, so they can start interviewing all over again!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I don't think reading a book prior to an interview necessarily dictates that he has no knowledge of what he's doing - he didn't say that, it's a fair question. I've yet to have an interview I can't handle technically, but I still read stuff prior to going.
And even if the question is misguided, a whole group of people saying give up, get a career change etc. IMO is unhelpful as well as condescending.
Also, the book recommendation is valid to anyone reading the thread who might not be trying to wing an interview. These are excellent books.
Regards,
Rob Philpott.
|
|
|
|
|
Only one person suggested giving up and getting a career change. Everyone else suggested that experience would be a better choice.
This space for rent
|
|
|
|
|
You're doomed ... if you need to ask others for "book recommendations" at this stage of the game.
You should have created your own list of reference materials by now.
The fact you don't indicates a lack of initiative and commitment (IMO). Find another career.
|
|
|
|
|
I have already checked other questions here but the answers are not related to my issue. the following code allows textbox1 to only accept numbers if the physical keyboard (laptop) is pressed:
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
char ch = e.KeyChar;
if ( !char.IsDigit(ch))
{
e.Handled = true;
}
}
but this is not what I wanted (I dont use physical laptop keyboard).
I have windows form with buttons and a textbox1. I designed keyboard and it works well but I want textbox1 to only accept numbers and the ".".
There are only two lines of code inside each button (and only code in the project) which is:
private void buttonName_Click(object sender, EventArgs e)
{
// each button only has this code.
textBox1.Focus();
SendKeys.Send(buttonName.Text);
}
I know how to set textbox to accept numbers if the physical (laptop ) keys are pressed but here in this case I have windows form with control buttons ( each button to print its text into textbox1) and I want to set textBox1 to only accept numbers and the ".". Please help in how to achieve this. Thank you
|
|
|
|
|
Use the .TextChanged event as another avenue for filtering / altering text box input.
|
|
|
|
|
You can use TextChanged event as Gerry said.
Then you can verify the text using this method.
public static bool IsNumber(string s)
{
var r = new Regex(@"^-?[0-9]\d*(\.\d+)?$");
return r.Match(s).Success;
}
BTW it also accept negative numbers
|
|
|
|
|
Assuming this is Windows Forms, and there's no physical keyboard:
private void NumberButtons_Click(object sender, EventArgs e)
{
textBox1.AppendText((sender as Button).Text);
} The assumption here is that you have a set of Buttons whose Text values are from #1~9 and #0, and they all use the same Click EventHandler.
Of course, we don't know here exactly what you mean by "numbers:" are you allowing decimal-point, commas, negative numbers, culture-specific numeric encoding, etc. ?
Will also have a back-space button ? If you wish the user to have some way to move the insertion point around in the TextBox, that'll take a bit more work (using virtual arrow-key buttons ?).
«I want to stay as close to the edge as I can without going over. Out on the edge you see all kinds of things you can't see from the center» Kurt Vonnegut.
modified 22-Nov-15 1:58am.
|
|
|
|
|
Using the code below, I am trying to find the text
<add key="GetListDefaultResultSize" value="6500" />
but when I view what my program is seeing, it is actually seeing
<add key=\"GetListDefaultResultSize\" value=\"6500\" />
How do I adjust for the escape characters that are added before the quotes when my code does a File.ReadAllText?
string allFileText = File.ReadAllText(networkFilePath);
if (allFileText.Contains(replacementLine))
{
lvwAppendFiles.Items.Add(networkFilePath + " contains " + replacementLine);
}
else
{
lvwAppendFiles.Items.Add(networkFilePath + " does NOT contain " + replacementLine);
}
|
|
|
|
|
Since it looks like XML, I would consider using the
System.Xml and System.Xml.Linq classes instead of trying to interpret the input myself.
|
|
|
|
|
If you are looking at the string in the debugger, it is the debugger that is adding the escape characters to what it is displaying, they aren't actually in the string.
The easy way to verify this is to check the Length of the string. It should not include the escape characters in the count.
"Fairy tales do not tell children the dragons exist. Children already know that dragons exist. Fairy tales tell children the dragons can be killed."
- G.K. Chesterton
|
|
|
|
|
Hello everyone.
I'm currently trying to get into htmls and as a start wanted to create a program which reads the current Artist and song out of a Webradio.
So far i can read out an Artist and song but it's not the current one but the last one in the list on the site...could anyone help me getting the current one? That'd be great.
Here is my Code so far:
using (WebClient client = new WebClient())
{
string htmlCode = client.DownloadString("http://www.planetradio.de/music/trackfinder.html");
var parser = new HtmlParser();
var document = parser.Parse(htmlCode);
var hitfinderTable = document.All.Where(m => m.Id == "hitfindertable").First() as AngleSharp.Dom.Html.IHtmlTableElement;
foreach (var row in hitfinderTable.Rows)
{
var artistName = row.Cells[2].TextContent;
var songName = row.Cells[3].TextContent;
label.Content = artistName + " " + songName;
}
}
Thanks to everyone in advance.
|
|
|
|
|
I don't see anywhere where you are "sorting"; you're just lazy-loading "a list" and asking for the first entry (regardless of order).
You're also not "appending" to "label.Content" ... if that's what's on your mind.
modified 20-Nov-15 11:21am.
|
|
|
|
|
Need Convert character to ascii value. For character "‚" ascii value is 130 but I got 8218.
string is "õí‚è‹".
for (int i = 0; i < rtfSource.Text.Length; i++)
{
rtfSource.Select(i, 1);
strTemp = rtfSource.SelectedText.ToString();
strChar = strTemp.Substring(0, 1);
iCode = (int)strChar[0];
}
Have A Nice Day!
Murali.M
Blog
|
|
|
|
|
What you have is not an ASCII coded character, and it is not a "comma;" it is Unicode, specifically the single low-9 quotation mark: [^].
So, if you must work with Unicode character sets, you should plan to forget about using plain-old ASCII. There are over 100k Unicode characters, and only 128 in ASCII. While you can access an ASCII "mapping" via the Encoding Class:
byte[] unicode = Encoding.Unicode.GetBytes("õí‚è‹");
string Ascii = Encoding.ASCII.GetString(unicode); The result of this would be: "?\0?\0 ?\09" : the "?" indicates result is unknown for a given character.
«I want to stay as close to the edge as I can without going over. Out on the edge you see all kinds of things you can't see from the center» Kurt Vonnegut.
|
|
|
|
|
its not comma, and ttf font not Unicode font. Alt+0130 is it value. How can I get the ascii value 130. third character in the string.
Have A Nice Day!
Murali.M
Blog
|
|
|
|
|
Alt+130 would be é not è (which you wrote in your question). è would be Alt+138.
But those are both not ASCII since ASCII has only 128 Symbols.
So what exactly do you want to do?
Convert the third character (which would be ",") or the è ?
|
|
|
|
|
I want to mapping characters by based on ASCII Value.
Have A Nice Day!
Murali.M
Blog
|
|
|
|
|
Then you need to convert the Unicode characters in your data to their ASCII equivalents first. But be aware that you may lose some of them completely if they do not map to an ASCII character.
|
|
|
|
|
Unicode isn't a font - it's a character set which can be displayed on a suitable context using a font to "describe" the exact shape to be drawn for each character. ASCII is a different (and much smaller, more limited) character set - which can also be displayed using a font, but the number of different shapes that can be drawn is far fewer.
Fonts are things like Arial, Times New Roman, Verdana, Wingdings - they are ways to display the same character from a character set differently.
And the third character in the string "õí‚è‹" is ','. The character at index 3 is 'è' which exists in the Extended ASCII character set (which has 256 characters) but doesn't exist in the standard 128 character ASCII set.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
murali_utr wrote: but I got 8218 Which is correct, it's a Unicode character.
|
|
|
|
|
hello,
I am new to leap motion technology.I have follow Leap Motion Integration tutorial step by step.I have attach the script GrabMyCube to the cube and run the project.when play ,it immediately pause the game.I cant to able understand why it pause.
I am using unity 5.1.2f personal edition.Is it version problem ?
Please help.
Thank you.
|
|
|
|