Showing posts with label computer. Show all posts
Showing posts with label computer. Show all posts

[SOLVED] How to insert enter character / </br> break line from mysql database to html

Put this in your html file. I use text type on mysql column data. I use textarea when input the text on html. It has some breakline on the data. Then i echo it on regular html. You can see the result on kopsyahaba.com/index.php
<?php
                    $order   = array("\r\n", "\n", "\r");
                    $replace = '<br />';
                    $ambilintro=mysqli_fetch_array(mysqli_query($con,"SELECT * from home"),MYSQLI_NUM);
                    $databaru=str_replace($order, $replace, $ambilintro[0]);
                    echo $databaru;
?>

[SOLVED] Ctrl and Alt button become Shift button (Linux Mint)



ctrl+t and ctrl+w not working when browsing in linuxmint. Ctrl and Alt button become Shift button (Linux Mint) 1. After install the linuxmint, the ctrl and alt button become shift button, so i can't use ctrl+t to new tab and ctrl+w to close tab in browsing. This is because i'm using gaming keyboard that maybe not standart. 2. You can read the solution on https://bitbucket.org/Swoogan/aziokbd 3. First open the terminal then type sudo apt-get install mercurial build-essential linux-headers-generic dkms 4. then type hg clone https://bitbucket.org/Swoogan/aziokbd 5. then change directory by typing cd aziokbd 6. after that type sudo ./install.sh dkms then press 'y' 7. Done! now your keyboard can't type anything, so you need to unplug it, then plug again the keyboard, now the ctrl and alt button back to normal. Alhamdulillah. May Allah protect us from pirated software and OS that can bring sin and led us to hell because it's same as robbing other people's things :)

[SOLVED] Can't open regedit

I can't open regedit since upgrade to windows 10. To solve this :

  1. Run CMD as an administrator
  2. Type : reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\regedit.exe"
  3. Then type yes and enter.
  4. Then go to start menu, type regedit, click on it, and it will run!"

[SOLVED] Google chrome has stopped working

My friend just bought a new laptop. Whenever open chrome, it stopped working. Even i reinstall, it still stopped working. To solve this:
 - Uninstall Cyberlink Youcam

Yes, only that. :D

Eclipse Failed to create the Java Virtual Machine

Eclipse error: 'Failed to create the Java Virtual Machine'



To solve this :
1. Open eclipse folder
2. Open eclipse.ini
3. Change -Xmx1024 to -Xmx512 on the last line
4. Save, done.

[SOLVED] Google Chrome Icon Gone / Not Visible

If the google chrome icon changed to generic icon, do this to solve it: 1. Run Task Manager 2. end explorer.exe 3. run new task: cmd.exe type cd C:\Users\[username]\appdata\local type del iconcache.db /a type exit 4. Back in Task Manager 5. run new task: explorer.exe

[SOLVED] How to solve backslash '\' become Yen sign '¥' (Windows 7)

1. Open control panel 2. Click clock, language, and region 3. Click Region and Language 4. Open Administrative tab 5. Click Change system locale... 6. Change current system locale to English (United Kingdom), after that the computer will restart

[SOLVED] Error loading 126 : The specified module cannot be found

This error occured because of invalid registry value, to solve this
1. Open notepad
2. Copy this code
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000]
"OpenGLVendorName"=hex(7):61,00,74,00,69,00,6f,00,67,00,6c,00,78,00,78,00,2e,\
  00,64,00,6c,00,6c,00,00,00,61,00,74,00,69,00,6f,00,67,00,6c,00,78,00,78,00,\
  2e,00,64,00,6c,00,6c,00,00,00,00,00

3. Save with extension .reg
4. Run the file

[SOLVED] Your ip address has changed. Please log in again. (cpanel)

This error happened when i try to log in to cpanel of my domain with my smartphone. It's happened because the smartphone use dynamic IP and changed everytime. To solve this:
1. Make subdomain with cpanel name on your domain, so it will be cpanel.yourdomain.com
2. Download this file https://www.dropbox.com/s/pzgkww9xry1meft/cPanelProxy.zip
3. Extract it, there will be 4 files inside it
4. Open your cpanel, open file manager, under public_html folder there will be cpanel folder, upload the files to cpanel folder.
5. DONE! Now you can open cpanel with your mobile phone, but REMEMBER, use cpanel.yourdomain.com instead of yourdomain.com/cpanel

[SOLVED] Cannot connect to the real www.google.com

Cannot connect to the real www.google.com
Cannot connect to the real www.facebook.com
etc etc

That happened when i change my pc case, the date and time become incorrect, to solve this:
1. Click date and time on bottom right
2. Change date and time settings...
3. Click Internet Time tab
4. Click change settings...
5. Make sure server is time.windows.com
5. Check synchronize with internet time server
6. Click update now
7. Click ok, click ok

That happened because the time was reset when i change my pc case.

[SOLVED] How to get notification from facebook comment plugin

How to moderate facebook comment plugin on website?this is how
1. Put this code on the website section

<meta property="fb:app_id" content="599619996783465" />
2. Put this code on the section you want to show the facebook comment

< div id="fb-root"> < /div < 
                                                   <script>(function(d, s, id) {
       var js, fjs = d.getElementsByTagName(s)[0];
       if (d.getElementById(id)) return;
       js = d.createElement(s); js.id = id;
       js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=599619996783465";
       fjs.parentNode.insertBefore(js, fjs);
       
     }(document, 'script', 'facebook-jssdk'));
     
     </script>
                                                   <fb:comments href="your page site url" num_posts="10" width="940"></fb:comments>
