smartgit and ksdiff integration - smartgit

I'd like using the Kaleidoscope/ksdiff as my conflict solver in smartgit. I've tried configuring by myself but I can't. So, what is the line instruction that I need to put at arguments input on edit conflict solver configuration?
Screenshot:

The required configuration to integrate Kaleidoscope/ksdiff with smartgit is that:
--merge --output ${mergedFile} --base ${baseFile} -- ${leftFile} --snapshot ${rightFile} --snapshot
just put it on arguments field and the magic will happen :)

Related

Azkaban runtime parameter for yesterday

According to official website, Azkaban only provides year-month-date for running time like:
${azkaban.flow.start.day}
Is it possible to add parameters for the day before?
You can define it with jexl by yourself.
e.g.
yesterday=$(new("org.joda.time.DateTime").minusDays(1).toString("yyyy-MM-dd"))
ref: https://github.com/azkaban/azkaban/pull/277

What can I use to automate incrementing a version number?

I have a .txt file called "service-config" that looks like the below:
ServiceName=my-service
ServiceVersion=2.0.4
ToolsAccountNumber=3219684321
SharedAccountNumber=6843219687
NumberOfEcsTasks=2
I need a way to automatically increment the service version by 0.0.1 so when I run this solution the version will go to 2.0.5.
What would be the best way to achieve this?
Thanks.

PHPMD and PHPCS Camelcase for Tests

I just installed both PHPMD and PHPCS with my Project.
Now, I would like to customize them a bit, but can't seem to achieve it.
I get 2 warnings that I would like to remove for all my project:
phpcs: public method name MyTests::my_test_that_should_pass is not in camel caps format
phpmd: the method my_test_that_should_pass is not in camel case
With PHPMD, I tried to change : .composer/vendor/phpmd/phpmd/src/main/resources/rulesets/controversial.xml and set allow-underscore-test to true like mentioned here
With PHPCS, I don't really know how to do it.
Any idea???
https://phpmd.org/rules/controversial.html
PHPCS uses a file called ruleset.xml to allow you to create your own custom standard. The documentation for it is here: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-Ruleset
If you want a specific standard for your project, you can include a phpcs.xml file at the root of your project. It's exactly the same format as a ruleset.xml file and can even specify which files and folders need checking by default. Documentation for that is here: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#using-a-default-configuration-file
I have no idea what coding standard you are using with PHPCS right now, but I'll assume you are using PSR2.
If you run phpcs with the -s option, you'll see an error message with an error code, like this: Method name "MyTests::my_test_that_should_pass" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps). The code is the bit you need here.
For your custom standard, you want PSR2, but you don't want the PSR1.Methods.CamelCapsMethodName sniff because you obviously don't want PHPCS checking for camel case. So create a ruleset with this content:
<?xml version="1.0"?>
<ruleset name="MyStandard">
<description>My custom coding standard.</description>
<rule ref="PSR2">
<exclude name="PSR1.Methods.CamelCapsMethodName"/>
</rule>
</ruleset>
Save that file and call it ruleset.xml or phpcs.xml and then run PHPCS using it: phpcs /path/to/code --standard=/path/to/ruleset.xml
Take a look at the annotated ruleset docs I linked at the top of the comment because there is a lot more you can do with those rulesets.

jruby/ActiveRecord/jdbcsqlite3/jruby-poi: From Rails to command-line script: How to remove/convert single element array's?

Busy migrating a report generation from Rails(Web) to a jruby command-line script.
Using:
jruby-1.7.11
ActiveRecord & ActiveSupport: 3.0.6
jdbc-sqlite3: sqlitejdbc-3.7.9.jar (with custom sqlite3.8 shared library)
jruby-poi: 0.9
Problem:
ResultTable.find_by_sql returns an array containing single length array's in stead of string's. ['country_NLD'] in stead of 'country_NLD'
Under Rails this seams to be working OK.
Questions:
How do I convert a single element array to a NON array even when its deep down in an other array?
I know that Postgress active record-jdbc-adapter has a setting called '...array.raw'. Is there some setting for SQLite3 available?
Thanks!
you did miss an important piece to mention: ActiveRecord-JDBC-Adapter's (gem) version ...
if you happen to be on 1.2.x I do recommend an upgrade to 1.3.x which shall have this incompatibility fixed, otherwise you should report the issue.

Get values from an array. JMeter

I have values in file:
en-us, de-de, es-es, cs-cz, fr-fr, it-it, ja-jp, ko-kr, pl-pl, pt-br, ru-ru, tr-tr, zh-cn, zh-tw.
how can I get this values for one request?
I want to create a query that takes the value of these in turn and writes the variable
This scenario can be achieved using Jmeter component "CSV Data Set Config"
Please refer to below mentioned link:
Jmeter CSV Data Set Config
Hope this will help
Can't comment, not enough karma. In response to above questions your path is probably wrong. If you use a debug sampler to show what path the CSV reader is taking I think you will find it is looking at something like C:/Jmeter/C:/path/to/CSV/file.
Another option for completing this is to use inline CSVRead. In your HTTP request use code like this -
${__CSVRead(etc/filters.csv,0)}${__CSVRead(etc/filters.csv,next)}
etc/filters is the RELATIVE path from Jmeters active running directory. In my case this evaluates to
C:/git/JmeterScripts/etc/filters.csv
In either case, I am sure your problem is that Jmeters active running directory is not what you think it is. I have had this problem several times with the same error.

Resources