Posts

javascript - images leave there place after on click -

Image
well there wiered issue website, don't know reason. have hyperlinks on images, when click on images, leave place. sharing screen shot better understanding. before click after click kindly tell me else have share. on't know reason not sharing css or js regards since fixed in comments i'll post here others know. when image starts jumping around when clicked means there border around active state. fix set : a:active{border: none!important;} //!important may overkill the same holds true if dances around when hover on it

winapi - Prevent splash-screen showing an icon in the start-bar -

for game project, found old win32 code on web display splash-screen, , noticed puts icon on start-bar. looks weird because when app creates own window, see icon in startbar disappear , reappear splash window destroyed , main app window created. is possible make splash-screen hwnd not shown on start-bar style or window class setting? for splash screens use these extendes window styles: ws_ex_toolwindow|ws_ex_topmost , these window styles: ws_popup|ws_visible no taskbar icon shows combination of styles.

Is it possible to write a complete research paper in R? -

i know using knitr 1 can generate reports, etc possible write complete paper in r? is, including diagrams, citation of referred works, heading styles, etc in microsoft word. asking non r research i.e. analyses done in r (for example road traffic engineering analyses) not related r or programming. i think citations , header styles seem problem. might want have @ brew package , in opinion better mixing output r (presentation) . think there tools render r objects specific formatting ( pander , xtable , stargazer , etc).

c - Can't get loop to stop running -

i trying write program rolls 2 dice, calculates number of rolls each side of dice, calculates actual , expected percents asks user roll again. however, loop wont ask user if want continue or stop looping after 5 rolls. not allowed use arrays yet. beginner. :) #include <stdio.h> #include <stdlib.h> #include <time.h> #include <math.h> int main(void) { int i; int number; float expected_percent; int val2=1, val3=1,val4=1,val5=1,val6=1,val7=1; int val8=1,val9=1,val10=1,val11=1, val12=1 ; int val; int rolldice; int roll_1, roll_2; float perc2, perc3, perc4, perc5, perc6, perc7, perc8; float perc9, perc10, perc11, perc12; float exp2, exp3, exp4, exp5, exp6, exp7, exp8, exp9; float exp10, exp11, exp12; char ans, y, y, n, n; srand(time(null)); do{ printf("how many times want roll dice ? \n \n "); scanf("%d/n/n",&number); (i = 0; < number; i++) { roll_1 = rand() %...

sql - Can't check null value with these 2 ways C# datareader Null value Error -

the problem ; use code inside class , call class main form. got error datareader cant null value. how can check coming data sp not null. inside code if see null change , return outval (0000) public string opt() { string strng= ""; string outval= ""; sqlconnection conn = new sqlconnection(); conn.connectionstring = configurationmanager.connectionstrings["nmrbg"].connectionstring; conn.open(); sqlcommand cmd = new sqlcommand("nmp_sp_sy", conn); cmd.commandtype = commandtype.storedprocedure; sqldatareader rdr = cmd.executereader(); // if (rdr.hasrows) // { // while (rdr.read()) // { // int nm= rdr.getint32(0); // strng= convert.tostring(nm); // outval= strng; // } // } while (rdr.read()) { int nm= rdr.getint32(0); strng= convert.tostring(nm); outval= strng; } if (!rdr.hasrows) { outval= "0000"; } rdr.cl...

excel vba - Looping through an array in VBA -

in sheet1, cell a1 have following text: a-b-c-d-e-f i need loop through text , have written following code works fine: dim w worksheet dim s variant dim p integer set w = worksheets(1) p = 0 each s in split(w.range("a1").value, "-") p = p + 1 msgbox split(w.range("a1").value, "-")(p - 1) next s the above code pops message box showing each of letters 1 after other, expected. but not happy repeating of split(w.range("a1").value, "-"), declaring array loop , once again every occurrence within loop. so have tried with: msgbox s.value but throws error object being requested. why can not use value property given "s" variant? you can this dim w worksheet dim s string set w = worksheets(1) each s in split(w.range("a1").value, "-") msgbox s next when assign object variant behaves object assigned , has properties present in object. in each split assigned stri...

java.lang.ClassNotFoundException, although the class exists -

i got java.lang.classnotfoundexception : exception in thread "main" java.lang.noclassdeffounderror: consts/sortofpages @ java.lang.class.getdeclaredmethods0(native method) @ java.lang.class.privategetdeclaredmethods(unknown source) @ java.lang.class.getmethod0(unknown source) @ java.lang.class.getmethod(unknown source) @ sun.launcher.launcherhelper.getmainmethod(unknown source) @ sun.launcher.launcherhelper.checkandloadmain(unknown source) caused by: java.lang.classnotfoundexception: consts.sortofpages @ java.net.urlclassloader$1.run(unknown source) @ java.net.urlclassloader$1.run(unknown source) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(unknown source) @ java.lang.classloader.loadclass(unknown source) @ sun.misc.launcher$appclassloader.loadclass(unknown source) @ java.lang.classloader.loadclass(unknown source) ... 6 more and class of sortofpages: package c...