• Home
  • Tools
    • Color Chart
  • Software
    • Windows tricks
      • Windows 11 Speed Up Tricks
      • Windows Command Prompt CMD
    • Android Phone
      • Android – Dangerous Settings to Turn Off
    • Projects
      • Copy Files
      • Php Autoscript
      • Web Tools
  • Payments
  • Notes
  • System Tips

Notes

ACCESS 2022 | Browsers | Css | Htacess | Html | Html5 | Javascript | Microsoft Excel | Mysql | Mysql Dumps | Php | Vb.net | VBscript | Windows <=8 | Windows >=10 | WP | WP Plugin | WP Themes | _Misc Software |

ABCDEFGHIJKLMNOPQRSTUVWXYZ
ON
PRT
OFF

<- Look Inside Data
Conditions:
Order:
1|2|3|4|5|6|7|8|
50 Language Operation Title
Keywords
Application
Code Languageid
Show Html
Show Iframe
Make Public
Viewed
Viewed Date
Javascript Object .select(); Clipboard
Clipboard object of document.getElementById().select;
Javascript



0
07/29/2022
WP Files WPfunctions.php
function mysql plugin
WP



0
07/29/2022
Vb.net Database Delete A Record From A DAO Recordset
delete recordset
Vb.net



0
10/09/2022
WP Plugin Plug-in Keep Colorado Free
wordpress admin plugin shortcode membership form
Custom
WP Plugin



3
12/22/2022
WP Archive Saved Android Video Text
android
 











00:00:00 hidden setting in gallary app
00:13:13 settings -> search for gallery -> Gallery App info -> Mobile data ->
turn off Allow background data usage
00:33:02 <- Battery -> Restricted
00:39:09 <- Appear on top or draw on top -> Allow permission - off
00:46:24 Open gallery app -> 3bar menu rigth corner ->
00:58:00 Settings -> About Gallery -> Tap on version# 5times fast
01:06:22 <- Gallery labs -> Samsungs hidden tool list ->
01:21:05 When receiving Samsung update
01:28:14 Enabled trackers to turn off
01:35:28 SETTINGS -> Google Services -> All Services ->
01:58:09 personalize using shared data -> turn all 3 or 4 listed off
02:07:26 SETTINGS -> Apps -> 3dots right -> Special Access ->
-- usage dat access -> Google ->
02:23:27 Disable all 3 Google entities
02:30:07 3 setting to always turn off ->
02:43:20 SETTINGS -> privacy & security -> more privacy settings ->
--- Personal data intelegence -> Turn off
03:18:08 <- usage & diagnostics -> turn off
03:35:03 END
[video width="720" height="486" mp4="https://softwarewebdesign.com/SWDHome/wp-content/uploads/2025/12/android20251230.mp4"][/video]

video
00:00:00 Dangerous setting to turn off on Android phone
00:03:28 Open Settings
00:06:00 Click on about phone
00:08:07 Next Software Information
00:09:29 Next Build Number (click 7 times) Developer Mode activated
00:12:12 Go back main settings
00:16:26 Click Developer options on bottom
00:21:09 Go System Tracing
00:23:13 Turn off Trace Debugable Applications
00:28:27 Next Per-CPU buffer size
00:31:23 Use 8192 KB
00:34:17 Clear saved traces
00:41:18 Secret Wi-Fi menu-
- Developer options->Wi-Fi non-persistent MAC->ON
01:33:17 Getting rid of ads
Settings-> Connection - more connection settings->private DNS->private DNS provider->
dns.adguard.com->save
02:33:21 Google reporting - Settings app->Usage & diagnostics (turn off)->
02:49:02 Google reporting 2
- Settings app->digital wellbeing & parental controls->3 dots top->
- Settings->usage data access->settings->turn off access
03:10:11 Google reporting 3
- Settings app->digital wellbeing->customization services->switch off
03:29:07 Secret codes -
- *#62# forwarded calls
03:48:05 Secret codes -
- ##21# call forwarding unconditionally erasure
04:13:01 Secret codes -
- *#06# phone info
04:22:04 parasitic setting -
04:54:20 - Settings app->digital wellbeing & parental controls->3 dots top->
- Settings->usage data access->Settings->allow permissions->OFF
05:22:08 Spying on your phone
05:34:15 Check tracking -
- Settings app->search (spy glass)->type; tracker->unknown tracker alerts->allow alerts-
- manual scan->view report
05:59:13 trackers2
- Settings app-> Security & privacy->permission used 24 hr->three dots -
- Show system apps->permissions tab->physical activity->customization service->See all custom {link}
some apps may require permissions to work
06:41:19 Creation of the developer menu in settings- repeat
07:14:13 END
 

[video width="480" height="720" mp4="https://softwarewebdesign.com/SWDHome/wp-content/uploads/2025/12/AndroidDangerousSettings.mp4"][/video]

 
WP



5
12/22/2022
WP Plugin Plug-in Scriptures
show table of records
Custom
WP Plugin



