tag:blogger.com,1999:blog-47715196972697180242024-03-13T06:46:58.936+07:00HOT CSSFree Beautiful Css templates, Web designer tricks from expertAnonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.comBlogger625125tag:blogger.com,1999:blog-4771519697269718024.post-70052015626210182242015-06-20T16:26:00.000+07:002015-06-20T16:27:32.512+07:00Convert html code to image PNG, JPGYou can use this code to convert html code into images.
Switch imagepng to imagegif, imagejpg as your purpose.
$html_code = "this is the body";
$my_img = imagecreate( 200, 80 );
$background = imagecolorallocate( $my_img, 0, 0, 255 );
$text_colour = imagecolorallocate( $my_img, 255, 255, 0 );
//$line_colour = imagecolorallocate( $my_img, 128, 255, 0 );
imagestring( $my_img, 4, 30, 25, "$Anonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.com0tag:blogger.com,1999:blog-4771519697269718024.post-75160622989105616262015-03-28T10:51:00.002+07:002015-03-28T10:51:32.527+07:00Css to the children nodes based on the number of siblings they haveSome one ask me "how can style element based the number of children it has?"
in CSS3, styles cannot be applied to a parent node based on the number of children it has. However, styles can be applied to the children nodes based on the number of siblings they have.
/* one item */
li:first-child:nth-last-child(1) {
width: 100%;
}
/* two items */
li:first-child:nth-last-child(2),
li:Anonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.com0tag:blogger.com,1999:blog-4771519697269718024.post-1553322231434883412015-02-03T10:28:00.000+07:002015-02-03T10:28:14.401+07:00Create a phpFox moduleThis tutorial help you get the basic concept & knowledge about phpFox module structure and how it communicate with others.
At first, you must know about MVC model. You can read more detail at link http://en.wikipedia.org/wiki/Model–view–controller
Now, look into the phpfox module structure:
phpFox module has 3 main folder : include, static, and template.
1. "include" Anonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.com0tag:blogger.com,1999:blog-4771519697269718024.post-68024357246449986352015-01-14T21:08:00.003+07:002015-01-14T21:11:55.559+07:00Patch fix for Replay in Live HTTP Headers Live HTTP Headers is very useful addon for developer on firefox
But Replay option doesn't work in new FF! since September 2014
How to make "Replay" work again?
Easily, please following these steps
Close firefox if it's opened
Run : Type: %APPDATA%\Mozilla\Firefox\Profiles\ Enter
CLick on extension folder, Ex: yourprofile.default\extensions\
Search for "Anonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.com2tag:blogger.com,1999:blog-4771519697269718024.post-56314376267931874462015-01-08T10:22:00.002+07:002015-01-08T10:22:35.121+07:00How to disable updatedb? /usr/bin/updatedbSometimes you can see /usr/bin/updatedb running cause high load.
a question is posed. is It necessary to keep updatedb?
Just do the following step to find out the answer
First find out where the program is located on disk.
$ type updatedb
updatedb is /usr/bin/updatedb
Next find out what package provides updatedb.
$ rpm -qf /usr/bin/updatedb
mlocate-0.26-3.fc19.x86_64
See if anything Anonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.com0tag:blogger.com,1999:blog-4771519697269718024.post-9068551745802143502014-12-08T11:17:00.002+07:002014-12-08T11:18:56.071+07:00How to get original visitor IP from CloudflareClouldflare use header params: HTTP_CF_CONNECTING_IP to provide original IP
IN PHP
$ip = isset($_SERVER['HTTP_CF_CONNECTING_IP']) ? $_SERVER['HTTP_CF_CONNECTING_IP'] : $_SERVER['REMOTE_ADDR'];
In .net
C#
protected string GetIPAddress()
{
System.Web.HttpContext context = System.Web.HttpContext.Current;
string ipAddress = context.Request.ServerVariables["Anonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.com0tag:blogger.com,1999:blog-4771519697269718024.post-32641672080240408332014-11-26T21:39:00.000+07:002014-11-26T21:39:58.992+07:00Build multi-platform IOS, Window mobile, Andorid app with Intel XDKMobile development with web technologies is nothing new. Thanks to tools
like PhoneGap and Appcelerator Titanium, web developers can create
hybrid apps that have access to the device's hardware. A new solution
for HTML5/CSS/JavaScript development is Intel's XDK. In this article,
I'll tell you why it's worth giving it a try.
1. What is it?
If you are involved with mobile development, Anonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.com0tag:blogger.com,1999:blog-4771519697269718024.post-45343465050099245112014-11-18T23:51:00.000+07:002014-11-18T23:52:31.374+07:00What is the difference between Cloud Server (Cloud VPS) with VPSTraditional VPS’s do not have centralized storage which means if your node goes down you could be down for hours. If your data is corrupt in a VPS environment it might be gone forever. Also, if you want to scale on your VPS you are limited based on the amount of resources that is on the node your data is on.
Cloud Scalability
With Cloud Servers you are able to scale at a moments notice Anonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.com0tag:blogger.com,1999:blog-4771519697269718024.post-29804165909083760472014-08-17T22:05:00.002+07:002014-10-27T09:47:29.339+07:00adf.ly, lienscash.com, adfoc.us, bc.vc bypasser extension for Chrome
No longer worry about adf.ly...
Ketnooi Paid Link Bypasser extension for Chrome
Just install this script and enjoy the auto bypassing on that bad websites (currently adf.ly, lienscash.com, adfoc.us, bc.vc).
This script is compatible with Chrome/Chromium.
Report to me any problem, and.. thanks for using the script!
Version 5.1
- fixed bc.vc again
- fixed AGAIN adf.ly bypasser (HiTommy? Anonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.com3tag:blogger.com,1999:blog-4771519697269718024.post-13768732038327143502014-08-16T22:43:00.001+07:002014-08-16T22:43:35.069+07:00View all animated gifs in a folder at the same time?Window don't support this function
So we have to create a html which contain all gifs in the folder
Open notepad, put this text inside:
FOR /F %%G IN ('dir /B *.gif') DO echo ^^ %%G^
>> gifs.html
Save as "showgifs.bat"
Then run it. The script will generate file gifts.html
Then You can opoen that file with any browserAnonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.com0tag:blogger.com,1999:blog-4771519697269718024.post-42201444308801141712014-08-16T10:32:00.003+07:002014-08-16T10:32:45.912+07:00Replace a color with another with GIMP free photo editor
In GIMP, to change white to blue:
Open the image file
menu Colors/Map/Color Exchange
Press the colour selection for "From Color". Set R, G and B to all 255. Press OK button.
Press the colour selection for "To Color". Set R and G to all 0. Set B to 255. Press OK button.
Press OK button.
White and black are special... If you want to translate all other colours then:
Open the image file
menu Anonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.com0tag:blogger.com,1999:blog-4771519697269718024.post-60907546502567384272014-08-16T10:29:00.001+07:002014-08-16T10:29:54.515+07:00Replace Colors with the Replace Color Tool in Firework
Replacing Colors with the Replace Color Tool
It is very easy to change colors in a photo or object
with the color swatch tool. Remember that Fireworks looks at color in
pixels. No object has the exact color throughout. This is where the
tolerance comes in. You want to play with the tolerance until you get
the color variation that picks up all the color shades of the color you
want to Anonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.com0tag:blogger.com,1999:blog-4771519697269718024.post-81060010107601766312014-08-16T00:18:00.001+07:002015-03-28T10:52:12.637+07:00get head content of page with jqueryYou can use this code:
With Jquery
$("head")
//for example:
alert($("head").html());
With JS:
var headContent = document.getElementsByTagName("head")[0].innerHTML;
Anonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.com0tag:blogger.com,1999:blog-4771519697269718024.post-23110489847326072192014-08-15T23:04:00.002+07:002014-08-15T23:04:43.801+07:00Convert a utf-8 string to a utf-16 string in PHP
- You could also use iconv.
It's native in PHP, but require that all your text is one charset. Else it could discard characters.
iconv("UTF-8", "UTF-16", $text)
- In other way, mbstring supports UTF-16, so you can use mb_convert_encoding.
source
Anonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.com0tag:blogger.com,1999:blog-4771519697269718024.post-10266929073808910452014-08-11T22:47:00.001+07:002014-08-11T22:47:22.146+07:00Best Lightweight and Responsive Front-End Frameworks
With fast processing websites in huge demand, developers have
switched their preferences. From adding new functionality, to make their
responsive frameworks lightweight while ensuring seamless and fast
processing across all devices. Having a lightweight and responsive
website is the need of the hour as visitors usually don’t prefer sites
that take time to load.
In this era of speed, all youAnonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.com0tag:blogger.com,1999:blog-4771519697269718024.post-58791170390796268522014-08-11T22:44:00.005+07:002014-08-11T22:44:49.312+07:00Localize Your Android Apps (Default files and folders)
Thinking about localizing your android app, well it is without a
doubt a great way to popularize your app. Localization is one of the
fastest growing trends in the app world today.
Localization is a process to provide resources for your app in
accordance with the language setting of the device. The need to provide
support of local language on the app is due to the fact that most Anonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.com0tag:blogger.com,1999:blog-4771519697269718024.post-88441986585749628952014-08-11T22:37:00.001+07:002014-08-11T22:37:15.055+07:00Writer SEO hints
Often you would have observed that some sentences in the articles
or blogs are not perfect. This leads to the question that is sacrificing
perfect sentence structure the way to find your space in the writing
field?
In the lure to write more creative article or blog that appeals to
the target audience, an audience that might not have good control over
the English language, writers Anonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.com0tag:blogger.com,1999:blog-4771519697269718024.post-44505259553381524392014-08-10T10:47:00.001+07:002014-08-10T10:48:06.291+07:00How to style the first occurrence of an element inside of another element?
Here's my problem.
HTML
<div id="content">
<h1>Headline</h1>
<p>First paragraph that needs to be yellow.</p>
<p>Second paragraph that need not change. :) </p>
<p>Third paragraph that need not change. :) </p>
</div>
If I use #content p:first-child {color:yellow; } it doesn't work because p isn't the Anonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.com0tag:blogger.com,1999:blog-4771519697269718024.post-87394339123786277312014-08-10T10:43:00.000+07:002014-08-10T10:43:31.914+07:00PDO query to fetch all tables
Execute the query with PDO::query():
SHOW TABLES;
If you fetch an associative array, the name of the column will be:
Tables_in_databasename
Note: this will list both tables and views. If you must get only tables, use this instead:
SELECT
TABLE_NAME
FROM information_schema.TABLES
WHERE
TABLE_TYPE='BASE TABLE'
AND TABLE_SCHEMA='yourdatabasename';
Anonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.com0tag:blogger.com,1999:blog-4771519697269718024.post-50848430035644367592014-08-01T00:01:00.001+07:002014-08-01T00:17:58.195+07:00PHP Fix errors if mbstring is not loadedMy script work good on shared hosting until hosting disable mbstring
Now my script can't run.
Many functions MB_ mb_strrpos mb_get_info .... get undefined errors.
function mb_detect_order($encoding_list = '')
function mb_language($language='')
function mb_internal_encoding($encoding = '')
function mb_get_info($type = 'all')
function mb_substitute_character($subchar='')
function Anonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.com0tag:blogger.com,1999:blog-4771519697269718024.post-84929139276047971282014-07-31T23:15:00.001+07:002014-07-31T23:15:32.648+07:00How to download Free pdf from Scribd without payingDownload pdf from Scribd without paying : Are you searching for pdf or ebook??? Scribd.com is
world largest digital library and has very large collection of
documents which can you download either in PDFs format or doc.
As a
student, I know the value of eBooks and no one wants to pay for the
eBook. A few weeks ago I was searching for ebook and Anonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.com0tag:blogger.com,1999:blog-4771519697269718024.post-80291177961585402912014-07-21T23:38:00.001+07:002014-07-21T23:39:02.028+07:00Htaccess show no_found picture if picture is not exist
RewriteEngine On
RewriteCond %{REQUEST_URI} \.(jpg|jpeg|gif|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .*$ /no_picture.png [L]
Let's break it down as to what each line means.
RewriteCond %{REQUEST_URI} \.(jpg|jpeg|gif|png)$ [NC]
Check to see if the requested file is of a file extension in the parentheses (). In this case, we're testing to seeAnonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.com0tag:blogger.com,1999:blog-4771519697269718024.post-76575581173969566752014-07-21T00:17:00.002+07:002014-07-21T00:17:43.571+07:00auto refresh for every 5 mins in JavascriptWe can do this function with just html or just javascript
Refresh document every 300 seconds using HTML Meta tag add this inside the head tag of the page
<meta http-equiv="refresh" content="300">
Or using Java Script:
setInterval(function() {
window.location.reload();
}, 300000);
Anonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.com0tag:blogger.com,1999:blog-4771519697269718024.post-24189611327759300542014-06-01T23:35:00.000+07:002014-06-01T23:35:06.912+07:00jQuery javascript regex Replace br tag with \nvar str = document.getElementById('mydiv').innerHTML;
document.getElementById('mytextarea').innerHTML = str.replace(/<br\s*[\/]?>/gi, "\n");
or using jQuery:
var str = $("#mydiv").html();
var regex = /<br\s*[\/]?>/gi;
$("#mydiv").html(str.replace(regex, "\n"));
example
edit: added i flag
edit2: you can use /<br[^>]*>/gi wich will match anything between the br Anonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.com0tag:blogger.com,1999:blog-4771519697269718024.post-58758688952714415002014-05-19T22:03:00.002+07:002014-05-19T22:03:35.997+07:00disable selected options by jQuery
This will disable/enable the options when you select/remove them, respectively.
$("#theSelect").change(function(){
var value = $(this).val();
if (value === '') return;
var theDiv = $(".is" + value);
var option = $("option[value='" + value + "']", this);
option.attr("disabled","disabled");
theDiv.slideDown().removeClass("hidden");
theDiv.find('a').data("Anonymoushttp://www.blogger.com/profile/17533110034270796320noreply@blogger.com0