From a5b2470bc6b0c1593f0bb5e75e9ec606294968a2 Mon Sep 17 00:00:00 2001 From: Agustin Amenabar L Date: Mon, 7 May 2018 15:33:12 -0700 Subject: [PATCH 01/27] Revived the blog. Added http to https redirection and changed the http only urls for HTTPS --- .htaccess | 18 +++++++++++++----- css/styles.css | 2 +- home.php | 2 +- sass/styles.scss | 2 +- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.htaccess b/.htaccess index 74d303b..f7ee736 100644 --- a/.htaccess +++ b/.htaccess @@ -355,11 +355,11 @@ FileETag None # Option 1: # Rewrite "www.example.com -> example.com" - - RewriteCond %{HTTPS} !=on - RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] - RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L] - +# +# RewriteCond %{HTTPS} !=on +# RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] +# RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L] +# # ---------------------------------------------------------------------- @@ -374,7 +374,15 @@ FileETag None # RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] # +# Add HTTPS to HTTP requests + +RewriteEngine On +RewriteCond %{ENV:HTTPS} off +RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] +RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] +RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L] + # ---------------------------------------------------------------------- # Built-in filename-based cache busting diff --git a/css/styles.css b/css/styles.css index 5120e6a..c7a5dba 100644 --- a/css/styles.css +++ b/css/styles.css @@ -1,5 +1,5 @@ @charset "UTF-8"; -@import url("http://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700,700italic"); +/*@import url("https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700,700italic");*/ /* ============================================================================= HTML5 Boilerplate CSS: h5bp.com/css ========================================================================== */ diff --git a/home.php b/home.php index 360cf92..e9216ce 100644 --- a/home.php +++ b/home.php @@ -72,7 +72,7 @@ - + - + comments powered by Disqus @@ -100,7 +100,7 @@ - + diff --git a/articulos/Getting-file-md5-checksums-in-different-OSs.textile b/articulos/Getting-file-md5-checksums-in-different-OSs.textile index a6ab32c..2d7dcbd 100644 --- a/articulos/Getting-file-md5-checksums-in-different-OSs.textile +++ b/articulos/Getting-file-md5-checksums-in-different-OSs.textile @@ -1,7 +1,6 @@ title:Getting file md5 checksums in different OSs -subtitle: +subtitle:Generating md5 file checksums vary from one OS to another, and because I like developing in varying environments, I need solid equivalences. classes: language-markup -draft:true pubDate:2017-05-08T08:14:05-02:00 @@ -9,23 +8,90 @@ pubDate:2017-05-08T08:14:05-02:00 h1. Getting file md5 checksums in different OSs -h2. Subtitle +h2. Generating md5 file checksums vary from one OS to another, and because I like developing in varying environments, I need solid equivalences. -p(intro). This is the intro that will be lloked up for the lead text of an article. +p(intro). For cache breaking I like to use MD5 hashes of files. At the Westwing magazine we had some javascript bundles that we change very seldomly, so a timestamp on each build is too aggressive cache break. We also use file checksums for font bundles. -h2(#ac2). __[fr]Mise en place__, first subtitle +For this we have a bash script that will create the hash from the bundled files, so, if nothing has changes, we avoid unnecessary requests to our users. -Here goes some text with a "link to this header":#ac2 followed by an image +We used to have the projects inside Vagrant Boxes, so all scripts run in linux environment, no problem. But as we moved to Docker (we love it) and we do frontend development directly on our machines, some things changed. For instance the md5sum function, in mac OSX it's called just md5 and the output is slightly different. Because of the output an alias for md5sum will not work. -!img/content/file-structure-postcss-guide.png(This will be the alt text)! +bc(language-sh). # Linux +md5sum Gruntfile.js +7593278019c7726f7271904cd7dda73a Gruntfile.js +# mac OSX +bc. md5sum Gruntfile.js +MD5 (Gruntfile.js) = 7593278019c7726f7271904cd7dda73a +# win 10 with Cmder +md5sum Gruntfile.js +7593278019c7726f7271904cd7dda73a *Gruntfile.js -After the image, some code: -bc(language-javascript). var someObject = { - part:true, - follow: "false" -}; +To deal with this we need 3 things: +1. Check the OS is mac +2. Filter out the hash from the output +3. Store on a variable -And another paragraph +To figure out which system the script is running into we can use @uname@, and with that we can choose syntax. For detecting OS I found the "following script in Stack Overflow":http://stackoverflow.com/questions/3466166/how-to-check-if-running-in-cygwin-mac-or-linux#answer-17072017 + +bc.. #!/usr/bin/env bash +ENVIRONMENT = "unknown" +if [ "$(uname)" == "Darwin" ]; then + # Do something under Mac OS X platform + ENVIRONMENT = "mac" +elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then + # Do something under GNU/Linux platform + ENVIRONMENT = "linux" +elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then + # Do something under Windows NT platform + ENVIRONMENT = "win" +fi + +p. To get the hash we can use regex with @sed@, or even simpler, we use @cut@, which is a little like @String.prototype.split()@ in JS or @explode()@ in PHP, it. The main important difference, is the delimiter is only one byte character (ASCII only) and it returns a list of fields, not an array, but you can access it's elements with -f using 1 based index. It is not an array but for this it helps to see it that way. + +To get just @md5sum@ we pipe (@ | @) the output to @cut@ , split on a space character and get the first field. + +bc. md5sum Gruntfile.js | cut -d ' ' -f 1 + +to store this in a var we to do a "Command Substitution":https://www.gnu.org/software/bash/manual/bashref.html#Command-Substitution so the output can be stored on a variable. + +bc. GRUNTHASH=$( md5sum Gruntfile.js | cut -d ' ' -f 1 ) + +Will output: @7593278019c7726f7271904cd7dda73a@ + +h2. Storing the hash + +Finally we can store it to a file as a constant. + +bc. echo "" > app/path/hashes.php; + +h2. Putting it all together + +We can build a simple function for hashing. + +bc.. #!/bin/bash + +get_md5_checksum () { + if [ "$(uname)" == "Darwin" ]; then + THEHASH=($(md5 $1 | cut -d= -f2 | cut -d " " -f2)) + else + THEHASH=($(md5sum $1 | cut -d ' ' -f 1)) + fi +} + +get_md5_checksum Gruntfile.js +echo $THEHASH + +p. This will output the hash of the file either on mac, or linux. + +h2. Epilogue + +This seemingly simple task taught me a whole bunch of things about bash and bash scripts. I feel way more powerful now with this new set of tools. + +h3. How to md5 a file in PowerShell ? + +bc. Get-FileHash -Algorithm MD5 + +Yeah, you can add that to the mix, if you are up to the task. diff --git a/config.rb b/config.rb deleted file mode 100644 index 75dd9fe..0000000 --- a/config.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Require any additional compass plugins here. - -# Set this to the root of your project when deployed: -http_path = "/" -css_dir = "./css" -sass_dir = "./sass" -images_dir = "./img" -javascripts_dir = "./js" - -output_style = :expanded -# output_style = :compressed - -# You can select your preferred output style here (can be overridden via the command line): -# output_style = :expanded or :nested or :compact or :compressed - -# To enable relative paths to assets via compass helper functions. Uncomment: -# relative_assets = true - -# To disable debugging comments that display the original location of your selectors. Uncomment: -# line_comments = false - - -# If you prefer the indented syntax, you might want to regenerate this -# project again passing --syntax sass, or you can uncomment this: -# preferred_syntax = :sass -# and then run: -# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass diff --git a/home.php b/home.php index e9216ce..d99cb63 100644 --- a/home.php +++ b/home.php @@ -26,16 +26,6 @@ - -
- - -p(intro). This is the intro that will be lloked up for the lead text of an article. - -h2(#ac2). __[fr]Mise en place__, first subtitle - -Here goes some text with a "link to this header":#ac2 followed by an image - -!img/content/file-structure-postcss-guide.png(This will be the alt text)! - -After the image, some code: - -bc(language-javascript). var someObject = { - part:true, - follow: "false" -}; - -And another paragraph From f42a6cb262bb4f8ca394f49eb8583464b95b3523 Mon Sep 17 00:00:00 2001 From: "B. Agustin Amenabar L" Date: Sat, 12 May 2018 16:22:04 +0200 Subject: [PATCH 10/27] changed the markdown version of an article to draft, and re-made it in textile. --- ...-Windows-Linux-Subsystem-with-oh-my-zsh.md | 2 + ...ows-Linux-Subsystem-with-oh-my-zsh.textile | 214 ++++++++++++++++++ 2 files changed, 216 insertions(+) create mode 100644 articulos/Quick-development-setup-for-Windows-Linux-Subsystem-with-oh-my-zsh.textile diff --git a/articulos/Quick-development-setup-for-Windows-Linux-Subsystem-with-oh-my-zsh.md b/articulos/Quick-development-setup-for-Windows-Linux-Subsystem-with-oh-my-zsh.md index a118402..f7d05e1 100644 --- a/articulos/Quick-development-setup-for-Windows-Linux-Subsystem-with-oh-my-zsh.md +++ b/articulos/Quick-development-setup-for-Windows-Linux-Subsystem-with-oh-my-zsh.md @@ -2,6 +2,8 @@ title:Quick development setup for Windows Linux Subsystem with oh-my-zsh subtitle:How to set up a Windows 10 development environment for web apps with a capable, friendly terminal and nodejs. classes: language-markup pubDate:2018-03-18T21:18:17-01:00 +draft:true +markdown:true # Quick development setup for Windows Linux Subsystem with oh-my-zsh diff --git a/articulos/Quick-development-setup-for-Windows-Linux-Subsystem-with-oh-my-zsh.textile b/articulos/Quick-development-setup-for-Windows-Linux-Subsystem-with-oh-my-zsh.textile new file mode 100644 index 0000000..0f305d5 --- /dev/null +++ b/articulos/Quick-development-setup-for-Windows-Linux-Subsystem-with-oh-my-zsh.textile @@ -0,0 +1,214 @@ +title:Quick development setup for Windows Linux Subsystem with oh-my-zsh +subtitle:How to set up a Windows 10 development environment for web apps with a capable, friendly terminal and nodejs. +classes: language-markup +pubDate:2018-03-18T21:18:17-01:00 + + +h1. Quick development setup for Windows Linux Subsystem with oh-my-zsh + +p(intro). After 3 years working on a mac and a Windows machines separately (mostly on the mac). I recently fully switched to Windows and found myself with a few days to setup my development environment. + +The time has come, where Windows 10 software ecosystem has reached a point where I can setup my development environment and claim the following: + +h3. I like my dev environment more on windows than on the mac. + +Now on how to set up a Windows 10 development environment for web apps with a capable, friendly terminal (I really liked iTerm2 on mac). + +h2. Overview of the steps + +* Update windows +* Activate the Window Linus Subsystem +* Install Sublime (or any editor you like) +* Install chocolatey +* Install cmder and git +* Install Ubuntu +* Install pull your dotfiles +* Install zsh and oh-my-zsh +* Install the themes and colorschemes +* Generate your ssh keys, and add them to your windows. +* Install nvm + +h2. 1. Update your windows to the latest version + +I will not explain that + +h2. 2. Activate the Window Linuxs Subsystem + +First Open PowerShell ISE (as Administrator), which is quite nice I might say, it reconizes stuff like `pwd` or `ls` and has an interesting command completion. + +Then activate the Window Linux Subsystem (WSL) from the terminal with the follwing command. +bc(language-sh). +Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux + +You will be prompted to restart your machine. +I learnt that the term "elevated prompt" or "elevated something" is refered to a program running as an Administrator (right click-> run as Administrator). + +h2. 3. Install Cocolatey + +It's like Brew, but for windows, and just like brew, it does not solve all, but it works for a lot of stuff. +Go to https://chocolatey.org/install and follow the instructions. +Close and re-open your PowerShell (As admin). +Run the following command to allow chocolatey to make a confirmation prompt when installing stuff. + +bc(language-sh). +choco feature enable -n allowGlobalConfirmation + + +h2. 4. Install cmder + +Cmder is a very nice, fast and complete terminal for windows, from which you can spin pretty much any command line available in windows. + +From an "elevated command shell" (running as admin), use chocolatey to get cmder + git version. Instructions are at: http://cmder.net/ but basically just run the following from your powerShell: + +bc(language-sh). +choco install cmder + + +This will also install git for you. Open cmder by searching it in the windows menu, or by closing and opening your terminal and running `cmder` and check how is it working for you. + +h2. Install Ubuntu fom the windows store + +Simple as that, search for Ubuntu in the Windows store and install it. + +Open the bash terminal to your Ubuntu. It will make a bunch of updates the first time, then setup your user and password. + +Before anything else run @sudo apt-get update@. + +h2. Tangent: Open files with Sublime Text directly from the terminal + +Either you are awesome at nano or vim from the box, or you will want to open files with your editor of choice from the command line. To do that, with Sublime, you have to add Sublime Text to your Path. + +* Hit @WIN@ + @R@, type @SystemPropertiesAdvanced@ and hit Enter. +* Select the button **Environment variables**. +* Select @path@ in the list from the top and push the **Edit** button. +* Click **Add**, then click **Browse**... +* Navigate where your Sublime Text is installed, the path added should look similar to this: `C:\Program Files\Sublime Text 3` + +Now on any console you can use @subl some-file.js@ and sublime will open it. + +h2. Add your dotfiles + +Since we probably have not yet generated any ssh keys, we just need to pull the repo via `https` (without authentication). + +To test that everything is running smoothly, close all conseles, then open cmder, then type `bash`, enter, then the console would be bash inside the WSL. + +bc(language-sh). +mkdir projects +cd projects +git clone https://github.com/baamenabar/dotfiles.git + +This will create the folderl and pull the files in both linux and windows, since windows folder is "mounted". + +bc. +vim .gitconfig + +We edit the .gitconfig to our pleasing then we copy it to the user's folder. + +bc. +cp .gitconfig ~/.gitconfig + +Then we logout (@ctrl@ + @d@) and we can use the same config in the windows environment, using the same command. Then we check the config. + +bc. +cp .gitconfig ~/.gitconfig +git config -l --show-origin + + +The other files you can add in a simmilar way, but first, let's add zsh and oh-my-zsh extensions. + +h2. Installing zsh and oh-my-zsh + +Pretty straightforward, just follow any tutorial on the web that does this on linux. + +The only catch is to make it the default loaded shell and not bash, we only need to add the following inside the `~/.bashrc` file. + +bc. +# Launch Zsh +if [ -t 1 ]; then +exec zsh +fi + +Next time we start bash, it will actually be zsh (all credit to [Daniel Godigna](https://medium.com/@danielgodigna/how-to-install-zsh-oh-my-zsh-and-themes-in-ubuntu-on-windows-933489b6d6e0) for his article on Medium). + +Now for oh-my-zsh + +bc. +sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" + +h2. Install the themes and colorschemes + +Install the Menlo for Powerline Font in your windows machine https://github.com/abertsch/Menlo-for-Powerline (It gives you awesome icons and a nice look for the _agnoster_ theme). + +Now config zsh to your taste @vim ~/.zshrc@ I like adding a couple of aliases and small configs. + +bc.. +# show dots while searching auto complete +COMPLETION_WAITING_DOTS="true" + +# hide user from the prompt +DEFAULT_USER=`whoami` + +# personal preferences +# Super powerful customized ls alias +alias ll="ls -lhpA --time-style='+%Y-%m-%d %H:%M:%S' --group-directories-first" + +p. Save and log out of zsh. You can now add the @ll@ alias to cmder in windows itself. Just run the following without the ticks, it will be persisted in the config. + +bc. +alias ll=ls -lhpA --time-style="+%Y-%m-%d %H:%M:%S" --group-directories-first + +Now just add the ConEmu.xml coloschemes to the coloscheme section in the @ Date: Sat, 12 May 2018 16:25:07 +0200 Subject: [PATCH 11/27] Added missing line for code block --- ...-setup-for-Windows-Linux-Subsystem-with-oh-my-zsh.textile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/articulos/Quick-development-setup-for-Windows-Linux-Subsystem-with-oh-my-zsh.textile b/articulos/Quick-development-setup-for-Windows-Linux-Subsystem-with-oh-my-zsh.textile index 0f305d5..3dc64e2 100644 --- a/articulos/Quick-development-setup-for-Windows-Linux-Subsystem-with-oh-my-zsh.textile +++ b/articulos/Quick-development-setup-for-Windows-Linux-Subsystem-with-oh-my-zsh.textile @@ -34,10 +34,11 @@ I will not explain that h2. 2. Activate the Window Linuxs Subsystem -First Open PowerShell ISE (as Administrator), which is quite nice I might say, it reconizes stuff like `pwd` or `ls` and has an interesting command completion. +First Open PowerShell ISE (as Administrator), which is quite nice I might say, it reconizes stuff like @pwd@ or @ls@ and has an interesting command completion. Then activate the Window Linux Subsystem (WSL) from the terminal with the follwing command. -bc(language-sh). + +bc(language-sh). Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux You will be prompted to restart your machine. From eda7d21a90c539828aadf0f0b9c91b74cade0021 Mon Sep 17 00:00:00 2001 From: "B. Agustin Amenabar L" Date: Sat, 12 May 2018 16:29:18 +0200 Subject: [PATCH 12/27] Fixin more textile code formatting. --- ...ows-Linux-Subsystem-with-oh-my-zsh.textile | 22 ++++++++----------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/articulos/Quick-development-setup-for-Windows-Linux-Subsystem-with-oh-my-zsh.textile b/articulos/Quick-development-setup-for-Windows-Linux-Subsystem-with-oh-my-zsh.textile index 3dc64e2..878f230 100644 --- a/articulos/Quick-development-setup-for-Windows-Linux-Subsystem-with-oh-my-zsh.textile +++ b/articulos/Quick-development-setup-for-Windows-Linux-Subsystem-with-oh-my-zsh.textile @@ -51,7 +51,7 @@ Go to https://chocolatey.org/install and follow the instructions. Close and re-open your PowerShell (As admin). Run the following command to allow chocolatey to make a confirmation prompt when installing stuff. -bc(language-sh). +bc(language-sh). choco feature enable -n allowGlobalConfirmation @@ -61,7 +61,7 @@ Cmder is a very nice, fast and complete terminal for windows, from which you can From an "elevated command shell" (running as admin), use chocolatey to get cmder + git version. Instructions are at: http://cmder.net/ but basically just run the following from your powerShell: -bc(language-sh). +bc(language-sh). choco install cmder @@ -83,7 +83,7 @@ Either you are awesome at nano or vim from the box, or you will want to open fil * Select the button **Environment variables**. * Select @path@ in the list from the top and push the **Edit** button. * Click **Add**, then click **Browse**... -* Navigate where your Sublime Text is installed, the path added should look similar to this: `C:\Program Files\Sublime Text 3` +* Navigate where your Sublime Text is installed, the path added should look similar to this: @C:\Program Files\Sublime Text 3@ Now on any console you can use @subl some-file.js@ and sublime will open it. @@ -93,25 +93,22 @@ Since we probably have not yet generated any ssh keys, we just need to pull the To test that everything is running smoothly, close all conseles, then open cmder, then type `bash`, enter, then the console would be bash inside the WSL. -bc(language-sh). +bc(language-sh). mkdir projects cd projects git clone https://github.com/baamenabar/dotfiles.git This will create the folderl and pull the files in both linux and windows, since windows folder is "mounted". -bc. -vim .gitconfig +bc. vim .gitconfig We edit the .gitconfig to our pleasing then we copy it to the user's folder. -bc. -cp .gitconfig ~/.gitconfig +bc. cp .gitconfig ~/.gitconfig Then we logout (@ctrl@ + @d@) and we can use the same config in the windows environment, using the same command. Then we check the config. -bc. -cp .gitconfig ~/.gitconfig +bc. cp .gitconfig ~/.gitconfig git config -l --show-origin @@ -121,10 +118,9 @@ h2. Installing zsh and oh-my-zsh Pretty straightforward, just follow any tutorial on the web that does this on linux. -The only catch is to make it the default loaded shell and not bash, we only need to add the following inside the `~/.bashrc` file. +The only catch is to make it the default loaded shell and not bash, we only need to add the following inside the @~/.bashrc@ file. -bc. -# Launch Zsh +bc. # Launch Zsh if [ -t 1 ]; then exec zsh fi From b52861dbbc8c76f76c9eeaa17cc5c49338f3cbbc Mon Sep 17 00:00:00 2001 From: "B. Agustin Amenabar L" Date: Sat, 12 May 2018 16:32:24 +0200 Subject: [PATCH 13/27] Fixin more textile code formatting. f2 --- ...ows-Linux-Subsystem-with-oh-my-zsh.textile | 27 +++++++------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/articulos/Quick-development-setup-for-Windows-Linux-Subsystem-with-oh-my-zsh.textile b/articulos/Quick-development-setup-for-Windows-Linux-Subsystem-with-oh-my-zsh.textile index 878f230..da1e925 100644 --- a/articulos/Quick-development-setup-for-Windows-Linux-Subsystem-with-oh-my-zsh.textile +++ b/articulos/Quick-development-setup-for-Windows-Linux-Subsystem-with-oh-my-zsh.textile @@ -17,7 +17,7 @@ Now on how to set up a Windows 10 development environment for web apps with a ca h2. Overview of the steps * Update windows -* Activate the Window Linus Subsystem +* Activate the Window Linux Subsystem * Install Sublime (or any editor you like) * Install chocolatey * Install cmder and git @@ -129,8 +129,7 @@ Next time we start bash, it will actually be zsh (all credit to [Daniel Godigna] Now for oh-my-zsh -bc. -sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" +bc. sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" h2. Install the themes and colorschemes @@ -151,8 +150,7 @@ alias ll="ls -lhpA --time-style='+%Y-%m-%d %H:%M:%S' --group-directories-first" p. Save and log out of zsh. You can now add the @ll@ alias to cmder in windows itself. Just run the following without the ticks, it will be persisted in the config. -bc. -alias ll=ls -lhpA --time-style="+%Y-%m-%d %H:%M:%S" --group-directories-first +bc. alias ll=ls -lhpA --time-style="+%Y-%m-%d %H:%M:%S" --group-directories-first Now just add the ConEmu.xml coloschemes to the coloscheme section in the @ Date: Sat, 12 May 2018 23:03:49 +0200 Subject: [PATCH 14/27] Added 2 missing articles to the blog. --- articulos/SVG-basic-markup-and-syntax.textile | 33 +++++++++---------- ...throws-network-error-on-Windows-10.textile | 32 +++++++++--------- 2 files changed, 31 insertions(+), 34 deletions(-) diff --git a/articulos/SVG-basic-markup-and-syntax.textile b/articulos/SVG-basic-markup-and-syntax.textile index b252fe2..1334f27 100644 --- a/articulos/SVG-basic-markup-and-syntax.textile +++ b/articulos/SVG-basic-markup-and-syntax.textile @@ -1,7 +1,6 @@ title:SVG basic markup and syntax -subtitle: +subtitle: I´m always trying to figure out the basic SVG markup. I'm saving this here with the things I learn about SVGs classes: language-markup -draft:true pubDate:2018-03-21T18:28:47-02:00 @@ -9,23 +8,23 @@ pubDate:2018-03-21T18:28:47-02:00 h1. SVG basic markup and syntax -h2. Subtitle +h2. I´m always trying to figure out the basic SVG markup. -p(intro). This is the intro that will be lloked up for the lead text of an article. +p(intro). I'm saving this here with the things I learn about SVGs. An SVG needs some basic markup, like the @@ tag, some other stuff is optional, depending on the use. -h2(#ac2). __[fr]Mise en place__, first subtitle +bc. + + + + + home + + + + MDN Web Docs + + -Here goes some text with a "link to this header":#ac2 followed by an image - -!img/content/file-structure-postcss-guide.png(This will be the alt text)! - -After the image, some code: - -bc(language-javascript). var someObject = { - part:true, - follow: "false" -}; - -And another paragraph +this is a simple version of the mozilla logo plus a symbol from an icon set. diff --git a/articulos/Suddently-Virtual-Box-throws-network-error-on-Windows-10.textile b/articulos/Suddently-Virtual-Box-throws-network-error-on-Windows-10.textile index f8f41c1..501498b 100644 --- a/articulos/Suddently-Virtual-Box-throws-network-error-on-Windows-10.textile +++ b/articulos/Suddently-Virtual-Box-throws-network-error-on-Windows-10.textile @@ -1,31 +1,29 @@ title:Suddently Virtual Box throws network error on Windows 10 -subtitle: classes: language-markup -draft:true pubDate:2017-08-17T22:20:44-02:00 -
- h1. Suddently Virtual Box throws network error on Windows 10 -h2. Subtitle -
- +p(intro). I've been working with virtuabox on my Windows machine (Vagrant and Docker environments). +When I tried to start a machine (munich) I get a criptic network error. -p(intro). This is the intro that will be lloked up for the lead text of an article. +cb.. λ docker-machine start munich +Starting "munich"... +(munich) Check network to re-create if needed... +Unable to start the VM: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe startvm munich --type headless failed: +VBoxManage.exe: error: Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter #6' (VERR_INTNET_FLT_IF_NOT_FOUND). +VBoxManage.exe: error: Failed to attach the network LUN (VERR_INTNET_FLT_IF_NOT_FOUND) +VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole -h2(#ac2). __[fr]Mise en place__, first subtitle +Details: 00:00:01.748287 Power up failed (vrc=VERR_INTNET_FLT_IF_NOT_FOUND, rc=E_FAIL (0X80004005)) -Here goes some text with a "link to this header":#ac2 followed by an image +After much googling and reading, the solution is: -!img/content/file-structure-postcss-guide.png(This will be the alt text)! +Go to your *control panel* > *Network and shred resources center* > *Network connections* -After the image, some code: +Here you will see a bunch of network connections icons. Amongst them: *VirtualBox Host-Only Network #6* -bc(language-javascript). var someObject = { - part:true, - follow: "false" -}; +Double click it and open it's properties. A new window will show up, with a list. The item *VirtualBox NDIS 6 Bridged Networking Driver* Will be unchecked. Check it and click OK. -And another paragraph +Try to start your virtual machine again, it should work now. From c262185f37f13b61a683cc0c7a3accebdab87b69 Mon Sep 17 00:00:00 2001 From: Agustin Amenabar L Date: Sun, 13 May 2018 00:52:03 -0700 Subject: [PATCH 15/27] Removed unnecesary olde IE conditional statements --- article.php | 16 ++-------------- home.php | 19 +++---------------- 2 files changed, 5 insertions(+), 30 deletions(-) diff --git a/article.php b/article.php index b3043c2..519f963 100644 --- a/article.php +++ b/article.php @@ -2,19 +2,7 @@ $documentLang = 'en'; if(isset($theArticle->lang) && $theArticle->lang)$documentLang = $theArticle->lang; ?> - - - - -
@@ -29,6 +17,8 @@ "> + + @@ -100,8 +90,6 @@
- - diff --git a/home.php b/home.php index d99cb63..7b83864 100644 --- a/home.php +++ b/home.php @@ -1,18 +1,6 @@ - - - - - - + Code Médula – Blog de código @@ -23,7 +11,8 @@ "> - + +
@@ -62,8 +51,6 @@ - -