Installing zf-charts-master Zend Framework 3 - zend-framework

I have trouble installing zf-charts-master.
I get this error:
Class 'Phpro\Chart\ChartJs\Doughnut\DoughnutOptions' not found
What I did:
I downloaded the packages from git and extracted it to
C:\wamp64\www\mysite\vendor\zf-charts-master
Then I edited the composer.json and added:
"require" : {
"php" : "^5.6 || ^7.0",
"zendframework/zend-component-installer" : "^1.0 || ^0.7 || ^1.0.0-dev#dev",
"zendframework/zend-mvc" : "^3.0.1",
"zfcampus/zf-development-mode" : "^3.0",
"zendframework/zend-cache" : "^2.7.1",
"zendframework/zend-db" : "^2.9",
"zendframework/zend-mvc-form" : "^1.0",
"zendframework/zend-json" : "^3.0",
"zendframework/zend-log" : "^2.9",
"zendframework/zend-mvc-console" : "^1.1.10",
"zendframework/zend-mvc-i18n" : "^1.0",
"zendframework/zend-mvc-plugins" : "^1.0.1",
"zendframework/zend-psr7bridge" : "^0.2.2",
"zendframework/zend-navigation" : "^2.9",
"phpoffice/phpspreadsheet" : "dev-develop",
"zendframework/zend-authentication" : "^2.5",
"zendframework/zend-mvc-plugin-identity" : "^1.0",
"zendframework/zend-session" : "^2.8",
"zendframework/zend-math" : "^3.0",
"zendframework/zend-crypt" : "^3.3",
"doctrine/doctrine-orm-module" : "^1.1",
"zendframework/zend-inputfilter" : "^2.8",
"zendframework/zend-validator" : "^2.10",
"zendframework/zend-form" : "^2.12",
"zendframework/zend-mail" : "^2.10",
"zendframework/zend-filter" : "^2.8",
"phpro/zf-charts": "~0.1"
},
In my Controller I added these use-statements because Eclipse suggested it:
use Phpro\Chart\ChartJs\Doughnut\DoughnutChart;
use Phpro\Chart\ChartJs\Doughnut\DoughnutData;
use Phpro\Chart\ChartJs\Doughnut\DoughnutDataset;
use Phpro\Chart\ChartJs\Doughnut\DoughnutOptions;
Here also a Screenshot of the folder structure (it is located in vendor):
So I think Eclipse found the classes but Zend doesn't. My question:
What is missing, do I have to add it somewhere else? Any help appreciated!

Related

Getting property values from MSI file using PowerShell

I am adding property information to our MSI built using WiX 3.11. I am referring to the properties you find when right-clicking on a file and selecting Properties:
In the Product.wxs file I am setting these values like so:
<Product Id="$(var.ProductCode)"
Name="$(var.ProductName) $(var.ShortAssyVersion)"
Language="1033"
Version="$(var.LongAssyVersion)"
Manufacturer="$(var.CompanyLegalName)"
UpgradeCode="$(var.UpgradeCode)">
<Package Description="Installation Package"
InstallerVersion="300"
Compressed="yes"
InstallScope="perMachine"
InstallPrivileges="elevated"
Comments="$(var.LongAssyVersion)" />
I would like to use some of these values in an automated build script and am trying to retrieve the values using PowerShell get-item. When I run this command in PowerShell:
PS C:\Subversion\MyProduct\Publish> (get-item "Setup.msi").VersionInfo | fl
this is the output:
OriginalFilename :
FileDescription :
ProductName :
Comments :
CompanyName :
FileName : C:\Subversion\MyProduct\Publish\Setup.msi
FileVersion :
ProductVersion :
IsDebug : False
IsPatched : False
IsPreRelease : False
IsPrivateBuild : False
IsSpecialBuild : False
Language :
LegalCopyright :
LegalTrademarks :
PrivateBuild :
SpecialBuild :
FileVersionRaw : 0.0.0.0
ProductVersionRaw : 0.0.0.0
How can I retrieve these values (i.e., Comments, Date Created, etc.) from the file properties for use in a PowerShell script?

Customizing eclipse code formatting by using predefined template

