Fix can not find 640 x 480 video mode

Fix can not find 640 x 480 video mode

How to fix can not find 640 x. 480 video mode (work for any games).

This problem usually only happens on Windows.

To fix this on Windows 8:
Go to your steam library and go to GTA 3 Properties by right clicking it.
Go to local files and click browse local files.
Right click GTA3.exe and go to properties.
Go to the compatibility tab and check "Run this program in compatibility mode for:"
Click the drop down box and click Windows 7.
DONE, start the game.

To fix this on Windows 7:
Go to your steam library and go to GTA 3 Properties by right clicking it.
Go to local files and click browse local files.
Right click GTA3.exe and go to properties.
Go to the compatibility tab and check "Run this program in compatibility mode for:"
Click the drop down box and click Windows XP Service Pack 3.
DONE, start the game.

Source : Google.com.

Enable Default ADMINISTRATOR Account in Windows 10

Enable Default ADMINISTRATOR Account in Windows 10

How to enable Default ADMINISTRATOR Account in Windows 10????

Here I am telling the solution, using command prompt...

Open command prompt with administrator rights ( one way is click win + x and choose the option command prompt (administrator), an one more way is click Windows key and search with keyword cmd and right click the .exe file choose the run as administrator option)

For activating the admin account use the command

net user administrator /active:yes

Click enter, it shows the message like

Command completed successfully.

For disable the admin account

net user administrator /active:no

Click enter, it shows the message like

Command completed successfully.

After that logout the current account and choose the administrator account ( shows the down the left side)..

😃

Solution for TURN ON DOCUMENTS IN SETTING in REDMI Mobiles

Solution for TURN ON DOCUMENTS IN SETTING in REDMI Mobiles

Hi frnds today facing one problem with my phone (redmi 2 prime), the problem occurs when I recently received the update called MIUI Global 7.2 Stable version, update is awesome so dont worry about that.

