Huh! I didn't know it could do that. I usually use Notepad++ to open files and edit them but not actual projects.
Very last thing about NPP: Can you change the color scheme? I've been getting a lot of migraines lately from staring at a white background/black text. So I've reversed it to make it easy to read for me.
Yes NPP has a very nice style configurator, and you can also download style files too.
Has anyone used UltraEdit before? It's a pretty nice editing software. Seems to have all the major languages, and allows you to create scripts for use inside the program.
I use it because it's one of the few editors out there with a pickBASIC wordfile. It's a pretty good editor and the FTP support is handy for me. There are probably better editors/IDEs if you need anything else though.
Has anyone used UltraEdit before? It's a pretty nice editing software. Seems to have all the major languages, and allows you to create scripts for use inside the program.
I use it because it's one of the few editors out there with a pickBASIC wordfile. It's a pretty good editor and the FTP support is handy for me. There are probably better editors/IDEs if you need anything else though.
Hey guys I need some help. I'm in the process of getting this ASP.NET page up and running (mentioned a while back about doing something for work for our Switch Templates) and I've managed to get a few things up an running but now I having trouble with one particular section. In this template I want to get the use the option to specify via a drop down box how many ports on the switch they need to configure, up to 48. So I have the drop down generate a list of text boxes (with labels). That part works great. Now I want to know how to actually get that data from those text boxes out and into something useable. Here's what I have so far
protected void ddlSwitchPortSelection_SelectedIndexChanged(object sender, EventArgs e)
{
int MaxPorts = System.Convert.ToInt32(ddlSwitchPortSelection.SelectedItem.Text);
tMaxPorts.Text = MaxPorts.ToString();
aHostName = new AgentHostName[MaxPorts]; //Array that will store the hostnames
TextBox[] tb = new TextBox[MaxPorts];
for (int i = 0; i < MaxPorts; i++)
{
Label myLabel = new Label();
TextBox myTextBox = new TextBox();
int PortNumber = i + 1;
for (int a = 0; a < MaxPorts; a++)
{
myLabel.Text = "HostName for Port Number " + PortNumber;
myLabel.ID = "Port Number" + PortNumber.ToString();
myTextBox.ID = "textbox" + PortNumber.ToString();
Panel1.Controls.Add(myLabel);
Panel1.Controls.Add(myTextBox);
Panel1.Controls.Add(new LiteralControl("<br>"));
aHostName[i].AgentName = myTextBox.Text;
aHostName[i].PortNumber = PortNumber;
}
}
}
Now I'm sure there are much better ways to do this but this is all I could find/figure out how to get my other text boxes (not created by this drop down) into my template
if (PreviousPage != null)
{
TextBox SourceTextBox =
(TextBox)PreviousPage.FindControl("tAssetID"); //on the previous page I have a text box called tAssetID.
if (SourceTextBox != null)
{
lAssetID.Text = SourceTextBox.Text;
}
}
Any help, advice would be great
I ditched ASP.NET long ago but I'm assuming something like this would work...
foreach (Control c in Panel1.Controls)
{
if (c is Textbox)
{
// Get the ID/Text info you need
// Do whatever
}
}
Ugh... I hate having to read ugly code. I really wish people would stick with a standard programming convention!
I think somebody needs to compile a collection of truly horrible looking code, so that every programmer can have a proper yard stick at what truly ugly code looks like.
Ugh... I hate having to read ugly code. I really wish people would stick with a standard programming convention!
I think somebody needs to compile a collection of truly horrible looking code, so that every programmer can have a proper yard stick at what truly ugly code looks like.
This one has like 15 space between some of the variable names and their declarations. Tabs all over the place...
Ugh... I hate having to read ugly code. I really wish people would stick with a standard programming convention!
I think somebody needs to compile a collection of truly horrible looking code, so that every programmer can have a proper yard stick at what truly ugly code looks like.
I'm trying but I keep getting a bunch of warnings.
Ugh... I hate having to read ugly code. I really wish people would stick with a standard programming convention!
I think somebody needs to compile a collection of truly horrible looking code, so that every programmer can have a proper yard stick at what truly ugly code looks like.
This one has like 15 space between some of the variable names and their declarations. Tabs all over the place...
that isn't bad at all compared to stuff I have seen.
Ugh... I hate having to read ugly code. I really wish people would stick with a standard programming convention!
I think somebody needs to compile a collection of truly horrible looking code, so that every programmer can have a proper yard stick at what truly ugly code looks like.
I'm trying but I keep getting a bunch of warnings.
Touche.
bowen on
not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
My boss hates it when I use free software, even when it's superior to the paid product!
My bosses give me a funny look when I come in to ask about buying some new software/product/hardware. It's like this completely foreign idea to them even though they've built and supported software themselves since the mid-70's. They know sometimes you need to get Tool X or Part Y; I think they're just shocked at the price of some software today. So generally they like "free."
[ed] Though they are awfully uncomfortable with me running an Ubuntu box for our repositories and bug/issue/feature tracking. They're all "what if we need support though? Who do we call!?" I even had one of them ask me about "this Red Hat thing" the other day, because someone they were talking to at a conference mentioned running a Red Hat box and having a support contract. Siiiiiiiigh.
iTunesIsEvil on
0
KakodaimonosCode fondlerHelping the 1% get richerRegistered Userregular
edited April 2011
Everyone should have the joy of working with VBA using hungarian notation.
Kakodaimonos on
0
jackalFuck Yes. That is an orderly anal warehouse.Registered Userregular
edited April 2011
I work at a non-software company where it is like pulling teeth getting someone a Visual Studios license, but they spend 6 figures on enterprise snake oil du'jour constantly.
Basically I don't trust any software that doesn't have a price on the website, and I really wish that distrust would rub off.
My boss hates it when I use free software, even when it's superior to the paid product!
My bosses give me a funny look when I come in to ask about buying some new software/product/hardware. It's like this completely foreign idea to them even though they've built and supported software themselves since the mid-70's. They know sometimes you need to get Tool X or Part Y; I think they're just shocked at the price of some software today. So generally they like "free."
[ed] Though they are awfully uncomfortable with me running an Ubuntu box for our repositories and bug/issue/feature tracking. They're all "what if we need support though? Who do we call!?" I even had one of them ask me about "this Red Hat thing" the other day, because someone they were talking to at a conference mentioned running a Red Hat box and having a support contract. Siiiiiiiigh.
Ubuntu has that too!
I also don't understand people who license software for like $50,000 a pop. That seems obscene. I mean specialized market seems like it should still be a few grand, and then you overcharge the shit out of your support packages/specialization services.
bowen on
not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
I also don't understand people who license software for like $50,000 a pop. That seems obscene. I mean specialized market seems like it should still be a few grand, and then you overcharge the shit out of your support packages/specialization services.
Well, yeah, but if I can't find the answer to a question regarding Ubuntu on Google I'm probably doing it wrong.
Haha well the main reason why it's a bad idea is because I'm to pull the code from this project, and paste it into excel, then right next to it I'm supposed to resolve all the include statements given in the left one.
My replace all went through and replaced all the includes for me... But I hadn't grabbed the "before" code.
Ugh... I hate having to read ugly code. I really wish people would stick with a standard programming convention!
I think somebody needs to compile a collection of truly horrible looking code, so that every programmer can have a proper yard stick at what truly ugly code looks like.
Escaped HTML in your asp pages for your page's structure! Thank you!
I have to deal with this in my Perl all the time. To make matters worse, whoever did this didn't actually know HTML or CSS properly and is re-using the id attribute to set CSS properties rather than setting the class on the elements. There's occasionally also some JavaScript in my Perl. It makes me want to die whenever I have to dig into those files.
I also don't understand people who license software for like $50,000 a pop. That seems obscene. I mean specialized market seems like it should still be a few grand, and then you overcharge the shit out of your support packages/specialization services.
Well, yeah, but if I can't find the answer to a question regarding Ubuntu on Google I'm probably doing it wrong.
Sometimes if I have a generalized computing question I just add "ubuntu" to the front of the search string. You get about 50/50 odds of it improving your search results.
Plus, I'm so acclimated to aptitude / apt-get that it just feels right.
It's cool. I'm less suicidal about it than I was before. The economy is improving enough that I can actually find openings for things I'm qualified for. Sent out three applications over the weekend.
I just want everyone (urahonky!) to have some perspective when they see wildly inappropriate uses of whitespace. :P
Edit:
It's the proprietary medical software language I'm using as we speak. I've been over it a few times in these threads before, but it's basically what cancer would look like in the Tron universe.
Could they not have chosen a standard programming language? Or were the designers trying to save their jobs by making sure only a select few could learn the language?
Could they not have chosen a standard programming language? Or were the designers trying to save their jobs by making sure only a select few could learn the language?
They have an especially acute case of NIH syndrome. Keep in mind that the garbage in my signature was the platform invented in 1982. They've invented two more platforms since then, and have made 0 improvements.
Also, in case you were considering going to a doctor, they are the leading medical software provider in America and Canada at just under 30% and over 40% respectively.
Ugh, I'm being asked for a "front-end" code sample for a job application. Do I attach the most complicated class I've ever written in javascript (an autosaving sub-view of a web application, 500 lines in total), or the simple elegant wrapper for setTimeout and clearTimeout intended for use with a live-updating text box that prevents AJAX request flooding, something simple but more half-assed from the web-app with the auto-saving view, or just some PHP from a fairly basic CakePHP app I built (since I'm applying for a PHP job).
Or am I just over-thinking this completely?
They also want something "of my choice" which is the hardest of all. Get in some PHP (I really don't have any cool PHP to choose from)? Show a simple jQuery thing (job requires jQuery)? Show an awesome AI routine from a rogue-like I was working on?
I ditched ASP.NET long ago but I'm assuming something like this would work...
foreach (Control c in Panel1.Controls)
{
if (c is Textbox)
{
// Get the ID/Text info you need
// Do whatever
}
}
Thank you, sadly however I think I'm too much of a newbie to figure out what to put in that. I'll have to research it a bit more but at least I have a direction to look at.
The entire idea of iterating UI controls to find one in particular as a common practice is so laughable that I am amazed that it is commonplace in .NET
Wait, no I'm not.
Jasconius on
0
jackalFuck Yes. That is an orderly anal warehouse.Registered Userregular
The entire idea of iterating UI controls to find one in particular as a common practice is so laughable that I am amazed that it is commonplace in .NET
Wait, no I'm not.
It is not commonplace in .NET. Where would you get that idea.
jackal on
0
KakodaimonosCode fondlerHelping the 1% get richerRegistered Userregular
I ditched ASP.NET long ago but I'm assuming something like this would work...
foreach (Control c in Panel1.Controls)
{
if (c is Textbox)
{
// Get the ID/Text info you need
// Do whatever
}
}
Thank you, sadly however I think I'm too much of a newbie to figure out what to put in that. I'll have to research it a bit more but at least I have a direction to look at.
Why are you populating a drop-down with text boxes? Are the users allowed to change the values of the drop-down?
Posts
Yes NPP has a very nice style configurator, and you can also download style files too.
http://www.pickwiki.com/cgi-bin/wiki.pl?SyntaxFiles
FTP Support is probably the only thing I have no clue about in NPP. Looks like syntax highlighting is a thing you can do for pickBASIC, though.
NPP comes with a FTP plugin called NppFTP it is found under plugins. I have never used it though.
foreach (Control c in Panel1.Controls) { if (c is Textbox) { // Get the ID/Text info you need // Do whatever } }I think somebody needs to compile a collection of truly horrible looking code, so that every programmer can have a proper yard stick at what truly ugly code looks like.
This one has like 15 space between some of the variable names and their declarations. Tabs all over the place...
I'm trying but I keep getting a bunch of warnings.
that isn't bad at all compared to stuff I have seen.
Touche.
[ed] Though they are awfully uncomfortable with me running an Ubuntu box for our repositories and bug/issue/feature tracking. They're all "what if we need support though? Who do we call!?" I even had one of them ask me about "this Red Hat thing" the other day, because someone they were talking to at a conference mentioned running a Red Hat box and having a support contract. Siiiiiiiigh.
Basically I don't trust any software that doesn't have a price on the website, and I really wish that distrust would rub off.
Ubuntu has that too!
I also don't understand people who license software for like $50,000 a pop. That seems obscene. I mean specialized market seems like it should still be a few grand, and then you overcharge the shit out of your support packages/specialization services.
*Click Yes*
..
*Remember that you shouldn't do that*
My replace all went through and replaced all the includes for me... But I hadn't grabbed the "before" code.
You rang?
1. Everyone read this.
2. Then click the link in my sig.
3. Then breathe a sigh of relief.
Sometimes if I have a generalized computing question I just add "ubuntu" to the front of the search string. You get about 50/50 odds of it improving your search results.
Plus, I'm so acclimated to aptitude / apt-get that it just feels right.
e: temple's sig
It's cool. I'm less suicidal about it than I was before. The economy is improving enough that I can actually find openings for things I'm qualified for. Sent out three applications over the weekend.
I just want everyone (urahonky!) to have some perspective when they see wildly inappropriate uses of whitespace. :P
Perspective!
and because misery loves company
Edit:
It's the proprietary medical software language I'm using as we speak. I've been over it a few times in these threads before, but it's basically what cancer would look like in the Tron universe.
They have an especially acute case of NIH syndrome. Keep in mind that the garbage in my signature was the platform invented in 1982. They've invented two more platforms since then, and have made 0 improvements.
Also, in case you were considering going to a doctor, they are the leading medical software provider in America and Canada at just under 30% and over 40% respectively.
Or am I just over-thinking this completely?
They also want something "of my choice" which is the hardest of all. Get in some PHP (I really don't have any cool PHP to choose from)? Show a simple jQuery thing (job requires jQuery)? Show an awesome AI routine from a rogue-like I was working on?
Thank you, sadly however I think I'm too much of a newbie to figure out what to put in that. I'll have to research it a bit more but at least I have a direction to look at.
Wait, no I'm not.
It is not commonplace in .NET. Where would you get that idea.
Why are you populating a drop-down with text boxes? Are the users allowed to change the values of the drop-down?