jeudi 1 octobre 2015

Why are CSS lines not sharp if not at multiples of 45 degrees?

When using repeating-linear-gradient, I notice that unless the gradient is rotated at an angle which is a multiple of 45 degrees, the lines are not sharp and instead are very blocky.

Here is a Codepen that illustrates this issue. As you can see, the top three are very sharp (they are all rotated at multiples of 45 degrees) whereas the bottom three (not rotated at multiples of 45 degrees) are blocky and pixelated.

For example, in the code below, div.fourfive gives a very sharp line, whereas div.onezerozero gives a blocky and pixelated one.

div.fourfive {
  background: repeating-linear-gradient(45deg, 
        black, black .5em, #CE360A 0, #CE360A 1.2em);
}

div.onezerozero {
    background: repeating-linear-gradient(100deg, 
        black, black .5em, #CE360A 0, #CE360A 1.2em);
}

What is the reason for this?




symfony access javascript in javascript for creating a worker

I am using Symfony and i want to access a javascript which is located in /web/js to create a worker.

        var worker = new Worker('/web/js/recorderWorker.js');

Does someone knows how symfony links the javascripts, because this is not working.




Configuring www as a prefix in iis for your domain?

My problem is pretty stupid. I am hosting about 20 sites right now. I deleted some records out of the DNS configuration Manager in Windows Server 2012 Datacenter edition. I am in a remote connection and trying to configure the right DNS record to get the prefix www.domain.com. Can someone quickly tell me which kind of record I need and where I should point it to?

I have tried CNAME records and A records. No result. So I might do something wrong.

Greetings, Ben

PS: Sorry for my bad English




How to redirect a click on a Codeigniter php page to django python page?

I have my legacy code in php's Codeigniter and we are writing a new module in django. How to link the new module with the initial php page, basically a redirection from codeigniter php page to django python page.




Why validators are getting executed on view

I have been checking out cachegrind information for a view of one of my Yii 1 applications which only show info about a specific model and I have realised that the validations rules are being called on the view, why is it happening ?

Could it be just to show required elements sign (*)




How much time it takes to convert text to speech in speech synthesis

I'm trying to play post audio such as this.

The problem is, when I click the play button. It just plays after some seconds. It's usually around 5-6 seconds. I'm afraid that the user will get blind and say what the heck is going on?

How do I calculate how much time it takes to convert text to speech in speech synthesis, I can show preparing to play.

Note: This domain belong to me. and it's not an ad.




mercredi 30 septembre 2015

Web form for .Net application adding

I have a problem.

I have console application, that can chose between console interface, WinForm or WPF. I have to add a some kind of Web Form to it. How i can do it? Controls on UI is dynamic and draw programly.