Posts

c# - How to layer one window on top of another with transparency(Overlay) or how to do aplha-blending on two windows using directx? -

i trying achieve alpha blending of 2 windows have 1 window contains image , window contains webpage. want alpha blend these 2 windows gives overlay effect , want top window transparent window underneath seen. later want save in video(preferably using direct x). have read several tutorials on internet regarding direct x alpha blending have not been able find want achieve. example/source code achieve or pointer towards right direction appreciated. finally found answer myself. further research lead me this,this thread looking for. might useful else , might save lot of head banging on research.

java - Simple TextToSpeech code -

i want make simple texttospeech code. code here: texttospeech tts = new texttospeech(this, this); tts.setlanguage(locale.us); tts.speak("this alert application", texttospeech.queue_add,null,null); but getting error: error:(100, 28) error: no suitable constructor found texttospeech(mainactivity,mainactivity) constructor texttospeech.texttospeech(context,oninitlistener,string) not applicable (actual , formal argument lists differ in length) constructor texttospeech.texttospeech(context,oninitlistener) not applicable (actual argument mainactivity cannot converted oninitlistener method invocation conversion) what missing? need put in code? if allow of thread sleep , after sleep calling tts.speak(). if so, @ point looking @ code, tts not seem initialized , null crash exception. this code should prevent exception, if initialization of tts engine takes long, won't loading. also, guessing 5 second (which long time btw) sleep allow initialized? code ...

html - grunt SVG to webfont -

i'm trying generate webfont svgs using grunt-webfont . the issue need task valid on windows , linux machines. in order achieve need use node engines doesn’t work svg files . i know if there way convert svgs proper svg format supported grunt plugin or alternatively there better grunt plugin/s achieve this i have task able take svgs (created in illustrator) , output webfont files (.eot,.svg,.svg,...) , css file (like icomoon export) thanks. perhaps artboard small. recommend checking have 512pt x 512pt artboard each icon. stumbled upon gem ( https://www.fourdigits.nl/blog/using-a-webfont-to-display-icons ) when grunt-webfont documentation left me alone in forest.

java - simplified regex solution for version with format <0-999>.<0-999>.<0-999> -

before everything, i have gone through several other regex related questions , came solution looks there might simpler solution i beginner regex i using java execute server side version should of format "< major >.< minor >.< beta >" either of them having range <0-999> my desired behaviour follows 0 - 0.0.0 1 - 1.0.0 000.0.0 - 0.0.0 ..9 - 0.0.9 00007 - 7.0.0 090876 - validate false 9.00098000.00 - validate false 9.0900000.00 - 9.09.0 -13.0.4 - validate false 1a.0.4b - validate false my solution follows if (stringutils.isblank(version)) { //set error } else { if (!this.version.trim().matches("\\d+") && !(this.version.trim().matches("^-+")) && !(this.version.trim().matches("^+"))) { string[] versionsplit = this.version.split("\\."); // in format <major>.<minor...

javascript - Why does this event listener not work? -

i tried adding event listener cars3 id'd paragraph when click paragraph should execute getvalue() method not work. don't understand why. thanks. <!doctype html> <html lang="en"> <head> <script> function getvalue() { var x=document.getelementbyid("cars").value; document.getelementbyid("cars2").innerhtml = x.tostring(); } document.getelementbyid("cars3").addeventlistener("click", getvalue()); </script> </head> <body> <h1 id="myheader" onclick="getvalue()">"click here !" </h1> <p id="cars3">afaf</p> <select id="cars" name ="cars"> <option value="volvo">volvo</option> <option value="saab">saab</option> <option value="mercedes">mercedes</option> <option value="aud...

ajax - Get the value of hidden input in the for with jquery -

hello guys (sorry english) i work symfony 2 , i' meet difficulty jquery, explain: i value of hidden input when mouse on item when doing : <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script> $(function(){ $(".item").each(function(){ $(this).mouseover(function(){ var value = $(".id_sous_item").val(); var data = { id: value }; console.log(data); $.ajax({ url: "{{ path('sous_item_page') }}", cache: false, data: data, success: function(msg){ $(".item_right .description").append(msg); ...

html - Can't get my CSS to Float right -

i'm following udemy complete web development course. i'm supposed making clone of bbc website i'm having couple of issues. first of font bigger this, set same 0.75em. h1 tag seems to right of tag guessing i've messed flow somewhere can't see how. http://jsbin.com/yowoyohaja/1/edit?html,output from can gather, header above date? if that's case move h1 tag above date in html , ensure open tags closed, h1 tag left open. see updated jsbin: http://jsbin.com/cetokibuva/1/edit