PEHLA KALMA

PEHLA KALMA
Showing posts with label How. Show all posts
Showing posts with label How. Show all posts
Sanaullah Sajid

How to update flash player for firefox in linux ubuntu

Question: I am trying to update flash,but i still get a massage telling me to update.

Ans:

Follow methods.
1)Open terminal and paste code:

Read More
Sanaullah Sajid

Change text length in php and provide Read more link

Question:
I have text stored in the php variable $text. This text can be 100 or 1000 or 10000 words. As currently implemented, my page extends based on the text, but if the text is too long the page looks ugly.
I want to get the length of the text and limit the number of characters to maybe 500, and if the text exceeds this limit I want to provide a link saying, "Read more." If the "Read More" link is clicked, it will show a pop with all the text in $text.

Read More
Sanaullah Sajid

How to remove “Powered By Blogger'' widget ?

How to Remove Powered By Blogger attribution widget from blogger/blogspot? I seen many bloggers who irritated from this because it can show the blogger label that cause blog not looking professional So, Thats why They want to Remove it. This is not a difficult stuff that How to Remove powered by blogger attribution widget from blogspot. But now in templates you can Remove this widget by your Self.

1: Firstly Open you blogger account and choose that blog you want to remove the attribute widget.
2: Now go to template >> HTML in this section you see ''Jump to widget'' option click on it and choose  ''Attribution1'' widget and it will automatically point to that line.

3: Now press CTRL+F and Search for this below line.


4: Now time to remove this. Just Replace 'true' with 'false' like we Demonstrate in above screenshot.
5: After this your code is looking like : 
6: Save your template and go to blogger dashboard >>Layout.
7: See the Attribute widget in layout and click edit and now remove option is appear in attribute widget.Simple Click on remove button and remove your ''Powered By Blogger'' Attribution widget.
Now click on View and Preview your Blog.Now you notice that ''Powered by blogger'' Attribution is remove.
Read More
Sanaullah Sajid

mod_rewrite is enabled but not working in linux

Trying to get a php routing library set up.They give this example for a .htaccess file save file in your folder.

< ifmodule mod_rewrite.c="" >
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
< /ifModule >

I couldn't get this to work,so tried enabling mod_rewrite,

First of all, set your httpd configuration to this (the path may differ with one another. In my ubuntu it's placed at /etc/apache2/sites-available/default):

DocumentRoot /var/www

< Directory /var/www/ >
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
    Order allow,deny
    allow from all
< /Directory >


  • sudo a2enmod rewrite


  • restart your apache:



  • sudo service apache2 restart


  • To ensure that, you can check it again from phpinfo in Configuration > apache2handler > Loaded Modules there must be written mod_rewrite and it means mod_rewrite is enabled.
    Read More
    Sanaullah Sajid

    Linux mint ubuntu php errors not displayed in the browser

    I've read a number of article and other threads which indicate that the following values should be applied in the file /etc/php5/apache2/php.ini :
    Read More
    Sanaullah Sajid

    random key generator with visual studio

    How make random key generator with visual basic or visual studio.
    Add one text box and button.

    Button 1 code:

    TextBox1.Text = GenerateCode()

    All code there:

    Public Class Form1

        Public Function GenerateCode() As Object
            Dim IntRnd As Object
            Dim IntStep As Object
            Dim strName As Object
            Dim IntNameLength As Object
            Dim IntLength As Object
            Dim StrInputString As Object

            StrInputString = "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ"
            IntLength = Len(StrInputString)
            IntNameLength = 15
            Randomize()

            strName = ""

            For IntStep = 1 To IntNameLength
                IntRnd = Int((IntLength * Rnd()) + 1)

                strName = strName & Mid(StrInputString, IntRnd, 1)
            Next
            GenerateCode = strName
        End Function

        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            TextBox1.Text = GenerateCode()
        End Sub
    End Class

     
    *If you want to change the length of the generated code, just change 'IntNameLength' value.

    *If you want to edit the Numbers and letters or Symbols that get randomized then edit the 'StrInputString' value.

    *I for one are using it to generate a Activation Key for a user when he buys my product.Just saves time to make up my own code...

    *This can be in a variety of different ways.It can help add security etc.
    Read More
    Sanaullah Sajid

    How lock folder with out software

    Folder lock with out software.
    It my all cool friends.
    It realy easy folder lock follow few step.









    For more tricks for visit :Tips  Tricks 

    Read More
    Sanaullah Sajid

    How change window xp password without old password

    Change the password without old password.
    Agr ap ku old password ni pata tu ap new password set kar sakty ha bus chand step ku follow kar ky.
    you change password without old password follow few steps.


    Read More