Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
4 Endorsements
Ranked #402
Ranked #4K
~16.8K People Reached
Favorite Tags
php x 21
c++ x 19
css x 18
c x 12
Member Avatar for davecoventry

I have written the following Tkinter script: When I run it, the first thing that happens is the File Dialog box opens without it being called. I am expecting the file dialog box only to open when the "Open Document" button is pressed. import tkinter as tk from tkinter import …

Member Avatar for davecoventry
0
248
Member Avatar for davecoventry

I have a table with the following fields: CREATE TABLE text ( drawing INT NOT NULL, blockID INT NOT NULL, entityID INT NOT NULL, style INT, txt VARCHAR(255) NOT NULL, attrib INT); My csv file contains the data: 19 1CB2 E49 2 CLIENT MODULAR 1C2A 19 1CB3 E4B 2 CLIENT …

Member Avatar for davecoventry
0
362
Member Avatar for davecoventry

I am attempting to compile C code which accesses the[ libredwg library](https://www.gnu.org/software/libredwg/) through a header file: *#include "dwg.h"* When I attempt to compile my code using *gcc -o ldwg load_dwg.c*, I get the following error: *undefined reference to `dwg_read_file'*. However, if I load the file in Kdevelop, I get no …

Member Avatar for rproffitt
0
436
Member Avatar for davecoventry

I'm trying to load dxf files CAD into a database for searching. Some of these files are huge with hundreds of thousand of separate entites. I've separated the file into the following tables: * drawings * layers * style * entities * points * flags * floats * text The …

Member Avatar for pritaeas
0
560
Member Avatar for davecoventry

I'm trying to resize uploaded images so they fit into a slideshow. Specifically, I'm interested in the height of the image as the slider doesn't handle different heights too well. So I've implemented the code below: <?php function resizePhoto($ht,$fname,$dest,$pref,$SRCPath){ $image_path=$SRCPath.$fname; $image_atts=getimagesize($image_path); if(!$image_atts[0]){ echo 'Image data is corrupt, cannot process file:'.$fname; …

Member Avatar for davecoventry
0
324
Member Avatar for davecoventry

I have a form which has a series of label/input pairs. I'm trying to get these to line up. It's quite simple in tables: you just layout the table as follows: <table><tr><td>Your name</td><td><input name="name" type="text" /></td></tr> <tr>...</tr></table> If I try the same thing with CSS: <div class="row"> <lable class="label-left">Name</div> <div …

Member Avatar for davecoventry
0
334
Member Avatar for davecoventry

I'm using PHPExcel to generate a spreadsheet to download. <?php $objPHPExcel = new PHPExcel(); $emailReport = 'tmp/company.xls'; // Remove previous file if it exists. $testdel=unlink($emailReport); if(!$testdel){ echo "Unable to remove previous Spreadsheet<hr/>"; } echo '<a href="'.$emailReport.'" class="dbutton">Download Spreadsheet</a><hr/>'; $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow(1, 1,'Old Value'); $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5'); $objWriter->save($emailReport); ?> All well and …

Member Avatar for davecoventry
0
207
Member Avatar for davecoventry

I have a website that looks okay at 1300 pixels: ![ff8183a0725d00cbee6182aec130d609](/attachments/small/2/ff8183a0725d00cbee6182aec130d609.png "align-left") At 1200 pixels problems start to occur: ![11f2db3201b15cce327cdb49a3247dfb](/attachments/small/2/11f2db3201b15cce327cdb49a3247dfb.png "align-left") At 550 pixels I'm losing text and Menus. ![ea2757234e3dd9d1fedde5d9a5191adc](/attachments/small/2/ea2757234e3dd9d1fedde5d9a5191adc.jpg "align-left")

Member Avatar for gentlemedia
0
130
Member Avatar for davecoventry

I'm trying to use the Freetype libraries. The header files are in **/usr/include/freetype2** I'm using Netbeans IDE and I've addred **/usr/include/freetype2** and **/usr/include/freetype2/config** to the include directories portion in Tools>Options>C/C++. The file ft2build.h contains the directive **#include <config/ftheader.h>**, which the compiler apparently cannot see. `/usr/include/freetype2/ft2build.h:37:29: fatal error: config/ftheader.h: No such …

0
81
Member Avatar for davecoventry

I have a horizontal menu: "HOME" "DISCOVER" "STRATEGY MODEL" "PROFILE" "CONTACT US" ![9fa0ee7bb1a4cdc493624e869eba98bc](/attachments/large/2/9fa0ee7bb1a4cdc493624e869eba98bc.jpg "9fa0ee7bb1a4cdc493624e869eba98bc") The "DISCOVER" has a drop-down submen (in green for clarity). The HTML: <ul id="menutop"> <li class="root"> <a class="bullet" href="http://www.clivestacey.co.za/"> <span> HOME </span> </a> </li> <li class="root"> <a href="#" class="daddy"> DISCOVER </a> <ul class="menusub"> <li> <a class="sub_menu" …

Member Avatar for davecoventry
0
374
Member Avatar for davecoventry

My page shows differently in Firefox and IE. Here it is as it SHOULD be rendered. In Firefox. ![41205f92f577fa8af5e085566254fde6](/attachments/large/2/41205f92f577fa8af5e085566254fde6.jpg "41205f92f577fa8af5e085566254fde6") Her's how it renders in IE. ![47daa4f9c3e10b43e21a54b251d4f4a7](/attachments/large/2/47daa4f9c3e10b43e21a54b251d4f4a7.jpg "47daa4f9c3e10b43e21a54b251d4f4a7") The site is [here](http://www.clivestacey.co.za/landingpage.html) The site is a Joomla 1.5 site that I've prepended a landing page on. I've simply used "Save …

Member Avatar for davecoventry
0
169
Member Avatar for davecoventry

I have a simple php file: <?php /** * email_validation_query: evq.php * This file is placed in the root directory and returns the owner's email address * in the jos_owners table along with the animal's name and the breeder who registers them. **/ $user_name = "user_name"; $password = "password"; $server …

Member Avatar for davecoventry
0
249
Member Avatar for davecoventry

Here is my code: #include <string> extern std::string commands[]; extern std::string shortcuts[]; int in_array(std::string ar[], std::string txt){ for(int i=0;i<ar->size();i++){ int g=ar->compare(txt); if(!g){ return i; } } return -1; } int actioncmd(char* command){ int act=in_array(shortcuts,command); if(act==-1){ return -1; } act=in_array(commands,command); return act; } I'm simply trying to find out whether a …

Member Avatar for davecoventry
0
5K
Member Avatar for davecoventry

Forgive me if this is somewhat basic. If have an array of 20 strings defined: char const commands[20][20] = {// each command string will have a maximum of 20 chars. "quit", "open", "save", "close" }; I want to test the command value to see what action should be taken. int …

Member Avatar for NathanOliver
0
297
Member Avatar for davecoventry

I have the following: <div id="main" class="site-main"> <div id="primary" class="content-area"> <div id="content" class="site-content" role="main">Main</div> </div> <div id="secondary" class="widget-area">Secondary</div> <div id="tertiary" class="widget-area">Tertary</div> </div> It displays on the page as a series of rows, one beneath the other, each row taking the full width of the containing div. What I want is …

Member Avatar for veera100
0
420
Member Avatar for rjusman90

<?php $User_ID=$_SESSION['UserId']; $query = mysql_query("SELECT * FROM Users WHERE UserId='$User_ID'"); $row = mysql_fetch_array($query); $filename=$row['PicUrl']; if(isset($_SESSION["UserName"])){?> <img src="images/<?php echo $filename?>" align="left"width="50px" height="50px"/> <?php echo $_SESSION["UserName"]; echo"<li><a href='logout.php'>Click here to Logout.</a></li>"; echo"<li><a href='user_update.php'>edit your account detail</li>"; } ?> if pic url is empty then hide img scr

Member Avatar for rjusman90
0
205
Member Avatar for davecoventry

I have two items that I need to be displayed in the centre of the page. <span class="center"> <div class="ring">1</div><div class="question">Question</div> </span> The CSS is as follows: .ring{ height: 58px; width: 58px; font-size: 24pt; font-weight: bold; vertical-align: middle; background-image: url("images/ring.png"); } .question{ font-size: 24pt; } .center{ margin-left: auto; margin-right: auto; …

Member Avatar for diafol
0
195
Member Avatar for davecoventry

Hi, I have a #header class and a #menu class. <body> <div id="page"> <header id="masthead"> <hgroup> <h1 class="site-title"> <a href="#" >Demo</a> </h1> </hgroup> <nav class="site-navigation"> <h1 class="menu-text"> </h1> <div class="menu-text skip-link"> <a href="#content">Home</a> </div> </nav><!-- .site-navigation .main-navigation --> </header><!-- #masthead .site-header --> <div id="primary" class="content-area"> &lt;div id="primary" class="content-area"&gt; <div id="content" …

Member Avatar for davecoventry
0
379
Member Avatar for davecoventry

I have the following HTML: <div> <img src="http://127.0.0.1/divo/wp-content/uploads/2014/05/vac.system-2-TOP-150x150.gif" style="padding-right: 8px; padding-bottom: 8px; float: left;" /> <div>Children: how to help them cope.<br/> <div style="font-size: 0.75rem;"> <i>Published in <a href="http://127.0.0.1/divo/?cat=5">Kids</a>, yesterday by David Coventry</i><br />Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque …

Member Avatar for davecoventry
0
841
Member Avatar for davecoventry

Is it possible to see what the index is of a Select combobox selection? I have website with a select box which has a few hundred options. <select name="breed" id="breed"> <option value="">Please select</option> <option value="Abyssinian" >Cat: Abyssinian</option> <option value="American Bobtail" >Cat: American Bobtail</option> <option value="Mixed (Unknown)" >Cat: Mixed (Unknown)</option> .... …

Member Avatar for Alberto Bucur
0
190
Member Avatar for davecoventry

I have two download links as follows: 1. <a class="artbutton" href="http://10.0.0.201/wp/wp-content/uploads/2014/01/2014.01-ADC-CV.pdf"><span>CV</span></a> and, 2. <a class="artbutton" href="http://10.0.0.201/wp/wp-content/uploads/2014/01/2011-Business-Profile-.pdf"><span>Company Profile</span></a> in PDF form. I'm expecting to get '1.' followed by the two buttons seperated by 'and, 2.' and followed by 'in PDF form'. What I'm actually getting is the two buttons together follwed …

Member Avatar for davecoventry
0
161
Member Avatar for davecoventry

I have a link in my web page: <div class="site-logo"> <h1 class="site-title"> <a href="http://10.0.0.201/wp/" title="Document &amp; Draft" rel="home">Document &amp; Draft</a> </h1> <h2 class="site-description">For power CAD users</h2> </div> The "site-logo" class is as follows: .site-logo{ display: block; text-align: left; color: #9FA32E; font-family: "Trebuchet MS",Arial,Helvetica,Sans-Serif; font-size: 42px; text-decoration: none; } I'm expecting …

Member Avatar for JorgeM
0
862
Member Avatar for davecoventry

If I have a photograph of a rectangular object whose image recedes with perspective, is it possible to work out the scale of measurements along that object? For example: I have a photograph of a (metric) ruler. The ruler is graduated in centimetres as shown, 30 cms. Is it possible …

Member Avatar for davecoventry
0
160
Member Avatar for davecoventry

I have some CSS strangeness on http://localbuz.com/brod/. The Top menu has a container <div class="menu-main"> </div> Within these is a series of menus: Home, Contact Us, etc. <div class="menu-main"> <ul><li> <a href="news">News</a> <a href="pre-owned-boats">Pre-Owned Boats</a> <a href="new-boats">New Boats in Stock</a> <a href="marina-riviera">Marina Riviera</a> <a href="contact">Contact Us</a> <a href="home">Home</a> <a href="?q=user">Log …

Member Avatar for IIM
0
172
Member Avatar for davecoventry

I have some PHP code to get info from a database. $category='New Boats'; $titles=array(); $result=db_query('SELECT vid FROM {taxonomy_vocabulary} WHERE name = :type',array(':type' => 'Boat Types')); $row = $result->fetchAssoc();//8 $vid=$row['vid']; $tid=db_query('SELECT tid,name FROM {taxonomy_term_data} WHERE vid=:vid',array(':vid' => $vid)); while($ttd_row= $tid->fetchAssoc()){ if($ttd_row['name']==$category){ $tid=$ttd_row['tid']; $result=db_query('SELECT entity_id FROM {field_data_field_boat_type} WHERE field_boat_type_tid=:tid',array(':tid'=> $tid)); $eRows=$result->fetchAssoc(); $eid=$eRows['entity_id']; …

Member Avatar for davecoventry
0
193
Member Avatar for davecoventry

I have two lists which I have sorted with asort(). $weightings = Array([7] => 1,[3] => 2,[1] => 10,[2] => 10,[10] => 10,[6] => 10,[4] => 15,[5] => 15,[8] => 20,[9] => 20); $revised_date = Array([1] => 1378652385,[2] => 1378654024,[3] => 1378654113,[4] => 1378654151,[5] => 1378654201,[6] => 1378654239,[7] => 1378654273,[8] …

Member Avatar for davecoventry
0
160
Member Avatar for davecoventry

I'm trying to run a file called configure.bat which contains the following: echo off mkdir Platforms mkdir Platforms\bb2010wm FOR /F "tokens=2* " %%A IN ('REG QUERY "HKLM\SOFTWARE\CodeGear\BDS\7.0" /v RootDir') DO SET BCB2010_ENV_ROOT=%%B cd Platforms\bb2010wm ..\..\build\cmake\bin\cmake.exe -G "Borland Makefiles" -D CMAKE_C_FLAGS:STRING="-g0 -tWM -WU -x -xd -w-8012 -w-8027 -w-8026 -w-8066 -w-8022 -w-8004 …

Member Avatar for gusano79
0
539
Member Avatar for davecoventry

A little patience, please: I'm incredibly old, it's a long time since I did basic algebra so I'm a little confused. I have a line y = mx+c and a circle (x-h)*(x-h)+(y-k)*(y-k) = r*r I've expanded the circle: x*x-2*x*h+h*h+y*y-2*y*k+k*k = r*r and substituted mx+c for y: x*x-2*x*h+h*h+(m*x+c)*(m*x+c)-2*(m*x+c)*k+k*k = r*r expanding …

Member Avatar for Momerath
0
200
Member Avatar for evilguyme

Hey guys, I ran into a small problem, I need to make a software that does some basic calculation and saving to a custom file. To make this software i don't know how to start, do i need to make an MFC Application? and if i do then what settings …

Member Avatar for evilguyme
0
360
Member Avatar for davecoventry

I am adminitering a (Joomla) site set up by someone else. The site uses a proprietry system (paid for) whereby advertisers on a classifieds page can be emailed with queries about the product being advertised. I need to keep track of these emails for the purposes of following up, but …

Member Avatar for pixelsoul
0
94