installing the foundation icon fonts into laravel - laravel-4

I am trying to figure out how to install all the foundation icon sets into my laravel app
the documentation is pretty unclear imo
my folder structure right now before trying to add any of the icon fonts is this.
www
-app
--assets
---img
---js
---sass
----foundation
-----components
-----_functions.scss
-----_settings.scss
-----app.scss
-----foundation.scss
-----normalize.scss
-public
--css
---foundation
---app.css
---foundation.css
---jquery-ui.css
---normalize.css
--img
--js
The icon sets to be added are foundation_icons_accessibility, foundation_icons_general, foundation_icons_general_enclosed and foundation_icons_social
Can someone tell me were each component for each font goes?

Icon fonts such as "Foundation Icons" and "Font Awesome" are front end assets. This means they are related to the UI of your application and not the core logic or "back-end".
Simply create a new folder called "fonts" under your public directory and place all your font files in there. Be sure to change the references in your CSS files to accommodate this change in the font file location.
www
-app
--assets
---img
---js
---sass
----foundation
-----components
-----_functions.scss
-----_settings.scss
-----app.scss
-----foundation.scss
-----normalize.scss
-public
--css
---foundation
---app.css
---foundation.css
---jquery-ui.css
---normalize.css
---foundation-icons.css
--fonts
---foundation-icons.ttf
---foundation-icons.woff
---foundation-icons.svg
---foundation-icons.eot
--img
--js

Related

module files not downloading for themes

I want to change my site using Hugo. I get stuck with modules. As per documentation (e.g. this theme) I just add theme = "github.com/nodejh/hugo-theme-mini" to the config file. It fails like this:
WARN ... found no layout file for "HTML" for kind "term": You should ...
if I perform hugo mod vendor the directory structure of the theme seems created in the _vendor dir, but there is not a single file inside. which explains the "not found" error in my eyes.
nothing (!) is rendered.
I also have this effect with a couple of other themes (I thinknoteworthy being one of them).
Set up a clean project
hugo new site testModules
cd testModules
and enable Hugo modules
hugo mod init randomName`
Paste the following lines in config.toml:
baseURL = "http://example.org/"
title = "Hugo Modules Test"
[module]
[[module.imports]]
path = "github.com/nodejh/hugo-theme-mini"
Start Hugo
hugo serve -D
Done!
The content of github.com/nodejh/hugo-theme-mini" will be downloaded and used as theme.
See the theme's documentation to add content
Optional:
hugo mod vendor
will make the content of the remote repo available in the _vendor folder.
(Surprisingly the content of exampleSite was not downloaded during the quick test I made)

my laravel php desktop application doesn't work after creating installer with inno installer

I have converted this php application into a windows application using php desktop.
I have converted mysql db to sqlite and it works fine.
However, after creating its setup using inno installer, the app returns a blank page and I cannot understand the message returned by the debug console(I have attached a screenshot).
debug-console
I have figured out that I had to change some web_server settings in the settings.json file in my installer path so that they look like this
"web_server": {
"listen_on": ["127.0.0.1", 0],
"www_directory": "/public",
"index_files": ["index.html", "index.php"],
"cgi_interpreter": "/php-cgi.exe",
"cgi_extensions": ["php"],
"cgi_temp_dir": "",
"404_handler": "/public/index.php",
"hide_files": []
},
(remove the www from the paths).
This is because after compiling the project files and folders using inno installer, the www folder is no longer there.
Thanks #Czarek and #Martin for answering my question.

Error when importing a 6.2 theme from its plugin sdk to themegenerator

I created a new folder test and navigated to the folder via command prompt.Ran Command yo liferay-theme:import.Then I get a question "What theme would you like to import".I give the path of theme in 6.2 plugins sdk.I get error meassage theme doesnot exist when clearly it exists in the path i give

Windows 10 PhpStorm 2016.2.1 can't install new theme [duplicate]

I'm student and I got the free latest version of PhpStorm 9 (build PS-141.1912). I tried to add a theme and color scheme to PhpStorm so I put my theme (.icls file) in the C:\Users\me\.WebIde90\colors folder:
(source: noelshack.com)
Then I restarted PhpStorm, but I can't see my theme:
(source: noelshack.com)
In PhpStorm 2016.1 it will be ~\.PhpStorm2016.1\config\colors (where ~ is your user home folder - typically C:\Users\USERNAME).
Based on your screenshot and your info, you have placed them in ~\.WebIde90\colors while it should be ~\.WebIde90\config\colors (where ~ is your user home folder -- typically C:\Users\USERNAME).
In general:
A file with Color Schema (*.icls) should be put into appropriate folder and then IDE should be restarted if it was running by that time (as such stuff gets checked only on launch).
Windows: C:\Users\USERNAME\.IDE_FOLDER\config\colors
Linux: ~/.IDE_FOLDER/config/colors
Mac: ~/Library/Preferences/IDE_FOLDER/colors
Where IDE_FOLDER is the <ProductName><Version> -- e.g. PhpStorm2016.2 for the latest stable version of PhpStorm (2016.2.2).
More info on folders: https://intellij-support.jetbrains.com/hc/en-us/articles/206544519-Directories-used-by-the-IDE-to-store-settings-caches-plugins-and-logs
P.S.
If Color Schema comes as *.jar file then use File | Import Setting...
Please also note that these editor themes are for syntax highlighting mainly and can be changed at Settings/Preferences | Editor | Colors & Fonts.
This has nothing to do with GUI Theme (also known as LAF -- Look and Feel -- styling the actual GUI elements) which is a separate thing and available at Settings/Preferences | Appearance & Behavior | Appearance.
P.S.
Instead of going into Settings/Preferences .. you can use View | Quick Switch Scheme... to quickly change between various schemas (colors/keymaps/code styles/etc.)

How to get a .exe packaged Ruby Shoes app to reference resources outside the package?

I'm trying to make a standalone .exe packaged Ruby Shoes app that uses images dynamically, meaning whichever images is found in the folder of the .exe file.
Shoes.app() {
background "bg.jpg"
}
This code works if the image is in the same folder when the .exe is packaged, and the image seems to be packaged into the .exe since it's not needed in the same folder as the .exe for it to display when running the exe. But when you want it to load the file in the same folder as the .exe, packaging the app without the image, it does not show. I've tried different ways at finding absolute path to the current directory where the .exe is launched from, but they all seem to point to some temporary directory under AppData and not where the .exe file is located.
Edit: my first answer was incomplete. Windows is a little odd in Shoes for packaged apps. Write a little test script.
Shoes.app do
stack do
para "DIR: #{DIR}"
para "LIB_DIR: #{LIB_DIR}"
cdir = Dir.getwd
para "CWD: #{cdir}"
end
end
Dir.getwd is probably what you want.
Calling pwd should get you what you want
Nope, Ok sorry get it now !:-)
Shoes is opening your exe/shy into AppData/temp so working directory and __FILE__ both point there !
Someone, some time ago proposed this : Trying to access the "current dir" in a packaged Shoes app
must be a better way !
EDIT:
you probably want custom packager (check "i want advanced install options")
check "Expand shy in users directory"
Do as you done for regular packaging.
Now when launching the exe, it will ask you( or the user) to choose where to install your app, proceed, note the directory.
Now before launching the installed app feed the noted directory with your resources and you should be ok
Some references : https://github.com/Shoes3/shoes3/wiki/Custom-Install-Scripts
(there's a lot more to it)
https://github.com/Shoes3/shoes3/issues/247#issuecomment-213919829

Resources