Seems to change often
Monday, January 26, 2015
datalist html5 options limit
There seems to be a limit to the amount of options that can be provided for the datalist feature which is like a suggestion to textbox, built into html5. here's an example I use:
<datalist id="suggestions">
<?php
$getShows=getShows();
if($getShows){
foreach($getShows as $show){
echo '<option value="'.$show['showname'].'" >';
}
}
?>
</datalist>
<input placeholder="Search shows" id="q" name="q" value="<?php if(isset($_GET['q']))echo $_GET['q']; ?>" onkeypress="if (event.keyCode == 13) window.open('?q='+this.value,'_self')" list="suggestions" />
<img src="images/search.gif" onclick="window.open('?q='+document.getElementById('q').value,'_self')" style="cursor:pointer">
UPDATE Jan 28, 2015: It seems the issue was with the queries and there were too many for the server to load or something. Works with larger amounts (over 200).
<datalist id="suggestions">
<?php
$getShows=getShows();
if($getShows){
foreach($getShows as $show){
echo '<option value="'.$show['showname'].'" >';
}
}
?>
</datalist>
<input placeholder="Search shows" id="q" name="q" value="<?php if(isset($_GET['q']))echo $_GET['q']; ?>" onkeypress="if (event.keyCode == 13) window.open('?q='+this.value,'_self')" list="suggestions" />
<img src="images/search.gif" onclick="window.open('?q='+document.getElementById('q').value,'_self')" style="cursor:pointer">
If this makes sense to you, know this; the limit from my testing for today's version of google chrome (40) is about 100, maybe 130 but didn't always work.
UPDATE Jan 28, 2015: It seems the issue was with the queries and there were too many for the server to load or something. Works with larger amounts (over 200).
Let me know what methods you use for this if any and if you use this feature. Thanks.
Wednesday, January 21, 2015
Je Suis Charlie Notepad plus plus update January 10, 2015 edition
I updated my notepad++ (which is one of my favorite free software, by the way) and something started typing on it's own!
I was able to capture some amateur video view it on youtube
Screen shot of the page:
The complete typed out:
Freedom of expression is like the air we breathe, we don't feel it, until people take it away from us.
For this reason, Je suis Charlie, not because I endorse everything they published, but because I cherish the right to speak out freely without risk even when it offends others.
And no, you cannot just take someone's life for whatever he/she expressed.
Hence this "Je suis Charlie" edition.
- #JeSuisCharlie
And I decided to see what's on twitter, after seeing some @notepad_plus tweets and their blog post:
The Notepad++ official site was hacked on 12th January 2015, due to its controversial new version 6.7.4 "Je suis Charlie" edition, released on 10th January 2015. The site was restored on the same day.
The binaries of this edition are on another server and they are not compromised (the SHA1 published on 11th January 2015 is always available on SF). The automatic typing in Notepad++ "Je suis Charlie" edition after installation is a feature. Sorry for the panic.
The message of the defacement accused Notepad++ of inciting hatred towards Islam and accusing Islam of supporting terrorism. The statements of Notepad++ "Je suis Charlie" edition support nothing but the freedom of expression and only that. The fact of Notepad++ supporting the "Je suis Charlie" movement has nothing to do with any accusation towards a specific community. In fact the "Je suis Charlie" movement in France, as far as I can tell, deserves no label of racism or of Islamophobia. I have many Muslim friends who are for "Je suis Charlie". And sincerely, I don't think that two extremist fools can stand for all Muslims or Islam itself.
If you don't like "Je suis Charlie" edition, that's fine. You can still use Notepad++ v6.7.3 - they are the same in terms of features and bug fixes. notepad-plus-plus.org could be hacked over and over again, but I will always find a way to distribute Notepad++ "Je suis Charlie" edition - that's my freedom of expression which I claim as my right. [Source]
Give me your thoughts in the comments.
Monday, December 22, 2014
Simplify bitcoin explanation
I've had an idea to give bitcoin as a present for Christmas, well from the resources I've found online nothing was exactly what I wanted. So I had to create my own.
I want something with short concise explanation of what it is and how to use it. where it's accepted and why bother using it. All the links are intentionally not linked because this is to be printed and it would look better without the underline and blue (if color printer).
I was editing it in google doc. Please let me know if there's any corrections or other ways to explain which might be simpler or easier!
Thursday, December 4, 2014
Airdroid desktop client download alternative
Since just released there could be server issues with everyone trying to get the client, so here's an alternative download link: http://www.mediafire.com/download/wbgx872lznrk47w/AirDroid_Desktop_Client_3.0.0.exe
I wouldn't recommend running any file you download without double checking with a virus scanner first: such as https://www.virustotal.com/ca/
Let me know how it goes!
All credits to: www.airdroid.com
I wouldn't recommend running any file you download without double checking with a virus scanner first: such as https://www.virustotal.com/ca/
Let me know how it goes!
All credits to: www.airdroid.com
Tuesday, November 11, 2014
Monday, October 27, 2014
lexmark 6200 driver windows 8 install download
If you still have this all in one printer, fax and scanner (I only use it for scanning) you might want to install it on windows 8 or 8.1 computers there's a simple way to do it using the windows vista (64 bit edition driver download: http://support.lexmark.com/index?productCode=LEXMARK_P6250&page=product&locale=en&userlocale=EN_US#1
find a backup of it here: http://www.mediafire.com/download/dc8zb07wuwd2wtf/cjs6200EN.exe
If you have any feedback leave in the comments below.
Thank you for visiting.
find a backup of it here: http://www.mediafire.com/download/dc8zb07wuwd2wtf/cjs6200EN.exe
If you have any feedback leave in the comments below.
Thank you for visiting.
Friday, October 17, 2014
Contact form 7 telephone number digits restriction modification
If you use the contact form 7 plugin (version 4.0) for contact information gathering on your wordpress site and want to restrict the minimum and maximum digits a user enters but without sacrificing the brackets, spaces or plus sign here's how I found out to do this.
In the file: formatting.php line 153 (found under /your/host/wordpressdir/wp-content/plugins/contact-form-7/includes )
comment out the original line like so (in case you want to revert the changes):
//$result = preg_match( '/^[+]?[0-9() -]*$/', $tel );
and add the following:
$pattrn = array( " ", "\r", "\n", "-", ".", "(", ")", "_", "'", "`", "+");
$newphone = str_replace( $pattrn , '' , $tel );
if( strlen( $newphone ) == 10 && preg_match( '/^[0-9]*$/', $newphone )) $result = true;
else $result = false;
Now the user must enter 10 digits no matter if the formatting is +(123) 123 - 1231 with or without spacing and brackets and even underscore or plus sign.
In case anyone is wondering why this is required is because sometimes users might omit their area code (the first three digits) and it becomes very hard to guess what it might be to dial it.
I'm sure this part can be improved because the digits are hard coded and there might be other countries that require more or less so if this was setup from admin and input it there but I don't know how to do this yet and don't require so if someone wants to improve or any feedback let me know in the comments below.
Also check out my previous article if you need to send the data to a database of your own here.
Thanks for visiting.
In the file: formatting.php line 153 (found under /your/host/wordpressdir/wp-content/plugins/contact-form-7/includes )
comment out the original line like so (in case you want to revert the changes):
//$result = preg_match( '/^[+]?[0-9() -]*$/', $tel );
and add the following:
$pattrn = array( " ", "\r", "\n", "-", ".", "(", ")", "_", "'", "`", "+");
$newphone = str_replace( $pattrn , '' , $tel );
if( strlen( $newphone ) == 10 && preg_match( '/^[0-9]*$/', $newphone )) $result = true;
else $result = false;
Now the user must enter 10 digits no matter if the formatting is +(123) 123 - 1231 with or without spacing and brackets and even underscore or plus sign.
In case anyone is wondering why this is required is because sometimes users might omit their area code (the first three digits) and it becomes very hard to guess what it might be to dial it.
I'm sure this part can be improved because the digits are hard coded and there might be other countries that require more or less so if this was setup from admin and input it there but I don't know how to do this yet and don't require so if someone wants to improve or any feedback let me know in the comments below.
Also check out my previous article if you need to send the data to a database of your own here.
Thanks for visiting.
Wednesday, August 20, 2014
script to copy user files to flash usb drive silently and automatically
Came across an interesting request recently and though I'd have to do my own batch scripting but quick search found me this site: http://www.instructables.com/id/How-to-make-flash-drive-that-copys-users-files-si/ so there's really not much more to explain, they did an excellent job I will just provide you with the files.
download this: archive.zip , extract and place all the files at the root (right at the top) of the USB flash or hard drive you want to use to gather your data. As an added bonus you can easily rename instead of the default name (usually the drive's manufacturer's name) to something like MARIO.
Now all you have to do is run launch.bat if the auto run doesn't do it's job (windows 7 and 8 probably don't do it automatically any more)
Of course as the site warns you shouldn't use this for anything illegal, this is informational use only and goes to show that you should have good physical security of your hardware at all times if you have important data on your computer or disable the USB connections on your computer.
Leave comments about any feedback.
Thank you for visiting!
download this: archive.zip , extract and place all the files at the root (right at the top) of the USB flash or hard drive you want to use to gather your data. As an added bonus you can easily rename instead of the default name (usually the drive's manufacturer's name) to something like MARIO.
Now all you have to do is run launch.bat if the auto run doesn't do it's job (windows 7 and 8 probably don't do it automatically any more)
Of course as the site warns you shouldn't use this for anything illegal, this is informational use only and goes to show that you should have good physical security of your hardware at all times if you have important data on your computer or disable the USB connections on your computer.
Leave comments about any feedback.
Thank you for visiting!
Thursday, May 29, 2014
Questions about Google self driving car
As all the fuss is about the new two passenger Google driver-less car there are many questions yet to be answered.
I thought I'd ask them now and search for answers later:
Any more questions that should be interesting?
I thought I'd ask them now and search for answers later:
- Who will get the first one hundred cars?
- What are the specs? I.e horsepower, range on battery, any air bags or other safety? Etc
- How does calling and setting locations work? Is Google maps involved? Maybe the new ubr integration? where can the car go? i.e. drivethrough?
- Is there going to be more apps connected? i.e. can you listen to music or watch youtube or netflix, etc
- How does payment work? And pretty important how much does it cost? Assuming less than traditional taxis would be good competitive edge.
- Payment methods? maybe cryptocurrencies like bitcoin, etc
- What kind of regulation is there or will there be? Does it simply pass a driver license to say it works?
- How many rides or how long can a customers retain the car? for example if I want to run errands could I stop and go in to the store and the car will wait? etc
Any more questions that should be interesting?
Wednesday, April 2, 2014
Windows XP End of Support is on April 8th, 2014
When you open up your windows XP you will get this message:
Comments?
Tuesday, February 11, 2014
Future time in gmail from yahoo.com ?
So I have strange problem, got an email from a yahoo.com (got many emails before) and it shows a future date for some reason, as you can see the current time (I checked other times) are correct. Not sure what the problem is or if it showed up for anyone else. Where to report this? please advise. 

Monday, February 10, 2014
PHP Month Number to Month Name the Easy Way
Very simple solution from here (posted for archive purposes):
<?php
$monthNum = 5;
$monthName = date("F", mktime(0, 0, 0, $monthNum, 10));
echo $monthName; //output: May
?>
searched "get month name from number php"
Saturday, January 25, 2014
hyperdesktop free screenshot software for imgur.com apps gethyperdesktop.com
For some odd reason I have not been able to get to the site: http://gethyperdesktop.com/ now inactive - here is an archived view: http://web.archive.org/web/20131221033354/http://gethyperdesktop.com/
which provided the download link for the very useful software for the http://imgur.com site for image sharing. It essentially allows to capture a screen shot and uploads to imgur. very quick, simple, easy capture and sharing of screen. like this: http://i.imgur.com/peBaZ19.png
Anyway here are the file version I found, they seem to work on windows xp, windows 7 and 8 (64 or 32)
Version 1.0.3.9 http://www.mediafire.com/download/ze50ue51ag1hm7d/hyperdesktop%283%29.exe
Version 1.0.0.8 http://imgur.com/tools/hyperdesktop.exe
Also the shortcuts/hotkeys.
Take screenshot: Ctrl + Shift + 3
Take selective screenshot: Ctrl + Shift + 4
Take window screenshot: Ctrl + Shift + 5
Let me know in the comments what you think of the software and if the site is back up yet.
Update 03/12/2015: Looks like the site is done, hopefully the software is still useful as above, I am now using more Ubuntu and found a good alternative called shutter.
Thanks for visiting
which provided the download link for the very useful software for the http://imgur.com site for image sharing. It essentially allows to capture a screen shot and uploads to imgur. very quick, simple, easy capture and sharing of screen. like this: http://i.imgur.com/peBaZ19.png
Anyway here are the file version I found, they seem to work on windows xp, windows 7 and 8 (64 or 32)
Version 1.0.3.9 http://www.mediafire.com/download/ze50ue51ag1hm7d/hyperdesktop%283%29.exe
Version 1.0.0.8 http://imgur.com/tools/hyperdesktop.exe
Also the shortcuts/hotkeys.
Take screenshot: Ctrl + Shift + 3
Take selective screenshot: Ctrl + Shift + 4
Take window screenshot: Ctrl + Shift + 5
Let me know in the comments what you think of the software and if the site is back up yet.
Update 03/12/2015: Looks like the site is done, hopefully the software is still useful as above, I am now using more Ubuntu and found a good alternative called shutter.
Thanks for visiting
Tuesday, December 31, 2013
acer aspire 5253-bz848
seems to only start when the computer is warmed up.
strange.
The laptop is fairly decent, it has windows 7 64bit, 15.6'' HD LED LCD screen, AMD dual-core prorecessor E-350, 350GB HDD DVD-Super multi DL drive Acer Nplify 802.11b/g/n 6 celll li-ion battery
Watch the video: http://youtu.be/dV5Z9Jy2QBU
strange.
The laptop is fairly decent, it has windows 7 64bit, 15.6'' HD LED LCD screen, AMD dual-core prorecessor E-350, 350GB HDD DVD-Super multi DL drive Acer Nplify 802.11b/g/n 6 celll li-ion battery
Watch the video: http://youtu.be/dV5Z9Jy2QBU
Thursday, December 12, 2013
How to fix svchost.exe high cpu usage
When getting 100% CPU processor usage cause by svchost.exe (viewed in task manager)
There's a fairly simple solution that takes a long time to find when viewing the videos (in the source) and other links found from google. Here's the solution:
Right click My computer > manage > services > find "Automatic updates" stop and turn off or to manual.
This will stop the service from running when windows is turned on.
It's a risk which must be taken at this point (not updating) but if you have some simple machines that have windows XP (or vista too?) and since the support will be stopped for them soon anyway (which means no more updates after sometime in 2014).
Let me know if this helped you, comments, problems, questions, etc.
[source]
There's a fairly simple solution that takes a long time to find when viewing the videos (in the source) and other links found from google. Here's the solution:
Right click My computer > manage > services > find "Automatic updates" stop and turn off or to manual.
This will stop the service from running when windows is turned on.
It's a risk which must be taken at this point (not updating) but if you have some simple machines that have windows XP (or vista too?) and since the support will be stopped for them soon anyway (which means no more updates after sometime in 2014).
Let me know if this helped you, comments, problems, questions, etc.
[source]
Monday, November 25, 2013
Push up an existing repository [bitbucket.org]
You already have a Git repository on your computer. Let's push it up to Bitbucket.
cd /path/to/my/repo git remote add origin https://username@bitbucket.org/username/test.git git push -u origin --all # pushes up the repo and its refs for the first time git push -u origin --tags # pushes up any tags
[source]
Simple linux bash script to commit and push git updates
This assumes you have setup the git on dev directory (replace as needed), it was fairly simple thanks to bitbucket instructions
Here is the code:
Let me know if you have question, comments, etc
Here is the code:
#!/bin/bash
cd /var/www/vhosts/dev
echo "Please enter commit comment: "
read input_variable
git commit -am "$input_variable"
git push -u origin master
Let me know if you have question, comments, etc
Monday, March 18, 2013
Developing useful software applications catch 22 paradox
Just wanted to vent about frustrations of my experience in useful business software application development paradox:
- It's important to set out rules and standards BEFORE software is ready for production use
- It's hard to know which rules and standards are required for software UNTIL it goes into production
- It's hard to change rules and standards ONCE software is in production
Therefore it's a catch 22 when it comes to developing software that is standardized and easy to manage and maintain while continuing daily development with new features because the software didn't get those rules and standards BEFORE going into production.
So the software is always in a "beta" form and will take very long to come out of it, in fact probably impossible because it is always being developed and never standardized. Mainly my issues seems that there's so much code and database entries that are hard to change once a new standard is deemed more appropriate for the job. This is because the software is already in production use and now cannot be taken offline all the while remaining hard to adapt old data and code to the new standards and rules ideas which tend to change overtime.
Probably very confusing for someone who is not familiar with the issues described, or anyone for that matter.
But if you are reading this and understand my frustration, maybe you can comment or even have possible tips or solutions!
Please comment below.
- It's important to set out rules and standards BEFORE software is ready for production use
- It's hard to know which rules and standards are required for software UNTIL it goes into production
- It's hard to change rules and standards ONCE software is in production
Therefore it's a catch 22 when it comes to developing software that is standardized and easy to manage and maintain while continuing daily development with new features because the software didn't get those rules and standards BEFORE going into production.
So the software is always in a "beta" form and will take very long to come out of it, in fact probably impossible because it is always being developed and never standardized. Mainly my issues seems that there's so much code and database entries that are hard to change once a new standard is deemed more appropriate for the job. This is because the software is already in production use and now cannot be taken offline all the while remaining hard to adapt old data and code to the new standards and rules ideas which tend to change overtime.
Probably very confusing for someone who is not familiar with the issues described, or anyone for that matter.
But if you are reading this and understand my frustration, maybe you can comment or even have possible tips or solutions!
Please comment below.
Monday, January 28, 2013
adBrite Operations Update
Got an email from adBrite:
Dear adBrite Publisher,
Over the last few weeks, adBrite and its management have been evaluating the go-forward plan for the business. Given market conditions and certain financial liabilities, in working with our lenders, we have decided to cease operations on Feb 1, 2013.
This is a difficult decision for all of us at adBrite. However, after much deliberation this seems to be the best course of action despite the impact it will have on all the employees, clients and partners who helped build this business. There will be a team in place as needed to assist with winding down. Thank you for being part of the adBrite community.The adBrite Team
Why are they ceasing operations?
Who should I switch to now?
Subscribe to:
Posts (Atom)