Friday, March 21, 2025

Steps to do After Install FreeBSD


freebsd-update fetch install

Cd /var/db/portsnap

portsnap fetch

portsnap extract

# portsnap fetch
# portsnap update

Or

portsnap fetch update

Pciconf


pkg install drm-kmod

sysrc -f /etc/rc.conf kld_list+=amdgpu


Boot from livecd:-

From menu : 3

load /boot/kernel/kernel

load /boot/kernel/zfs.ko

set currdev="zfs:zroot/ROOT/default:"

boot


cd /usr/ports/graphics/gpu-firmware-amd-kmod/

make install clean

cd /usr/ports/graphics/drm-devel-kmod/

make install clean


vim /usr/local/etc/X11/xorg.conf.d/amdgpu.conf add this Code:
Section "Device"
        Identifier "Card0"
        Driver "amdgpu"
EndSection


loader.conf
fusefs_load="YES"

Rc.conf
kld_list="fusefs"


To mount linux participation:

mount -t ext2fs /dev/!!!! /mnt/!!!!

To Mount ntfs participation:
mount -t ntfs-3g /dev/!!!! /mnt/!!!!

To mount msdos:
mount -v -t msdosfs /dev/!!!! /mnt/!!!!


To handle keyboards in single user mode and at the early stages of booting process, iichid should be loaded at kernel startup. Add following lines to /boot/loader.conf in that case:
ig4_load="YES"
iicbus_load="YES"
iichid_load="YES"

Configure Xorg
Generally speaking, it is a bad idea to use static Xorg configuration for evdev devices due to dynamic unit number assignment. The simplest way to get new devices recognized by Xorg-server is to rebuild it with DEVD (since 1.20.7) or UDEV autoconfiguration backend enabled.


Static configuration is still possible. Add following snippet to a file under /usr/local/etc/X11/xorg.conf.d/


Section "InputDevice"
 Identifier "HID device"
 Driver "libinput"
 Option "Device" "/dev/input/event6"
 Option "AutoServerLayout" "true"
EndSection

 

Wednesday, September 13, 2023

QEMU command for MacOS

 To run Qemu on mac use this command:

- Install Qemu: brew install qemu

 

to run VM:

qemu-system-x86_64 \
-m 8G \
-smp 6 \
-cdrom os_you_want_to_install.iso \
-drive file=
your_virtual_disk_here.qcow2,if=virtio \
-vga virtio \
-display default,show-cursor=on \
-usb \
-device usb-tablet \
-cpu host \
-machine type=q35,accel=hvf \
 
 😎 

 

Thursday, September 7, 2023

A small script to toggle Mute for Dwm Freebsd 13

 this is my small script just to toggle mute in mixer.

I name the script "togglevol.sh"

$>chmod +x togglevol.sh
$>sudo cp togglevol.sh /usr/bin/


and bind it with any key you want in Dwm.


#!/bin/sh


FILEPATH=~/.togglevol
CURRVOL=`mixer vol | awk '{print $NF}'`

## DEBUG
#echo "mixer vol: $CURRVOL"

if [ $CURRVOL = "0:0" ]; then
  ## return the value from file
  FILEVOL=`cat $FILEPATH`

  mixer vol $FILEVOL

else
  ## save current value to file
    echo "$CURRVOL" > $FILEPATH

    mixer vol 0:0
fi 

Tuesday, May 1, 2018

Swift: fix invalid url

Some urls contain special characters or contain arabic words and when you parse this url on swift you will get "Invalid url request" error.

to resolve this problem it very easy but i take long time with searching on google about it after if find the solution :


feed?.link.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)
let url = URL(string: (feed?.link)!)



Good Luck :)

Thursday, February 22, 2018

To add new keyboard layout i3wm


To add secandary layout for i3wm it's just simple like like this to add in config file

~/.config/i3/config :
  
exec setxkbmap -layout us,ar -option grp:alt_shift_toggle

This comman is adding arabic as second layout and use same windows switch keys "ALT+SHIFT".

and this comman it's work on command line also but without exec .



Have fun :D

Monday, October 2, 2017

Which algorithms/data structures should I "recognize" and know by name?

This quote from 

https://softwareengineering.stackexchange.com


Which algorithms/data structures should I "recognize" and know by name? 



An objective response:


While my initial response to this question was based on my empirical experience as a soon-to-graduate CS student and my projected opinion of the type of people I wanted to work with in the CS field. There is actually an objective (with respect to the subjective opinions of the ACM SIGCSE and IEEE computing societies) answer. Every 10 years the ACM and the IEEEbodies cooperate on a joint publication that details suggestions for undergraduate computer science curriculum based on professional knowledge of the state of the computing industry. More information can be found at cs2013.org. The committee publishes a final report listing their curriculum recommendation.


