Posts

gtk - FileChooserButton behaviour -

i've been getting strange behaviour when connect selection_changed function in filechooserbutton. of so users understand selection_changed syntax. weird happening when use second time in same program. context my aim create window 2 filechooserbuttons , entry text @ end position of window. first filechooserbutton helps user pick directory , causes second filechooserbutton open @ directory user chose in first one. until point code working perfectly. entry drawn , says "here goes filename". intended behaviour change entry's text upon selection of filename in second filechooserbutton after checking whether file writable. the strategy used connect selection_changed function takes care of checking wether file writable , change of entry's text. the problem function never called. added debugging dumb code like: stdout.printf("checking whether function called") it never gets printed,thus suppose function never gets called. function in question fi...

android - How can I call an URL when I use setContentView()? -

i developed simple game , want give external url web page. problem that, i'm using setcontentview in oncreate method of main activity. game content dynamic , cannot use intents instead of setcontentview. however, know, oncreate called once , way found on web call url "using intents". not working because setcontentview thing running. here codes: gameactivity.java private static gamecontent gamecontent; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); gamecontent = new gamecontent(this); setcontentview(gamecontent); } // on.c.ends my gamecontent class extends surfaceview , runnable. call draw(), pause() , resume() methods here. have class basicbutton , added gamecontent , draw it. works. here part want use: basicbutton.java @override public void update() { if (xx > (rate.getx()) && xx < (rate.getx() + rate.getplaybutton('x'))) if (yy > (rate.gety()) &...

linux - Getting number of pattern matches in VTE search -

i'm developing gtk+ 3.0 application uses vte widget, how can number of occurrences search regex or @ least current text in terminal , process that? i'm using vte 2.91 , vala. vte.terminal.get_text() visible text in terminal processing. i'm not sure that includes text that's scrolled off screen. you try vte.terminal.select_all() followed vte.terminal.copy_clipboard() , copied text off clipboard, i'm not sure work.

MySQL Order with decimals -

i've got problem mysql ordering. query: select * versions order version desc it lists of versions this: 25.0.1364.86 25.0.1364.124 23.0.1271.100 however .124 higher .86. how can fix it? a small improvement query posted @peterm (with thanks!) select * `versions` order 1*substring_index(version, '.', 1) asc, 1*substring_index(substring_index(version, '.', -3),'.', 1) asc, 1*substring_index(substring_index(version, '.', -2),'.', 1) asc, 1*substring_index(version, '.', -1) asc, version asc # sort non-numeric strings i tested more complicated values, letters, numbers, dashes , points, versions can written in format. | version | ----------- | a-b | | a-c | | ab | | b | | c | | c.a | | c.a.b | | c.b | | c.b.a | | c.b.b | | ca | | 1.2 | | 1.2.1 | | 2.1.1 | | 2.1.2 | | 3 | | 10 | | 123 |

html - CSS - Using Hover on elements inside a tag? -

i want use hover couple divs inside tag. for example here <a href="#"> <div class="nextmatch_wrap"> <div class="clan12w"> <div class="teamlogos"> <div class="team" id="teamcontainer"> <img src="#"> </div> </div> </div> <div class="clan12w"> <div class="teamlogos"> <div class="team" id="teamcontainer"> <img src="#"> </div> </div> </div> </div> if hover on tag want colored border appear on "teamcontainer" , "teamlogos" i'm not css have tried a nextmatch_wrap, :hover #teamcontainer, nextmatch_wrap, :hover .r-home-team{ border:solid 1px #25c2f5; } it works somehow hover on when mouse on anywhere in page when move mouse out of browser...

vba - Two array element combination in vb -

Image
i want combine arrays in program. take example: a = {1,2,3,4,5} b = {6,7,8,9,10} this should produce array containing first element of first array elements of second array except first element, {1,7,8,9,10} . should continue possible combinations, producing these output arrays: {1,7,8,9,10} {6,2,8,9,10} {6,7,3,9,10} {6,7,8,4,10} {6,7,8,9,5}... for 2,3,4 elements of first array second array {1,2,8,9,10} {6,2,3,9,10} {6,7,3,4,10} {6,7,8,4,5} {1,7,8,9,5}... {1,7,3,9,10} {6,2,8,4,10} {6,7,3,9,5} {1,7,8,4,10}..... and vice versa second array. for first combination i've tried: for = 0 4 'first array loop j = 0 4 'second array loop if <> j arr(j) = arr2(j) else arr(j)=arr1(j) end if next next this give every combination possible: function fifth(paramarray arr() variant) variant() dim temp() variant dim long dim j long dim t long = lbound(arr) + 1 ubound(arr) if ubound...

php - How to post data to my server after successfull twitter authentication -

i want implement twitter authentication on website same visitors comment on aljazeera.com . i'm using twitteraouth library in codeigniter framework , working fine can see twitter data after successfull authentication. what want add functionality users comment on post should stored on server twitter user_id.