round decimals in ignite ui - infragistics

I have an Ignite editable column with dataType: "number" and format: "0.000" and editor options with maxDecimals set to 3.
However when I enter value as suppose 3.4537 it gets truncated to 3.453 rather than rounding off. I believe this has been fixed in version 17.2 using roundDecimals, however I am on 16.2. Is there an alternate solution to this?

The roundDecimal option is introduced in the Ignite UI product, version 17.1 and above, and there isn't a proper way to do it 16.2. Here is the pull request that is implementing it. Of course we can think of some workaround, but I will not recommend this. Having in mind that editors are one of those controls that are open-source, you can use 17.1 or 17.2 version. Is it possible for you to update the product and what are your concerns about it?

Related

WMI filter to exclude/include a specific version of an application

I am trying to write a WQL query to filter computers on a version of a specific software : Firefox.
I want to use this WMI filter on GPO to check if the version is earlier or equal or upper a specific version : 60.8.0.0 esr.
The goal is to separate computers and users which have old versions and computers with the new one.
Hundreds of computers are being reinstalled in few days with a last version 68.0 esr. Using SCCM, it is easy to perform a clean install of a specific product like Firefox with the latest version 68esr in our case and block upgrade for the other one.
The computers which have an earlier version are in version 60.7.0.2 for the most up to date. Other older versions are also present.
Actually some parameters and homemade scripts are used to configure the browser (computers and users scope) through group policies and some parameters doesn't seem to works. I have to choose a version to apply the official ADMX from Mozilla. Since the last version, firefox.exe is able to directly read registry policies edited in a GPO and stored in HKLM/SOFTWARE/Policies/Firefox.
In my case I have to deal with 2 kind of Firefox:
New computers with a simple new GPO (computers scope)
Old computers with a GPO (users and computers scope) which copy some files with home made scripts.
Unfortunately, it is not possible to separate computers or users in different Organization Unit.
One the one hand, WMI filter seems to be the best way to do it for the new computers.
On the second hand, it will be easy to the computers which update Firefox via SCCM to be included with the new parameters without having to do it manually.
I tried this kind of WQL request:
SELECT * FROM Win32Reg_AddRemovePrograms
WHERE (DisplayName LIKE '%Firefox%') AND (Version LIKE '60.8.0%')
I am not able to do it unless by listing each version to exclude/include them because Version seems to be a string value and I do not know how to convert it in integer or to split with the character ".".
I've can define multiple queries on a single WMI filter and keeping in mind that querying the same WMI class multiple times can decrease performance.
It seems to work as a AND relationship as describe here.
Unfortunately it doesn't solve my problem.
So i start to use WMI LIKE operators and different range of character.
In my case :
New computers with a newer version of Firefox ESR (older than 68.0)
SELECT DisplayName, Version
FROM Win32Reg_AddRemovePrograms
WHERE (DisplayName LIKE '%Firefox%')
AND ((NOT Version LIKE '[0-5][0-9].[0-9]%')
AND (NOT Version LIKE '6[0-7].[0-9]%'))
Old computers with a newer version of Firefox ESR (greater than 68.0)
SELECT DisplayName, Version
FROM Win32Reg_AddRemovePrograms
WHERE (DisplayName LIKE '%Firefox%')
AND ((Version LIKE '[0-5][0-9].[0-9]%') OR (Version LIKE '6[0-7].[0-9]%'))

Did VS Code 1.14 remove Compare?

I only noticed this because of the project I was working on with a client's CSS file. I was using Compare in 1.13 to check existing CSS information with some changes I was doing for her. When I upgraded to 1.14, the Compare function was wonky, allowing me to tag one file for Compare and then not allowing the right-click on the second (or any other) file. This lead me to believe it was removed, but I didn't see any mention of it in the release notes.
I've since gone back to 1.13. I rarely use Compare, but in this one instance it alerted me that there may be other issues of which I'm unaware, especially if right-clicking file names in the File Explorer doesn't respond.
The Compare feature was untouched in 1.14, this does not mean, however, that the feature isn't subject to any current bugs related to your platform. On Mac OS X the feature is working as intended.
But as a long time user I've found that the Compare feature has been unintuitive.
I would suggest either using the Diff feature (F7 or Shift+F7) or perhaps switching to using git and it's diff-ing tool.

What version of openjdk8's source do I get to build update 131, same as oracle's latest? jdk8/jdk8u?

