Bootstrap 3.3.0 and Visual Studio 2012 - visual-studio-2012

like here I tried to update "Microsoft ASP.NET Web Optimization Framework" but It doesn't solve my problem: I get a index out of range in
#Styles.Render("~/Content/css")
for bootstrap.css. If I delete the following rules:
_:-ms-fullscreen,
:root input[type="date"],
_:-ms-fullscreen,
:root input[type="time"],
_:-ms-fullscreen,
:root input[type="datetime-local"],
_:-ms-fullscreen,
:root input[type="month"] {
line-height: 1.42857143;
}
_:-ms-fullscreen.input-sm,
:root input[type="date"].input-sm,
_:-ms-fullscreen.input-sm,
:root input[type="time"].input-sm,
_:-ms-fullscreen.input-sm,
:root input[type="datetime-local"].input-sm,
_:-ms-fullscreen.input-sm,
:root input[type="month"].input-sm {
line-height: 1.5;
}
_:-ms-fullscreen.input-lg,
:root input[type="date"].input-lg,
_:-ms-fullscreen.input-lg,
:root input[type="time"].input-lg,
_:-ms-fullscreen.input-lg,
:root input[type="datetime-local"].input-lg,
_:-ms-fullscreen.input-lg,
:root input[type="month"].input-lg {
line-height: 1.33;
}
it works. It's a "Microsoft ASP.NET Web Optimization Framework" bug or what?

You need to update to WebGrease 1.6.

Same issue with VS2013 and removing the code section as stated by Ymir works. I am not sure what are the issues will come up because of removing this code though. I would wait till Bootstrap fixes this issue.

Yes there is CSS breaks !!!
Augustine Cost reported this issue on Microsoft site as well
https://connect.microsoft.com/VisualStudio/feedback/details/1015447/css-parser-breaks-on-ie-hacks-in-bootstrap-3-3-0
But still there is no ideal resolution besides removing this section.

Update the WebGrease to version 1.6

Related

How to use remote theme in Jekyll project with Gitlab Pages repo?

I am using linux/firefox and I'm having an issue where a jekyll theme does not work when using remote_theme: inside the .config.yml of a Jekyll project kept in a GitLab pages repo. If I clone the theme just-the-docs (https://pmarsceill.github.io/just-the-docs/) locally, it works fine when theme: is used in the .config.yml. However, when using an example of a remote theme as written by the same author pmarsceill/jtd-remote, and adding remote_theme: instead of theme:, I get the same issue. The theme does not take effect.
I use jtd-remote as an example which gives the same error, though, my goal is to get just-the-docs working as a remote theme.
Clone 'https://github.com/pmarsceill/jtd-remote'
Add url to _config.yml.
Add index.md to top level.
Add to GitLab repo and configure pages.
Browse to repo url on 4000, theme does not take effect.
When using just-the-docs, my .config.yml appears as follows:
# Site settings
title: My site Test
description: "Testing"
baseurl: "/"
url: "https://mysite.gitlab.io"
color_scheme: "dark"
search_enabled: false
# Build settings
remote_theme: pmarsceill/just-the-docs
#remote_theme: "pmarsceill/just-the-docs#v0.3.3"
plugins:
- jekyll-feed
- jekyll-remote-theme
- jekyll-seo-tag
- jekyll-sitemap
- jekyll-mermaid
- jekyll-spaceship
Any help much appreciated.
GitLab doesn't support remote themes for Jekyll.

Lesscss data-uri output

According to http://lesscss.org/functions/ data-uri('image/svg+xml;charset=UTF-8', 'image.svg'); should output url("data:image/svg+xml;charset=UTF-8,%3Csvg%3E%3Ccircle%20r%3D%229%22%2F%3E%3C%2Fsvg%3E");
Tested here https://codepen.io/ZeGregg/pen/RwoOqLG?editors=1100 and compiled css output background-image: url("https://getuikit.com/assets/uikit/src/images/icons/cloud-download.svg");
What am I doing wrong?
Thanks to the community

TestFairy NSLogs on iOS10 for Cordova

