Posts

database - one php page with different contents and urls -

i have xml database stocked several blog posts. xml example: <element id="12" size="square" category="portfolio"> <tag tag="printer printing 3d apple iphone 5 bumper case"></tag> <icon class="icon-picture"></icon> <urlpage url="/contact/contact.html"></urlpage> <urlimage src='./post thumbnail images/01.png'></urlimage> <date date="8 apr"></date> <title>minimal bumper iphone 5 : protect iphone lightwheight , protect full case </title> </element> i want have website based on 2 main php pages. main index.php page blog post thumbnails , links displayed. , single.php page each blog posts can displayed individually. how can load, change content , url of single.php page when click on blog post thumbnail link in index.php page (finally, think, wordpress without use it)? if possible, how works seo...

html - Div height and background-color -

i have tried overflow , using clear: both; can't child div heights equal, don't want heights static. can me achieve this? here fiddle showing problem. since seem have static widths, don't want static heights, fix setting container div position: relative; , having 1 div float left, , positioning other div 's absolutely. in jsfiddle . the 1 floating div ensure container div has height, , absolutely positioned div 's automatically resize same height floating div . have set overflow-y: auto on absolutely positioned div 's ensure scroll bars appear inside of them if height exceeds height of floating div . should work in browsers. div.container { position: relative; width: 800px; // height determined content of div.left } div.left { float: left; width: 400px; // height determined content } div.middle, div.right { position: absolute; overflow-y: auto; width: 200px; bottom: 0px; // these 2 lines ensure div's height to...

c# - Converting mouse click position to a given scale -

here's problem i'm trying solve: you have screen display heart rate (of 1 hour - 60 minutes), how can know minute in, upon click on screen? when clicked on screen specific height , width. this i've done: created form, , on form have docked picturebox object. picturebox object has method invoked clicking on picturebox object. method: private void picturebox1_click(object sender, eventargs e) { var mouseeventargs = e mouseeventargs; if (mouseeventargs != null) { int widthperminute = (int)(mouseeventargs.x / ((picturebox1.width + 1) / 60.0)); messagebox.show((widthperminute).tostring()); } } is there more elegant solution? i'm pretty sure misinterpreted asking first reply (i'm leaving @ end of answer reference). i think you're asking higher-level design you're doing. if going developing heart rate graph display further, rather using picturebox might want write own custom control it. way can encaps...

wordpress - Failed to send your message. Please try later or contact the administrator by another method -

i use contact form 7 send messages. in own server theform works perfect. client gets error: failed send message. please try later or contact administrator method. in contact form setting in field , insert valid mail domain this blog you

Parsing large xml data using python's elementtree -

i'm learning how parse xml data using elementtree. got error say:parseerror: not well-formed (invalid token): line 1, column 2. my code right below, , bit of xml data after code. import xml.etree.elementtree et tree = et.fromstring("c:\pbc.xml") root = tree.getroot() article in root.findall('article'): print ' '.join([t.text t in pub.findall('title')]) author in article.findall('author'): print 'author name: {}'.format(author.text) journal in article.findall('journal'): # venue tags id attribute print 'journal' <?xml version="1.0" encoding="iso-8859-1"?> <!doctype dblp system "dblp.dtd"> <dblp> <article mdate="2002-01-03" key="persons/codd71a"> <author>e. f. codd</author> <title>further normalization of data base relational model.</title> <journal>ibm research report, san j...

asp.net mvc - How to export to pdf, word, excel file -

i use asp.net mvc 3. have these 2 requirement. frist 1 creating invoice in application. want export datas pdf , word , excel file. downloaded itextsharp dll, can tel me there anyother alternative datas in ui pdf, word , excel document? second need print document after clicking print button. how connect printer print button in exported document ? you can use snippet. this one great. take on it. this example of usage: html <asp:gridview id="gridview1" runat="server" autogeneratecolumns = "false" font-names = "arial" font-size = "11pt" alternatingrowstyle-backcolor = "#c2d69b" headerstyle-backcolor = "green" allowpaging ="true" onpageindexchanging = "onpaging" > <columns> <asp:boundfield itemstyle-width = "150px" datafield = "customerid" headertext = "customerid" /> <asp:boundfield itemstyle-width = "150px...

How to execute a command from a scala script? -

i want execute mysqldump -u talkexchange -p --opt talkexchange > /talkmedia/backups/database_backup.sql command scala script. how go it? thanks. you can @0__ suggested sys.process._ little tweak: import sys.process._ import java.io.file "mysqldump -u talkexchange -p --opt talkexchange" #> new file("/talkmedia/backups/database_backup.sql") otherwise > interpreted parameter mysqldump , instead of redirection operator.