I'm trying for a few days to build my own jdk8 on RHEL 7.3. Until now I was using the source here: http://hg.openjdk.java.net/jdk8/jdk8/
But there is also http://hg.openjdk.java.net/jdk8u/jdk8u/
1) What are the differences between the two?
2) Which one do I have to choose to get update 131 (same as oracle for now)?
When I download the source and do hg tags:
a)In jdk8, there is one jdk8-b131 with tag 939
b)In jdk8u, there is plenty of jdk8:
jdk8-b131 with tag 955
jdk8u131-b00 with tag 1888
up to jdk8u131-b11 with tag 1915
Could anyone explain to me what genius is managing this? And where do I get THE source to build my jdk at home? And Why?
Thx,
Animal
Some of this is very silly. It's a result of how OpenJDK 8's initial development and updates are two different OpenJDK projects.
The JDK 8 Project was responsible for developing and releasing OpenJDK 8 initially.
They used http://hg.openjdk.java.net/jdk8/jdk8/ as their repository
They used http://mail.openjdk.java.net/mailman/listinfo/jdk8-dev as their mailing list.
The JDK 8 Updates Project is responsible for developing and releasing the post-release updates to OpenJDK 8.
They use http://hg.openjdk.java.net/jdk8u/jdk8u/ as their repositoriy
They use http://mail.openjdk.java.net/mailman/listinfo/jdk8u-dev as their mailing list.
In other words, do not use jdk8/jdk8! They contain unpatched vulnerabilities.
Lets break down the tag format used in OpenJDK 8 jdk8(uXYZ)-bABC
jdk8 indicates that this is a JDK 8 or Update
uXYZ indicates what JDK 8 Update this tag indicates
bABC is the build number of this particular update. Build numbers are meaningless to us outside Oracle. They correspond to some internal build numbers.
The jdk8-bXYZ tags should be identical between jdk8u and jdk8, since the update repository contains all the tags from the initial jdk8 repository. The jdk8uXYZ-bABC tags are the ones you want. These tags are in numerical order. jdk8u131-b00 is an earlier version compared to jdk8u131-b11.
So, if you want the latest JDK 8 Update, look at http://hg.openjdk.java.net/jdk8u/jdk8u/ (or basically the same contents but gets updates (possibly) faster: http://hg.openjdk.java.net/jdk8u/jdk8u-dev/), find the jdk8uXYZ-bABC tag where XYZ is the highest value (pick jdk8u121 over jdk8u23) and then pick the one with the highest ABC value (pick jdk8u121-b02 over jdk8u121-b01 and jdk8u49-b24). Keep in mind that it may be an in-development version!
If you know you want something analogous to Oracle's JDK 8 Update 131, look for the jdk8u131-ABC tag with the highest value of ABC (appears to be jdk8u131-b11). The tags don't change after Oracle's public release of similarly-numbered update.
Everyone agrees this is a bad versioning system. I know some people who publicly objected against this weird repository system too, and I agree with them.
The tags are getting fixed for OpenJDK 9 via JEP 223 (see "Mercurial changeset tags").

How can you "global replace" in Crystal without visual studio?

I had to replace a DB table with embedded SQL in Crystal.
Now I find myself completely amazed that (apparently) I have to open thirty or more formulas one at a time and replace the table name with "Command"
If I select "All formulas" in the replace widget, all the replace controls are disabled.
This is so stupid that I figure I am missing something.
I am working the Crystal files directly in the Crystal IDE. Not able to fire up a C# or VB program to do it for me. I did try a couple of times in the past to edit things in Crystal files with regexp/perl/editors and similar, but that failed due to the Crystal file format.
(S.O. says my question "appears subjective and is likely to be closed." Huh?)
Transitioning from linked tables (Database 'expert') to a command (or the other direction) has always been painful (I've been using the product since v4)--CR doesn't have a good (or even mediocre) way to do this. You should be able to map your command to a single table, but you'll lose field (from the canvas) during the process (because CR will remove unmapped fields). Best practice is to always use a command or to wrap each table.field element in a formula field.
With earlier version of the product, I might have suggested using the SDK to make the change. However, this level of control has been shifted to BusinessObjects' RAS SDK.
If you are interested, have a look at my RptToXml project or its C# replacement.

Trying to find a syntax highlighter for ColdFusion in Notepad++

I use CFEclipse for most of my projects and heavy lifting but sometimes I find the need to do a quick fix on pages outside the project scope that is easier to accomplish in a simple text editor.
I have googled but can't seem to find an answer so either a link to a download or a link to how to build my own would be awesome. thanks.
Update: Brien Malone's answer below along with charlie arehart's comments are what people should use at this point as nppColdFusion is no longer maintained as of 23 Sept 2011.
Disregard
nppColdFusion is actively maintained
In notepadd ++, go to 'Plugins'> 'Plugin Manager'> 'show plugin manager'. 'Coldfusion Lexer' is listed as available plugin
This question is a few years old now, and unfortunately, the accepted answer involving nppColdFusion is no longer valid because the plug-in doesn't work with NP++ after version 5.x.x and is not being maintained. (It stopped working when Notepad++ switched their plug-in hooking mechanism in version 6.x.x)
The Notepad++ site points to a library of nearly every language highlighter available:
http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=User_Defined_Language_Files
ColdFusion (specifically CF9) is listed:
http://notepad-plus.sourceforge.net/commun/userDefinedLang/userDefineLang_CF9.xml
It's not as good as a full plug-in like nppColdFusion, but it is better than pages of black text.
Just a comment about Tony's answer (Aug 22 '14 at 13:00) : he wrote "In notepadd ++, go to 'Plugins'> 'Plugin Manager'> 'show plugin manager'."
However, in ver. 6.8 (maybe since before), there's no "Plugins" menu item on the menu bar. What I had to do is:
1- From the User Defined Language Page
http://docs.notepad-plus-plus.org/index.php?title=User_Defined_Language_Files
Download the ColdFusion User Defined Language file
http://notepad-plus.sourceforge.net/commun/userDefinedLang/userDefineLang_CF9.xml
Into the Notepad++ Folder
2- From the User Defined Language panel, import that file:
Language > Define your language... then press the Import button
ColdFusion will then appear at the bottom of the Language menu item selection list, and NotePad++ will automatically use it for any .CF file you open.
This link might help: http://howardscholz.wordpress.com/2007/06/01/notepad-support-for-coldfusion-8/
Disclaimer: I haven't tried it myself.
I found that nppColdFusion was working well, until I updated NP++ to version 7.6.6. I have tried just about everything to get it working, but to no avail.
I tried Delire Web's solution and it worked perfectly.
The different formatting (font and background colors) takes a bit of getting used to though.