Editing multiple lines of code in Netbeans

It’s called rectangular selection. It can be enabled by Crtl+Shift+R Screenshots for steps: Rectangular Selection By Petr on Oct 20, 2011 If you use development build, you probably noticed that NetBeans editor added Rectangular Selection action. I don’t need this functionality every day, but it can be helpful in some case. One of such case … Read more

Find a line in a file and remove it

This solution may not be optimal or pretty, but it works. It reads in an input file line by line, writing each line out to a temporary output file. Whenever it encounters a line that matches what you are looking for, it skips writing that one out. It then renames the output file. I have … Read more

Editable ComboBox with binding to value not in list

I was just doing this yesterday and today and it looks like the following: set the combobox IsEditable=”true” instead of binding to SelectedItem, bind to the Text property of the combobox if you’re binding to a custom object instead of just strings, you need to also set TextSearch.TextPath=”NameOfField”. This lets the text search behavior work, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)