Posts

jquery - Add delay in between two if conditions -

i add wait() or delay between 2 functions. function(imageid) { //alert("i main slider called "); if(en==1) { var selected=$('#' + sel); $(selected).animate({"left": "+=30px","opacity": "0.99"},"slow"); $(selected).animate({"height":"354px","width":"295px"},30); $(selected).css("-webkit-transform-style","preserve-3d"); $(selected).css("-webkit-transition","all 1.0s linear"); $(selected).css("transform-style","preserve-3d"); $(selected).css("transition","all 1.0s linear"); $(selected).css("-webkit-transform","rotatey(0deg)"); $(selected).css("transform","rotatey(0deg)"); en=0; } if(my.circular)...

Java Applet - "Block potentially unsafe components from being run?" message -

Image
this question has answer here: logically solving java security error 1 answer since latest java update, 2 of applets displaying warning pop-up our users though both of jar files using signed. have verified signed using jarsigner -verify myjarfile.jar command. below popup message seeing... my applet invokes c++ dll through jni. c++ dll invokes c# netmodule. does know can popup go away? says application contains both signed , unsigned code, signing every java file (there 1) in jar file. there higher level of signing need do? edit: occurring of latest java update. see quote below taken this page . authors , vendors of applications deployed using either java applets or java web start technology – applications distributed end users @ runtime via web browser or network - should sign code using trusted certificate best user experience. specifically, java code...

parsing - ANTLR rewrite rules in grammar file -

i have rule looks this: a : (b | c) d; b : 'b'; c : 'c'; d : 'd'; with grammar antlr builds flat parse tree. how can rewrite first rule (and leave other 2 unchanged) whatever matched being returned under root node called a? if first production rule this: a : b d; then have been rewritten a : b d -> ^(a b d) and have solved problem. first grammar rule yields more 1 possibility resulting parse tree ^(a b d) or ^(a c d) . how express when rewriting rule? you can use ? operator in rewrite follows. a : (b | c) d -> ^(a b? c? d);

mercurial hg update abort: no such file or directory -

i'm working on c++ project on opensuse linux box using mercurial versioning , did pull our server repository local working directory. tried hg update, got following error message: abort: no such file or directory: /home/username/documents/dev/proj/.hg/store/data/images/general/picture.png.d i'm pretty new mercurial , wondering if there's way can troubleshoot this. appreciated, thanks! your repository may corrupt. start running hg verify see if there errors. mercurial wiki has a page dedicated this should out well.

xslt - How to find all numbers in a string -

ich versuche mit einer funktion sämtliche zahlen aus einem element oder string zu ermitteln. dabei soll die anzahl der zahlen und ihre stelligkeit egal sein. folgende funktion habe ich bislang geschrieben: <xsl:function name="itp:find_num"> <xsl:param name="tmp"/> <xsl:if test="matches($tmp,'\d+')"> <xsl:analyze-string select="$tmp" regex="{'\d+'}"> <xsl:matching-substring> <xsl:sequence select="."/> </xsl:matching-substring> <xsl:non-matching-substring> <xsl:value-of select="''"/> </xsl:non-matching-substring> </xsl:analyze-string> </xsl:if> </xsl:function> beispiel xml: <address>street 12, 12345 town<address> bei dem funktionsaufruf soll dann die entsprechende zahl ausgewählt werden können: ...select="itp:find_num(addres...

internationalization - Django I18n Translation of The whole document -

when start translating django application. {% trans 'profilbild'%} all other trans blocks with umlaut not translated. solution ? regards that's not how works, i18n tag translates string or variable, takes one argument. did read documentation ? you want blocktrans update (the op changed question): did run makemessages -l <desired_lang> successfully did run compilemessages successfully did restart django process after these steps?

c# - How can you set Gendarme to run with Teamcity when doing a build? -

i have set teamcity server start working continous integration , having daily builds , when vcs check-in detected. me , team working on videogame, using unity game engine , c# programming language. have used gendarme manually on our project , can totally use benefits offers. trying make run build step of teamcity, can seem figure out how make work. have expirience combination of tools? experience shared apreciated. thanks. well did ended finding solution , i'am posting here interested can see it. teamcity has command line build step can used using gendarme part of build process(for custom scripts going write here in workspace property of build step need put each of .exe's are). here console command needed it: gendarme.exe --v --html your\path\to\save\report\gendarmereport.html --severity --confidence "path/to/your/project/library/scriptassemblies/assembly-csharp.dll" "path/to/your/project/library/scriptassemblies/assembly-csharp-firstpass.dll...