Posts

php - HTML table to pdf -

i generating class schedule out of sql queries concerning more 1 tables database. schedule displayed in html table on web page, along there 1 line details schedule besides table. want user able print information/ save in pdf format. how able ? i think php or html code not necessary answering this. thank in advance.. use tcpdf include("tcpdf.php"); $html = "html code"; $pdf = new tcpdf(); $pdf->addpage(); $pdf->writehtml($html)

c++ - System() call returns 255, but executes afterwards -

i running mongoose 3.7 server on qnx system. i receive http request upgrade firmware. on request, use, system() call in request handler upgrade firmware. but, strangely, system() returns 255. same call working before mongoose 2.0. even more strange, command issued through system() call works after returned 255. i using wexitstatus know error system() returns any idea why happening? i found issue.. the issue mongoose call thread issues system() command not wait return status becuase of line: on mg_start() function, starts server thread, have included line: mg_start() line no 5159: (void) signal(sigchld, sig_ign); they have done inorder not create zombie process. ref: http://www.win.tue.nl/~aeb/linux/lk/lk-5.html but, according qnx documentation, “setting signal action sig_ign signal that's pending causes pending signal discarded, whether or not blocked. if process sets action sigchld signal sig_ign , behavior unspecified.” c...

Entity Framework with Model-First and Oracle -

i'm trying use entity framework model-first on oracle database. have installed odp.net , oracle visual studio tools file odtwithodac1120320_32bit.zip , version 11.2.0.3.20 . i made small test model, set connection string oracle db, changed code generation templates of model generate oracle via t4 (tpt).xaml , ssdltooracle.tt . code generations working, generated sql not usable: create table "dbo"."entity1set" ( "id" uniqueidentifier not null, "nvarcharproperty" nvarchar(max) not null ); neither uniqueidentifier nor nvarchar valid oracle keywords. furthermore, oracle handles schemas differently sql server, "dbo". stuff won't work. how handle that? changing sql after every code generation? are there other ways use ef oracle , model-first? looks model generated sqlserver , passed ssdltooracle.tt. ssdltooracle.tt file not check if dealing oracle specific storeitemcollection , uses gets results in ge...

regex - Detect quoted strings in sql query -

i writing bash script using detect classes of strings in sql query (like upper-case, lowercase, numeric characters, etc...). before doing classification, want extract quoted strings. having trouble getting regex extract quoted strings query string. example, take query tpch benchmark: select o_year, sum(case when nation = 'japan' volume else 0 end) / sum(volume) mkt_share ( select extract(year o_orderdate) o_year, l_extendedprice * (1 - l_discount) volume, n2.n_name nation part, supplier, lineitem, orders, customer, nation n1, nation n2, region p_partkey = l_partkey , s_suppkey = l_suppkey , l_orderkey = o_orderkey , o_custkey = c_custkey , c_nationkey = n1.n_nationkey , n1.n_regionkey = r_regionkey , r_name = 'asia' , s_nationkey = n2.n_nationkey , o_orderdate between date '1995-01-0...

c# - WebClient SSL Single Sign on Proxy -

i'm building ajax proxy page pull information ssl single sign on site. unfortunately feel i'm getting stuck. i've tried using webclient , httpwebrequest can't seem past initial page. i'm catch link click action , passing url of link proxy page. $("#frame").load("/proxyajax?url=" + serializeddata); and executing following code string redirecturl = server.urldecode(request.querystring["url"]); uri myuri = new uri(redirecturl); webclient wc = new webclient(); wc.headers.add("cookie", request.headers["cookie"]); vd.string = wc.downloadstring(redirecturl); have page i'm calling executing redirect , stuck somewhere between. ideas of how resolve this?

php - How do I setup a live data feed that will update tyre prices and stock? -

i have been asked create site mobile tyre business. want have online ordering system live data feed update prices of tyres , quantity on daily basis. my problem think can done php , mysql database don't know how populate/update mysql database data .csv spreadsheet. can me set up, or point me in direction of service me set up? it possible php , mysql. you can refer question explains reading csv , storing in mysql read csv file , store mysql database also following tutorials might useful. http://css-tricks.com/snippets/php/import-csv-into-mysql/ http://www.infotuts.com/import-csv-file-data-in-mysql-php/

HTML row fill vertical space -

just doing experiments html, wonder, why second line not fill remaining space. why table not stretched vertically? <table width="100%" border="1" height="100%"> <tr> <td align=center>line 1 </td> </tr> <tr height="90%" > <td>line 2 </td> </tr> </table> block elements, table being 1 of them, expand size of contents. 100% has no context in case. give value in numbers.