Showing posts with label tips. Show all posts
Showing posts with label tips. Show all posts

Tuesday, July 31, 2012

What material is used for r-hop in airsoft?

The creator of rhop refuses to say what materials he's using to create the patches. Instead, he sells them for $12, which is very expensive considering that you will probably ruin the first batch of 3, since they are quite hard to cut and fit perfectly.

Personally, I have found a small rubber hose which I have cut in small pieces and it worked well. Even bike tube will work, but you will have issues fixing it to the barrel, you'll have to glue it to your hop-up rubber.

Just think to some rubber/silicon hose you may have in your house or you may buy from a local store.

Wednesday, July 25, 2012

How to buy and raise baby mantis

I am writing this so you can learn from my mistakes.

1. If you buy mantis egg cases from Ebay, tell the seller to put them in a box and not directly in the envelope. I have received them in an envelope and more than half were dead, because they hatched during transportation and they got smashed.

2. Be very careful where you place the terrarium. If you let it in a sunny place, the mantis babies will die. Only spray a little of water, they are very fragile and too much water will kill them.

3. Make sure the terrarium is well ventilated, otherwise the mold will invade it, especially if it has soil.

4. Give them food and water once every two days. The best food when they are little are aphids, then when they get bigger, flies are a good meal. Keep in mind they are predators, so they like to catch the food alive.

5. Before a mantis reaches adulthood, it has to molt 6 times. Sometimes they get stuck and you have to help them. If a couple of hours passed and they are still trapped in the old exoskeleton, you have to help them. Very gently!

6. Try to manipulate inside the terrarium as rare as possible. They are so delicate, even a touch could kill them.

Wednesday, February 03, 2010

Wednesday, October 17, 2007

Include php file in smarty

I run a phplinkdirectory who uses smarty templates.
While I was modifying footer.tpl, I needed to include a .php file and I tried {include file="/path/to/somefile.php"} . This turned out to include it as text file, without executing it.
After some research, I found that it will execute it only if included with {include_php file="/path/to/somefile.php"}

Mediawiki spam and abuses

I am running a website using Mediawiki engine. All was going well, until I started to get my pages spammed with links about pills. They were not too many so I was removing them manually (using rollback) and then ban the IP. But after some weeks, I started to get too many to do this manually. They were probably some bots. I looked into config files and found $wgSpamRegex variable. I simply added some keywords into this and it prevented further spam from those bots. But later, some other bots came with other keywords. They had random like keywords so I could no longer use the $wgSpamRegex technique. Then I learned about Spam Blacklist Extension and I found this helpful forum http://www.mwusers.com/forums. I also found this: Blocking Spam in Meediawiki. With these resources, now it should be much easier to maintain a wiki site. Something I simply don't understand, it is why some of the spam bots were simply adding some random characters in my pages. No links, no advertising, nothing else. Just a few random characters like: coauier or afoilta. Are they some kind of probes and then after they finish the scanning the real spam will arrive?

Saturday, September 08, 2007

proxyweb

A web proxy can be used for several purposes, including caching, censorware, malware filtering, reformatting or the well known proxy avoidance - this is a special subcase, the CGI proxy.

The caching webproxy is used for a more efficient access to remote resources - files, web pages which are otherway located on remote servers. A copy of these is locally stored and returned at every request that needs it, and there are specific algorithms to mantain the list of the copies both consistent and optimized.

The censorware proxy filters the offensive web content, restraining the access to specific resources "black listed".

The web proxied used to reformat the requested pages are mainly useful when those sites are requested by a phone, PDA etc. and they convert the otherwise computer-only browser understandable form into one that can be 'read' by the specified devices' browsers too.

Even their efficiency can't be mentained on a long-term basis, the proxies that act as a protective filter that retains the viruses and other hostile content are sometimes used by nwetwork administrators.