1
12/22/2022
WP Themes Archive Software Web Design Home Page Code
page plugin ??
Executive Pro
WP Themes



1
12/22/2022
Php Archive Code Zoom Backup Code
zoom format html_entity_decode
Codezoom.php
Php



0
12/28/2022
Php Archive Color Change Script
color convert javascript step
Home Page
Php



7
12/28/2022
Php Archive Software Web Activation.php
reg75
Reg75.php
Php



2
01/30/2023
Browsers Customizing 10 Handy Firefox About:config Hacks
firefox configuration fire fox
Takeaway: If you really want to fine-tune your Firefox functionality, you have to roll up your sleeves and tinker with the about:config page. Jack Wallen shares some simple hacks to make Firefox work the way you want.

Unless you�re a Firefox power user, you may not be familiar with the about:config page. The Firefox about:config page is not so much a page as it is a somewhat hidden configuration section. It�s hidden because it�s fairly powerful and not nearly as simple to use as the standard Preferences window. In the about:config page, you have to know what you are doing or you can mess things up a bit. In fact, when you attempt to go to that page for the first time, you have to accept an agreement (which is really just a warning) before you can continue.

How this page works is simple. You reach the page by entering about:config in the address bar. There are entries (one per line) that handle various types of configurations. Each entry has a searchable keyword. The entries can be of Boolean, integer, or string value. Entries contain Name, Status, Type, and Value. Typically, you will be modifying only the Value, by double-clicking on it and making the change. With all of that in mind, let�s take a look at 10 of the best ways you can �hack� the about:config page.

Tip
If Firefox is fubar�d because you accidentally misconfigured about:config, you can fix it in one of two ways:

Make a backup of your prefs.js file before you start editing. Then, if something goes wrong, you can restore it by copying it over the corrupt file.
If you can�t restore via a backup prefs.js file, you can exit Firefox and issue the command firefox -safe-mode to bring up the Firefox Safe Mode screen. Then, just select Reset All User Preferences To Firefox Defaults. Note: This will restore all user preferences to their default values.

1: Speed up Firefox

This hack requires a few steps. Search for pipelining in the filter and you should see:

network.http.pipelining: Change this to true.

network.http.proxy.pipelining: Change this to true.

network.http.pipelining.maxrequests: Change this to 8.

Now search for max-connections and you should see:

network.http.max-connections: Change this to 96.

network.http.max-connections-per-server: Change this to 32.

2: Disable antivirus scanning
This is only for the Windows version. If you�re downloading large files, this scanning can seriously slow things down. And since you will most likely scan the downloaded file anyway, you�ll probably want to disable this. Of course, if you are uber paranoid (not a bad trait for computing), you might want to leave this entry alone.

To disable antivirus scanning, search for scanWhenDone and you should see:

browser.download.manager.scanWhenDone: Change this to false.

3: Open Javascript popups as tabs
If a popup window lacks the features of a browser window, Firefox will handle it like a popup. If you would prefer to open all windows, including popups, as new tabs, you need to tell Firefox in about:config. Search for newwindow and you will see three entries. Of those three entries, you will want to modify:

browser.link.open_newwindow.restriction: Change this to 0.

4: Spell checking in all fields
By default, Firefox checks spelling only in multiple-line text boxes. You can set it to check spelling in all text boxes. Search for spellcheckdefault and you should see:

layout.spellcheckDefault: Change this to 2.

5: Open search bar results in new tab
When you use the search bar, the results display in the current tab. This can be a nuisance because you will navigate out of the page you are currently in. To make sure Firefox always opens search results in a new tab, search for openintab and you should see:

browser.search.openintab: Change this to true.

6: Auto export bookmarks
In Firefox 3, bookmarks are automatically saved and exported for you. The only problem is that by default, they�re saved as places.sqlite instead of the more convenient bookmarks.html. To change this setting so that they can be easily re-imported, search for autoExportHTML and you should see:

browser.bookmarks.autoExportHTML: Change this to true.

7: Disable extension install delay
One of the few gripes I have with Firefox is the silly countdown you must endure every time you want to install an extension. Fortunately, this can be disabled. Search for enable_delay and you should see:

security.dialog_enable_delay: Change this to 0.

8: View source code in an external editor
When you need to view the source of a page, it opens up in browser popup. Most developers would probably like to have that opened in their favorite editor instead of having to cut and paset. To do this, there are two entries to modify. Search for view_source.editor and you will see:

view_source.editor.external: Change this to true.

view_source.editor.path: Change this to the explicit path to your editor of choice.

9: Get more add-on search results
When you do a search in the Add-on window, you�ll see just five results. You might find it more efficient to increase this number. Search for getAddons and you should see:

extension.getAddons.maxResults: Change this to 10 (or higher, if you want to see even more).

10: Redefine the Backspace button
Did you know you can configure Firefox to use the backspace button to either go back a page or go up a page? This keeps power users from having to go back and forth from the keyboard to the mouse. Search for backspace and you will see:

