Posts

visual studio 2013 - VS2013: Linker conflicts -

i have problem linker of standard windows libraries in visual studio 2013. receive following message when try build c++ project: this error message when build platform toolset v100: error lnk1123: failure during conversion coff: file invalid or corrupt c:\solutions\patchmanagement\trunk\main\windows\patchmgmtagentstest\link patchmgmtagentstest this error message when build platform toolset v120: error lnk1104: cannot open file 'atlsd.lib' c:\solutions\patchmanagement\trunk\main\windows\patchmgmtagentstest\link patchmgmtagentstest earlier c++ project , others c# projects in same solution written on vs2008 using .net 3.5. migrated vs2013 , .net 4.5.1. moreover, have vs2008(where old version of same solution verify migration) , vs2010 anbother solution. have found solutions or tips first error message can appeared due .net 4.0 or greater, or due visual studios variable enviroments leads conflicts. however, cannot refuse .net 4.5.1. how can fix first or seco...

C# unit testing API 2 call -

i have web api 2 web service method. inside i'm using httpcontext.current.request.userhostaddress. when calling controller method directly int unit test isn't filled in errors null object. searched how fill in , found following helped issue: add ip address httprequestmessage however, needs server name send request to. problem when tests run vsexpress need running api web service, won't when running tests. on top of if seems picks random port run on couldn't hardcode address in above link. how can test api 2 method given above issues? this line blows when test api method string ip = httpcontext.current.request.userhostaddress; [edit] answer just knows here solution in code public class mycontroller : apicontroller { private: httprequestbase httprequest; public mycontroller() { httprequest = new httprequestwrapper(httpcontext.current.request) } public mycontroller(httprequestbase http) { httprequest = http; } ...

php - Issue uploading Images into WordPress -

when trying upload images wordpress, keep getting error: 413 request entity large nginx i checked php.ini file make sure have proper upload-able amount , have 32mb i have dedicated server media temple , have never had issue before. hope shed light? the file sizes uploading 1 - 3 mb . less 1mb seems go through. this not php.ini issue. error coming web server nginx. add line somewhere in nginx server block (change 5m whatever need): client_max_body_size 5m;

python - How to link uploaded-file from a form to a model with Flask? -

i working on basic ecommerce platform learning purposes. , i've stumbled across difficulties couldn't find book or resources answers it. however, sure there should easier solution didn't recognise... the aim upload file along other form data database, file linked product id. below example, class productform(form): name = stringfield('design', validators=[required()]) series = selectfield('collection', choices=[(c.id, c.name) c in series.query.all()], coerce=int) material = selectfield('material', choices=[(c.id, c.name) c in material.query.all()], coerce=int) purity = selectfield('purity', choices=[(c.id, c.name) c in purity.query.all()], default=['1'], coerce=int) description = textareafield('description', validators=[required()]) price = integerfield('price', validators=[required()]) photo = filefield('gallery') submit = submitfield('add display') i know photo...

java - Trouble printing my list -

if see i'm keeping numbers in matrix below list according me there are keeping these numbers , when try print list send me lot of these: i@7852e922 memory address? , if objects print. thank attention. package estructurasdedatos; import java.util.list; import java.util.linkedlist; public class matriz { private static scanner read; public static void main(string[] args){ /*read = new scanner(system.in); system.out.println("ingrese el numero de filas y columnas: "); int f = read.nextint(); int c = read.nextint();*/ linkedlist ll = new linkedlist(); system.out.println(" ** ** *** ******* **** ***** *** ***** ***** "); system.out.println(" * ** * * * * * * * * * * "); system.out.println(" * ** * * * * * * * * * * "); system.out.println(" ...

jquery - How to use <select> element in php for navigating database? -

i've made html page this. users can select dropdown list, whether want download hall ticket or result. not able link options in tag database. please me php code. <html> <body> <table width="200" border="0" class="download"> <form name="download" action="downloadhalltickets.php" method="post"> <caption align="top"> downloads: </caption> <tr> <td>select:</td> <td> <select name="select"> <option value="hall tickets">hall tickets</option> <option value="results">results</option> </select> </td> </tr> <tr> <td>seat no.</td> <td><input type="text" name="se...

perl - date is error when run zabbix_bind.9.6_stats.pl on Solaris -

analyse named.stats file on solaris 10, sunos azalea 5.10 generic_150400-13 sun4u sparc sunw,sun-fire-v490 perl version: v5.8.4 built sun4-solaris-64int bind 9.9.5-p1, dns has view zone! when ran zabbix_bind.9.6_stats.pl script, date in first line of result file zabbix_named.stats.txt wrong. input file: named.stats +++ statistics dump +++ (1411256097) ++ incoming requests ++ 245677755 query 11 iquery 131 notify 5 update ++ incoming queries ++ 7 reserved0 214646337 195659 ns 194834 cname 67573 soa 11863353 ptr 13 hinfo 311508 mx 80961 txt 17684359 aaaa 313197 srv 35 naptr 1026 a6 377 ds 2 nsec 16 dnskey 2658 spf 6 axfr ...