technology tips and tricks

Latest technology Tips and Tricks for computer ,Laptop Mobile users

Friday, April 24, 2015

Twitter Bootstrap support for RTL languages

hello
I'm working on a project using Bootstrap but i want it for arabic language (RTL )
 
solution


  1. I highly recommend this library. It is built over Bootstrap core, and rtl support is added as it is a bootstrap theme. This would make your code more maintainable as you can always update your core bootstrap files. CDN
  2. Another option to use this stand-alone library: http://zerox.me/projects/bootstrap3/ It aslo comes with few awesome Arabic fonts. Github repository.
  3. Another suggestion this http://pyjamacoder.com/2012/02/01/twitter-bootstrap-v2-rtl-edition/
  4. This is pretty good for bootstrap 3 RTL support. http://www.eyadio.com/post/2013/08/29/Twitter-Boostrap-version-3-with-RTL-support

Saturday, February 21, 2015

(solved) Blank page after install Moodle in http://localhost/user/editadvanced.php problem

(solved) Blank page after install Moodle in http://localhost/user/editadvanced.php problem

problem:

When i install moodle all steps are completed until update profile. (localhost/moodle/user/editadvanced.php id=2) when i enter admin details and update file nothing is displayed. when i try to access moodle module through localhost chrome displays message "web page has a redirect loop". localhost/moodle/admin/index.php page is not redirected.


the solution:

Find the moodledata folder. Inside the moodledata there are many folders
  1. Delete all from Cache
  2. Delete all from Session
Restart your browser.
It worked for me. Hope that works for you.
another solution:
go to control panel, programs, click on java, security. set security to medium.
Java security was set to high which was blocking moodle application.


Sunday, January 18, 2015

fix error code 0xc000000f, solution status 0xc000000f error code

fix error code 0xc000000f, solution status 0xc000000f error code
 
After rebooting your computer you receive the following error:
Windows Boot Manager
Windows failed to start. A recent hardware or software change might be the cause. To fix the problem:
1.insert windos cd and run a repair your computer option.
File: /boot/bcd
Status: 0xc000000f
Info: an error occurred while attempting to read the boot configuration data.


Cause and Fix

The most likely cause of this error is that you tried to dual boot two operating systems and then later decided to remove one. This inadvertently may have deleted the bcd boot store. The trick here is to run the above commands in the right order and set your boot partition to active. Let’s get started.

first solution
You can use a repair disc. To get a repair disc, find someone with Windows 7 32 bit and Create a Windows 7 System Repair Disc — MAXIMUMpcguides – Windows 7 tips, tricks, help, and how-to guides.

 Sounds like you have hard disk errors. Open the Command Prompt when the Installation DVD Loads and type the following commands.
chkdsk /r c:
chkdsk /r d:
chkdsk /r e:
chkdsk /r f:
.etc until you get the message that the volume could not be opened for direct access. For any drives that do not give the message: 
"Windows has checked the file system and found no problems"
run chkdsk again as above. In other words, if it says: 
"Windows has made corrections to the file system"
after running the disk check, run the disk check again.

I realize you may only have one disk show up in Windows explorer, but you may have more than one disk through recovery options. This is because the system creates a hidden boot partition (which will be C: in recovery), you may have a recovery partition for your PC that is hidden (which will be D: in recovery), and you will have your primary Windows partition (which may be E: in recovery). A custom PC will likely have at least C: and D: to scan.

second solution

Make sure your boot partition is set to Active

Boot from your DVD and choose the repair option. From the recovery console type “diskpart” and press enter and then type “list disk” to get a list of physical disks installed.
In the example here I only have one disk in my machine, if you have more than one identify the disk which has the Windows boot partition on it and then select it. Select it by typing “select disk 0″ (in my case). Now type “list partition”. The Windows 7 boot partition is a 200 MB primary partition. As you can see here it was on disk 0. Select it by typing “select partition 2″ or whichever number matches your 200MB partition.

Now type “detail partition” and look where it says “Active”. If it says yes then move onto the next section otherwise type “Active” and press enter, Windows should report the partition is now marked as active. Now reboot and boot into the recovery console again.

Repair the MBR and boot sectors

From the recovery console run these commands in this order:
  • bootrec /fixmbr
  • bootrec /fixboot
Now reboot the machine again into the recovery console and type “bcdboot path to your windows folder“.  Your windows folder will normally be c:\windows but in the recovery console it may show up as D:\windows so make sure you get the path right. In my case it was “bcdboot d:\windows”. This will will build a new bcd boot store and copy over all boot files needed to boot. Now reboot your machine one last time and it should work. If it doesn’t run the two bootrec commands again.
If you have any additional operating systems you want to add use the bootrec /scanos command.


 





Monday, January 5, 2015

know What is the difference between size and size on disk


What is the difference between “size” and “size on disk”?

I will be assuming that you are using the FAT/FAT32 filesystem here, since you mention this is a SD card. NTFS and exFAT behave similarly with regards to allocation units. Other filesystems might be different, but they aren't supported on Windows anyway.

If you have a lot of small files, this is certainly possible. Consider this:


50,000 files.


32 kB cluster size (allocation units), which is the max for FAT32