browser.backspace_action: Change this to 0 for previous page and 1 for page up.
Browsers



1867
09/09/2023
Windows <=8 Network Access Skydrive Like You Would A Hard Drive
skydrive sky drive map network cid windows live account

Windows 7 may differ the Windows 8 procedure.


  1. Log in to your skydrive account to get your cid:

    First you need to get your cid= number after logging into your Microsoft Skydrive account using your browser. It will have a format like https://skydrive.live.com/?mkt=en-US&v=FirstRunView#cid=8aca12345b98765. Yours may be slightly different since this was the first time I logged in to my account, but the number at the end.

  2. This is the url to map: https://d.docs.live.net/8aca12345b98765/

  3. Open Windows File Explorer

  4. Highlight the word "Computer" on the left hand side.

  5. The network drive Icon will appear at the top middle. Click it.

  6. Use one of the higher drive letters and copy and past the new url into the folder box. Then save.

  7. Windows will try to connect if it can and prompt you for your windows live account user name and password


Now you can copy and save files to your new drive. Just remember the files will only write and read based on your internet connection and speed.



Similar to windows 8 http://rashedtalukder.com/how-to-map-skydrive-folder-on-windows-rt-desktop-mode/
Windows <=8



1136
09/09/2023
WP Database Access Wordpress Connection String
connection string wordpress
WP



2
09/09/2023
Php Date Add Day
add day
Php



3
09/09/2023
WP Customizing Adding A Link To The Admin Panel
plugin function.php hyperlink wordpress admin
http://wordpress.org/support/topic/add-link-to-admin-panel

2 cases