Finally, the CGI web proxies are the most searched for, especially the free ones. They allow access to a website through them, eluding the interdiction in visiting those sites (at school or office) and offering a certain degree of privacy, by hiding he users' IPs from the visited sites. However, the free CGI proxy can be a danger itself, as the data that passes through it can be accessed by the proxy's administrator; in the case of a insecure connection, this can lead to serious trouble, especially if the data we're talking about includes usernames, passwords, credit card numbers and so on.

proxy avoidance

Many people concerned about their privacy are searching for cgi
proxies, which hide the client's IP from the web site the client is accessing, as well as breaking the possible interdiction set in accessing the wanted site. All good, the problem is finding these proxies, especially finding the ones that can be trusted not to expose the users to any risk or inconvenience. What i'm talking about is the false security feeling the proxies offer, when one thinks he's hiding and his data are impossible to be revealed; in fact, some of the info passed to a proxy might not be encrypted, and if the info we're talking about is a login/password couple these may lead to big problems if the proxy's owner is not so well intended as you thought he was. And the rapid blocking of the sites offering proxy avoidance is not helping either, but that's not quite a risk, but more of a pain in the ass.

I found a nice site related to this : http://www.peacefire.org. Nice,
Ubuntu reference :P

Monday, August 20, 2007

Instructions for sudoku

I recently started playing this asian game that spread across the whole world in the last years and I understood why: it's catchy and simple to learn, the rules are very easy to follow and it's a logical and attention game. I've played it on paper, but there are electronic versions too, there are many sites on the net that offer boards for all skills, from beginner to expert, bref, it's quite available to try. The instructions for playing Sudoku are : "Fill in the grid so that every row, every column, and every 3x3 box contains the digits 1 through 9. " The grid is 9x9, so all digits appear only one time on every row, column and in every box of 3x3 (the grid is partitioned into 9 such boxes). Starting from this rule, one can build an exclusion logic algorithm, based on the digits offered in the initial grid and fill it entirely. Look at the following grid, for example: sudoku instructions if we check the 3 top boxes, we see that the top center and the top right ones already have a 6, so the free cells from the first row : sudoku instructions cannot contain the 6 they lack in the 2 boxes I've mentioned. The only cell that is in this top row and can hold a 6 that follows the rules is this one, marked in red: sudoku instructions
Not every cell can be deducted this straight forward, sometimes a choice must be made, when all the simpler cells are completed. Let's say 2 digits are the candidates for one particular cell, we choose one of them and remember it, then continue deducting just as shown above. If we reach a contradiction, and we are absolute positive no mistake has been made, then the choice we made was wrong and the other digit is the one corresponding to the cell we considered. Well, enough is enough, just wanted to share some tips in playing Sudoku, maybe it'll fill somebody else's hours in a plane or a train too :)

gilly messenger

A client for the MSN network, pretty used at some point, but it seems the project is not so much alive and kicking. The kit is still available for download on several lcoations (I got it from here: GillyMessenger and there's some old documentation from the GM's developer here: http://forums.fanatic.net.nz/lofiversion/index.php/t10152.html . I played with it a bit the last few days, but I think I'm gonna stick to YM on the long run. I'll see, maybe there's something to Gilly that could appeal to me more, some feature I'd like but I can't think of right now...

Tuesday, February 20, 2007

changing useragent in Opera and Firefox

Before Opera 9.x it was easy to change useragent since all was in properties->advanced->network->browser identification. But now it seems much unconfortable, since you can change only for the site you are visiting, so you go to Tools->Quick Preferences->Edit site preferences->network->browser identification.
So whenever you use some sites which redirect you to another..you get into trouble since you have to manually change every time and also the identification it seems not to work so well, I mean I am still detected as running opera on some tests.

In Firefox it's easier and more effective: You simply type in URL: about:config and then you search for general.useragent.override. If you dont find it, you must create it: right click and select new string. Then you can add a value for it like :Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR
1.1.4322; .NET CLR 2.0.50727)
or whatever identification you want.