Posts

javascript - hide child element with dynamic bootstrap table -

i'm using dynamic table example found here (bootply). table parent, child relationship, can click on row , drop down row. added 1 more level example, can think of example parent, child, grandchild relationship. issue if go 2 levels deep, , click parent row hides child row, not grandchild rows. need fix 'bug' somehow.. i've tried wrapping parent row in div , using href="#collapse1" , putting id on grandchild row doesn't work. other suggestions appreciated. here's html.. <table class="table table-responsive table-hover"> <thead> <tr><th>column</th><th>column</th><th>column</th><th>column</th></tr> </thead> <tbody> <tr class="clickable" data-toggle="collapse" id="row1" data-target=".row1"> <td><i class="glyphicon glyphicon-plus"></i></td> ...

c# - How to get the hex color code from a color dialog in visual studio? -

this question has answer here: convert system.drawing.color rgb , hex value 6 answers i have color dialog in visual studio, using c# code display color dialog , set color panel: private void colorbutton_click(object sender, eventargs e) { if (colordialog1.showdialog() == dialogresult.ok) { colorpanel.backcolor = colordialog1.color; } } how set label hexadecimal color code of color picker? you can try this get argb (alpha, red, green, blue) representation color filter out alpha channel: & 0x00ffffff format out value hexadecimal ( "x6" ) implementation string code = (colordialog1.color.toargb() & 0x00ffffff).tostring("x6");

java - Find files of given name quickly -

in java 7 program, need find files in network directory have given name (say: "build.xml"). there quicker way using fileutils.listfiles ? in pure java, using java libraries enumerate files in directory fastest way. you might consider creating index of files backed hashmap , can lookup files name more quickly, , refresh hashmap when necessary.

user interface - Calender Event UI android -

i can create event this: public void mindencalendar(){ contentresolver cr = getactivity().getcontentresolver(); calendar calendarevent = calendar.getinstance(); long idk[] = new long[szam]; idk[szam-1] = cu.addeventtocalender(cr,"a","b","c",5,calendarevent.gettimeinmillis()); szam++; } ... public class calendarutils{ context context; final int idf = 12; public static long addeventtocalender(contentresolver cr, string title, string addinfo, string place, int status, long startdate) { string eventuristr = "content://com.android.calendar/" + "events"; contentvalues event = new contentvalues(); event.put("calendar_id", 1); event.put("title", title); event.put("description", addinfo); event.put("eventlocation", place); event.put("eventtimezone", ...

ios - Check NSString is encoded or not -

how detect nsstring encoded or not.? i'm encoding string below. before encoding want verify weather [product url] encoded or not. nsstring *encodedurlstring=[[product url] stringbyaddingpercentescapesusingencoding:nsutf8stringencoding]; you try decoding string , see if original string , decoded string same or not. if same wasn't encoded yet. nsstring *original = product.url; nsstring *decoded = [original stringbyreplacingpercentescapesusingencoding:nsutf8encoding]; if ([original isequaltostring:decoded]) { // url not encoded yet nsstring *encodedurlstring=[[product url] stringbyaddingpercentescapesusingencoding:nsutf8stringencoding]; } else { // url encoded } btw - these methods deprecated of ios 9 if app's deployment target ios 9.0 or later should use newer methods. for ios 9 or later should use: nsstring *original = product.url; nsstring *decoded = [original stringbyremovingpercentencoding]; if ([original isequaltostring:decoded]) { ...

excel vba - Turn 3 listboxes into 1 3-column listbox? -

the following code searches column a(sorted) item# , each time finds it, corresponding b, c & d column entered 3 listboxes. use 3-column listbox. help? private sub cmdsearch_click() dim response long dim notfound integer dim arr variant dim long dim str1 string, str2 string, str3 string notfound = 0 activeworkbook.sheets("items").activate response = val("0" & replace(txtitemnumber.text, "-", "")) if response <> false activesheet arr = .range("a2:d" & .cells(.rows.count, "a").end(xlup).row) end = 1 ubound(arr) if arr(i, 1) = response str1 = iif(str1 = "", arr(i, 2), str1 & "|" & arr(i, 2)) str2 = iif(str2 = "", arr(i, 3), str2 & "|" & arr(i, 3)) str3 = iif(str3 = "", arr(i, 4), str3 & "|...

java - Hashmap to query -

i working on html5+js api based website, can apk java sources api, because there no documentation. i got api raw urls looking like: http://api-test.com/?key=value but can trace wireshark apk never called raw urls directly , using rest api url looking this: http://api-test.com/rest/?key=value the problem is, can't understand params sents via rest api, because rest api urls somehow hashed keys , values in this: http://api-test.com/rest/?s=cf9489a2823b900ec1119fa1847669ab9fab1c2b&d=v2rc84aukmgdahuztpsmyma4&t=1467399404811 http://api-test.com/rest/?s=280f8a9454775de6a14d2b53da9088eb028bfe1a&d=v2rc84aukmgdahuztpsmyma4&t=1467399374801 http://api-test.com/rest/?s=a395b00e56db6679c8aaf869d95aa1d1ccfb424c&d=v2rc84aukmgdahuztpsmyma4&t=1467399344791 because not familar java @ all, possible somehow convert hashed data query? this part java source code, think relating apis: public picsearchresult picsearch(string isc, string q, string ci...