3. Open https://developers.facebook.com/tools/comments/?id=your app id to see the notification

[SOLVED] Where is video cache google chrome location on windows 7?

When you finish streaming video on chrome, the file is stored here

C:\Users\'username'\AppData\Local\Google\Chrome\User Data\Default\Pepper Data\Shockwave Flash

change 'username' with your computerusername, look for big .tmp file, change the .tmp to .flv

[SOLVED] How to Monitor Bandwidth Used Per Program on Windows 7

1. go to start
2. Type “Resource Monitor”
3. Then click the NETWORK tab

Windows 7 already have it so you don't need to download any program, lol!

Or if you want advance control like limitting bandwidth per program, etc, try netbalancer https://netbalancer.com/ 

[SOLVED] JQuery JCaroullite Bug

I use Jquery JCaroullite, but when i slide the image, one of image is disappear, to solve this:

Change the code of javascript on the web page from

$(document).ready(function() { 
$(".jCarouselLite").jCarouselLite({
 btnNext: ".next",
 btnPrev: ".prev",  
 speed: 400,  
 vertical: false,
 circular: true,
 easing:'easeOutQuart',
 visible: 4,
 start: 0,
 scroll: 1
});
});

To

$(document).ready(function() { 
$(".jCarouselLite").jCarouselLite({
 btnNext: ".next",
 btnPrev: ".prev",  
 speed: 400,  
 vertical: false,
 circular: true,
 easing:'easeOutQuart',
 visible: ($("#carousel li img").length>1)?3:2,
 start: 0,
 scroll: 1
});

});

[SOLVED]How To Use Image Name with Spaces on HTML CSS Javascript

I have a javascript file and want to use bakground image url, but the image name has a space on it, and it won't appear on website, that's because Spaces are not valid in a URL. They need to be encoded to %20.

My image name is 'Mesin Logam.jpg'

setAttribute("fPath",f.fPath);
innerHTML="<div style='height:80px;background-image:url(../"+f.fPath+");background-size:80px 80px;background-repeat:no-repeat;padding:0px 0px 0px 85px'>"+f.fName+"</div>";

that code won't show the image, so we can use source.replace(/ /g, '%20'), replace source with the image name/ url variable, it will be like this

setAttribute("fPath",f.fPath);
var isiweb=f.fPath.replace(/ /g, '%20');
innerHTML="<div style='height:80px;background-image:url(../"+isiweb+");background-size:80px 80px;background-repeat:no-repeat;padding:0px 0px 0px 85px'>"+f.fName+"</div>";
the image name now become Mesin%20Logam.jpg and the browser can read it.

Searching for Dota 2 network

To solve this, go to steam->setting->Beta participation->Steam beta update

It worked for me, i hope it worked for you guys too

How to share PC internet to android via usb (Reverse Tethering)

Android Reverse Tethering for windows users.
Tethering is the ability to surf on your pc using the 3g of your phone
Reverse tethering is the opposite : Surf on your phone using the ADSL of your PC. No Wifi or 3G connection required.
NOTE : This work only for rooted users !!!
Download this file first http://drive.google.com/file/d/0B_7ZNHj1GKsAelJnOUxtQ0hudzQ/edit?usp=sharing

Installation :

Unpack the zip file. This zip files contains the windows part, ADB and the android APK.
Before starting the tool :
1) You must install drivers for your device. Generic driver provided by google is on the usb_driver.zip
2) Ensure you have debugging enabled on your phone :
        Settings > Applications > Development > USB Debugging > Turn On
4) Ensure you have root access AND SuperUser application installed.
5) Change the superuser settings (Menu -> Preferences -> Notifications part) :
Uncheck “Notifications” label to display “Do not show notification when an app is granted Su Permissions”


6) Open AndroidTool.exe, click connect
7) Click Allow
8) Now you can browse with your android

[SOLVED] Facebook Slow at Chrome / Facebook not loading properly at chrome

How to solve facebook slow/ lag at chrome?
My facebook nowadays always not loading properly, the new post/ status update is blank in news feed, the chat is always reconnecting, and when opening new tab of facebook sometimes it stop loading, to solve this:

  1. Open http://www.opendns.com/opendns-ip-addresses/
  2. Take a not to the dns address there, for example 208.67.222.222 and 208.67.220.220
  3. Open your network and lan properties, change the dns to that dns
Now your facebook become normal again, it worked for me.


[SOLVED] Android often disconnected from connectify

I have Android on Xperia Mini Pro, when conected to Connectify, it's often disconnected and reconnecting, to solve this (I'm using windows 7):
1. stop connectify
2. open cmd/ command prompt
3. type "netsh wlan set hostednetwork mode=allow ssid=wifiname key=password keyUsage=temporary", press enter
    *wifiname: change it to a name of your wifi, up to you, for example madaHotspot,
    *password: change password to your wifi password, this script will make a new WiFi access point
4. Then type "netsh wlan start hostednetwork", press enter.
5. Open control panel, network and internet, network connections
6. Right click on your internet adapter that active for internet, click properties
7. Click sharing tab
8. Check Allow other network users to connect through this computer's Internet connection.
9. On the Home networking connection, select the new wireless network that created, microsoft virtual wifi miniport, if its name is wireless network connection 3, then choose it.

Done! Now your android won't disconnect again, hopefully :)


/* infolinks */