We have a situation, where we need to customize formatting of the code. Regular eclipse built-in format or google format is not helping us.
Actual Format:
WS.sendRequest(findTestObject(‘SOAP/Sum’, [(‘variable_0’) : ‘1’, (‘variable_1’) : ‘2’, (‘variable_2’) : ‘3’, (‘variable_3’) : ‘4’
, (‘variable_4’) : ‘5’, (‘variable_5’) : ‘6’, (‘variable_6’) : ‘7’, (‘variable_7’) : ‘8’, (‘variable_8’) : ‘9’
, (‘variable_9’) : ‘10’, (‘variable_10’) : ‘11’, (‘URL’) : GlobalVariable.URL]))
Expected Format:
After single quotes and comma, we need a 'NEWLINE' Character. How do we update that?
Note: Unfortunately newline is not coming
WS.sendRequest(findTestObject(‘SOAP/Sum’,
[ (‘variable_0’) : ‘1’,
(‘variable_1’) : ‘2’,
(‘variable_2’) : ‘3’,
(‘variable_3’) : ‘4’,
(‘variable_4’) : ‘5’,
(‘variable_5’) : ‘6’,
(‘variable_6’) : ‘7’,
(‘variable_7’) : ‘8’,
(‘variable_8’) : ‘9’,
(‘variable_9’) : ‘10’,
(‘variable_10’) : ‘11’,
(‘URL’) : GlobalVariable.URL,
]))
Window --> Preferences --> Formatter--> import the profile xml to fomrat.

no output for scala bindgen

I built scala-bindgen under ubuntu 16.04 using libclang3.8 , the executable is produced and runs:
xxx#xxx:~/bin/scala-bindgen$ ./bindgen/target/scala-2.11/bindgen-out
// argc=1
// argv[0]=bindgen
// _argc=1
arg_files :
clang_args :
link :
output : --undefined--
match : --undefined--
builtins : false
clang_ast : false
override_enum_type: --undefined--
ctypes_prefix : --undefined--
use_core : false
remove_prefix : --undefined--
no_scala_enums : false
but no output is produced when running it against the example header
xxx#xxx:~/bin/scala-bindgen$ ./bindgen/target/scala-2.11/bindgen-out -emit-clang-ast -o getopt.scala test/getopt.h
// argc=5
// argv[0]=bindgen
// argv[1]=-emit-clang-ast
// argv[2]=-o
// argv[3]=getopt.scala
// argv[4]=test/getopt.h
// _argc=5
arg_files : test/getopt.h
clang_args :
link :
output : getopt.scala
match : it-clang-ast
builtins : false
clang_ast : true
override_enum_type: --undefined--
ctypes_prefix : --undefined--
use_core : false
remove_prefix : --undefined--
no_scala_enums : false
--> Processing file: /home/xxx/bin/scala-bindgen/test/getopt.h
1
index: 14ec4a0
2
unit: c4004ac0
3
4
5
6
Done.
No output is produced (stdout or file both tested)
xxx#xxx:~/bin/scala-bindgen$ ls
bindgen build.sbt LICENSE project README.md target test
What am I doing wrong ?

Failed Importing Cyrillic (UTF8) json file into MongoDB database