I got problem with Musixmatch (it's a music player) app, when try to save/fetch the file its the message like this, "TURN ON DOCUMENTS IN SETTING / INSTALLED APP FIRST".

I think every user would face this type of problem, at any time or some of the users are already face the problem.

and the solution of the problem is

go to settings > on the bottom choose installed apps > on the top choose "ALL" > go to the bottom find Documents app (its in bottom because disabled) > enabled it with pressing enable on the bottom screen..

that's it folkes, I hope it is helpful to every one....

Add another GlassFish Server V2 in NetBeans 6.5

Using this post I will tell you how to add an another galssfish server V2 in netbeans 6.5,

Here i can tell the process in Steps Wise...

Step : 1


Step : 2

Step : 3 (If you want to Create with a existing Domain Choose "Register Local Default Domain", Other wise you can go through the "Create Personal Domain" )


Step :  4 (Choose the Domain Folder, "cannot Create a Domain with an Existing Directory", means Don't the already existing folder/directory, You just specify the name of the folder/directory what ever name you want, here i just gave "Custom")



Step : 5


 Step : 7 (Domain Admin Login Info, Give the Username and Password it is user for admin panel of the glassfish server )


Step : 8 (Here it shows the port numbers, if you want to Change, change it [My suggestion is don't change the port numbers] )


Step : 9


Step : 10



That's flokes....

Enable the (Hidden) Administrator Account on Windows 7, 8, or 10

Enable Built-in Administrator Account in Windows


Open Your Command Prompt in administrator mode 

Click Start [type in search Box] CMD by Right-clicking and choosing “Run as administrator” (or use the Ctrl+Shift+Enter shortcut from the search box).

If your using later version i,e., windows 8.x/10 use the process, Right click on the start button and choose the "Command Prompt (Admin)".

































Now type the following command (For Enabling administrator):
net user administrator /active:yes

After execute the command it shows the Successful message "The Command Completed Successful"

 Log out your current account, now you’ll see the Administrator account as a choice.

Note : Their is no Password For this Built-In Administrator account, after you login you able to change the password as your choice. 

If you want to Disable the Account the account follow these command

type the following command (For Disabling administrator):
net user administrator /active:no

After execute the command it shows the Successful message "The Command Completed Successful"

 Log out your current account, now you’ll their is no choice to choose the Administrator account.

That's it...

Change Default Browser in NetBeans

Change Default Browser in NetBeans

This post is only for tech noob's, I mean to say Beginners

Their is no Scree Shots, their is no need for that, I will explain via Simple text.

 Open NetBeans -- > Tools (In the menu) --> Options

Opens one dialog box, In that box select General and Choose the External Browser What ever you want.


Run Commands in Windows 7 and 8

Run Commands in Windows 7 and 8

List of Run Commands Compatible with Windows 7 and 8.

These run commands are available for almost all settings available in Windows control panel.

Note : most part of these commands are compatible with Windows 7, Vista e Windows XP.
          
           some commands are not compatible between different versions. Please check the commands                and use the correct ones for your version of the operating system.

BehaviorRun Command
Open Documents Folderdocuments
Open Videos foldervideos
Open Downloads Folderdownloads
Open Favorites Folderfavorites
Open Recent Folderrecent
To Sign outlogoff
Open Pictures Folderpictures
Windows Sideshowcontrol.exe /name Microsoft.WindowsSideshow
Windows CardSpacecontrol.exe /name Microsoft.cardspace
Windows Anytime UpgradeWindowsAnytimeUpgradeui
Taskbar and Start Menucontrol.exe /name Microsoft.TaskbarandStartMenu
Troubleshootingcontrol.exe /name Microsoft.Troubleshooting
User Accountscontrol.exe /name Microsoft.UserAccounts
Adding a new Devicedevicepairingwizard
Add Hardware Wizardhdwwiz
Advanced User Accountsnetplwiz
Advanced User Accounts(Authorization Manager)azman.msc
Backup and Restoresdclt
Bluetooth File Transferfsquirt
Calculatorcalc
Certificatescertmgr.msc
Change Computer Performance Settingssystempropertiesperformance
Change Data Execution Prevention Settingssystempropertiesdataexecutionprevention
Change Data Execution Prevention Settingsprintui
Character Mapcharmap
ClearType Tunercttune
Color Managementcolorcpl
Command Promptcmd
Component Servicescomexp.msc
Component Servicesdcomcnfg
Computer Managementcompmgmt.msc
Computer Managementcompmgmtlauncher
Connessione proiettore di retenetproj
Connect to a Projectordisplayswitch
Control Panelcontrol
Create A Shared Folder Wizardshrpubw
Create a System Repair Discrecdisc
Credential Backup and Restore Wizardcredwiz
Data Execution Preventionsystempropertiesdataexecutionprevention
Date and Timetimedate.cpl
Default Locationlocationnotifications
Device Managerdevmgmt.msc
Device Managerhdwwiz.cpl
Device Pairing Wizarddevicepairingwizard
Diagnostics Troubleshooting Wizardmsdt
Digitizer Calibration Tooltabcal
DirectX Diagnostic Tooldxdiag
Disk Cleanupcleanmgr
Disk Defragmenterdfrgui
Disk Managementdiskmgmt.msc
Displaydpiscaling
Display Color Calibrationdccw
Display Switchdisplayswitch
DPAPI Key Migration Wizarddpapimig
Driver Verifier Managerverifier
Ease of Access Centerutilman
EFS Wizardrekeywiz
Event Viewereventvwr.msc
Fax Cover Page Editorfxscover
File Signature Verificationsigverif
Font Viewerfontview
Game Controllersjoy.cpl
Getting Startedgettingstarted
IExpress Wizardiexpress
Getting Startedirprops.cpl
Install or Uninstall Display Languageslusrmgr
Internet Exploreriexplore
Internet Optionsinetcpl.cpl
iSCSI Initiator Configuration Tooliscsicpl
Language Pack Installerlpksetup
Local Group Policy Editorgpedit.msc
Local Security Policysecpol.msc
Local Users and Groupslusrmgr.msc
Location Activitylocationnotifications
Magnifiermagnify
Malicious Software Removal Toolmrt
Manage Your File Encryption Certificatesrekeywiz
Math Input Panelmip
Microsoft Management Consolemmc
Microsoft Support Diagnostic Toolmsdt
Mousemain.cpl
NAP Client Configurationnapclcfg.msc
Narratornarrator
Network Connectionsncpa.cpl
New Scan Wizardwiaacmgr
Notepadnotepad
ODBC Data Source Administratorodbcad32
ODBC Driver Configurationodbcconf
On-Screen Keyboardosk
Paintmspaint
Pen and Touchtabletpc.cpl
People Near Mecollab.cpl
Performance Monitorperfmon.msc
Performance Optionssystempropertiesperformance
Phone and Modemtelephon.cpl
Phone Dialerdialer
Power Optionspowercfg.cpl
Presentation Settingspresentationsettings
Print Managementprintmanagement.msc
Printer Migrationprintbrmui
Printer User Interfaceprintui
Private Character Editoreudcedit
Problem Steps Recorderpsr
Programs and Featuresappwiz.cpl
Protected Content Migrationdpapimig
Region and Languageintl.cpl
Registry Editorregedit
Registry Editor 32regedt32
Remote Access Phonebookrasphone
Remote Desktop Connectionmstsc
Resource Monitorresmon
Resultant Set of Policyrsop.msc
SAM Lock Toolsyskey
Screen Resolutiondesk.cpl
Securing the Windows Account Databasesyskey
Servicesservices.msc
Set Program Access and Computer Defaultscomputerdefaults
Share Creation Wizardshrpubw
Shared Foldersfsmgmt.msc
Snipping Toolsnippingtool
Soundmmsys.cpl
Sound recordersoundrecorder
SQL Server Client Network Utilitycliconfg
Sticky Notesstikynot
Stored User Names and Passwordscredwiz
Sync Centermobsync
System Configurationmsconfig
System Configuration Editorsysedit
System Informationmsinfo32
System Propertiessysdm.cpl
System Properties (Advanced Tab)systempropertiesadvanced
System Properties (Computer Name Tab)systempropertiescomputername
System Properties (Hardware Tab)systempropertieshardware
System Properties (Remote Tab)systempropertiesremote
System Properties (System Protection Tab)systempropertiesprotection
System Restorerstrui
Task Managertaskmgr
Task Schedulertaskschd.msc
Trusted Platform Module (TPM) Managementtpm.msc
User Account Control Settingsuseraccountcontrolsettings
Utility Managerutilman
Version Reporter Appletwinver
Volume Mixersndvol
Windows Action Centerwscui.cpl
Windows Activation Clientslui
Windows Anytime Upgrade Resultswindowsanytimeupgraderesults
Windows CardSpaceinfocardcpl.cpl
Windows Disc Image Burning Toolisoburn
Windows DVD Makerdvdmaker
Windows Easy Transfermigwiz
Windows Explorerexplorer
Windows Fax and Scanwfs
Windows Featuresoptionalfeatures
Windows Firewallfirewall.cpl
Windows Firewall with Advanced Securitywf.msc
Windows Journaljournal
Windows Media Playerwmplayer
Windows Memory Diagnostic Schedulermdsched
Windows Mobility Centermblctr
Windows Picture Acquisition Wizardwiaacmgr
Windows PowerShellpowershell
Windows PowerShell ISEpowershell_ise
Windows Remote Assistancemsra
Windows Repair Discrecdisc
Windows Script Hostwscript
Windows Updatewuapp
Windows Update Standalone Installerwusa
Versione Windowswinver
WMI Managementwmimgmt.msc
WordPadwrite
XPS Viewerxpsrchvw

Thanks For Reading... 
Keep Smile Always...
No wi-fi icon/option in Ubuntu 14.04

No wi-fi icon/option in Ubuntu 14.04

         Hi Friends, today(14/06/015) I was installed Ubuntu14.04, After installing every thing is normal(every Software is working fine), But after one day the wifi icon and option just disappeared. I have tried to reboot it and searching the settings for it, but it does not let me connect to a wifi connection in any way. The only way to connect to the internet is with a wired connection. 

So, I try to fix this this a bug or something that has to do with the version? I installed it on a Lenovo G50-70 Model Laptop.

Here The Solution I found. 

Please note that wireless was working fine all this time, its just the missing icon

Here is what worked for me. Unity -> Startup Applications - and check "Indicator Application" (if its not already checked.) Next install following two packages: indicator-applet and indicator-network. 

sudo apt-get install indicator-applet indicator-network

I am using Ubuntu 14.04 64bit on Lenovo G50-70 Model Laptop.

Friends If you know any other solutions Please Comment Below... 

Thanks For Reading...
Keep Smile Always...
Get Radio Button Values in JSF through JavaScript

Get Radio Button Values in JSF through JavaScript

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<h:head>
<title>First Program</title>
<script>
function trigger() {
document.getElementById('div1').style.display="none";
document.getElementById('div2').style.display="none";

document.getElementById('div3').style.display="none";
document.getElementById('div4').style.display="none";
}

function load() {
if(document.forms['form1']['form1:select2'][0].checked == true){
document.getElementById('div1').style.display="block";
document.getElementById('div2').style.display="none";
}
else if(document.forms['form1']['form1:select2'][1].checked == true){
document.getElementById('div2').style.display="block";
document.getElementById('div1').style.display="none";
}
}

function load2(val) {

if(val=="First"){
document.getElementById('div3').style.display="block";
document.getElementById('div4').style.display="none";
}
else if(val=="Second"){
document.getElementById('div3').style.display="none";
document.getElementById('div4').style.display="block";
}
}

</script>
</h:head>
<h:body onload="trigger()">

<h:form id="form1">

<div align="left">
<h:outputText value="Using onclick" style="color:red;font-size:1em;"></h:outputText>
<h:selectOneRadio id="select2" onclick="load()">
<f:selectItem itemLabel="For Hi" itemValue="First"></f:selectItem>
<f:selectItem itemLabel="For Hello" itemValue="Second"></f:selectItem>
</h:selectOneRadio>
<br/>
<div id="div1" style="color: red;">Hiii...</div>
<div id="div2" style="color: red;">Hello...</div>
</div>
<hr/>
<div align="left">
<h:outputText value="Using onchange" style="color:blue;"></h:outputText>
<h:selectOneRadio id="select" onchange="load2(this.value)">
<f:selectItem itemLabel="For Hi" itemValue="First"></f:selectItem>
<f:selectItem itemLabel="For Hello" itemValue="Second"></f:selectItem>
</h:selectOneRadio>
<br/>
<div id="div3" style="color: blue;">Hiii...</div>
<div id="div4" style="color: blue;">Hello...</div>
</div>


</h:form>

</h:body>
</html>

Thanks for Reading...
Keep Smile Always...through JavaScript

To enable functional key feature without pressing Fn on lenovo G50-70

The hotkeys from F1 to F12, are designed to achieve a variety of features.

To press any of the hotkeys, you enable corresponding feature in a faster way.

Examples are quick volume up or down, shutdown, increase or decrease brightness, e.t.c..,

But, when you want to enable any one of the above functions, you need to press the combination of “Fn” together with specific hotkey.

Is there a way to activate the feature by only pressing certain hotkey? And how to make it?

Solution ( I am working on lenovo G50-70 model lap I think it may differ to other models)

1. Enter BIOS to disable “Hotkey Mode” .

For entering into the Bois mode directly press the novo button on left side placed immediately below the power port.

2. After enter BIOS, Select “Configuration” menu.

For lenovo G50-70 series  , set “HotKey Mode” as “Disabled” and press F10 to save and exit. See the image

Restart your lapatop...

That's it's floks.

To enable functional key feature without pressing Fn on lenovo G50-70

The hotkeys from F1 to F12, are designed to achieve a variety of features.

To press any of the hotkeys, you enable corresponding feature in a faster way.

Examples are quick volume up or down, shutdown, increase or decrease brightness, e.t.c..,

But, when you want to enable any one of the above functions, you need to press the combination of “Fn” together with specific hotkey.

Is there a way to activate the feature by only pressing certain hotkey? And how to make it?

Solution ( I am working on lenovo G50-70 model lap I think it may differ to other models)

1. Enter BIOS to disable “Hotkey Mode” .

For entering into the Bois mode directly press the novo button on left side placed immediately below the power port.

2. After enter BIOS, Select “Configuration” menu.

For lenovo G50-70 series  , set “HotKey Mode” as “Disabled” and press F10 to save and exit. See the image

Restart your lapatop...

That's it's floks.

Hide the components in Visual JSF 1.x (woodstock) Using JavaScript

Hide the components in Visual JSF 1.x (Woodstock) Using JavaScript

Hi friends, today my friend had a small problem i.e., based on the check-box selected value it shows the text fields (in html  <input type="text">),

finally i got the solution for it using the javascript

Here is my solution for the problem.

design the form

1. checkbox group (id = checkboxGroup1 in jsf, id =form1:checkboxGroup1 in html)
2. textfield (id = order in jsf, id = form1:order_field in html)
3. another textfield (id = order2 in jsf, id = form1:order2_field in html)

open the jsp page and add the below script between the head tag( <webuijsf:head"> </webuijsf:head>)

<script>
     //<![CDATA[
      function ahk(){
     var group =            document.getElementById("form1:checkboxGroup1").getElementsByTagName('input');
        document.getElementById("form1:order_field").style.visibility = "hidden";
           document.getElementById("form1:order2_field").style.visibility = "hidden";
                   var len = group.length;
                            for(var i =0;i<len;i++){
                                if("item1" == group[i].value){
                                    if(group[i].checked){
                                        document.getElementById("form1:order_field").style.visibility = "visible";
                                    }
                                }
                                if("value" == group[i].value){
                                    if(group[i].checked){
                                        document.getElementById("form1:order2_field").style.visibility = "visible";
                                    }
                                }
                            }

                        }
        //]]></script>

initially generated code...

Remove the Styles to the textfield component



Before doing this you have to bind the componets, otherwise it won't work.

open the java page and add the below code in _int(), prerender(), methods respectively

_init and prerender methods are pre defined methods you just implement those methods

//in  _init method

 order.setStyle("position: absolute; left: 336px; top: 96px;visibility:hidden");
 order2.setStyle("position: absolute; left: 336px; top: 168px;visibility:hidden");

//in prerender Method


        if (checkboxGroup1.getSelected() == null) {
            order.setStyle("position: absolute; left: 336px; top: 96px;visibility:hidden");
            order2.setStyle("position: absolute; left: 336px; top: 168px;visibility:hidden");
        } else {
            System.out.println("Entered");
            order.setStyle("position: absolute; left: 336px; top: 96px;visibility:hidden");
            order2.setStyle("position: absolute; left: 336px; top: 168px;visibility:hidden");
            String[] group = (String[]) checkboxGroup1.getSelected();
            for (String a : group) {
                System.out.println("aa : " + a);
                if ("item1".equalsIgnoreCase(a)) {
                    order.setStyle("position: absolute; left: 336px; top: 96px;visibility:visible");

                }
                if ("value".equalsIgnoreCase(a)) {
                    order2.setStyle("position: absolute; left: 336px; top: 168px;visibility:visible");
                }
            }
        }

Screen shots

1. init

2. prerender



Save files, Start the Sever and run the file.

All the Best.... 








Hide the components in Visual JSF 1.x (woodstock) Using JavaScript

Hide the components in Visual JSF 1.x (Woodstock) Using JavaScript

Hi friends, today my friend had a small problem i.e., based on the check-box selected value it shows the text fields (in html  <input type="text">),

finally i got the solution for it using the javascript

Here is my solution for the problem.

design the form

1. checkbox group (id = checkboxGroup1 in jsf, id =form1:checkboxGroup1 in html)
2. textfield (id = order in jsf, id = form1:order_field in html)
3. another textfield (id = order2 in jsf, id = form1:order2_field in html)

open the jsp page and add the below script between the head tag( <webuijsf:head"> </webuijsf:head>)

<script>
     //<![CDATA[
      function ahk(){
     var group =            document.getElementById("form1:checkboxGroup1").getElementsByTagName('input');
        document.getElementById("form1:order_field").style.visibility = "hidden";
           document.getElementById("form1:order2_field").style.visibility = "hidden";
                   var len = group.length;
                            for(var i =0;i<len;i++){
                                if("item1" == group[i].value){
                                    if(group[i].checked){
                                        document.getElementById("form1:order_field").style.visibility = "visible";
                                    }
                                }
                                if("value" == group[i].value){
                                    if(group[i].checked){
                                        document.getElementById("form1:order2_field").style.visibility = "visible";
                                    }
                                }
                            }

                        }
        //]]></script>

initially generated code...

Remove the Styles to the textfield component



Before doing this you have to bind the componets, otherwise it won't work.

open the java page and add the below code in _int(), prerender(), methods respectively

_init and prerender methods are pre defined methods you just implement those methods

//in  _init method

 order.setStyle("position: absolute; left: 336px; top: 96px;visibility:hidden");
 order2.setStyle("position: absolute; left: 336px; top: 168px;visibility:hidden");

//in prerender Method


        if (checkboxGroup1.getSelected() == null) {
            order.setStyle("position: absolute; left: 336px; top: 96px;visibility:hidden");
            order2.setStyle("position: absolute; left: 336px; top: 168px;visibility:hidden");
        } else {
            System.out.println("Entered");
            order.setStyle("position: absolute; left: 336px; top: 96px;visibility:hidden");
            order2.setStyle("position: absolute; left: 336px; top: 168px;visibility:hidden");
            String[] group = (String[]) checkboxGroup1.getSelected();
            for (String a : group) {
                System.out.println("aa : " + a);
                if ("item1".equalsIgnoreCase(a)) {
                    order.setStyle("position: absolute; left: 336px; top: 96px;visibility:visible");

                }
                if ("value".equalsIgnoreCase(a)) {
                    order2.setStyle("position: absolute; left: 336px; top: 168px;visibility:visible");
                }
            }
        }

Screen shots

1. init

2. prerender



Save files, Start the Sever and run the file.

All the Best....