That said, I still think my list is pretty good.


Original answer below.


What Should I Know?


Minimum


I think an adept programmer should have at least undergraduate level knowledge in Computer Science. Sure, you can be effective at many jobs with only a small subset of Computer Science because of the rock solid community CS sits upon, and the narrowed focus of most professional positions. Also, many people will further specialize after undergraduate study. However, I do not think either are an excuse to not be privy of foundational CS knowledge.


To answer the title question, here is what an undergraduate CS student (the foundation for an adept programmer) should know upon graduation:


Data Structures


Machine Data Representation

Ones, Two's Complement, and Related Arithmetic


Words, Pointers, Floating Point


Bit Access, Shifting, and Manipulation


Linked Lists


Hash Tables (maps or dictionaries)


Arrays


Trees


Stacks


Queues


Graphs


Databases


Algorithms


Sorting:

Bubble Sort (to know why it's bad)


Insertion Sort


Merge Sort


Quick Sort


Radix style sorts, Counting Sort and Bucket Sort


Heap Sort


Bogo and Quantum Sort (=


Searching:

Linear Search


Binary Search


Depth First Search


Breadth First Search


String Manipulation


Iteration


Tree Traversal


List Traversal


Hashing Functions


Concrete implementation of a Hash Table, Tree, List, Stack, Queue, Array, and Set or Collection


Scheduling Algorithms


File System Traversal and Manipulation (on the inode or equivalent level).


Design Patterns


Modularization


Factory


Builder


Singleton


Adapter


Decorator


Flyweight


Observer


Iterator


State [Machine]


Model View Controller


Threading and Parallel Programming Patterns


Paradigms


Imperative


Object Oriented


Functional


Declarative


Static and Dynamic Programming


Data Markup


Complexity Theory


Complexity Spaces


Computability


Regular, Context Free, and Universal Turing Machine complete Languages


Regular Expressions


Counting and Basic Combinatorics


Beyond


To get into what you're asking about later in your question, if you are familiar with the above, you should be easily able to identify the appropriate pattern, algorithm, and data structure for a given scenario. However, you should recognize that there is often no best solution. Sometimes you may be required to pick the lesser of two evils or even simply choose between two equally viable solutions. Because of this, you need the general knowledge to be able to defend your choice against your peers.


Here are some tips for algorithms and data structures:


Binary Search can only (and should) be used on sorted data.


Radix style sorts are awesome, but only when you have finite classes of things being sorted.


Trees are good for almost anything as are Hash Tables. The functionality of a Hash Table can be extrapolated and used to solve many problems at the cost of efficiency.


Arrays can be used to back most higher level data structures. Sometimes a "data structure" is no more than some clever math for accessing locations in an array.


The choice of language can be the difference between pulling your hair out over, or sailing through, a problem.


The ASCII table and a 128 element array form an implicit hash table (=


Regular expressions can solve a lot of problems, but they can't be used to parse HTML.


Sometimes the data structure is just as important as the algorithm.


Some of the above might seem like no brainers, and some may seem vague. If you want me to go into more detail, I can. But, my hope is when encountered with a more concrete question such as, "Design a function that counts the number of occurrences of every character in a String", you look to the tip about the ASCII table and 128 element arrays forming neat implicit hash tables for the answer.


Based off these ideas, I will propose an answer the locker problem outlined in your question.


Answer to the problem posed in your question.


This may not be the best answer to your question, but I think it's an interesting one that doesn't require anything too complex. And it will certainly beat the time complexity of using a queue, or stack which require linear time to determine whether a locker is free or not.


You have 0-999 lockers. Now, because you have a fixed number of lockers, you can easily conceive a hashing function with no collisions on the range 0-999. This function is simply h(x) = x mod 1000. Now, [conceptually] construct a hash table with integer keys and the contents of a 1000 element char array as your values. If a customer wants to reserve locker 78 for use, simply put 78 into the hash function (returning 78), and then add that number to the base pointer of the array -- storing a true value at the location pointed to by the offset value. Similarly, if you need to check whether 78 is in use, simply read the value stored at that location and check against true.


This solution operates in constant time for lookups and storage as opposed to a log(n) time storage and lookup in the case of a priority queue backed by a binary tree. The description is intentionally verbose so you can see the higher concepts being boiled down into an efficient algorithm.


Now, you might ask, what if I need to know all of the available lockers, wouldn't a priority queue be better? If there are k available lockers in the priority queue, iterating over all of them will take k steps. Further, depending on your priority queue implementation, you might have to rebuild your priority queue as you look at it all.. which would take k*log(k) : (k < 1000) steps. In the array solution, you only have to iterate of a 1000 element array and check which ones are open. You can also add an available or used list to the implementation to check in k time only.


Wednesday, June 11, 2014

How to install Hearthstone on Linux

 
How to install Hearthstone on Linux
using "Wine" and "Play on Linux"

1. Get "Play on Linux" from http://www.playonlinux.com/en/download.html

2. Launch "Play on Linux" you should be asked to install any Wine version, you should install  version "1.7.3"

3. Click "Install" and then check "Testing"

4. Search for "World of Warcraft" and wait till you see it in the list, mostly it should already be there.

5. Click "Install" then tell the wizard to use Wine 1.7.3 leave the remaining settings at default.

6. When your asked to select the install File for "World of Warcraft" just cancel the Wizard.

7. Click Install again, then select "install non-listed program".

8. On the second page of the wizard select "Edit or update an existing application", on the next window check "Show virtual drives" and select "WorldOfWarcraft".

9. Check "Configure Wine" and select the tab "Libraries" tab.

10.  type "dbghelp" in the "New override for library" field then click "Add"

11. click "Edit ..." and select "disabled", confirm this with "Ok"

12. On the next screen select "Choose another File"

13. The remaining installation is like the installation of every other Wine Software.

14. After launching Hearthstone first time you probably want to change the settings to run Hearthstone in windowed mode, otherwise you'll probably get massive graphics stuttering.
2 photos
 
reffrence: Markus Weller

Monday, March 31, 2014

Get Object from selected Element JTable in Netbeans


To get Object or Entity from JTable in Netbeans

System.out.println(list1.get(Table.convertRowIndexToModel(Table.getSelectedRow())));

Friday, March 7, 2014

Install silverlight in linux


This post taken from webupd8.org


I've tested Pipelight with Netflix, under Chrome (Ubuntu 13.10) and I can confirm it works (and the playback was smooth!), as you can see in the screenshots in this article. Update: I've also tested it with Firefox and it works, but sometimes the browser freezes, something which doesn't happen with Chrome so I recommend using Chrome / Chromium with Pipelight.


Install Pipelight in Ubuntu


Microsoft Silverlight Google Chrome Linux

Before proceeding, it's strongly recommended to close your web browser. Without doing this, the plugin may fail to install or crash the browser (you can copy the instructions below to a text editor).

1. If you've installed the old Pipelight version, remove it before proceeding:
sudo apt-get remove pipelight

To add the Pipelight stable and Compholio PPAs and install Pipelight in Ubuntu, use the following commands:
sudo apt-add-repository ppa:pipelight/stable
sudo apt-get update
sudo apt-get install pipelight-multi

Then, you can install the Silverlight plugin using the following command:
- system-wide:
sudo pipelight-plugin --enable silverlight
- for your user only:
pipelight-plugin --enable silverlight

By default, this will install Silverlight 5.1, but you can install a different version, for instane 5.0, by using this command instead (don't use "sudo" if you don't want to install it system-wide):
sudo pipelight-plugin --disable silverlight --enable silverlight5.0

Once installed, start your browser and try THIS test Silverlight applet. If it doesn't work, check if Silverlight is available in your browser plugin list (e.g.: you can type "about:plugins" in the address bar).

Thursday, July 18, 2013

How to fix itunes 11 error sync apps


To fix the problem:

1- open itunes
2- go to top left menu and select Apps (this apps stored in iTunes )
3- select all and delete them
4- plug your iPhone
5- go to top menu File > Devices > Transfer purchases from "YOUR IPHONE NAME"

after that iTunes give error message with list of apps.
6- delete the apps in the list from iPhone.

7- again, do the step 5

DONE.

Sunday, February 3, 2013

how to print css background-color

If you want to print invoice or employee details or anything from html page with background color
just add this to the end of css element :

-webkit-print-color-adjust: exact;
 have fun :)

source link

Monday, April 30, 2012

Change CSC for Galaxy Note

When you return from custom roms and you want to flush stock rom something like this
N7000JPLA1_N7000OJPLA1_N7000XXLA4_HOME.tar.md5
be sure to know what CSC on this stock rom for example the CSC of stock rom above is XSG
and in my phone the CSC is KOR, after flash this rom when i want to check latest upgrade by  Kies says "Your device does not support software upgrading via Kies"  after searching on google i found the solution by these steps:

1- first plug your phone to PC

2- open Samsung kies

3- in "Basic Information" tap / "Firmware information" check last 3 characters in Current firmware version something like this (KOR)
now you know that the current CSC is KOR and you want to change it to XSG.


4- on you phone dial  *#272*IMEI# (you can find IMEI in setting/About phone/status)

5- finally you well get list of CSC`s scroll and find XSG and select.

Good luck

Samsung Galaxy Note CSC List

To check your device firmware just dial this number code *#1234# or go to your phone's settings > about firmware info.

You must have Samsung Kies for Galaxy Note installed on your PC so that you can upgrade to any newest firmware updates available.  


Firmware updates rolled out in the month of November 2011
Europe 
Austria ATO - N7000XXKKA / N7000OXXKK5 (Android 2.3.6 Gingerbread)
Baltic SEB - N7000XXKKA / N7000OXXKK5 (Android 2.3.6 Gingerbread) 
Bulgaria (MTL) MTL - N7000XXKKA / N7000OXXKK5 (Android 2.3.6 Gingerbread)
Bulgaria (GBL) MTL - N7000XXKKA / N7000OXXKK5 (Android 2.3.6 Gingerbread)
Czech Republic XEZ - N7000XXKKA / N7000OXXKK5 (Android 2.3.6 Gingerbread)
Cyprus (Cytamobile Vodafone) CY0 - N7000XXKKA / N7000OXXKK5 (Android 2.3.6 Gingerbread)
Czech Republic (Vodafone) VDC - N7000XXKKA / N7000OXXKK5 (Android 2.3.6 Gingerbread)
Croatia (VIPNET) VIP - N7000XXKKA / N7000OXXKK5 (Android 2.3.6 Gingerbread) 
France (SFR) SFR - N7000XXKKA / N7000SFRKK1 (Android 2.3.6 Gingerbread)
France (Orange) FTM - N7000XXKKA / N7000OXXKK5 (Android 2.3.6 Gingerbread)
France (La Poste Mobile)  XEF - N7000XXKKA / N7000OXXKK5 (Android 2.3.6 Gingerbread)
Germany DBT - N7000XXKK9 / N7000OXAKK9 (Android 2.3.6 Gingerbread)
Greece  EUR - N7000XXKK9 / N7000OXAKK9 (Android 2.3.6 Gingerbread)
Greece  (Vodafone) VGR - N7000XXKK9 / N7000OXAKK5 (Android 2.3.6 Gingerbread)
Hungary XEH - N7000XXKKA / N7000OXXKK5 (Android 2.3.6 Gingerbread)
Hungary (VDH) VDH - N7000XXKKA / N7000OXXKK5 (Android 2.3.6 Gingerbread)
Hungary (Telenor) PAN - N7000XXKKA / N7000OXXKK5 (Android 2.3.6 Gingerbread)
Italy ITV - N7000XXKKA / N7000OXXKK5 (Android 2.3.6 Gingerbread)
Macedonia VIM - N7000XXKKA / N7000OXXKK5 (Android 2.3.6 Gingerbread)
Netherlands XEN - N7000XXKKA / N7000XENKK1 (Android 2.3.6 Gingerbread)
Nordic countries NEE - N7000XXKKA / N7000OXXKK5 (Android 2.3.6 Gingerbread)
Poland XEO -  N7000XXKKA / N7000OXXKK6 (Android 2.3.6 Gingerbread)
Poland (PLUS) PLS - N7000XXKKA / N7000PLSKK1 (Android 2.3.6 Gingerbread)
Portugal (TPH) TPH - N7000XXKKA / N7000OXXKK5 (Android 2.3.6 Gingerbread)
Romania (Vodafone) CNX - N7000XXKKA / N7000OXXKK5 (Android 2.3.6 Gingerbread)
Romania (Cosmote) COA - N7000XXKKA / N7000OXXKK5 (Android 2.3.6 Gingerbread)
Serbia TOP - N7000XXKKA / N7000OXXKK5 (Android 2.3.6 Gingerbread)
Serbia (Telenor) MSR - N7000XXKKA / N7000OXXKK5 (Android 2.3.6 Gingerbread)
Slovakia ORS - N7000XXKKA / N7000OXXKK5 (Android 2.3.6 Gingerbread)
Slovakia XSK - N7000XXKKA / N7000OXXKK5 (Android 2.3.6 Gingerbread)
Slovenia (Si.mobil) SIM - N7000XXKKA / N7000OXXKK5 (Android 2.3.6 Gingerbread)
Switzerland AUT - N7000XXKKA / N7000OXXKK5 (Android 2.3.6 Gingerbread)  
Turkey TUR - N7000XXKK9 / N7000OJVKK2 (Android 2.3.6 Gingerbread) 
United Kingdom XEU - N7000XXKKA / N7000XEUKK3 (Android 2.3.6 Gingerbread)
United Kingdom (Carphone Warehouse) CPW - N7000XXKKA / N7000CPWKK3 (Android 2.3.6 Gingerbread)

Africa
South Africa XFA - N7000XXKK9 / N7000OJVKK2 (Android 2.3.6 Gingerbread)
South Africa XFC - N7000XXKK9 / N7000OJVKK2 (Android 2.3.6 Gingerbread)
South Africa XFM - N7000XXKK9 / N7000OJVKK2 (Android 2.3.6 Gingerbread)
South Africa XFV - N7000XXKK9 / N7000OJVKK2 (Android 2.3.6 Gingerbread)
South Africa XFE - N7000XXKK9 / N7000OJVKK2 (Android 2.3.6 Gingerbread)

Middle East
United Arab Emirates XSG - N7000JPKK2 / N7000OJPKK2 (Android 2.3.6 Gingerbread)

Asia 
Hong Kong TGY - N7000ZSKK1/N7000OZSKK1 (Android 2.3.6 Gingerbread)
Indonesia XSE - N7000DXKK1 / N7000OLBKJ6 (Android 2.3.5 Gingerbread)
Malaysia XME - N7000DXKK1 / N7000OLBKJ6 (Android 2.3.5 Gingerbread)
Thailand THL - N7000DXKK1 / N7000OLBKJ6 (Android 2.3.5 Gingerbread)
Vietnam XEV - N7000DXKK1 / N7000OLBKJ6 (Android 2.3.5 Gingerbread)

Firmware updates rolled out in the month of December 2011

Asia
India INU- N7000XXKL3 / N7000ODDKL1 (Android 2.3.6 Gingerbread)
Indonesia XSE - N7000DXKL3 / N7000OLBKL2 (Android 2.3.6 Gingerbread)
Singapore XSP - N7000DXKL1 / N7000OLBKJ6 (Android 2.3.5 Gingerbread)
Singapore (SingTel) SIN - N7000DXKL1 / N7000OLBKJ6 (Android 2.3.5 Gingerbread)
Singapore(SingTel) SIN - N7000DXKL3 / N7000OLBKL2 (Android 2.3.6 Gingerbread)
Singapore XSP - N7000DXKL3 / N7000OLBKL2 (Android 2.3.6 Gingerbread)
Thailand THL - N7000DXKL3 / N7000OLBKL2 (Android 2.3.6 Gingerbread) 
Malaysia XME - N7000DXKL3 / N7000OLBKL2 (Android 2.3.6 Gingerbread)
Philippines XTC - N7000DXKL3 / N7000OLBKL2 (Android 2.3.6 Gingerbread)
Philippines (Globe) GLB  - N7000DXKL3 / N7000OLBKL2 (Android 2.3.6 Gingerbread)
Philippines (Sun Cellular) XTE - N7000DXKL3 / N7000OLBKL2 (Android 2.3.6 Gingerbread)
Philippines (Smart) SMA - N7000DXKL3 / N7000OLBKL2 (Android 2.3.6 Gingerbread)
Vietnam XEV - N7000DXKL3 / N7000OLBKL2 (Android 2.3.6 Gingerbread)

Europe
Germany DBT - N7000XXKL7 / N7000OXAKL7 (Android 2.3.6 Gingerbread)
Germany DBT - N7000XXLA4/N7000OXALA4 (Android 2.3.6 Gingerbread)
United Kingdom - CPW (CarPhone Warehouse) N7000XXKKA / N7000CPWKK3 (Android 2.3.6 Gingerbread)

Firmware updates rolled out in the month of January 2012
Europe
Austria (3 Hutchison)  DRE - N7000XXLA4/N7000DREKL1/N7000NELA1 (Android 2.3.6 Gingerbread)
Russia SER - N7000XXLA6 / N7000OXELA1/N7000XXLA4 (Android 2.3.6 Gingerbread)

Asia
Brunei BMobile ??? -N7000XXKLA6/N7000OXXLA4 (Android 2.3.6 Gingerbread) 
Indonesia XSE - N7000DXLA1 / N7000OLBKL2 (Android 2.3.6 Gingerbread)
Malaysia XME - N7000DXLA1 / N7000OLBKL2 (Android 2.3.6 Gingerbread)
Singapore (SingTel)- N7000DXLA1 / N7000OLBKL2(Android 2.3.6 Gingerbread)
Singapore XSP - N7000DXLA1 / N7000OLBKL2 (Android 2.3.6 Gingerbread)
Thailand THL - N7000DXLA1 / N7000OLBKL2 (Android 2.3.6 Gingerbread)
Philippines XTC  - N7000DXLA1 / N7000OLBKL2 (Android 2.3.6 Gingerbread)
Philippines (Globe) GLB - N7000DXLA1 / N7000OLBKL2 (Android 2.3.6 Gingerbread)
Philippines (Sun Cellular) XTE - N7000DXLA1 / N7000OLBKL2 (Android 2.3.6 Gingerbread)
Philippines (Smart) SMA - N7000DXLA1 / N7000OLBKL2 (Android 2.3.6 Gingerbread)
Vietnam XEV - N7000DXLA1 / N7000OLBKL2 (Android 2.3.6 Gingerbread)

Middle East
United Arab Emirates XSG - N7000JPLA1 / N7000OJPLA1 (Android 2.3.6 Gingerbread)

February 2012 firmware updates for Galaxy Note
Europe
Austria ATO - N7000XXLA6/N7000OXXLA1/N7000XXLA4 (Android 2.3.6 Gingerbread)
Baltic SEB - N7000XXLA6/N7000OXXLA1/N7000XXLA4(Android 2.3.6 Gingerbread) 
Belgium LUX - N7000XXLA6/N7000LUXKL1/N7000XXLA4 (Android 2.3.6 Gingerbread)
Bulgaria MTL - N7000XXLA6/N7000LUXKL1/N7000XXLA4 (Android 2.3.6 Gingerbread)
Bulgaria GBL - N7000XXLA6/N7000LUXKL1/N7000XXLA4 (Android 2.3.6 Gingerbread)
Croatia (Vipnet) VIP – N7000XXLA6/N7000OXXLA1/N7000XXLA4 (Android 2.3.6 Gingerbread)
Czech Republic XEZ - N7000XXLA6/N7000OXXLA1/N7000XXLA4 (Android 2.3.6 Gingerbread)
Czech Republic (Vodafone) VDC - N7000XXLA6/N7000OXXLA1/N7000XXLA4(Android 2.3.6 Gingerbread)
Germany DBT - N7000XXLB1/N7000OXALB1/N7000XXLB1 (Android 2.3.6 Gingerbread)
Germany (T-Mobile) - N7000XXKKA/N7000DTMKK3/N7000BOKK2 (Android 2.3.6 Gingerbread)
Greece EUR - N7000XXLA6/N7000OXXLA1/N7000XXLA4 (Android 2.3.6 Gingerbread)
Greece (Vodafone)VGR – N7000XXLA6/N7000OXXLA1/N7000XXLA4 (Android 2.3.6 Gingerbread)
Hungary XEH -N7000XXLA6/N7000OXXLA1/N7000XXLA4 (Android 2.3.6 Gingerbread)
Hungary VDH -N7000XXLA6/N7000OXXLA1/N7000XXLA4 (Android 2.3.6 Gingerbread)
Hungary (Telenor) PAN -N7000XXLA6/N7000OXXLA1/N7000XXLA4 (Android 2.3.6 Gingerbread)
Italy ITV - N7000XILB1/N7000ITVKL1/N7000XXLB1 (Android 2.3.6 Gingerbread)
Romania (Cosmote) COA – N7000XXLA6/N7000OXXLA1/N7000XXLA4 (Android 2.3.6 Gingerbread)
Romania (Vodafone) CNX – N7000XXLA6/N7000OXXLA1/N7000XXLA4 (Android 2.3.6 Gingerbread)
Russia SER – N7000XXLA6 / N7000OXELA1/N7000XXLA4 (Android 2.3.6 Gingerbread)
Serbia (Telenor) MSR – N7000XXLA6/N7000OXXLA1/N7000XXLA4 (Android 2.3.6 Gingerbread)
Serbia TOP - N7000XXLA6/N7000OXXLA1/N7000XXLA4 (Android 2.3.6 Gingerbread)
Slovakia XSK – N7000XXLA6/N7000OXXLA1/N7000XXLA4 (Android 2.3.6 Gingerbread)
Spain (Moviestar) XEC – N7000XXLA6/N7000XECLA1/N7000XXLA4 (Android 2.3.6 Gingerbread)
Switzerland AUT - N7000XXLA6/N7000OXXLA1/N7000XXLA4 (Android 2.3.6 Gingerbread)
Turkey TUR – N7000XXLA4/N7000OJVKL1/N7000XXLA4 (Android 2.3.6 Gingerbread)
Macedonia XEO – N7000XXLB1/N7000OXXLB1/N7000XXLB1 (Android 2.3.6 Gingerbread)

Netherlands XEN - N7000XXLA6/N7000XENLA1/N7000XXLA4/N7000XXLA6 (Android 2.3.6 Gingerbread)
Poland XEO - N7000XXLB1/N7000OXXLB1/N7000XXLB1 (Android 2.3.6 Gingerbread) 
United Kingdom XEU – N7000XXLA6/N7000XEULA1/N7000XXLA4 (Android 2.3.6 Gingerbread)

Latin America
Argentina (Claro) CTI - N7000UBKK8/N7000UVCKK1/N7000UBKK3 (Android 2.3.6 Gingerbread)
Argentina (Personal) PSN - N7000UBKK8/N7000UVCKK1/N7000UBKK3 (Android 2.3.6 Gingerbread)
Brazil ZTO - N7000UBKK3/N7000ZTOKK1/N7000UBKK1 (Android 2.3.6 Gingerbread)
Brazil (VIVO) ZVV - N7000UBKK8/N7000PSNKK1/N7000UBKK3 (Android 2.3.6 Gingerbread)

Asia
India INU - N7000DDLA5/N7000ODDLA1/N7000DDLA2 (Android 2.3.6 Gingerbread) 
India INU - N7000DDLB2/N7000ODDLA1/N7000DDLB1 (Android 2.3.6 Gingerbread)
Hong Kong TGY – N7000ZSLA2/N7000OZSLA2/N7000XXLA4 (Android 2.3.6 Gingerbread)


March 2012 firmware updates for Galaxy Note
Europe
Germany DBT - N7000XXLC1/N7000OXALC1/N7000XXLB2 (Android 2.3.6 Gingerbread)
Macedonia VIM - N7000XXLC1/N7000OXXLB3/N7000XXLB2 (Android 2.3.6 Gingerbread)
Nordic countries N7000XXLC1/N7000OXXLB3/N7000XXLB2 (Android 2.3.6 Gingerbread)
United Kingdom (Carphone Warehouse) CPW - N7000XXLC1/N7000CPWLB2/N7000XXLB2 (Android 2.3.6 Gingerbread)
Portugal (TPH) TPH - N7000XXLC1/N7000OXXLB3/N7000XXLB2 (Android 2.3.6 Gingerbread)  
Slovenia (Si.mobil) SIM - N7000XXLC1/N7000OXXLB3/N7000XXLB2 (Android 2.3.6 Gingerbread)
France XEF - N7000XXLC1/N7000OXXLB3/N7000XXLB2 (Android 2.3.6 Gingerbread)
Poland (Plus) PLS - N7000XXLC1/N7000PLSLB1/N7000XXLB2 (Android 2.3.6 Gingerbread)
France (SFR mobile) SFR - N7000XXLC1/N7000SFRLC2/N7000BUKK1 (Android 2.3.6 Gingerbread)

Middle East
Kingdom of Saudi Arabia KSA - N7000JPLA1/N7000OJPLA1/N7000XXLA4 (Android 2.3.6 Gingerbread)
Kingdom of Saudi Arabia JED - N7000JPLA1/N7000OJPLA1/N7000XXLA4 (Android 2.3.6 Gingerbread)

Asia
Thailand THL - N7000DXLC2/N7000OLBLC2/N7000DXLC1 (Android 2.3.6 Gingerbread)
Indonesia XSE -  N7000DXLC2/N7000OLBLC2/N7000DXLC1 (Android 2.3.6 Gingerbread)
Malaysia XME - N7000DXLC2/N7000OLBLC2/N7000DXLC1 (Android 2.3.6 Gingerbread)
Singapore XSP - N7000DXLC2/N7000OLBLC2/N7000DXLC1 (Android 2.3.6 Gingerbread)
Singapore SingTel SIN - N7000DXLC2/N7000OLBLC2/N7000DXLC1 (Android 2.3.6 Gingerbread)
Philippines XTC - N7000DXLC2/N7000OLBLC2/N7000DXLC1 (Android 2.3.6 Gingerbread)
Philippines Globe - GLB - N7000DXLC2/N7000OLBLC2/N7000DXLC1 (Android 2.3.6 Gingerbread)
Philippines Smart SMA- N7000DXLC2/N7000OLBLC2/N7000DXLC1 (Android 2.3.6 Gingerbread)
Vietnam XEV - N7000DXLC2/N7000OLBLC2/N7000DXLC1 (Android 2.3.6 Gingerbread)

You can always check for any  latest firmware updates for your Galaxy Note in your region by installing Kies on your PC or by creating an account at the official Samsung website to get an OTA (over the air) firmware update notifications.

Source site here
http://devsrom4android.blogspot.com/2011/11/samsung-galaxy-note-n7000-firmware.html

Tuesday, February 14, 2012

to populate date to dojo in Zend

you need to convert date to ISO :

$q = Doctrine_Query::create()
                        ->from('Model_Emp e')
                        ->where('cid = ?', $input->id);

$result = $q->fetchArray();
  
$date = new Zend_Date();
$date->set($result[0]['job_date'], Zend_Date::ISO_8601);
$result[0]['job_date'] = $date->getIso();

$this->view->form->getSubForm('empform')->populate($result[0]);

Thursday, January 19, 2012

How to cunfigure JQuery with Zend 1.11


1- In bootstrap add this function:

   protected function _initAppAutoload() {
        $moduleLoader = new Zend_Application_Module_Autoloader(array(
                    'namespace' => '',
                    'basePath' => APPLICATION_PATH));

        $this->bootstrap('view');
        $view = $this->getResource('view');
    $view->addHelperPath("ZendX/JQuery/View/Helper", "ZendX_JQuery_View_Helper");
   
    $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
    $viewRenderer->setView($view);
    Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
    $view->dojo()->enable();
    }


2- download JQuery and put the folder inside public/js.

3- add this lines below to application.ini :
resources.view[] =
pluginPaths.ZendX_Application_Resource_ = "ZendX/Application/Resource"
resources.jquery.localpath = "/js/jquery-ui-1.8.17.custom/js/jquery-1.7.1.min.js"
resources.jquery.stylesheet = "/js/jquery-ui-1.8.17.custom/css/pepper-grinder/jquery-ui-1.8.17.custom.css"
resources.jquery.uilocalpath = "/js/jquery-ui-1.8.17.custom/js/jquery-ui-1.8.17.custom.min.js"


4- finally put these lines in <head> inside your layout.phtml:
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <?php echo $this->headTitle(); ?>
        <?php  echo $this->headLink()->appendStylesheet('/css/style.css'); ?>
        <?php echo $this->headLink(); ?>
        <?php echo $this->jQuery(); ?> 

    </head>


for testing put this code to index.phtml :
<form method="post" action="/hello/world">
Pick your Date: <?php echo $this->datePicker("dp1",
                                             '',
                                             array(
                                                'defaultDate' =>
                                                    date('Y/m/d', time())));?>
<input type="submit" value="Submit" />
</form>


that`s it .

Wednesday, December 14, 2011

Missing mysql.sock on mac lion with Zend server

If you have MySQL server installed on Mac OS X Lion and after you install Zend Server
maybe you have this error:

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)
to fix this error you need to make this link:

sudo ln -s /private/tmp/mysql.sock /usr/local/zend/mysql/tmp/mysql.sock

Good luck :)