1. Plugin
use this plugin : (it'll add a new menu item in your admin panel)

<?php
/*
Plugin Name: Add-Admin-Menu
Author: Sanjay Menon
*/

function mt_add_pages() {

// The first parameter is the Page name(admin-menu), second is the Menu name(menu-name)
//and the number(5) is the user level that gets access
add_menu_page('admin-menu', 'menu-name', 5, __FILE__, 'mt_toplevel_page');
}

// mt_oplevel_page() displays the page content for the custom Test Toplevel menu
function mt_toplevel_page() {
echo '
<div class="wrap">
<h2>New admin menu</h2>
<li><a href="http://www.icore.net.tc"><h3>Author Homepage</h3></a></li>
</div>';
}
add_action('admin_menu', 'mt_add_pages');
?>
OR
2. function.php
You just have to put that piece of code in "functions.php" file inside your WordPress Theme.

function mt_add_pages() {
add_menu_page('admin-menu', 'menu-name', 5, __FILE__, 'mt_toplevel_page');
}
function mt_toplevel_page() {
echo '
<div class="wrap">
<h2>New admin menu</h2>
<li><a href="http://www.icore.net.tc"><h3>Author Homepage</h3></a></li>
</div>';
}
add_action('admin_menu', 'mt_add_pages');

EXAMPLE 2: You may already have developed your own cool admin. No problem, have wordpress link to your admin and use the example modification to check to see if the user is logged in via wordpress. Just add a link to come back. This way wordpress will not mess up your styling you use in your admin.

<?php
/*
Plugin Name: swd_admin
Description: Link to swd admin
Author: Software Web Design
Version: 0.1

example mystuff modification
session_start();
include("config.php");
require_once("../wp-load.php");
if(!is_user_logged_in() && $bypass!=true){
echo "This site is under construction"; exit;
} else { $wordpress=true; $LEVEL=10; $_SESSION['LEVEL']=10; }


*/
add_action('admin_menu', 'swd_setup_menu');
function swd_setup_menu(){
add_menu_page( 'SWD Plugin Page', 'Go to SWD Admin', 'manage_options', 'admin-plugin', 'swd_menu' );
}
function swd_menu(){
echo "<h1>SWD Menu</h1>";
echo " <a href='/swd-admin/boardOfDirectorsView.php'>Board Passwords</a>
<a href='/swd-admin/directorsView.php'>Directors</a>
<a href='/swd-admin/libraryView.php'>Library</a>
<a href='/swd-admin/libraryCategoryView.php'>Library Categories</a>";
}
?>
WP



2389
09/09/2023
_Misc Software Setup Aimersoft Converter Ultimate IFO Option
convert movies DVD file IFO
How to load DVD folders, ISO files and IFO files?

Last Revised: 2013-08-28 11:14:46
2
FAQ for the following product:

DVD Ripper
Video Converter Pro
DVD to iPad Converter

You can follow the two ways below to load DVD folders, ISO files and IFO files.

1. Please click the arrow on the right of the DVD button, and then select Load DVD Folder, Load ISO Files or Load IFO Files to load the files into the program from your hard drive or disc.

2. Please click the File menu and select the corresponding command to load files into the program from your hard drive or disc.

Note:

1. If you select Load DVD Folder, the whole DVD folder will open. It is suggested to select the VIDEO_TS folder, and then you can load all files in this folder including trailers or commercials into the program.

2. If you select Load IFO Files, you had better choose the biggest IFO file containing the main movie, which will help you save much time because you needn't convert unnecessary parts.

Tip: You can right click the IFO files to choose Property to check the size of them.

http://support.aimersoft.com/how-tos/Load-DVD-folder-ISO-IFO.html
_Misc Software



1052
09/09/2023
Mysql Database Alter Table
change table alter table
Mysql



2
09/09/2023
Mysql Query Alter Tables
add field delete alter table rename update table auto increment engine collation
Mysql



1770
09/09/2023
Javascript String Array Information
length array size count
Javascript



1296
09/09/2023
Vb.net String Array Manipulation
count split explode
[Return number of element in array]
dotg.count= items in array

[Split a patterned string into separate elements like a csv file]
myfile="dog,10,cat,40,fish,50"
dotg=split(myfile,",")
Vb.net



1039
09/09/2023
Javascript Text Box Auto Clear Text Box
Input text - auto clear
w






FIND A STORE




onblur="this.value=(this.value=='') ? 'Enter a Zip Code' : this.value;"
onfocus="clearText(this);" value="Enter a Zip Code" />
Javascript



1460
09/09/2023
Php Function Automatically Make Urls Clickable
hyperlinks click email url link
function _make_url_clickable_cb($matches) {
$ret = '';
$url = $matches[2];

if ( empty($url) )
return $matches[0];
// removed trailing [.,;:] from URL
if ( in_array(substr($url, -1), array('.', ',', ';', ':')) === true ) {
$ret = substr($url, -1);
$url = substr($url, 0, strlen($url)-1);
}
//return $matches[1] . "$url" . $ret;
return $matches[1] . "$url" . $ret;
}

function _make_web_ftp_clickable_cb($matches) {
$ret = '';
$dest = $matches[2];
$dest = 'http://' . $dest;

if ( empty($dest) )
return $matches[0];
// removed trailing [,;:] from URL
if ( in_array(substr($dest, -1), array('.', ',', ';', ':')) === true ) {
$ret = substr($dest, -1);
$dest = substr($dest, 0, strlen($dest)-1);
}
return $matches[1] . "$dest" . $ret;
}

function _make_email_clickable_cb($matches) {
$email = $matches[2] . '@' . $matches[3];
return $matches[1] . "$email";
}

function MakeHyperlink($ret) {
$ret = ' ' . $ret;
// in testing, using arrays here was found to be faster
$ret = preg_replace_callback('#([\s>])([\w]+?://[\w\\x80-\\xff\#$%&~/.\-;:=,?@\[\]+]*)#is', '_make_url_clickable_cb', $ret);
$ret = preg_replace_callback('#([\s>])((www|ftp)\.[\w\\x80-\\xff\#$%&~/.\-;:=,?@\[\]+]*)#is', '_make_web_ftp_clickable_cb', $ret);
$ret = preg_replace_callback('#([\s>])([.0-9a-z_+-]+)@(([0-9a-z-]+\.)+[0-9a-z]{2,})#i', '_make_email_clickable_cb', $ret);

// this one is not in an array because we need it to run last, for cleanup of accidental links within links
$ret = preg_replace("#(]+?>|>))]+?>([^>]+?)#i", "$1$3", $ret);
$ret = trim($ret);
return $ret;
}
Php



1617
09/09/2023
Css Formatting Background Changes
background css fixed url background-
Css



1621
09/09/2023
Javascript Function Bearing
Bearing heading latitude longitude
GPS
Javascript



2
09/09/2023
Css Formatting Bullets And Numbering
bullets li ul ol
Css



2134
09/09/2023
Microsoft Excel Form Button To Go To A Certain Sheet
button sheet
Microsoft Excel



2
09/09/2023
Css Formatting Centering A Table
center table
Css



1744
09/09/2023
WP Customizing Change Footer Credits On WordPress
footer credits add_filter
WP



1622
09/09/2023
Javascript Date Check For Valid Date
valid date
Sample html:




Valid date format: mm/dd/yyyy




The Script:
Javascript



1548
09/09/2023
Php Function Choosing What Errors To See
error reporting
Developer
php_flag display_startup_errors on

.htacess
php_flag display_errors on

/ Turn off all error reporting
error_reporting(0);

// Report simple running errors
error_reporting(E_ERROR | E_WARNING | E_PARSE);

// Reporting E_NOTICE can be good too (to report uninitialized
// variables or catch variable name misspellings ...)
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);

// Report all errors except E_NOTICE
error_reporting(E_ALL & ~E_NOTICE);

// Report all PHP errors
error_reporting(E_ALL);

// Report all PHP errors
error_reporting(-1);

// Same as error_reporting(E_ALL);
ini_set('error_reporting', E_ALL)
Php



2
09/09/2023
Php Files Clean Url
? url clean & #
if you ever add variables to the url line you need to use this function
urldecode for passing gets.
$urlpart1=urldecode($urlpart1);
$urlpart2=urldecode($urlpart2);
$url="http://www.mydomain.com?$urlpart1&$urlpart2;

