rockmanxhttps://rockmanx.wordpress.com
Rockman-x official site.Wed, 27 Sep 2017 02:31:25 +0000enhourly1http://wordpress.com/https://s2.wp.com/i/buttonw-com.pngrockmanxhttps://rockmanx.wordpress.com
Do not use free wordpress Themehttps://rockmanx.wordpress.com/2017/09/27/do-not-use-free-wordpress-theme/
https://rockmanx.wordpress.com/2017/09/27/do-not-use-free-wordpress-theme/#respondWed, 27 Sep 2017 02:10:27 +0000http://rockmanx.wordpress.com/?p=274Continue reading Do not use free wordpress Theme]]>New to wordpress? and wanted to have a website? please do not use free wordpress theme.

You may be amazed by how fast to build one but later it may be very difficult to update it.

As quoted below:

“While the core WordPress is developed by Automatic Inc, a professional web development company, who pay really close attention to details, most third-party plugins and themes are created by unskilled persons.

Not optimized code can not only slow down your site or cause errors, but can also be the back-door for a hacker to break into your site.”

Restart Apache and you should be able to complete the registration]]>https://rockmanx.wordpress.com/2014/05/18/how-to-install-otrs-on-ubuntu-12-04-server/feed/1rockmanxHow to set OTRS permissionhttps://rockmanx.wordpress.com/2014/05/14/how-to-set-otrs-permission/
https://rockmanx.wordpress.com/2014/05/14/how-to-set-otrs-permission/#respondWed, 14 May 2014 07:32:32 +0000http://rockmanx.wordpress.com/?p=255]]>If you can’t access due to file permission of OTRS.

Filed under: Linux, UBUNTU, UBUNTU 8.04, ubuntu hardy heron Tagged: Linux, RVM, Terminal, UBUNTU]]>https://rockmanx.wordpress.com/2014/05/05/ubuntu-rvm-terminal/feed/0rockmanxSwitch to chitika and earn money onlinehttps://rockmanx.wordpress.com/2013/07/02/switch-to-chitika-and-earn-money-online/
https://rockmanx.wordpress.com/2013/07/02/switch-to-chitika-and-earn-money-online/#respondMon, 01 Jul 2013 21:42:28 +0000http://rockmanx.wordpress.com/?p=235Continue reading Switch to chitika and earn money online]]>When I was making my first site and had launched it successfully, I felt I needed to monetize my site and I searched for ways how to do so and discovered chitika.

I have then signed up and in less than 5 minutes my advertising banners were set and are ready to go!

While working on a web application for data entry, I had to scour the net for a way to hide the dotted border that appears when an element is focused on a web page. Here are my findings.

First, the obligatory disclaimer – I do understand that the dotted border is for accessibility purposes and should be left in place under normal circumstances. However, in this case we already had a replacement in place – when an element receives focus it is styled differently, using a very distinct background color. And this applies to all elements, regardless of whether they were selected by mouse or keyboard. So the dotted border is redundant, and somewhat distracting.

To further clarify the question, these are the dotted borders I refer to:
and

While the solution needed to be usable across browsers, the target browsers where well defined – modern versions of Firefox and Chrome, and IE 7 or newer. I first came across this question on stackoverflow.com which pointed me to using outline:none. Then this one helped with Firefox compatibility. And then I saw this post which provides a number of different techniques.

I ended up using the following CSS, which seems to cover most bases. As I didn’t see this combination on other sites I thought I would post it myself. It doesn’t apply to the select element in Firefox and IE7. Testing was done on Windows XP.

ok. here is (hopefully) a nice simple set of instructions for recent converts.

1) open up your prefered command console. I use yakuake (absolutly amazing program, but you can also use konsole or any other equivalent)
2) sign in as the super user by typing in “su” (enter) then entering your root password when prompted.
3) then go to the directory (folder) where the .tar.gz file is located. for example if it is in your home folder type in “cd /home/” and hit enter
4) type in “tar -zxvf ” and hit enter this will extract the files and create a new directory (folder)
5) go into that folder using “cd ”
6) enter in “./configure” into the command line. this will configure the files. (answer any questions asked)
7) when that’s done enter in “make” into the console.
when that’s done enter in “make install”

And you’re all done!!!

If you’d like to move the folder you may, but don’t delete the folder because it comes in useful if you’d like to uninstall the program

I know, you’re probably thinking ‘How is that possible!’ well, its possible because advertisers place their links on the points2shop website. Then members like myself go and complete the offers that we are interested in. When i do an offer, points2shop gets paid for bringing me to that advertisers website. When points2shop gets paid, they give me a portion of that payment so that i can then get things from amazon.com.

If you need to know more information you can check their forums where members post the things that they have received for earning points on the points2shop website here.

Thank you for taking the time to read this information and i hope to see you earning points soon!”

Level: This is an intermeidate lesson, so I will assume that the reader is familiar with the basic use of the Flash software including stage, timeline, drawing tools, property window, etc.

Version: I will be using Flash CS3 and AS2 (athough tut is compatible with earlier versions of Flash) and instructions are for the Mac. Windows users would use the PC counterparts for specific instructions on Flash Menu/Shortcut instuctions.

Description: In this tutorial, I will explain how to add buttons to your Flash movie with dynamic text content using ActionScript:

Demo:

//

Let’s get started!

Note: For this tutorial, I will be using the buttons I created for a previous tutorial titled “Animating a button using a mask effect”.

If you haven’t already, I recommend you start with that tutorial, as I will not be going over the animation process of the button symbols in this tutorial. If you already know how to create button animations, you can use your own button animation symbol, or download the previous tutorial source file here.

—- ads by google —-
// //

Select “File > New” (command-”N”) and select Flash File (ActionScript 2.0) to open a new Flash document file. Save the file, and give it the appropriate name. I will call this “dynamicButton_tutorial.fla”. Feel free to change the document dimensions to whatever you like (”Modify > Document or “command-J”), but for the purpose of this tutorial, I will use 250×100 pixels.

Choose “File > Import > Open External Library” (shift-cmd-O), and navigate to where you placed the source file of our previous tutorial (btnWithMask_tut1.fla) and click “Open”. What this will do is open up just the “Symbol Library” of that source file. Tip: You can also access the symbol library of any .fla file you have open with the dropdown menu in your Symbol Library window (Fig. 1).

We will be using the symbol called “mc_btn1″ from the Button With Masked Animation source file, so we can simply click and drag this symbol from one library to the other. (Fig. 1). If you notice, when you drag the one symbol, it should also place the symbol “img_highlight” in your current file symbol library. This is because the “img_highlight” symbol is used within the “mc_btn1″ symbol, so Flash knows to import all associated symbols as well.

You can go ahead and close the external symbol library so save space since we don’t need any other symbols from there. In our dynamic button .fla symbol library, double click on our “mc_btn1″ symbol to bring us into symbol editing mode. You should see several layers and animation tweens in your timeline. We are going to leave all of this as is, so go ahead and lock all of these layers. What we need to do is add our text boxes that we will be using as our button labels. Add a new layer above your layer named “mask” and call it “text”. WIth the text tool (T), draw a box roughly the same width of our button, and position it on the center of our button shape. Select your text box, and in the Properties Panel (WIndow > Properties > Properties (cmd-F3)), and give it the settings in Fig. 2.

Now, select the text box, choose Edit > Copy (cmd-C) and then Edit > Paste in Place (cmd-shift-V), and move it 2 or three pixels up and to the left. In Properties Panel, leave all the settings the same, except change the instance name from “textBlack” to “textWhite”, and change the color to white. What we are doing is simply giving our button label a basic “dropshadow” effect, just to make it more easily legible on all the button states.

We are now done editing our button, but since we are going to be placing our button on the stage using ActionsScript, the final thing we need to do is assign our buttona “Linkage” identifier name. Not to be confused with “symbol name” or “instance name”, an identifier name is used to call our button in ActionScript in order to be place on our stage. To give you button an id, right-click (control-click) on your button symbol in your library, and select “Linkage…” from the menu. This will open the Linkage Properties window (Fig. 3). Click on the “Export for ActionScript” check box and in the “Identifier” field, type “button” and hit OK.

Now, it’s time for our ActionScript. It may look like a lot, but don’t be too intimidated, it’s not nearly as complicated as it looks, I promise!

On our main timeline, click on the first (and only) layer and give it a name of “actions”. In keyframe one, open the Actions Panel (Window > Actions or alt-F9) and paste the following code:

That’s it! Go ahead and test your movie. You should see 3 buttons appear, stacked, with the top one labled “home”, the middle one labeled “about” and the bottom one labeled “contact”. You should also see the animation on the different rollover states as well.

Since there is a lot of code here, rather than explain it all here, I decided to heavily comment the code in the source file. Since the real objective of any tutorial is for the reader to actually learn WHY things work and not just how, I encourage you to download the source file and read through the comments. The comments also help to explain the different items that need to be edited to customize your menu, such as placement, position and labels.

As always, I hope you found this tutorial helpful, and comments/questions are welcome. Thanks for reading!

Utilizing the PHP programming language we show you how to create an infinitely extendable web crawler in under 5 minutes, collecting images and links.

The Crawler Framework

First we need to create the crawler class as follows:

<?php

class Crawler {

}

?>

We then will create methods to fetch the web pages markup, and to parse it for data that we are looking at collecting. The only public methods will be getMarkup() and get() as the parsing methods will generally be used privately for the crawler, however the visibility is set to protected since you never know who will want to extend its functionality.

<?php

class Crawler {

protected $markup = ”;

public function __construct($uri) {

}

public function getMarkup() {

}

public function get($type) {

}

protected function _get_images() {

}

protected function _get_links() {

}

}

?>

Fetching Site Markup

The constructor will accept a URI so we can instantiate it such as new Crawler(‘http://vision-media.ca&#8217;); which then will set our $markup property using PHP’s file_get_contents() function which fetches the sites markup.

<?php

public function __construct($uri) {

$this->markup = $this->getMarkup($uri);

}

public function getMarkup($uri) {

return file_get_contents($uri);

}

?>

Crawling The Markup For Data

Our get() method will accept a $type string which essentially will simply be used to invoke another method actually doing the processing. As you can see below we construct the method name as a string, then make sure it is available so now developers can utilize this simply by invoking $crawl->get(‘images’);

We set visibility for _get_images() and _get_links() to protected so that developers will use our public get() method rather than getting confused and trying to invoke them directly.