Monday, December 12, 2011

Run Jdeveloper on mac lion

To run JDeveloper on mac lion you need :

1- create file and name it java_setting.sh
2- put this in file


#!/bin/bash 

mkdir /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6

mkdir /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/bin

ln -s /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/bin/java /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/bin/java

ln -s /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/bin/javac /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/bin/javac

ln -s /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/bin/javap /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/bin/javap

ln -s /System/Library/Java/Support/Deploy.bundle/Contents/Home/bin/javaws /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/bin/javaws

ln -s /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/bin/jar /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/bin/jar

ln -s /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/bin/xjc /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/bin/xjc

mkdir /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/lib

ln -s /system/library/java/javavirtualmachines/1.6.0.jdk/contents/classes/classes.jar /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/lib/tools.jar

mkdir /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/jre

mkdir /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/jre/bin

ln -s /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/bin/java /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/jre/bin/java

mkdir /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/jre/lib

ln -s /system/library/java/javavirtualmachines/1.6.0.jdk/contents/classes/classes.jar /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/jre/lib/rt.jar

3- chmod +x java_setting.sh
4- sudo ./java_setting.sh

After that run jdevstudio11121install.jar and install .

thanks

Install mysql server 5.5 on mac lion

To install mysql server NOT MAMP only mysql server follow this link :

http://www.djangoapp.com/blog/2011/07/24/installation-of-mysql-server-on-mac-os-x-lion/