Do not use it on a completed url. It will totally mess everything up.
Php



1325
09/09/2023
Javascript Function Comment Out Lines
comment rem
Creating Single Line Comments
To create a single line comment in JavaScript, you place two slashes "//" in front of the code or text you wish to have the JavaScript interpreter ignore. When you place these two slashes, all text to the right of them will be ignored, until the next line.

These types of comments are great for commenting out single lines of code and writing small notes.

JavaScript Code:


Display:
I have comments in my JavaScript code!
Each line of code that is colored red is commented out and will not be interpreted by the JavaScript engine.

Creating Multi-line Comments
Although a single line comment is quite useful, it can sometimes be burdensome to use when disabling long segments of code or inserting long-winded comments. For this large comments you can use JavaScript's multi-line comment that begins with /* and ends with */.

JavaScript Code:


Display:
I have multi-line comments!
Quite often text editors have the ability to comment out many lines of code with a simple key stroke or option in the menu. If you are using a specialized text editor for programming, be sure that you check and see if it has an option to easily comment out many lines of code!
Javascript



1507
09/09/2023
Mysql Query Concat
concat mysql query
UPDATE parts SET pdf=CONCAT(partid,'.pdf'), part_image=CONCAT(partid,'.jpg') WHERE pdf=""

This example numbers the picture names to match the id of the record.

APENDING data before and after a field.
UPDATE `iwspackage` SET iwspackageimg=CONCAT('package',packageid,'.jpg');

UPDATE ads SET img1=CONCAT(adid,'a.jpg'), img2=CONCAT(adid,'b.jpg') , img3=CONCAT(adid,'c.jpg') , img4=CONCAT(adid,'d.jpg'), pdf=CONCAT(adid,'.pdf') WHERE adid>7;
Mysql



1933
09/09/2023
Php Database Concat - Combine Fields Or Text
add join concat
Php



2
09/09/2023
Javascript Function Confirm()
yes no cancel message box
Javascript



2000
09/09/2023
Php Customizing Convert Words Into A Graphic
text graphic image convert
$im = imagecreate(400, 30);

// Create some colors
$white = imagecolorallocate($im, 255, 255, 255);
$grey = imagecolorallocate($im, 128, 128, 128);
$black = imagecolorallocate($im, 0, 0, 0);

// The text to draw
$text = 'Testing...';
// Replace path by your own font path
$font = 'arial.ttf';

// Add some shadow to the text
imagettftext($im, 20, 0, 11, 21, $grey, $font, $text);

// Add the text
imagettftext($im, 20, 0, 10, 20, $black, $font, $text);

// Using imagepng() results in clearer text compared with imagejpeg()
imagepng($im);
imagedestroy($im);


*************************************
The below script would be called with a tag like this from a page:

Header("Content-type: image/gif");
if(!isset($s)) $s=11;
$size = imagettfbbox($s,0,"/fonts/TIMES.TTF",$text);
$dx = abs($size[2]-$size[0]);
$dy = abs($size[5]-$size[3]);
$xpad=9;
$ypad=9;
$im = imagecreate($dx+$xpad,$dy+$ypad);
$blue = ImageColorAllocate($im, 0x2c,0x6D,0xAF);
$black = ImageColorAllocate($im, 0,0,0);
$white = ImageColorAllocate($im, 255,255,255);
ImageRectangle($im,0,0,$dx+$xpad-1,$dy+$ypad-1,$black);
ImageRectangle($im,0,0,$dx+$xpad,$dy+$ypad,$white);
ImageTTFText($im, $s, 0, (int)($xpad/2)+1, $dy+(int)($ypad/2), $black, "/fonts/TIMES.TTF", $text);
ImageTTFText($im, $s, 0, (int)($xpad/2), $dy+(int)($ypad/2)-1, $white, "/fonts/TIMES.TTF", $text);
ImageGif($im);
ImageDestroy($im);
?>

It is very important to realize that you cannot put any HTML tags in this file. There should also not be any spaces or blank lines before or after the tags. If you are getting a broken image using this script, chances are you have a stray carriage return somewhere outside the PHP tags
Php



1860
09/09/2023
Javascript Formatting Converting Numbers To Strings Using ToFixed()
fixed decimal places number format
Question: When I convert numbers to strings, can I guarantee exactly n decimal places in the resultant string?

Answer: The simplest way of converting a number variable to string is to concatenate the variable with an empty string. However, this conversion does not guarantee the number of decimal places in the string. If you want exactly n decimal places in the conversion result, use the toFixed method, like this:

str = x.toFixed(n);

Here x is the number to be converted, the string str is the conversion result, and n specifies how many fractional decimal places must appear in the resultant string. The method can also be used without the parameter n - you can simply write: x.toFixed(), which is equivalent to x.toFixed(0). Consider these examples:

var x = 2.31;
var s = x.toFixed() // result: '2'
var s0 = x.toFixed(0) // result: '2'
var s1 = x.toFixed(1) // result: '2.3'
var s2 = x.toFixed(2) // result: '2.31'
var s3 = x.toFixed(3) // result: '2.310'
var s4 = x.toFixed(4) // result: '2.3100'

The toFixed method might not always ensure the correct rounding of the conversion results. For example, (0.947).toFixed(0) may produce either '0' or '1', depending on the browser; in most versions of Microsoft Internet Explorer (0.947).toFixed(0) produces '0' while in Mozilla Firefox or Google Chrome the same conversion produces '1'. Below are the actual conversion results in your browser:

(0.947).toFixed(0) // '0' ('0' in MSIE, but '1' in Firefox)
(0.0947).toFixed(1) // '0.0' ('0.0' in MSIE, but '0.1' in Firefox)
(0.00947).toFixed(2) // '0.00' ('0.00' in MSIE, but '0.01' in Firefox)
(0.000947).toFixed(3) // '0.000' ('0.000' in MSIE, but '0.001' in Firefox)

For correct rounding, use the Math.round method or Math.round in combination with toFixed like this:
x=0.947; s0=(Math.round(x)).toFixed(0) // '1'
x=0.0947; s1=(Math.round(10*x)/10).toFixed(1) // '0.1'
x=0.00947; s2=(Math.round(100*x)/100).toFixed(2) // '0.01'
x=0.000947; s3=(Math.round(1000*x)/1000).toFixed(3) // '0.001'
Javascript



1552
09/09/2023
Php Variables Cookies
cookies json_encode store arrays post get session
Storing Settings
To delete a cookie in PHP, you must use the
setcookie() function with an expiration time in the past. This tells the user's browser to remove the cookie.
Steps to Delete a PHP Cookie

Ensure no output is sent to the browser before calling setcookie(), as it modifies HTTP headers.
Call the setcookie() function with the same name and parameters (path, domain, etc.) that were used when the cookie was created.
Set the expiration time to a time in the past, for example, an hour ago (time() - 3600). The value of the cookie can be set to an empty string.

Example Code
php

// Set a cookie (example, expires in 30 days)
$cookie_name = "username";
$cookie_value = "John Doe";
setcookie($cookie_name, $cookie_value, time() + (86400 * 30), "/"); // 86400 = 1 day

// ... your other code ...

// To delete the cookie named "username":
// Set the expiration date to one hour ago (or any time in the past)
setcookie("username", "", time() - 3600, "/");
setcookie("humans_21909", "", time() - 3600, "/");

// Optionally, you can also unset the cookie from the current script's $_COOKIE superglobal array
unset($_COOKIE['username']);

echo "Cookie 'username' has been deleted.";




This example stores my variables into cookies and retrieves them back when I want them:

$appid="635667735729502691";$appidLast="";
if($_GET["BACK"]==1) {
$savedSessions=array();$savedRequests=array();
$savedSessions= json_decode($_COOKIE["SESSIONARRAY".$appid]); $savedPosts= json_decode($_COOKIE["POSTARRAY".$appid]); $savedGets= json_decode($_COOKIE["GETARRAY".$appid]);
foreach($savedSessions as $k=>$value) {
$_SESSION[$k]=$value;
}
foreach($savedPosts as $k=>$value) {
$_POST[$k]=$value;
}
foreach($savedGets as $k=>$value) {
$_GET[$k]=$value;
}
} //CHECK CURRENT APPLICATION
else{
$json = json_encode($_SESSION, true);setcookie('SESSIONARRAY'.$appid,$json, time()+1800,"/");
$json = json_encode($_POST, true);setcookie('POSTARRAY'.$appid,$json,time()+1800,"/");
$json = json_encode($_GET, true);setcookie('GETARRAY'.$appid,$json,time()+1800,"/");
}
Php



837
09/09/2023
Css Formatting Create A Scrolling Div
scroll bars
Divs





Resources
Hebrew/Greek
Your Content

Luke 2
New International Version
The Birth of Jesus

2 In those days Caesar Augustus issued a decree that a census should be taken of the entire Roman world. 2 (This was the first census that took place while[a] Quirinius was governor of Syria.) 3 And everyone went to their own town to register.

4 So Joseph also went up from the town of Nazareth in Galilee to Judea, to Bethlehem the town of David, because he belonged to the house and line of David. 5 He went there to register with Mary, who was pledged to be married to him and was expecting a child. 6 While they were there, the time came for the baby to be born, 7 and she gave birth to her firstborn, a son. She wrapped him in cloths and placed him in a manger, because there was no guest room available for them.

8 And there were shepherds living out in the fields nearby, keeping watch over their flocks at night. 9 An angel of the Lord appeared to them, and the glory of the Lord shone around them, and they were terrified. 10 But the angel said to them, “Do not be afraid. I bring you good news that will cause great joy for all the people. 11 Today in the town of David a Savior has been born to you; he is the Messiah, the Lord. 12 This will be a sign to you: You will find a baby wrapped in cloths and lying in a manger.”

