I would like to share a script I found quite useful, it’s very basic bash scripting but it still can help the unexperienced ones.
First create a import.sh script
Add the following content to the script:
if [ "$db" = "" ]; then
echo "Usage: $0 db_name user password"
for sql_file in *.sql; do
echo "Importing $sql_file";
mysql --user=$user --password=$passwd $db < $sql_file;
Run the script with the following terminal command:
The script will simply run sequentially all the imports you dumped beforehand.
PS: If you get some Foreign Key errors, you can disable them changing the “for” cycle mysql command with the following: echo "SET FOREIGN_KEY_CHECKS=0" | mysql --user=$user --password=$passwd $db < $sql_file
onWheel synthetic event returns an event object having an attribute named nativeEvent containing the original event information. wheelDelta is used to detect the direction even if there is no effective scroll (overflow:hidden).
The error is talkative, it tells that the script can’t create a folder in `/` system root folder. Of course it’s supposed to create those report folders starting from a relative path. To enable it you should add the following option in your webpack.config.js file under the group output.
I am developing a component based angular 1.5+ application. Since I am using Webpack to build, I want to make full of use of it and I want to load asynchronously translations files split in chuncks.
In order to make chuncks out of your code, you should can System.import dynamic import syntax (details). If you are not familiar with this concept I suggest you to read the documentation about code splitting.
Moreover I want to use angular-translate which normally works with static assets served locally or via url.
How can I tell angular-translate to load my assets via import?
This error is thrown when the access key and secret access key were not recognized because they were deleted or marked inactive. It could also be a copy and paste error when creating credentials file. If you are on Ubuntu also try to run your command with sudo.