UI Semantic dropdown component installation - semantic-ui

I would love to use the ui dropdown component in my website as css framework bulma does not have one
I pulled the package in through npm, selected the button module that has the dropdown component, ran gulp build and generated the .js and .css files
But if I try to access these files I get
mysite.dev/semantic/dist/components/dropdown.js 404 (Not Found)
Where am I going wrong?
Cheers

Did you check if the files are really in the right location? In our project with a Semantic UI build from scratch via gulp (see here) they're where you would expect them:
$ ll semantic/dist/components/d*
[...]
-rwxrwxr-x 1 yv yv 33634 Sep 30 14:41 semantic/dist/components/dropdown.css*
-rw-rw-r-- 1 yv yv 133553 Sep 30 14:41 semantic/dist/components/dropdown.js
-rwxrwxr-x 1 yv yv 23689 Sep 30 14:41 semantic/dist/components/dropdown.min.css*
-rw-rw-r-- 1 yv yv 48256 Sep 30 14:41 semantic/dist/components/dropdown.min.js
You can also install the dropdown module separately using an NPM command: npm install semantic-ui-dropdown, see here.

Related

Error when initializing Solr core: Error loading class 'solr.ICUCollationField'

Using Drupal, we've tried to import the configuration files from the solr_api_search module. When importing them and trying to initialize the core, I see the following error (Solr 7.7.2):
Could not load conf for core testcore: Can't load schema /data/solr_data/data/testcore/conf/schema.xml: Plugin init failure for [schema.xml] fieldType \"collated_ar\": Error loading class 'solr.ICUCollationField'
This is what the inside of the solrcore.properties file looks like. I added the solr.install.dir option after some people with similar issues reported that it fixed their problem:
solr.replication.master=false
solr.replication.slave=false
solr.replication.pollInterval=00:00:60
solr.replication.masterUrl=http://localhost:8983/solr
solr.replication.confFiles=schema.xml,schema_extra_types.xml,schema_extra_fields.xml,elevate.xml,stopwords_ar.txt,synonyms_ar.txt,nouns_ar.txt,protwords_ar.txt,accents_ar.txt,stopwords_en.txt,synonyms_en.txt,protwords_en.txt,accents_en.txt,stopwords_fr.txt,synonyms_fr.txt,nouns_fr.txt,protwords_fr.txt,accents_fr.txt,stopwords_de.txt,synonyms_de.txt,nouns_de.txt,protwords_de.txt,accents_de.txt,stopwords_el.txt,synonyms_el.txt,nouns_el.txt,protwords_el.txt,accents_el.txt,stopwords_hi.txt,synonyms_hi.txt,nouns_hi.txt,protwords_hi.txt,accents_hi.txt,stopwords_it.txt,synonyms_it.txt,nouns_it.txt,protwords_it.txt,accents_it.txt,stopwords_und.txt,synonyms_und.txt,protwords_und.txt,accents_und.txt,stopwords_pl.txt,synonyms_pl.txt,nouns_pl.txt,protwords_pl.txt,accents_pl.txt,stopwords_pt-br.txt,synonyms_pt-br.txt,nouns_pt-br.txt,protwords_pt-br.txt,accents_pt-br.txt,stopwords_ru.txt,synonyms_ru.txt,nouns_ru.txt,protwords_ru.txt,accents_ru.txt,stopwords_es.txt,synonyms_es.txt,nouns_es.txt,protwords_es.txt,accents_es.txt,stopwords_tr.txt,synonyms_tr.txt,nouns_tr.txt,protwords_tr.txt,accents_tr.txt
solr.luceneMatchVersion=7.7
solr.install.dir=/opt/solr
This is the process running with ps -ef:
java -server -Xms512m -Xmx512m -XX:NewRatio=3 -XX:SurvivorRatio=4 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=8 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ConcGCThreads=4 -XX:ParallelGCThreads=4 -XX:+CMSScavengeBeforeRemark -XX:PretenureSizeThreshold=64m -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=50 -XX:CMSMaxAbortablePrecleanTime=6000 -XX:+CMSParallelRemarkEnabled -XX:+ParallelRefProcEnabled -verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime -Xloggc:/data/solr_data/logs/solr_gc.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=9 -XX:GCLogFileSize=20M -Dsolr.log.dir=/data/solr_data/logs -Djetty.port=8983 -DSTOP.PORT=7983 -DSTOP.KEY=solrrocks -Duser.timezone=UTC -Djetty.home=/opt/solr/server -Dsolr.solr.home=/data/solr_data/data -Dsolr.data.home= -Dsolr.install.dir=/opt/solr -Dsolr.default.confdir=/opt/solr/server/solr/configsets/_default/conf -Dlog4j.configurationFile=file:/data/solr_data/log4j.properties -Xss256k -Xss256k -Dsolr.jetty.https.port=8983 -Dsolr.log.muteconsole -XX:OnOutOfMemoryError=/opt/solr/bin/oom_solr.sh 8983 /data/solr_data/logs -jar start.jar --module=http
I have the following libraries inside of /opt/solr/contrib/analysis-extras/lib
-rw-r--r--. 1 solr solr 12370975 Jun 20 2018 icu4j-62.1.jar
-rw-r--r--. 1 solr solr 20140 Feb 18 2018 morfologik-fsa-2.1.5.jar
-rw-r--r--. 1 solr solr 1886867 Feb 18 2018 morfologik-polish-2.1.5.jar
-rw-r--r--. 1 solr solr 53644 Feb 18 2018 morfologik-stemming-2.1.5.jar
-rw-r--r--. 1 solr solr 1245779 Jun 29 2018 opennlp-tools-1.9.0.jar
Is there some option that I am missing in order to get Solr to load the .jar files?
SOlr requires different features that require an optional libraries. All of these are comes with Solr. You need to adjust solr.install.dir like already mentioned in file named INSTALL.md
Updating path to solr.install.dir=/opt/solr in solrcore.properties to fix the issue.
Check the jar named as "icu4j-62.1.jar". Check the path of the same is mentioned in solrConfig.xml and check it the lib is getting loaded.