Ok, now the minimum space taken is 50,000 * 32,000 = 1.6 GB (using SI prefixes, not binary, to simplify the maths). The space each file takes on the disk is always a multiple of the allocation unit size - and here we're assuming each file is actually small enough to fit within a single unit, with some (wasted) space left over.

If each file averaged 2 kB, you'd get about 100 MB total - but you're also wasting 15x that (30 kB per file) on average due to the allocation unit size.
In-depth explanation

Why does this happen? Well, the FAT32 filesystem needs to keep track of where each file is stored. If it were to keep a list of every single byte, the table (like an address book) would grow at the same speed as the data - and waste a lot of space. So what they do is use "allocation units", also known as the "cluster size". The volume is divided into these allocation units, and as far as the filesystem is concerned, they cannot be subdivided - those are the smallest blocks it can address. Much like you have a house number, but your postman doesn't care how many bedrooms you have or who lives in them.

So what happens if you have a very small file? Well, the filesystem doesn't care if the file is 0 kB, 2 kB or even 15 kB, it'll give it the least space it can - in the example above, that's 32 kB. Your file is only using a small amount of this space, and the rest is basically wasted, but still belongs to the file - much like a bedroom you leave unoccupied.

Why are there different allocation unit sizes? Well, it becomes a tradeoff between having a bigger table (address book, e.g. saying John owns a house at 123 Fake Street, 124 Fake Street, 666 Satan Lane, etc.), or more wasted space in each unit (house). If you have larger files, it makes more sense to use larger allocation units - because a file doesn't get a new unit (house) until all others are filled up. If you have lots of small files, well, you're going to have a big table (address book) anyway so may as well give them small units (houses).

Large allocation units, as a general rule, will waste a lot of space if you have lots of small files. There usually isn't a good reason to go above 4 kB for general use.
Fragmentation?

As for fragmentation, fragmentation shouldn't waste space in this manner. Large files may be fragmented, i.e. split up, into multiple allocation units, but each unit should be filled before the next one is started. Defragging might save a little space in the allocation tables, but this isn't your specific issue.


solve "can't connect to your phone disconnect it restart it"


"can't connect to your phone. Disconnect it, Restart it, then try connecting again"

Some days ago, I started to get this error message when trying to connect my Windows Phone to Zune.

I tried that once or twice – didn’t help: after investingating it, i found the following solution. Unfortunately, it seems the cause of the problem is that I changed my user’s password after installing and using Zune, so it will appear every time I’ll change it in the future.

here is the solution

1. If it is running, close the Zune software.
 2. Open Certificate Manager (click Start, type certmgr.msc and press Enter).
 3. Expand Personal and then expand Certificates.
 4. Click the heading for the Issued By column to sort the column, and then look for one or more certificates that is issued to “zune-tuner://windowsphone/…”.
 5. Right-click the certificate and then click Delete. Click  Yes.
 6. Browse to C:\Users\<UserName>\AppData\Roaming\Microsoft\Crypto\RSA and delete a directory named something like S-1-5-21-2994215280-4243257845-4001642984-2731
 7. Start the Zune software and connect your phone to create a new certificate.


another solution

1. Disconnect your phone from the computer.
2. Open Control Panel, select Zune, then Uninstall. Do the same for Windows Driver Package, or Windows Portable Devices if they are listed. If not, just proceed with step 3.
3. Open C:\Program Files and rename or delete the Zune folder.
4. Open C:\Users\yourusername\AppData\Local\Microsoft and rename or delete the Zune folder.
5. Open C:\Users\yourusername\AppData\Roaming\Microsoft and rename or delete the Crypto folder.
6. Connect the phone to your computer. You will be prompted to download and install the Zune software.
7. Continue with installing the Zune software. Disconnect the phone if prompted by the installer.
8. Once the Zune software is installed, connect your phone to the computer again. Hopefully your phone is recognized and you can proceed without the annoying errors.

sources
1  ,  2

windows won't update error 8024402C windows 7 (solved)

 windows won't update error 8024402C windows 7 (solved)
Solving error 8024402c for Windows Update


how I can solve that error? It’s quite simple, following that procedure:

1 - Open registry editor (Start menu –> Run –> regedit)
2 - Find the following path HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
3 - Chage the value of the UseWUServer from 1 to 0 (double click on it, change the value and click OK)
4 - Restart Windows Update service (Start menu –> Run –> services.msc, find the Windows Update service and click on Restart)

another solution

1. Go to Administrative Tools/Services and find the Windows Update service. Stop it.
 2. Go to C:\Windows\ and rename the SoftwareDistribution folder to something like SoftwareDistribution.old
 3. Restart the Windows Update service.
 4. Click the Check for Updates button on the Windows Update screen.
 5. Windows will perform the check - it may take some time, so leave it running. Eventually it will successfully complete.
 6. You can then delete the SoftwareSistribution.old folder.

sources
1 , 2

My laptop won't shut down (Solved)


To solve this problem I went to system settings > advanced tab > performance > virtual memory, then disabled paging. (I selected "no page file." Setting the size to 0mb apparently doesn't work). Then, I enabled paging again. After a reboot, everything was fine. Windows didn't get stuck anymore and was able to shut down.

or

Hold, not just a quick press, the power button until it shuts down.