Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
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 #397
Ranked #4K
~17.6K People Reached
Favorite Tags

43 Posted Topics

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
272
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
415
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
458
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
572
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
327
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
342
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
213
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
132
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
82
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
377
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
172
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
259
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
304
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
428
Member Avatar for rjusman90

if(!empty($filename)){echo '<img src="images/'.$filename.'" align="left"width="50px" height="50px"/>';}

Member Avatar for rjusman90
0
213
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
197
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
396
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
855
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
192
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
163
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
979
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
173
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
175
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
195
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
166
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
555
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
397
Member Avatar for evilguyme

To interact with spreadsheets you might want to consider using java. http://poi.apache.org/ has an extensive java library to access, read and write Excel, Word and Powerpoint documents.

Member Avatar for evilguyme
0
368
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
97
Member Avatar for davecoventry

Depending on a variable 1-7, I am interested in ANDing a byte value to to get that number of bits. Currently I'm doing this: function getMaskedBits(num, Bit_location: Byte): Byte; var masks: array[1..7]of Byte=(127,63,31,15,7,3,1); begin Result:=num and masks[Bit_location]; end; is there a better (or more efficient way of doing this?)

Member Avatar for davecoventry
0
112
Member Avatar for davecoventry

I have a client who deleted users on his database. Is there any possibility that the records have been flagged for deletion rather than physically deleted? If so how do I recover them? It's a Joomla system and there are no backups. Thanks. (Yes, I know).

Member Avatar for pritaeas
0
115
Member Avatar for davecoventry

I have an int64_t value which I'm trying to write to a file. `fwrite(&page->id,sizeof(page->id),1,tid); if the value of page->id == 00 00 00 00 00 00 00 03, then the variable is written correctly as 03 00 00 00 00 00 00 00. However, if the value is 00 00 …

Member Avatar for davecoventry
0
301
Member Avatar for davecoventry

I am trying to access a string. wchar_t *str; char *Pname; FILE *fp; str = somefunction(); Pname = str; fp = fopen ("/tmp/test","a+"); fprintf(fp,"%s\n",Pname); fclose(fp); str actually contains "ABigName", but the file simply contains the first letter, "A".

Member Avatar for deceptikon
0
177
Member Avatar for davecoventry

I am studying the C++ code from an opensource project (libredwg) I have the following code: `*offset = *(*src)++;` What does this do? I understand offset = *src++; which would assign src[0] to the variable 'offset' and then increment src so that it points to what was previously src[1].

Member Avatar for davecoventry
0
140
Member Avatar for davecoventry

I'm trying to port opensource C++ code into my own Pascal application. Specifically, I'm using libredwg source to read an AutoCAD drawing file so that I can extract text attributes and populate a database using Lazarus. char* copy_bytes_16(char *dst, char *src) { *(uint64_t*)dst = *(uint64_t*)(src + 8); *(uint64_t*)(dst + 8) …

Member Avatar for triumphost
0
217
Member Avatar for davecoventry

Hi, I have an array (2=>50, 231=>63, 235=>121) How do I change the second item? Thanks, Dave

Member Avatar for davecoventry
0
67
Member Avatar for mawoodard@pilot
Member Avatar for davecoventry

What I have is a list of file paths: dir0/file0.txt dir0/dir1/filea.txt dir0/file1.txt dir0/dir1/fileb.txt dir0/dir1/dir1/filec.txt dir0/file2.txt What I'd like to get is something like the following: [code] $paths=Array( file0.txt=>file0.txt, dir1=>Array( filea.txt=>filea.txt, fileb.txt=>fileb.txt, dir1=>Array( filec.txt=>filec.txt ) ), file1.txt=>file1.txt, file2.txt=>file2.txt ); [/code] It strikes me that this must be a fairly common requirement …

Member Avatar for diafol
0
2K
Member Avatar for davecoventry

Hi, I'm trying to run a Java App from PHP. [B]system('java -jar /home/dave/web/drupal/java/dist/emp.jar');[/B] fails. nothing prints out, it just returns FALSE. However, this works: [B]system('java -jar');[/B] Prints out the help info normally associated with incorrect parameters passed to Java. This also works: [B]system("ls -l /home/dave/web/drupal/java/dist/emp.jar");[/B] Prints out a listing of …

0
93
Member Avatar for davecoventry

I have had a look at some javascript functions in the form: [QUOTE] $('#css-style-definition').click(function() var newText = $('#console-msgs').html(); [/QUOTE] Does anyone recognise the syntax? Where can I get information on what is happening here?

Member Avatar for davecoventry
0
137
Member Avatar for davecoventry

I have a drupal user table: [CODE]+------------------+------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +------------------+------------------+------+-----+---------+----------------+ | uid | int(10) unsigned | NO | PRI | NULL | auto_increment | | name | varchar(60) | NO | UNI | | | | pass | varchar(32) …

Member Avatar for jbisono
0
116
Member Avatar for davecoventry

On my Drupal site I have a block which I've set up with a couple of links at the top. I want to change the content of the block depending on which link is clicked. I'm pretty sure you can do this as I've seen sites with this functionality, but …

Member Avatar for cakka
0
76

The End.