13 Suddenly a great company of the heavenly host appeared with the angel, praising God and saying,

14
“Glory to God in the highest heaven,
and on earth peace to those on whom his favor rests.”

15 When the angels had left them and gone into heaven, the shepherds said to one another, “Let’s go to Bethlehem and see this thing that has happened, which the Lord has told us about.”

16 So they hurried off and found Mary and Joseph, and the baby, who was lying in the manger. 17 When they had seen him, they spread the word concerning what had been told them about this child, 18 and all who heard it were amazed at what the shepherds said to them. 19 But Mary treasured up all these things and pondered them in her heart. 20 The shepherds returned, glorifying and praising God for all the things they had heard and seen, which were just as they had been told.

21 On the eighth day, when it was time to circumcise the child, he was named Jesus, the name the angel had given him before he was conceived.
Jesus Presented in the Temple

22 When the time came for the purification rites required by the Law of Moses, Joseph and Mary took him to Jerusalem to present him to the Lord 23 (as it is written in the Law of the Lord, “Every firstborn male is to be consecrated to the Lord”[b]), 24 and to offer a sacrifice in keeping with what is said in the Law of the Lord: “a pair of doves or two young pigeons.”[c]

25 Now there was a man in Jerusalem called Simeon, who was righteous and devout. He was waiting for the consolation of Israel, and the Holy Spirit was on him. 26 It had been revealed to him by the Holy Spirit that he would not die before he had seen the Lord’s Messiah. 27 Moved by the Spirit, he went into the temple courts. When the parents brought in the child Jesus to do for him what the custom of the Law required, 28 Simeon took him in his arms and praised God, saying:

29
“Sovereign Lord, as you have promised,
you may now dismiss[d] your servant in peace.
30
For my eyes have seen your salvation,
31
which you have prepared in the sight of all nations:
32
a light for revelation to the Gentiles,
and the glory of your people Israel.”

33 The child’s father and mother marveled at what was said about him. 34 Then Simeon blessed them and said to Mary, his mother: “This child is destined to cause the falling and rising of many in Israel, and to be a sign that will be spoken against, 35 so that the thoughts of many hearts will be revealed. And a sword will pierce your own soul too.”

36 There was also a prophet, Anna, the daughter of Penuel, of the tribe of Asher. She was very old; she had lived with her husband seven years after her marriage, 37 and then was a widow until she was eighty-four.[e] She never left the temple but worshiped night and day, fasting and praying. 38 Coming up to them at that very moment, she gave thanks to God and spoke about the child to all who were looking forward to the redemption of Jerusalem.

39 When Joseph and Mary had done everything required by the Law of the Lord, they returned to Galilee to their own town of Nazareth. 40 And the child grew and became strong; he was filled with wisdom, and the grace of God was on him.
The Boy Jesus at the Temple

41 Every year Jesus’ parents went to Jerusalem for the Festival of the Passover. 42 When he was twelve years old, they went up to the festival, according to the custom. 43 After the festival was over, while his parents were returning home, the boy Jesus stayed behind in Jerusalem, but they were unaware of it. 44 Thinking he was in their company, they traveled on for a day. Then they began looking for him among their relatives and friends. 45 When they did not find him, they went back to Jerusalem to look for him. 46 After three days they found him in the temple courts, sitting among the teachers, listening to them and asking them questions. 47 Everyone who heard him was amazed at his understanding and his answers. 48 When his parents saw him, they were astonished. His mother said to him, “Son, why have you treated us like this? Your father and I have been anxiously searching for you.”

49 “Why were you searching for me?” he asked. “Didn’t you know I had to be in my Father’s house?”[f] 50 But they did not understand what he was saying to them.

51 Then he went down to Nazareth with them and was obedient to them. But his mother treasured all these things in her heart. 52 And Jesus grew in wisdom and stature, and in favor with God and man.

Css



3
09/09/2023
Php Function Create Graphic Button On The Fly
grapic button image color
session_start();
session_register('sessioncode');
//Header("Content-type: image/jpeg");
//echo "beg test";
$filename = "images/image1.gif";
$im = imagecreate(55, 15);
$bg = imagecolorallocate($im, 255, 255, 255);
$textcolor = imagecolorallocate($im, 100, 100, 100);
imagecolortransparent($im, $bg);
//imagestring($im, 5, 0, 0, substr(strtoupper(md5("Myshit".$sessioncode)), 0,6), $textcolor);
imagestring($im, 5, 0, 0, substr(strtoupper("Myshit"), 0,6), $textcolor);
imageGif($im,$filename);
ImageDestroy($im);
//***************************************************************
$filename = "images/image.gif";
$img = ImageCreate(200,20);
$red = ImageColorAllocate($img, 255, 0, 0); $white = ImageColorAllocate($img, 255, 255, 255);
ImageString($img, 3, 3, 3, "Uh, this is an image!", $white); ImageGif($img, $filename);

ImageDestroy($img);
echo "";
echo "Finished";
exit();
?>
Php



