Posts

asp.net - How to convert a dll written in vb.net to c# -

i sorry if asking wrong question. developing website in asp.net. got dll internet needed work. problem is, when debug project, reference code classes in dll runs in vb.net. don't want refer in vb.net in project. how can execute dll codes in c#. the .net framework language-independent, uses clr interprete common intermediate language , .net-assemblies result in. can reference dll , call classes within in c# code. if doesn't suffice needs, you'll need rewrite library using c#, bad idea, because doing work has been done , don't make use of advantage of clr.

c# - DateTimePicker value from Excel -

i wondering if possible set value of datetimepicker queried row in excel. have tried different ways of doing have never came close , help? also displayed on windows form public void readandwritetoexcel() { string mypath = @"c:\excel.xls"; fileinfo fi = new fileinfo(mypath); if (!fi.exists) { console.out.writeline("file doesn't exists!"); } else { var excelapp = new microsoft.office.interop.excel.application(); var workbook = excelapp.workbooks.open(mypath); worksheet worksheet = workbook.activesheet worksheet; // write excel microsoft.office.interop.excel.range range = worksheet.cells[1, 1] range; datetime dt = datetimepicker1.value; range.numberformat = "dd/mmm/yyyy"; range.value2 = dt; // read, var date = worksheet.cells[1, 1].value; ...

linux - How to make sure php has write permissions on wp dedicated server -

i have been struggling time. moved wordpress site on prq domain dedicated server. script used picture uploads. didn't folder structure of wordpress date , instead have file structure in uploads places picture in subfolder post id name. worked fine on prq domain, fails work on new server. not super knowledgeable being server admin, here have tried. chown-ing uploads username:apache, apache:apache, nobody:apache, nobody:nobody. tried these combinations wp-content , public_html. recursively of course. chmod-ing folders 777, 775, 755, 766. safe-mode not running tried using mkdir , wp_mkdir_p actions. restarts on apache throughout make sure changes saved , made. none of has affect. i have seen few places people have suggested getting ahold of server host give php writing capabilites. have though dedicated server installed on? if not, there config or setting missing. see no reason why can't make new directory. wp 3.5.1 php 5.3.3 apache/2.2.15 (centos) linux os ...

c++ - dynamic library don't generate lib file using visual studio 2012 -

i using visual studio 2012 , creared dll without using mfc, generating dll. when specify generate lib file in specific directory using following option:- go proeperties page->advanced->import library ../../../lib/myapp.lib it not genearting lib file in specified folder. please me . thanks & regards vikas see following: may need declare /exports ( http://msdn.microsoft.com/en-us/library/7k30y2k5.aspx ) http://msdn.microsoft.com/en-us/library/67wc07b9.aspx see "remarks"

xcode - pausing timer,uiview animation and audio iOS -

i have viewcontroller playing sound using avaudioplayer , timer running 2 minutes using nstimer , sequence of animation being played using [uiview animatewithduration:2.0 delay:0.0 options:uiviewanimationoptioncurvelinear animations:^{ //rolling man's tongue out _cooling2manimage.alpha = 1.0; _cooling3manimage.alpha = 0.0; } completion:^(bool boolvalue){ [uiview animatewithduration:2.0 delay:0.0 options:uiviewanimationoptioncurvelinear animations:^{ //showing arrow image , translating arrow mouth _cooling1arrowimage.alpha = 1.0; ...

c# - ASP.NET IDENTITIES Turn On when i publish -

when publish mvc4 c# website on server, iis authentication "take identity of asp.net" turning on automatically. how can let authentication "off" ? it's working code in webconfig : <authentication mode="windows" /> <identity impersonate="false" /> <authorization> <deny users="?" /> </authorization>

ms project - Reverse dependency in MSProject (Start-Finish) in 3-task-scenario not understood -

i'm kind of experienced msproject. nevertheless ran pretty simple problem can't solve. please help. direct solutions or vba solutions welcome. the case: 3 tasks need aligned. brother , sister visited me , leave individually (driving home task bro , task sis). have tea 2 of them (task tea) in time before first of 2 leaving. ----- tea (predecessor: sf sis) ---------- bro -------------- sis here tasks ordered , scheduled well. but: in case sister leaving later brother, task tea going shifted, too. not good, brother might miss family tea. solution, thought, second sf dependency on tea task (btw: i'm not using forward deps, because in real world scenario bro , sis having more complicated dependencies , must not governed family having tea). surprise, tea shifed after adding bro-dep shown here (and sister missing tea): ----- tea (predecessor: sf sis, sf bro) ---------- bro -------------- sis there easy...

apache - php file operations permission denied -

i have 2 virtual hosts on redhat enterprise server, 1 of functions desired. second have problems when using php kind of file operations. far can tell both virtual hosts have been set in same. have checked file permissions have been set correctly on folders/files in question. have gone far set permissions 777. can suggest might have gone wrong? virtual hosts set follows: <virtualhost *:80> servername intranet serveralias intranet *.intranet documentroot /home/burnside/public_html <directory "/home/burnside/public_html"> allow options +indexes </directory> </virtualhost> <virtualhost *:80> servername tracker serveralias tracker *.tracker documentroot /home/tracker/public_html <directory "/home/tracker/public_html"> allow options +indexes </directory> </virtualhost>

local - run Javascript locally rather than connecting to JQuery -

is possible run script locally website rather connecting jquery.com hosted library/query? currently, connected online page performing query, functions in code , need run locally without need online librbary or library in background thanks code: <script type="text/javascript" src="http://www.freshessays.com/jquery.min.js"></script>!-- start calculator block -- table class="fe_calc fe_block_templ" <tr> <td>academic level:</td> <td> <select id="calform_academic_level1" name="academic_level" onchange="calcountprice1();" style="width:140px;"> <option value="0">please select</option> <option value="1">high school</option> <option value="2">bachelor</option> <option value="3">master</option> <option value=...

android - Hiding Edittext in spinner onItemSelected -

in 1 of layouts have edittext show when 1 spinner option selected. in rest of options hide. this action doesn't work, when select 1 option edittext not hide or show, if select same option again work ok. i manage edittext visibility in spinner onitemselected. any idea or solution? i don't post code because have many leves of hierarchies in code , includes in layout. oh, that's easy, have move thing other thing, has after third thing, okay?

php - Filtering <iframe> src attribute -

i have website allows user embed videos using <iframe> tags such . <iframe width="560" height="315" src="http://www.youtube.com/embed/se2p7hjpane" frameborder="0" allowfullscreen></iframe> however, not idea since can input website on src attribute , not video. such <iframe src="http://www.google.com"/> is there anyway handle this? parse urls submitted , filter them through whitelist. aren't on list either discarded or put in queue administrator approval.

sql - A little help to better understand JOINS -

i have 3 tables substract data, , of data have query works pretty good, can't specific row , that's need help. table 1: equipmentid | equipmentname | equipmenttypeid 15 | tesla | 68 16 | colombus | 93 table 2: equipmenttypeid | displayname | 68 | electrical device| 93 | gps device | table 3: equipmentid | ipaddress | 15 | 192.168.1.1| 16 | 192.168.0.1| so far data following using folowing sql syntax: select distinct t1.ipaddress, t2.equipmentid table3 t1 join table1 t2 on t1.equipmentid = t2.equipmentid ipaddress '%192%' the result looks like ipaddress | equipmentid | 192.168.1.1| 15 | 192.168.0.1| 16 | however when join followiing result messed up select distinct t1.ipaddress, t2.equipmentid, t3.equipmenttypeid, t4.displayname table3 t1 join table1 t2 on t2.equipmentid = t1.equipmentid join table2 t3 on t3.equipmenttypeid = t1.e...

tsql - Rollback trans and unlock tables on SQL Server -

hy , had problems sql server because of unknown transactions left opened or lock table, , read many suggestion avoid restarting server until found , , seems work have others suggestion release locks , rollback trans ? because reserved on running on production server use master; go alter database [db_dev] set single_user rollback immediate; alter database [db_dev] set multi_user; go you can check blocking process using sp_who2 then kill spid setting single_user reverting drop connections database. can dangerous on production servers.