I am new to test fairy and asked support but I did not hear from them so trying here.
The problem is that I cannot see the raw logs window within the session on the iOS app but I can see it when in android or when I run the app on the iPhone Simulator.
I followed the instructions to the letter to export the app as adhoc ecc...
Here is the api documentation.
https://docs.testfairy.com/FAQ.html
Oh I should also mention that I have a cordova / ionic app.
Thanks in advance.
Ok, so thanks to TestFairy amazing support especially #VijaySharma here is the solution for those in need.
Find the .pch header file in Platforms > iOS > MyApp > MyApp-Prefix.pch
In the header add the following.
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "TestFairy.h"
#define NSLog(s, ...) do { NSLog(s, ##__VA_ARGS__); TFLog(s, ##__VA_ARGS__); } while (0)
#endif
Save the file and Rebuild the app.
Also if you want to show all the logs make sure you have this plugin: https://github.com/apache/cordova-plugin-console
All set!

ckeditor set custom skinpath

I have a problem with the CKEDITOR. I installed it with bower and changed the basepath. So CKEDITOR works.
My problem now is to laod a custom skin, because i download it also with bower.
This is the code:
<textarea id="editor-<?= $block_count ?>" name="block[<?= $block_count ?>][text][]" rows="10" cols="80" class="form-control"></textarea>
<script>
CKEDITOR.replace('editor-<?= $block_count ?>',{
customConfig: '../../dist/scripts/ckeditor.js',
skin: 'office2013'
});
</script>
But if it want to laod the skin i get this error message:
ckeditor.js:76 GET
htttp://myurl.com/src/bower_components/ckeditor/skins/office2013/editor.css?t=G87D
Can i define a skinpath to load it from teh bower path like:
CKEDITOR.replace('editor-<?= $block_count ?>',{
customConfig: '../../dist/scripts/ckeditor.js',
skinpath: 'src/bower_componnts/ckeditor-office2013-skin/office2013/',
skin: 'office2013'
});
Yes you can. Check the documentation. Quoting docs:
It is possible to install skins outside the default skin folder in the editor installation. In that case, the absolute URL path to that folder should be provided, separated by a comma ('skin_name,skin_path').
config.skin = 'moono';
config.skin = 'myskin,/customstuff/myskin/';
So, something similar should do the trick:
skin: 'office2013,/src/bower_components/ckeditor-office2013-skin/office2013/'

Stream and download video but block direct access?

I found in a streaming site the thing I want to do and I already lost 2 days to understand how they do it. So please analyze the next info and tell me how he does this thing???
Example of what I mean is in this link: http://www.animeforce.org/ds.php?file=AbsoluteDuo/AbsoluteDuo_Ep_01_SUB_ITA.mp4
In development kit we found the direct link of this video: http://www.lacumpa.org/DDL/ANIME/AbsoluteDuo/AbsoluteDuo_Ep_01_SUB_ITA.mp4
<div style="width: 100%; position: relative;" class="html5video lightsoff" id="wtf">
<div class="main-container" id="wtf">
<div class="hero-unit">
<video controls="" preload="metadata" id="video-player">
<source type="video/mp4" src="http://www.lacumpa.org/DDL/ANIME/AbsoluteDuo/AbsoluteDuo_Ep_01_SUB_ITA.mp4"></source>
</video>
</div>
</div>
<div style="text-align: center; padding: 10px 0px 0px 0px; font-size:12pt; font-weight: bold;" class="lightsoffbtn">Modalità Cinema!</div></div>
The second was if you use Download button in the page you access to adfly "they use it to monetize" after skip the adds download start like from a hotlink but if you copy the link from where you download is the same from embedded sourcecode and if you try after stop download to use again direct link, again you are redirected to "Anty Hotlink".
Simplest solution would be a HTTP_REFERER block. If the request for the content does not include the URL of the correct referring page, in it's HTTP HEADER, you block access eg. Using mod_rewrite
RewriteCond %{HTTP_REFERER} !www.somsite.com/some_URI_path
RewriteRule \.(jpg|gif|png)$ - [F,L]
Beyond that you can do things with cookies, e.g again with mod_rewrite
RewriteCond %{HTTP_COOKIE} xxxxxxxxxxxx [NC]
RewriteRule \.(jpg|gif|png)$ - [F,L]
Or if you want to get serious use session based blocks.

Resources