1235
09/09/2023
Vb.net Variables Create New Arrays
array null
Read through entire array
For Each fruit As String In MV
Console.WriteLine(fruit)
Next

max number of elements array.length
For L = 0 To MV.GetUpperBound(0) elements stored



Either

Dim strings = New String() {"a", "b", "c"}
or

Dim strings() As String = {"a", "b", "c"}
or strings() As String = {}
should work
Vb.net



2
09/09/2023
Vb.net Database Create Read Only Recordset
create recordset error list box
LISTBOX
Vb.net



2
09/09/2023
Css Formatting Creating And Styling Borders
border property color size
Web
Css



3
09/09/2023
Html Formatting Creating Page Breaks
print break
Printing
Html



2
09/09/2023
Windows <=8 Customizing Creating Your Own Menu Using The Windows Toolbar
toolbar too bar desktop desk top right click folder task bar
Windows <=8



1296
09/09/2023
Php Date Current Date
today
Php



2
09/09/2023
Css Formatting Customizing Formats For Mircrosoft IE ONLY
!ie IE firefox browser css
Css



1276
09/09/2023
WP Setup Data List Plugin
widget data list plugin WP_Widget register_widget add_action
This plug in just displays a list of language types for computers and web development

/*
Plugin Name: Language Categories
Plugin URI: http://softwarewebdesign.com
Description: List Language Catagories.
Version: 1.0
Author: Software Web Design
Author URI: http://softwarewebdesign.com
License: GPL2
*/
// WP_Widget_Language_Catagory to WP_Widget_Language_Catagory
class dbase{
var $num=0;
var $id=0;
var $fieldname="";
var $data;
var $insertoption="";
var $quickarray=true;
function multipleRecs($value){
if($value==true)$value=false;
else $value=true;
$this->quickarray=$value;return true;
}
function tableOption($query){
$q = mysql_query($query);
$num_fields = mysql_num_fields($q);
for($ii = 0; $ii < $num_fields; $ii++) {
//$result.= mysql_field_name($query,$ii)."-".mysql_field_type($query,$ii)."(".mysql_field_len($query,$ii).")".mysql_field_flags($query,$ii)."\n";
$fieldinfo=mysql_field_flags($q,$ii);
if(strpos($fieldinfo,"rimary_key")>0){ $this->fieldname=mysql_field_name($q,$ii);break; }
}
}
function dbsql2($query){
$this->insertoption=$query;
}
function dbsql($query){
global $db; global $dc;global $debug;
if($debug!=true)$result=mysql_query($query);
else $result=mysql_query($query) or die(mysql_error().' from '.$query);
if(!$result){
if($debug==true){ echo "Error:".$query;exit;
}else{ echo "Error:".substr($query,0,10);exit;}
}
$sql= strtolower($query);
if(strpos($sql,"nsert into")==1)$AC=1;
if(strpos($sql,"elect")==1){ $AC=2;$this->num=mysql_numrows($result); }
if(strpos($sql,"pdate")==1 || strpos($sql,"elete")==1)$AC=3;
switch($AC){
case 1:
$this->id=mysql_insert_id();
break;
case 2:
if($this->num==0 && $this->insertoption!=""){ $this->dbq($this->insertoption); return false; }
if($this->num==0) return false;
if($this->num==1 && $this->quickarray==true)$this->data=mysql_fetch_array($result);
else $this->data=$result;
break;
case 3:
break;
} // end switch


}

} // end class

class WP_Widget_Language_Catagory extends WP_Widget {

// The widget construct. This creates title and description on wordpress admin widget page
function WP_Widget_Language_Catagory() {
$widget_ops = array( 'classname' => 'widget_LanguageCatagory', 'description' => __( "Language Catagory List for picking search topic" ) );
$this->WP_Widget('LanguageCatagory', __('sw - Language Catagory'), $widget_ops);
} // End function WP_Widget_Language_Catagory

// This code displays the widget on the screen.
function widget($args, $instance) {
extract($args);
echo $before_widget;
if(!empty($instance['title'])) {
echo $before_title . $instance['title'] . $after_title;
}
$q=new dbase();
$sql="SELECT * FROM language ORDER BY language";
$q->multipleRecs(true);
$q->dbsql($sql);$result=$q->data;
echo"
    \n";
    for($i=1;$i<=$q->num;$i++){
    $r=mysql_fetch_array($result);
    //echo "
  • ".$r[1]."";
    echo "
  • ".$r[1]."";
    }
    echo"
\n";
echo $after_widget;
} // End function widget.


} // end class WP_Widget_BareBones

// Register the widget.
add_action('widgets_init', create_function('', 'return register_widget("WP_Widget_Language_Catagory");'));
?>
WP



1403
09/09/2023
WP Database Database Access
database
WP



2
09/09/2023
Mysql Dumps Archive Database: `softwax3_codeSaver`
code language operation
Backup
Mysql Dumps



3
09/09/2023

Software Web Design