Zabbix not display text on graphs

I'm running zabbix 4 on EC2 Amazon Linux 2 instance. After last update:
May 29 08:06:46 Updated: zabbix-web-mysql-4.0.8-1.el7.noarch
May 29 08:06:46 Updated: zabbix-web-4.0.8-1.el7.noarch
May 29 08:06:46 Updated: zabbix-get-4.0.8-1.el7.x86_64
May 29 08:06:47 Updated: zabbix-server-mysql-4.0.8-1.el7.x86_64
May 29 08:06:47 Updated: zabbix-agent-4.0.8-1.el7.x86_64
All my dashboards graphs lost text description. Even in host configuration, when I click preview in graph there is no text.
Checked on Chrome and Firefox. Tried to recreate dashboard, cleaned browser cache. I googled that it can be issue with fonts. Checked... Still not solved.
screen_of_my_dashboard
screen_of_graph_preview
Resolved on my 4.2.2.
verify permissions for '/usr/share/zabbix/assets', if not 'www-data:www:data'
chown www-data:www-data assets/
If the file does not exist (/usr/share/zabbix/fonts/graphfont.ttf):
cd assets/fonts/
Copy the file graphfont.ttf to /usr/share/zabbix/assets/fonts/: (source: https://support.zabbix.com/browse/ZBX-16182)
cp /usr/share/zabbix/fonts/graphfont.ttf /usr/share/zabbix/assets/fonts/
Or link the file:
ln -s /usr/share/zabbix/fonts/graphfont.ttf /usr/share/zabbix/assets/fonts/
by, Bruno Dolastro - Br4zil

Cannot publish asp.net core/angular project. Can't resolve app.server.module.ngfactory?

Used the VS2017 angular template and created an app. Then tried to publish it. I also upgraded to Angular 5.
Any idea with this error about ngfactory is about ???
ERROR in ./ClientApp/boot.server.ts
Module not found : error : Can't resolve './../$$_gendir/ClientApp/app/app.server.module.ngfacto
ry' in 'C:\Users\Matt_Herb\downloads\ibewsurveytemp\ibewsurveytemp\ClientApp' [C:\Users\Matt_Her
b\downloads\ibewsurveytemp\ibewsurveytemp\IbewSurveyTemp.csproj]
# ./ClientApp/boot.server.ts 8:0-94
EXEC : ERROR in error : Please update #angular/cli. Angular 5+ requires at least Angular CLI 1.5
+ [C:\Users\Matt_Herb\downloads\ibewsurveytemp\ibewsurveytemp\IbewSurveyTemp.csproj]
at throwNotSupportedError (C:\Users\Matt_Herb\downloads\ibewsurveytemp\ibewsurveytemp\
packages\compiler-cli\src\ngtools_api.ts:132:9)
at Function.NgTools_InternalApi_NG_2.codeGen (C:\Users\Matt_Herb\downloads\ibewsurveyt
emp\ibewsurveytemp\packages\compiler-cli\src\ngtools_api.ts:80:11)
at _donePromise.Promise.resolve.then (C:\Users\Matt_Herb\downloads\ibewsurveytemp\ibew
surveytemp\node_modules\#ngtools\webpack\src\plugin.js:430:58)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
at Function.Module.runMain (module.js:684:11)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:613:3
C:\Users\Matt_Herb\downloads\ibewsurveytemp\ibewsurveytemp\IbewSurveyTemp.csproj(48,5): error MS
B3073: The command "node node_modules/webpack/bin/webpack.js --env.prod" exited with code 2.
ok ... it looks like a problem with your dependencies and so on ..try this:
1 - update your angular cli with : npm install -g #angular/cli
2 - delete your node_modules in your project (maybe with rimraf)
3 - delete your package-lock.json file (if you've one)
4 - try to run in a different folder ng new testProject --skip-install=true (so it generate WITHOUT install packages a new angular project ..)
5 - go in that project and copy the #angular and other dependencies in package.json file and paste in your project .. save the updated package.json
file of your project
6 - run a npm install --f in your project
7 - try to run a ng serve .. and check if the project load
Hope it helps you
Angular 5 needs to use a different compiler plugin to Angular 4,
Try search/replace 'AotPlugin' with 'AngularCompilerPlugin' in webpack.config.js
see: https://www.npmjs.com/package/#ngtools/webpack
The next problem I ran into was that test files fail to compile when publishing,
The 'exclude' properties on webpack rules and on AngularCompilerPlugin constructor do not seem to work, so I've resorted to excluding these in tsconfig.json:
"exclude": [ "bin", "node_modules", "**/*.spec.ts" ],

symfony2 rebuild bundles shortcuts?

I've moved a symfony2 script from website to another one on another server
when i type ls -l to check the bundles dir and shortcut its show deferent domain name
this is example
lrwxr-xr-x 1 Jack staff 61 Feb 3 2013 cmsadmin -> /var/www/mywebsite.com/src/CMS/AdminBundle/Resources/public
lrwxr-xr-x 1 Jack staff 61 Feb 3 2013 cmsfront -> /var/www/mywebsite.com/src/CMS/FrontBundle/Resources/public
lrwxr-xr-x 1 Jack staff 64 Feb 3 2013 cmssecurity -> /var/www/mywebsite.com/src/CMS/SecurityBundle/Resources/public
how i can re-write this bundles to match the new domain name or new path's ?
for example
old domain : mywebsite.com
new domain : anotherweb.com
this bundles still has the old domain shortcuts ! any advice ?
Finally found it after spending 12 hours making research about this
1- delete this folder web/bundles .
2- execute this command app/console assets:install web
you will see something like this
Installing assets for Symfony\Bundle\FrameworkBundle into web/bundles/framework
Installing assets for CMS\AdminBundle into web/bundles/cmsadmin
Installing assets for CMS\SecurityBundle into web/bundles/cmssecurity
Installing assets for Coddict\NewsBundle into web/bundles/coddictnews
Installing assets for Coddict\ContactBundle into web/bundles/coddictcontact
Installing assets for Coddict\SliderBundle into web/bundles/coddictslider
Installing assets for Coddict\MediaBundle into web/bundles/coddictmedia
Installing assets for FOS\JsRoutingBundle into web/bundles/fosjsrouting
Installing assets for CMS\FrontBundle into web/bundles/cmsfront
Installing assets for Coddict\NewsletterBundle into web/bundles/coddictnewsletter
Installing assets for Symfony\Bundle\WebProfilerBundle into web/bundles/webprofiler
Installing assets for Sensio\Bundle\DistributionBundle into web/bundles/sensiodistribution
now you done .... new bundles created
and if you face timezone error with red message just add this code inside §AppKernel.php§ write:
public function init() {
date_default_timezone_set( 'Europe/Lisbon' );
parent::init();
}

hubot doesn't load my hubot-scripts configuration

I've set up a hubot server, version 2.7.1. Here's the dependencies section of my package.json:
"dependencies": {
"hubot": ">= 2.6.0 < 3.0.0",
"hubot-scripts": ">= 2.5.0 < 3.0.0",
"hubot-hipchat": "~2.6.4"
},
When it starts, it loads the scripts in scripts/ but seems to ignore the collection I've put in hubot-scripts.json. Here's the first part of that file:
["shipit.coffee", "sudo", "9gag", "abstract"
With verbose startup logs, you can see that shipit.coffee is included (one of the defaults), but none of the rest are:
[Tue Feb 25 2014 10:59:46 GMT-0800 (PST)] DEBUG Loading hubot-scripts from /path/node_modules/hubot-scripts/src/scripts
[Tue Feb 25 2014 10:59:46 GMT-0800 (PST)] DEBUG Parsing help for /path/node_modules/hubot-scripts/src/scripts/shipit.coffee
[Tue Feb 25 2014 10:59:46 GMT-0800 (PST)] DEBUG Loading external-scripts from npm packages
There are about 460 files in the node_modules/hubot-scripts/src/scripts/ directory, and it includes the four given in my hubot-scripts.json file. All I can assume is that it isn't reading that file.. or something.
This documentation diff makes me think I haven't missed something, there's an old issue that was patched eons ago too.
Try adding .coffee extension to all your script names in hubot-scripts.json:
["shipit.coffee", "sudo.coffee", "9gag.coffee", "abstract.coffee"

Resources