How to pimp my (VS2010) editor? - visual-studio-2010

While researching another issue, I came across this: http://james.padolsey.com/javascript/sorting-elements-with-jquery/ which made me green with envy for that color scheme (hey, I'm Portuguese).
So I found a .vssettings file online I liked, and tried to install it via "Import and Export Settings" - it has no effect; my "blah" color scheme remains the same (even after restarting VS2010). It's not my process that's wrong, as I was able to do it at home, the only difference being I've got VS2012 there.
So why are the vs-settings settings not getting set? To be more specific, I downloaded wekeroad-ink.vs-settings from http://studiostyl.es/schemes/wekeroad-ink (linked to it from http://weblogs.asp.net/scottgu/archive/2010/04/29/download-and-share-visual-studio-color-schemes.aspx).
I select Tools | Import and Export Settings... | Import selected environment settings | Next | Yes, save my current settings | Next | select My Settings | wekeroad-ink.vssettings | Next | Select "All Settings" | Finish | see "Your settings were successfully imported from wekeroad-ink.vssettings." and "To finish the wizard, click Close." | Close, ... no change in my editor colors. Restart VS2010; still no joy.
What's the trick to get it to "take" in VS2010?

Related

How to remove PhpStorm auto added text on the codes

Does anyone knows how to remove the word "url" & "view" which is automatically added on the PHP storm IDE?
Check below image I have marked in red:
They are called inlay hints, you can find the settings for them here:
Phpstorm 2017.1:
Editor | General | Appearance | Show parameter name hints
Phpstorm 2019.3:
Settings | Editor | Inlay Hints | PHP | Parameter hints

How to work with packages in Liquibase

We use liquibase with oracle. So we have some packages with procedures inside.
In our case changelog structure looks like:
master.xml
|
| release1
| |
| release-maser.xml
| release2
| |
| release-maser.xml
| softObjects
| |
| package-master.xml
| packages
| |
| somePackage.pkb
| somePackage.pks
change sets inside "releases" with runOnChange=false and "softObjects"(that can be create used CREATE OR REPLACE) with runOnChange=true like in best practices:
Try to maintain separate changelog for Stored Procedures and use
runOnChange=”true”. This flag forces LiquiBase to check if the
changeset was modified. If so, liquibase executes the change again.
So every update intall some "delta" change sets from "release" and AFTER reinstal all "softObjects" that was changed and in usual case all is OK.
But if I need to setup new DB, I will get a problem:
in change set from second release I use somePackage(v1), but in next release i need to change logic/API somePackage so I will get somePackage(v2) that can not be used in previously created change sets. So for now I have change set that on update will try to use wrong package version.
For avoid this I can add soft objects directly inside release folder without runOnChange=true when i create it. When I need to change it, i should just copy previous version of file to my new release and make changes inside a COPY.
This approach has some disadvantages:
you make a lot of copy files that can consist from thousands lines of
code(yes I know that it isn`t good)
version control system recognize it as a new file (good challenge for
reviewers)
What i undestand wrong? How should I work with "softObjects", if this objects might be changed?

squirrelsql doesn't like query_to_xml

I am using an SQL that includes query_to_xml:
select query_to_xml('select 1+1 answer', true, true, '') as_xml;
When any SQL with query_to_xml is executed in Squirrel SQL it will result in:
| as_xml |
+--------------------+
|<UnknownType (2009)>|
With the same JDBC driver, credentials and a Java class the SQL will result in the expected XML output:
| as_xml |
+------------------------------------------------------------+
| <row xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">|
| |
| <answer>2</answer> |
| </row> |
I can execute other functions in Squirrel and they will respond, like select version().
Is this a known feature in Squirrel?
If you are using the latest squirrel client, Go to File, Global Preferences-> Data Type Controls, check the box under Unknown DataTypes section.
Rerun the query, it might work.
It seems to be an issue with the text option output for SQL results. It works if you change to the tabular output. Go to the Session menu and click "Session Properties". On the "General" tab under "Output" change "SQL Results" from Text to Table and rerun the query. You may need to close the existing results tabs first.
If this fixes it please add a bug report so that it can be fixed in the future.

How to install and use the JMeter plugin "Standard Set"

Hi I have downloaded the Standard Set from the JMeter plugin site.
I installed it as it says here:
http://jmeter-plugins.org/wiki/PluginInstall/
The problem is that I don't get to see any option in the Listener Menu that let me add a new Graphs Generator Listener as described here:
http://jmeter-plugins.org/wiki/GraphsGeneratorListener/
I need to create a Transactions per Second graph , but I don't know how to do it.
I really appreciate if you could help me out.
Thanks in advance.
If you do not see the extra elements in the menu, there is something wrong with your jmeter-plugins installation.
Make sure you unpacked the zip in the folder above 'bin', that is not clear in the instructions.
At the same folder level as 'bin' there should also be a 'lib', and beneath this, 'ext'.
Check that the 'ext' folder contains the jmeter plugin jar and other support files.
it should look like this:
|-apache-jmeter-2.11
| |-bin
| | |-jmeter.bat
| | |-ApacheJMeter.jar
| | |-...
| |-lib
| | |-ext
| | | |-JMeterPlugin-Standard.jar
| | | |-...
| | |-...
| |-...
|-...
Make sure you restart jmeter after moving these files. If you have the jar in the right place, the extensions will be loaded and available from menu options.
To install the JMeter Plugins,
-> Copy the JMeterPlugins.jar file from JMeterPlugins-VERSION.zip
-> Paste the file to JMETER_INSTALL_DIR/libexec/lib/ext

How customize the installation dialog of WIX?

How can I customize the text in WIX installation dialog.
The requirement is to have dialog while installing like below:
+-----------------------------------------------------------------+
| Cotoso ABC Product |
+-----------------------------------------------------------------+
| |
| Please wait while the XXXX version of ABC is configured |
| |
| |
| Cancel |
+-----------------------------------------------------------------+
The title bar has "Cotoso ABC Product" which is the company and product name.
The dialog content is int format of "Please wait while {XXXX version} of {Product Name} is configured".
How to accomplish this in WIX?
You can change the text of the progress bar dialog, and you can change the title.
Why add a popup?
Including the default progress/error messages will probably accomplish what you require (this stumped me for ages, as it's not very obviously placed in the documentation). Just add:
<UIRef Id="WixUI_ErrorProgressText" />
As for the title bar, I think this just defaults to the Product/#Name attribute.

Resources