Question: How to use mongoimport.exe utility to import UTF8 json documents with Cyrillic chars into mongodb database under MS Windows 10? (mongoimport.exe online docs do not provide any information or I'm missing it?)
Environment: MS Windows 10, MongoDB 3.2.3, mongoimport.exe
Source UTF8 json file:
{
"PersonnelNumber": "15128",
"OrderNumber": "765-01",
"OrderDate": "2011-05-04T00:00:00",
"JobPosition": "Слесарь по ремонту подвижного состава"
}
Command line:
"C:\Program Files\MongoDB\Server\3.2\bin\mongoimport.exe" --db testOrders --collection orders --drop < "TestOrder.json"
Import log:
2016-03-01T14:47:04.350+0300 connected to: localhost
dropping: testOrders.orders
Failed: error processing document #1: invalid character 'ï' looking for beginning of value
imported 0 documents
Note
ANSI version of the test file is getting imported without errors but Cyrillic char codes are stored in mongoDb database incorrectly, here is how they are displayed in mongoDb shell:
MongoDB shell version: 3.2.3
connecting to: testOrders
> db.orders.findOne()
{
"_id" : ObjectId("56d5838aef35e4f7c03e81bd"),
"PersonnelNumber" : "15128",
"OrderNumber" : "765-01",
"OrderDate" : "2011-05-04T00:00:00",
"JobPosition" : "������� �� ������� ���������� �������"
}
>
Here is a screenshot with hex codes of UTF8 and ANSI files:
When using C# driver (VS2015) to list imported by mongoimport.exe utility json file
foreach (var order in
(new MongoClient()).GetDatabase("testOrders")
.GetCollection<BsonDocument>("orders").FindSync(new BsonDocument()).ToList())
System.Console.WriteLine("{0}", order.ToString());
the test output also has wrong Cyrillic chars:
{
"_id" : ObjectId("56d5838aef35e4f7c03e81bd"),
"PersonnelNumber" : "15128",
"OrderNumber" : "765-01",
"OrderDate" : "2011-05-04T00:00:00",
"JobPosition" : "������� �� ������� ���������� �������"
}
When using C# driver (VS2015) to insert BsonDocument from C# and then to list imported by mongoimport.exe utility json file/document and the BsonDocument document inserted via C# code
var collection = (new MongoClient()).GetDatabase("testOrders")
.GetCollection<BsonDocument>("orders");
var document = new BsonDocument
{
{"PersonnelNumber", "15128" },
{"OrderNumber", "765-01"},
{"OrderDate", "2011-05-04T00:00:00"},
{"JobPosition", "Слесарь по ремонту подвижного состава"}
};
collection.InsertOne(document);
foreach (var order in collection.FindSync(new BsonDocument()).ToList())
System.Console.WriteLine("{0}", order.ToString());
the former has incorrect Cyrillic chars and the latter has correct Cyrillic chars:
{
"_id" : ObjectId("56d5838aef35e4f7c03e81bd"),
"PersonnelNumber" : "15128",
"OrderNumber" : "765-01",
"OrderDate" : "2011-05-04T00:00:00",
"JobPosition" : "������� �� ������� ���������� �������"
}
{
"_id" : ObjectId("56d58c5c1ed24820b80b80f6"),
"PersonnelNumber" : "15128",
"OrderNumber" : "765-01",
"OrderDate" : "2011-05-04T00:00:00",
"JobPosition" : "Слесарь по ремонту подвижного состава"
}

DSC V5 - Keeps attempting to reapply a failed configuraiton

We have started using DSC to deploy some applications. We are pushing out the configurations and only want it to run this configuration once and then stop. However it seems that if a configuration fails we end up with a pending configuration which DSC seems to keep attempting to reapply. Is this intended behavior? Is there anyway for us to prevent this happening.
Here are our LCM settings
ActionAfterReboot : ContinueConfiguration
AgentId : 4314CBF5-928E-11E5-941E-00155D0****
AllowModuleOverWrite : True
CertificateID : EBB297F164BDA1C1A7918C12C31D0F70110****
ConfigurationDownloadManagers : {[ConfigurationRepositoryWeb]DSCHTTP}
ConfigurationID : 3fa96bab-ac50-4b80-a9ac-384bfd*****
ConfigurationMode : ApplyOnly
ConfigurationModeFrequencyMins : 15
Credential :
DebugMode : {NONE}
DownloadManagerCustomData :
DownloadManagerName :
LCMCompatibleVersions : {1.0, 2.0}
LCMState : Idle
LCMStateDetail :
LCMVersion : 2.0
StatusRetentionTimeInDays : 10
PartialConfigurations :
RebootNodeIfNeeded : True
RefreshFrequencyMins : 30
RefreshMode : Push
ReportManagers : {}
ResourceModuleManagers : {[ResourceRepositoryWeb]DSCHTTP}
PSComputerName : D6B*****01
PSComputerName : D6B*****01
Here is a blog that explains how LCM behaves and how you can get out of it http://nanalakshmanan.github.io/blog/Converging-to-a-desired-state/