Friday, July 21, 2017

How to buy from china electronics cheap online


  • Aliexpress - cheapest, only card payment 
  • Gearbest -  best for buying phones, camera and laptops and accesories as well, also offers Paypal payments 
  • Banggood - a bit more expensive but offers Paypal payments and has good customer service
Standard shipping takes from 2 weeks to 2 months.
When buying more expensive stuff it is worth paying for a tracking number.
For cheap 1-5$ products tracking cost its almost as much as the product.

On aliexpress you can get international tracking even with the no cost shipping method.

Monday, July 3, 2017

Nikon Coolpix P900 full spectrum / infrared camera modification tutorial



You can see in the video above how to remove the filter inside the camera for increased IR spotting.
This is the camera with an external IR filter :



K&F CONCEPT DIGITAL IR 720 67mm JAPAN OPTICS
COOLPIX P900
Coolpix 900 with IR Filter




















Here are pictures taken with the camera :
Auto mode - no ir filter 
Auto mode - external ir filter 720nm



Enhanced monochrome - no IR filter

Enhanced monochrome - external IR filter 720nm
Ir filter 720nm cuts the red colors so its not the same as the original ir filter in the camera.
Monocrome mode with inside camera filter

Monocrome mode with inside camera filter removed


Friday, March 10, 2017

Apache mod_rewrite module tutorial

<IfModule mod_rewrite.c>
RewriteEngine On # Turn on the rewriting engine

</IfModule>


Rewrite rules can be preceded by one or more rewrite conditions.
Eg :
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]


. (any character)
* (zero of more of the preceding)
+ (one or more of the preceding)
{} (minimum to maximum quantifier)
? (ungreedy modifier)
! (at start of string means "negative pattern")
^ (start of string, or "negative" if at the start of a range)
$ (end of string)
[] (match any of contents)
- (range if used between square brackets)
() (group, backreferenced group)
| (alternative, or)
\ (the escape character itself)

Flags :

C (chained with next rule)
CO=cookie (set specified cookie)
E=var:value (set environment variable var to value)
F (forbidden - sends a 403 header to the user)
G (gone - no longer exists)
H=handler (set handler)
L (last - stop processing rules)
N (next - continue processing rules)
NC (case insensitive)
NE (do not escape special URL characters in output)
NS (ignore this rule if the request is a subrequest)
P (proxy - i.e., apache should grab the remote content specified in the substitution section and return it)
PT (pass through - use when processing URLs with additional handlers, e.g., mod_alias)
R (temporary redirect to new URL)
R=301 (permanent redirect to new URL)
QSA (append query string from request to substituted URL)
S=x (skip next x rules)
T=mime-type (force specified mime type)

To redirect all requests missing "www" (yes www):
RewriteCond %{HTTP_HOST} ^domain\.com [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]