Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
6
Posts with Upvotes
5
Upvoting Members
5
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #4K

50 Posted Topics

Member Avatar for dwlamb

I am trying to set-up Postfix on my Ubuntu local web development machine for send-only e-mails using Gmail so I can test e-mails sent by a web app I am developing. These are the steps I have followed based on a recently posted tutorial found [here](https://tonyteaches.tech/postfix-gmail-smtp-on-ubuntu/): 1. Dowloaded and installed …

Member Avatar for chickenbirds
0
288
Member Avatar for dwlamb

I am parsing xml data generated by backup software for SMS and phone logs. Most of the data appears like this: ``` <sms protocol="0" address="##########" date="1495903715000" body="Ok. See you then.;-)" subject="none" ... /> ``` For most bodies of a text message, the data follows the same pattern above: Keyword `body="<string>"`. …

Member Avatar for pritaeas
1
211
Member Avatar for dwlamb

I am working on a project for drag and drop items in a shopping cart. For an item dropped into the cart, I am trying to implement jQuery $.ajax. The result back from the PHP is pre-pended with '`' and I can not figure out why. This is the javascript: …

0
2K
Member Avatar for dwlamb

I am trying to establish a connection between LibreOffice (5.4.6.2) and Mariadb (10.1.29)/mysql. I have researched various resources on the web but am stuck not being able to establish a connection preliminary steps taken: * the file mariadb-java-client-2.4.0.jar is downloaded from [https://downloads.mariadb.com/Connectors/java/connector-java-2.3.0/](https://downloads.mariadb.com/Connectors/java/connector-java-2.3.0/) * JRE is installed and enabled under LibreOffice …

Member Avatar for tejal_1
0
5K
Member Avatar for Reverend Jim

I have a medical situation also and keep an extensive amount of my own records on my phone. For transferring data from my pc to my phone, Wi-Fi Droid works very well. It sets your phone as a server while activated and provides a URL in the app which you …

Member Avatar for vasuma4
1
4K
Member Avatar for dwlamb

The challenge I need to resolve is getting a sub-string from strings such as those below. Each line is of an array so I am iterating and working on one line at a time in a JavaScript loop. All of the strings have the names at the start of the …

Member Avatar for dwlamb
0
3K
Member Avatar for dwlamb

I am a novice at JavaScript an jQuery. I am writing a project and trying to incorporate $(this) to read a data attribute. Once the data attribute is determined and assigned to a variable, I intend to use that to access other form elements. Instead of reading the data attribute …

Member Avatar for Dani
1
1K
Member Avatar for dwlamb

Is it possible to attach a jquery autocomplete input to a form initiated by ajax editing a table? I have the following method for making a table cell editable using AJAX. I.e., user clicks on the cell and it transforms to a mini form. Hit Enter and the changes are …

Member Avatar for RobinR
0
496
Member Avatar for dwlamb

I have 3 td's in a portion of a table. Sometimes, the data coming in from the database is less than 3. I need a method that will lay-out the data precisely compared to a rank in the table. Ideal situation: array |-0 |-name => Joe |-rank => 0 |-1 …

Member Avatar for Stefce
0
345
Member Avatar for dwlamb

I am trying to create databases in Ubuntu 14.04 running LibreOffice 4.4.3 and can not due to not connecting with JRE or JDK. Research carried out and things I have tried lead me to understand I need JDK-8 now instead of JRE. Is this accurate? JDK-8 and Java 8 are …

Member Avatar for rproffitt
0
1K
Member Avatar for dwlamb

I am starting a project that has been managed using a spreadsheet until now but needs to be converted to a mysql/php application. The amount of rows in the spreadsheet has exceeded something that can be easily sorted, filtered and edited. A particular field has a weak entity that is …

Member Avatar for diafol
0
425
Member Avatar for dwlamb

I have an endless scroll application in PHP and jQuery. This my javascript: var base_url = window.location.origin; $(window).scroll(function() { if($(window).scrollTop() + $(window).height() > $(document).height() - 100) { var offset = $(".badge-item").length; console.log(offset); $.ajax({ url : base_url+'/index.php/display/jQuery_movies', type : "post", data : { offset_cnt : offset }, datatype : 'html', success …

Member Avatar for dwlamb
0
204
Member Avatar for dwlamb

I have some experience when it comes to CodeIgniter. I am trying to figure out a method for determining the window size of a browser and assign it POST or $this or the user session (also part of $this). I need the variable to persist for the session. In my …

Member Avatar for veedeoo
0
651
Member Avatar for dwlamb

After writing out that which appears below I realise help I am asking for might be outside the scope of support for Owl Carousel. The plug-in itself is working as it should. It is functions within this plug-in that I want to emulate for the rest of the content that …

Member Avatar for Airshow
0
254
Member Avatar for dwlamb

This is a typical entry of many on a page: <div class="link_entry"> <div class="link_actions left"> <span class="LibraryItemDelete"> <img src="images/ajax-urls/delete_icon.png" title="Delete this link" alt="Delete this link"> </span>&nbsp; <span class="LibraryItemEdit"> <img src="images/ajax-urls/edit_icon.png" title="Edit this link" alt="Edit this link"> </span> </div><!-- /link_actions --> <div class="link right"> <input type="hidden" value="92" name="id"> <--want to find …

Member Avatar for dwlamb
0
301
Member Avatar for dwlamb

I have two forms that are fairly identical located on different pages of a site. In order to call distinct jQuery ajax functions there are two class names I need to alter. For one of the pages, I place this script <script> $(document).ready(function(){ $(".itemDelete").switchClass("itemDelete","LibraryItemDelete"); $(".itemEdit").switchClass("itemEdit","LibraryItemEdit"); }); </script> and it is …

Member Avatar for dwlamb
0
172
Member Avatar for dwlamb

I have the following snippet of function and call to another function for returning tabs to format code. public function makelinks ($urls_data) { ...code... $i = 5; $tabs = $this->echo_tabs($i); $output = "$tabs<ul class=\"url_list\">\n"; ...code... } public function echo_tabs($i){ $x = 0; $o = ''; for ($x;$x<$i;$x++) { $o .= …

Member Avatar for dwlamb
0
211
Member Avatar for dwlamb

This might be a duplicate but I can not find a solution for the small challenge I am facing. I want to assign the href and text in an `<a>` tag to variables and use them in a jquery script. Examples I have found pertain to diving into the DOM …

Member Avatar for diafol
0
264
Member Avatar for dwlamb

I am converting a PHP application from MySQL to PostgresSQL. The MySQL works flawlessly. The database for this application is a one to many relationship. I have a while loop nested inside another while loop <?php while ($movie_row = pg_fetch_array($movie, PGSQL_ASSOC)) { ?> [html code to echo various elements of …

Member Avatar for cereal
0
172
Member Avatar for dwlamb

I have a php application for a cookbook site. To make this application responsive for all devices, I need to convert the listing of ingredients from a table format to div's but I am having a challenge with how to set-up the div structure and css. To better explain what …

Member Avatar for TomH.PG
0
289
Member Avatar for dwlamb

I am working on a responsive web design. For some resolutions like below 800px across, I hide a whole div with syntax such as: @media only (max-width : 800px) { div.well._menu { display: none; } } How do I bring the div back to its default if the display property …

Member Avatar for dwlamb
0
254
Member Avatar for dwlamb

I am having a challenge with the spacing of breadcrumbs items in IE8. The attached pics show how the area displays in browsers. Those shots are from a brand new fresh install of Joomla 3. ![65b575f43580aac9921698a85dc658f8](/attachments/small/3/65b575f43580aac9921698a85dc658f8.png "align-left") This is how they appear in IE 8. Notice the wrap of how …

Member Avatar for LastMitch
0
210
Member Avatar for dwlamb

I am trying to debug some CSS in IE8 and the item I need to look at involes either hover or focus. The CSS has to be edited in IE8 for it is filters for IE browsers to achieve gradients. These filters are not showing in Firebug under FF or …

Member Avatar for LastMitch
0
142
Member Avatar for dwlamb

Is there some standard trick to styling labels and checkboxes so they appear consistently in all browsers? The attatched pic with the label obscured by overlapping checkbox is what I get with Chrome and Safari for Windows. The other attatched pic is what I see in Firefox, IE and Opera. …

Member Avatar for iamthwee
0
401
Member Avatar for dwlamb

I am trying to implement a font package I downloaded from Font Squirrel. The demo included css & html code and works ok but everything is in the root. For the application I am using, I need relvant paths. This is my tree structure: /site-root |--/Fonts | /*.ttf files |--/Styles …

Member Avatar for LastMitch
0
457
Member Avatar for dwlamb

I am cleaning up the code in an e-pub file. It was converted from a PDF and a number line break occur where not desired. I am using the following syntax to find the errand breaks `</p>\n\n <p class="calibre2">[a-z]` For replace I wish to insert a space and whatever the …

Member Avatar for LastMitch
0
221
Member Avatar for dwlamb

I am having a challenge with a hover state and css. In this [pic of hovering over menu item Gallery](http://dwlamb.com/hoverChallenge/hoverState1.png) the background bleeds down. This is the code for regular state: #navigace ul.menu li a { display:block; font-size:11px; font-weight:bold; line-height:37px; padding:0 20px; text-transform:uppercase; } To get rid of the bleed …

Member Avatar for LastMitch
0
175
Member Avatar for dwlamb

I am trying to set-up some virtual hosts on a fresh install of Ubuntu 12.04 and not getting expected results. I am using [this tutorial](http://blog.code4hire.com/2011/03/setting-up-virtual-hosts-for-apache-on-ubuntu-for-local-development/) which I have used before without fail. The challenge seems to come with restarting apache. $> sudo service apache2 restart * Restarting web server apache2 …

Member Avatar for dwlamb
0
331
Member Avatar for dwlamb

Working on some CSS for a WordPress site, I came across this: img[class*="align"], img[class*="wp-image-"], img[class*="attachment-"] { height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */ } Are thes wild cards that will work for any instance of, for instance, `class="wp-image-a"`, `class="wp-image-b"`, `class="attachment-vacation"`?

Member Avatar for JorgeM
0
124
Member Avatar for dwlamb

I want to use regular expression to clean-up some CSS files. I used a Friebug add-on, CSS Usage, to analyse some CSS from a jquery demo. Exporting the files, this add-on places 'UNUSED' at the front of a declaration and rule. Below is a sample of the output. html #demo-config-menu …

Member Avatar for dwlamb
0
117
Member Avatar for dwlamb

I am wondering if I am trying to do too much or if there is a better way for a client-side form I wish to create. A limited working prototype for what I have so far appears here: [http://cookbook.dwlamb.com/edit.html](http://cookbook.dwlamb.com/edit.html) I am using a table as the frame for the form …

0
97
Member Avatar for dwlamb

I am looking for a method with one or more php functions for manipulating form textarea data. I want to clean it up by indenting it and wrapping it after a certain length with EOL but not necessarily html <br> or <br /> before it is inserted in My database. …

Member Avatar for dean8710
0
109
Member Avatar for dwlamb

Good day, I am working on atomizing a template creating includes in a sub-directory called includes and calling them like this <?php include 'includes/head.php'; ?> I have also tried <?php include('includes/head.php'); ?> My page won't load. All I get is a blank browser window. I tried tailing the error.log and …

Member Avatar for Squidge
0
235
Member Avatar for dwlamb

A script I am writing on works on the DVD present in the drive at time of script execution. I want to extract merely the label of whatever appears after '/media/'; ./script.sh /media/DVDRW-43/ An obvious solution would be to get the substring by `path='echo ${file:7:9}' #renders DVDRW-43` but I would …

Member Avatar for cheochi
0
181
Member Avatar for dwlamb

I'm baffled by something in a small script I wrote. The purpose of the script is to compare 2 files on a system. Somehow a tree structure was copied and am fairly certain that the files are identical The command line is as follows: /filecomp.sh /home/daniel/Documents/workspace/www/ This is the script: …

Member Avatar for dwlamb
0
124
Member Avatar for dwlamb

I am trying to write a script that will facilitate cataloguing various files on a backup medium. Looking at what's available, only **stat** seems suitable but it outputs the data with a lot of formatting I don't require and would take a lot of scripting to massage into what I …

Member Avatar for L7Sqr
0
383
Member Avatar for dwlamb

New to bash, I am trying to change the names of dozens of files as I switch over to Linux. I need something that will work recursively from the root of a directory. In my research I found something like this that I have adapted: find /media/D_Drive/Music/ -name '*&*.*' -exec …

Member Avatar for chris.stout
0
82
Member Avatar for dwlamb

I am looking for syntax I saw somewhere but can not find now. Working with the results of a find delete the files found. The syntax is something like this: for i in "${find . -name '*.ini'}"; do rm $i; done Am I dreaming or is this possible?

Member Avatar for dwlamb
0
92
Member Avatar for dwlamb

I am new to bash shell scripting. Converting over to Linux before support for Windows XP fades into the sunset, I am redesigning and rewriting many scripts that worked using enhanced scripting language Take Command. I am trying to evaluate whether a directory exists based on a list of directories …

Member Avatar for FelineHazard
0
151
Member Avatar for dwlamb

I am new to bash scripting. Is it possible to get a value returned on a nested variable? At the command line, the following code will generate desired ouput: while read line; do echo -e "${line:21}"; done < Albums-linux.txt It takes a list of directories for albums and returns a …

Member Avatar for JeoSaurus
0
460
Member Avatar for dwlamb

I am using a CMS as a basis for a website. There are some special articles I wish to add and they require custom css. To keep things tidy, I want to have unique css files for each of these special articles and invoke them using [CODE=css]@import url('filename.css')[/CODE] However, the …

Member Avatar for weekendrockstar
0
153
Member Avatar for dwlamb

Good day, I am getting an error on a log-in script: mysql_query(): 4 is not a valid MySQL-Link resource I've done some research on this and followed such advice as: [LIST] [*]ensuring the mysql connection is closed after the results have been returned [*]testing any sql strings I define in …

Member Avatar for Zexsz
0
180
Member Avatar for dwlamb

Good day, I've done some searching on this topic but am not sure if I am defining terms properly in order to get results. I am new to AJAX and can execute the process of dynamically adding some content. But I want to take it one step further for adding …

0
75
Member Avatar for dwlamb

This isn't really a PHP question but I couldn't find the right place for it. I'm getting these strange characters -  - in my source code before the Doctype tag. I've encountered this before when working in Notepad++ using ANSI as UTF-8 or similar formats with BOM for encoding. …

Member Avatar for dwlamb
0
222
Member Avatar for dwlamb

I have an array that is multidimensional and I need to test whether an offset exists. My reading of the PHP manual for array_key_exists makes sense for a single-dimension array. My script takes results returned from the database and arranges them this way: [code=php] Array ( [1] => Array ( …

Member Avatar for dwlamb
0
681
Member Avatar for dwlamb

Good day, The challenge I am experiencing is obtaining the contents of the private necessary to decrypt data. I've reviewed tutorials on public/private key generation and my keys are properly formatted. To debug, I substituted a pair of keys created a year ago when I took a course on secure …

0
82
Member Avatar for dwlamb

Good day, I am climbing a wall trying to figure out why I can not retrieve the results of a mysql query to a php array. My query polls the database and it is retrieved but all the data is encrypted. I need to take the results and put them …

Member Avatar for diafol
0
360
Member Avatar for dwlamb

Good day, I've run into a problem with list items displayed inline (i.e., horizontally) using Safari for Windows. If you [URL="http://dwlamb.com/cssproblem/loggedin.html"]follow this link, you'll find an uploaded static version of the problem[/URL]. Viewing it in IE7-8 and Firefox (Windows & Linux), the page yields as it should. The 4 menu …

Member Avatar for dwlamb
0
230
Member Avatar for dwlamb

I'm new to Classes. For a project to improve my skills I'm stuck. This project is a registration in which: [LIST=1] [*]form data is validated [*]some variable from the form are encrypted [*]some variables from the form are hashed [/LIST] It is getting the Class for hashing to load and …

Member Avatar for Triztian
0
2K
Member Avatar for dwlamb

I'm trying to write a CGI script as part of a web technology programme I am undertaking. There's a challenge with getting form data to concatenate into my SQL strings to populate my database which is in Postgre. This is my HTML form: [CODE="HTML"] <form action="review_input.cgi" method="post"> <input type="hidden" id="cdid" …

0
71

The End.