Posts

mysql - Select a particular type of columns that begin with a certain letter and fetch data all together -

i trying fetch data @ same time select specific type of columns i`m doing is: select column_name information_schema.columns table_name = 'table' , table_schema = 'db' , column_name 'f%' this query give me col names, there option fetch data of colum @ same time? or need take array of cols , make query? let want fetch data, doesnt matter. thanks. you can use stored procedure this, dynamic sql. first, must create stored procedure: create procedure fetchcolumns (in pschemaname char(50), in ptablename char(50), in pcolumnlikecondition char(50)) begin declare v_cols char(200); select group_concat(column_name separator ' , ') v_cols information_schema.columns table_name = ptablename , table_schema = pschemaname , column_name pcolumnlikecondition; set @s = concat('select ',v_cols,' ',ptablename ); prepare stmt @s; execute stmt; end and finally, have calling it, this...

c - Why are there few compilers that comply with C99? -

it's on ten years since c99 published. however, far there have been few, if any, compilers have support new features of c99. why? btw: there compilers comply c99? according wikipedia: c99 implementations , popular compilers (except visual studio) have support not c99 features(like gcc or clang), but, yes, compilers have comply c99. i think 1 of reasons of c99 features not useful compiler vendors. newest standard, c11, on other hand, allows implementations not support parts of standard — including had been mandatory support in c99, complex types , variable length arrays. (see c11 §6.10.8.3 conditional feature macros )

How to import .C & .pl extension exploits into metasploit framework? -

how can import .c(c language) , .pl(perl) extension module exploits metasploit framework? metasploit accept .rb (ruby) extension modules? can provide tutorials import these extension modules? read immunity debugger, don't understand way convert it. immunity debugger used code exploits. i want import below shellcode in metasploit framework.this code written in c language. there way import below exploit metasploit framework. http://www.exploit-db.com/exploits/1/ there no sofware or tool can convert exploit c/c++ or others metasploit framework, it's easy , can learning essentials of ruby. take note of important values exploit , put values in metasploit's exploit frame. values such return address, eip , buffer size required, no need include payload.

c# - Why would an event be null? (object reference not set to an instance of an object) -

i have form button, label , progress bar, when click button creates instance of class b run process. once process done call eventhandler show "done" in main form's label! i created event (setstatusevent) of delegate (setstatus) this. , seems fine when call event outside eventhandler (usbforprocessexited) when call usbforprocessexited gives error - object reference not set instance of object main form public partial class main : form { b rsset = new b(); public main() { initializecomponent(); rsset.setstatusevent += new remotes.setstatus(updatestatus); } private void button1_click(object sender, eventargs e) { rsset.formatusb(); } private delegate void updatestatus(int i, string str, color clr); private void setstatus(int i, string str, color clr) { this.progressbar1.value = i; this.lbl_status.forecolor = clr; this.lbl_status.text = str; } private void updatesta...

html - 100% height for body and its child elements -

Image
i specifying background color body displays distance only. need full height , child elements too. 1 of child elements has border-right needs show on full screen height. my css looks like(sample one) better check demo demo page html,body { height: 100%; background-color: #fefefe; } .cover { height: 100%; } .left_side { float: left; height: 100%; border-left: 1px solid #ccc; width: 31%; } and html is <body> <div class="cover"> <div class="left_side"> </div> </div> </body> and bgcolor , childs border seems up-to limited distance problem guys need background , border 100% height. remove height:100% body , html style. instead of having border set left container, try setting border on content container instead. your css like: .large-9 .columns .right_side...

Excel VBA Dim a new -

i'm new vba coding , i'm getting hung how navigate between sheets. have workbook contains single sheet , sheet copied new workbook can edited without damaging origianl. issue i'm having when new work book created need copy informaton 3rd workbook , paste new one. i've tried number of things haven't been able figure out. think issue new book doesn't have name book# once leave activate other book don't have solid path back. sorry lack of actual example. have added first 2 lines based on response received. dim wb workbook set wb = activeworkbook ' open 3rd workbook & copy workbooks.open ("z:\terms , conditions.xlsx") windows("terms , conditions.xlsx").activate activesheet.shapes.range(array("picture 4")).select selection.copy ' return wb , paste activeworkbook(wb).activate 'the code stopping here worksheets("sheet1").activate range("a534")...

ios - Why does reloadRowsAtIndexPaths doesn't reload a cell's UILabel alpha value, but reloadData does? -

when select row, method gets called: - (void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath { [_historyentrytableview reloadrowsatindexpaths:[nsarray arraywithobject:indexpath] withrowanimation:uitableviewrowanimationfade]; } and cellforrowatindexpath, i'm dynamically setting alpha value uilabel. - (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath { static nsstring *cell = @"standardcell"; twhistoryviewstandardcell *cell = (twhistoryviewstandardcell *)[tableview dequeuereusablecellwithidentifier:cell]; if (cell == nil) { cell = (twhistoryviewstandardcell *)[[[nsbundle mainbundle] loadnibnamed:@"historyviewstandardcell" owner:self options:nil] objectatindex:0]; } //... if (currentpick == pickdatefrom) { cell.hourslabel.alpha = 1.0; } else { cell.hourslabel.alpha = 0.7;...