Difference between revisions of "Support:Tech notes"

From COMKAT wiki
Jump to navigation Jump to search
Line 106: Line 106:
 
For MATLAB 2008a and earlier, uitable errors when it is compiled with Matlab Compiler.
 
For MATLAB 2008a and earlier, uitable errors when it is compiled with Matlab Compiler.
 
* [[http://www.linhkiendienthoai.cellphone.vn/ linh kien dien thoai]]
 
* [[http://www.linhkiendienthoai.cellphone.vn/ linh kien dien thoai]]
* [[http://thanhapdoanhnghiep.vn thanh lap cty]]
+
* [[http://thanhapdanhnghiep.vn thanh lap cty]]
* [[http://thanhloanhnghiep.vn thành lập doanh nghiệp]]
+
* [[http://thanhloanghiep.vn thành lập doanh nghiệp]]
 
* [[http://.vn dich vu ke toan]]
 
* [[http://.vn dich vu ke toan]]
* [[http://thanhlapoanhnghiep.vn dịch vụ kế toán]]
+
* [[http://thanhlaoanhnghiep.vn dịch vụ kế toán]]
* [[http://thanlapdoanhngep.vn bao cao thue]]
+
* [[http://thanlapanhngep.vn bao cao thue]]
* [[http://thanhlapoanhnghiep.vn báo cáo thuế]]
+
* [[http://thanhlaanhnghiep.vn tu van thanh lap cong ty]]
* [[http://thanapoanhnghiep.vn tu van thanh lap cong ty]]
+
* [[http://thanlpoanhnghiep.vn thành lập công ty]]
* [[http://thanhlapdoanhnghiep.vn thành lập công ty]]
 
 
* [[http://thanhlapanhnghiep.vn thanh lap cong ty]]
 
* [[http://thanhlapanhnghiep.vn thanh lap cong ty]]
* [[http://thanhlapdoanhnghiep.vn thanh lap cong ty tnhh]]
+
* [[http://thanhlaoanhnghiep.vn thanh lap cong ty tnhh]]
* [[http://thanhlpdnhnhiep.vn Dịch vụ thành lập công ty]]
+
* [[http://thanhlnhnhiep.vn Dịch vụ thành lập công ty]]
* [[http://thahlapdoanhnghiep.vn Dich vu thanh lap cong ty]]
+
* [[http://thahladoanhnghiep.vn Dich vu thanh lap cong ty]]
* [[http://thanhlapdoanhnghiep.vn Dịch vụ thành lập doanh nghiệp]]
+
* [[http://thanhladoanhnghiep.vn Dịch vụ thành lập doanh nghiệp]]
* [[http://thanhlpdoanhnghiep.vn cach thanh lap cong ty]]
+
* [[http://thanhlpdanhnghiep.vn cach thanh lap cong ty]]
 +
* [[http://thietkeweb.ctit.vn Thiet ke web]]
 
* [[http://ww.thanhlapdoanhnghiep.vn/thong-tin/17/95/thanh-lap-cong-ty-co-phan.html thanh lap cong ty co phan]]
 
* [[http://ww.thanhlapdoanhnghiep.vn/thong-tin/17/95/thanh-lap-cong-ty-co-phan.html thanh lap cong ty co phan]]
 
* [[http://www.thanhlapdoanhnghiep.vn/ qui trinh thanh lap cong ty]]
 
* [[http://www.thanhlapdoanhnghiep.vn/ qui trinh thanh lap cong ty]]
* [[http://www.thanhapdoanhnghiep.vn/thong-tin/17/90/dieu-kien-cach-thanh-lap-cong-ty.html dieu kien thanh lap cong ty]]
+
* [[http://www.thanapdoanhnghiep.vn/thong-tin/17/90/dieu-kien-cach-thanh-lap-cong-ty.html dieu kien thanh lap cong ty]]
[[http://thanhlapdoanhnghiep.vn/thong-tin/175/177/hd-ke-khai-thue-nop-gtgt.html dai ly thue]]
+
[[http://thanhlapdohnghiep.vn/thong-tin/175/177/hd-ke-khai-thue-nop-gtgt.html dai ly thue]]
[[http://thanhlapdanhnghiep.vn/thong-tin/175/177/hd-ke-khai-thue-nop-gtgt.html đại lý thuế]]
+
[[http://thanhlapdannghiep.vn/thong-tin/175/177/hd-ke-khai-thue-nop-gtgt.html đại lý thuế]]
 
* [[http://www.thanhlapdoanhnghiep.vn/thong-tin/33/dang-ky-kinh-doanh.html dang ky kinh doanh]]
 
* [[http://www.thanhlapdoanhnghiep.vn/thong-tin/33/dang-ky-kinh-doanh.html dang ky kinh doanh]]
 
* [[http://thutucthanhlapcongty.net qui trinh thanh lap cong ty]]
 
* [[http://thutucthanhlapcongty.net qui trinh thanh lap cong ty]]
Line 142: Line 142:
 
[[http://www.dise./gioi-thieu.php quang cao truc tuyen]]
 
[[http://www.dise./gioi-thieu.php quang cao truc tuyen]]
  
[[http://www.diiseo.com seo]]
+
[[http://www.diis.com seo]]
[[http://banbuon4h.com rao vat]]
+
[[http://banbu4h.com rao vat]]
 
[[http://www.dieo.com/en seo services]]
 
[[http://www.dieo.com/en seo services]]
 
[[http://www.c/thiet-ke-website thiet ke web]]
 
[[http://www.c/thiet-ke-website thiet ke web]]
Line 150: Line 150:
 
[[http://www.sms4smile.org Funny SMS]]
 
[[http://www.sms4smile.org Funny SMS]]
 
[[http://namthaibiduong.edu.vn du hoc]]
 
[[http://namthaibiduong.edu.vn du hoc]]
[[http://namthaibnhduong.edu.vn tu van du hoc]]
+
[[http://namtaibnhduong.edu.vn tu van du hoc]]
[[http://namthaibhduong.edu.vn cong ty du hoc]]
+
[[http://namthibhduong.edu.vn cong ty du hoc]]
[[http://namthaibnhduong.edu.vn du hoc uc]]
+
[[http://nathaibnhduong.edu.vn du hoc uc]]
[[http://namthainduong.edu.vn du hoc my]]
+
[[http://namthaiduong.edu.vn du hoc my]]
[[http://namthaibiduong.edu.vn du hoc singapore]]
+
[[http://namthaibduong.edu.vn du hoc singapore]]
 
* [[http://noithatoangduy.com.vn noithat]]
 
* [[http://noithatoangduy.com.vn noithat]]
 
* [[http://noithatangduy.com.vn noithathoaphat]]
 
* [[http://noithatangduy.com.vn noithathoaphat]]
 
* [[http://noithathongduy.com.vn/San-pham/774_1369/bo-sofa-go-hd-sfg01.htm.htm noithatnhapngoai]]
 
* [[http://noithathongduy.com.vn/San-pham/774_1369/bo-sofa-go-hd-sfg01.htm.htm noithatnhapngoai]]
[[http://noithathogduy.com.vn/San-pham/793_1740/phong-dao-tao.htm noithatdailoan]]
+
[[http://noithathoduy.com.vn/San-pham/793_1740/phong-dao-tao.htm noithatdailoan]]
* [[http://noithathongduy.com.vn/San-pham/793_1740/phong-dao-tao.htm noithatvanphong]]
+
* [[http://noithathogduy.com.vn/San-pham/793_1740/phong-dao-tao.htm noithatvanphong]]
 
* [[http://noithaoangduy.com.vn/ noithatfami]]
 
* [[http://noithaoangduy.com.vn/ noithatfami]]
 
* [[http://www.nhakhoavietgiao.com.vn/list2.php?cid=49 nha khoa]]
 
* [[http://www.nhakhoavietgiao.com.vn/list2.php?cid=49 nha khoa]]
[[http://baovevn.vn bao ve]]
+
[[http://bavevn.vn bao ve]]
* [[http://baovevn.vn/dich-vu-bao-ve-an-ninh/ dich vu bao ve]]
+
* [[http://baoven.vn/dich-vu-bao-ve-an-ninh/ dich vu bao ve]]
 
* [[http://baovevn.vn/cong-ty-tu-van-nghiep-vu-bao-ve/ cong ty bao ve]]
 
* [[http://baovevn.vn/cong-ty-tu-van-nghiep-vu-bao-ve/ cong ty bao ve]]
 
* [[http://uvc-thanhlcongty.com/dang-ky-online/dang-ky-thanh-lap-doanh-nghiep.html thành lập doanh nghiệp]]
 
* [[http://uvc-thanhlcongty.com/dang-ky-online/dang-ky-thanh-lap-doanh-nghiep.html thành lập doanh nghiệp]]
* [[http://uvc-thnapcongty.com/cung-cap-dich-vu/dich-vu-ke-toan.html dich vu ke toan]]
+
* [[http://uvc-thncongty.com/cung-cap-dich-vu/dich-vu-ke-toan.html dich vu ke toan]]
* [[http://uvc-thnhlapcongty.com/cung-cap-dich-vu/dich-vu-ke-toan.html dịch vụ kế toán]]
+
* [[http://uvc-thnlapcongty.com/cung-cap-dich-vu/dich-vu-ke-toan.html dịch vụ kế toán]]
 
*[[http://www.linhkieniphone.com.vn/san-pham/giai-ma/iphone/gmate-unlock-iphone-4-version-50-501-goi-dien-cho-iphone-4.html Gmate]]
 
*[[http://www.linhkieniphone.com.vn/san-pham/giai-ma/iphone/gmate-unlock-iphone-4-version-50-501-goi-dien-cho-iphone-4.html Gmate]]
 
*[[http://tintuc.vipecom.vn/cong-dong-vipecom/ky-nang/ky-nang-ban-hang/ ky nang ban hang]]
 
*[[http://tintuc.vipecom.vn/cong-dong-vipecom/ky-nang/ky-nang-ban-hang/ ky nang ban hang]]
* [[http://thutchanhlapcongty.net/index.php/dich-vu-tu-van-tim-ke-toan/ dịch vụ kế toán]]
+
* [[http://thutchanhlapconty.net/index.php/dich-vu-tu-van-tim-ke-toan/ dịch vụ kế toán]]
 
* [[http://www.linhkiendienthoai.cellphone.vn/ linh kien dien thoai di dong]]
 
* [[http://www.linhkiendienthoai.cellphone.vn/ linh kien dien thoai di dong]]
[[http://ihrp.f.com.vn/ Phần mềm nhân sự]],
+
[[http://ihrp.f.cm.vn/ Phần mềm nhân sự]],
[[http://ihrp..v/ lý Nhân sự]],
+
[[http://ihrp.v/ lý Nhân sự]],
[[http://ihrp.fis.co.vn/ Phần mềm quản lý nhân sự tiền lương]]
+
[[http://ihrpfis.co.vn/ Phần mềm quản lý nhân sự tiền lương]]
 
[[http://tintuc.vipecom.vn/cong-dong-vipecom/ky-nang/ky-nang-lam-viec-nhom/ ky nang lam viec nhom]]
 
[[http://tintuc.vipecom.vn/cong-dong-vipecom/ky-nang/ky-nang-lam-viec-nhom/ ky nang lam viec nhom]]
[[http://thamtuhnglong.com/ tham tu]]
+
[[http:/// cong ty tham tu]]
[[http://thamuthanglong.com/ cong ty tham tu]]
+
[[http://www.hiehoa.vn/ ke sieu thi]]
[[http://www.hiemhoa.vn/ ke sieu thi]]
+
[[http://wwwhemoa.vn/ quay ke]]
[[http://wwwhiemhoa.vn/ quay ke]]
 

Revision as of 16:24, 5 February 2012

Mex and compiler setting

==== How to set up mex Award Plaques

compiler on a 64-bit Matlab using Visual Studio 2008 Professional ====
  1. I was using Visual Studio 2008 Profession that is free for college students. I believe 2008 Express works the same way, too.
  2. When you install Visual Studio 2008, I recommend to install 'Full' so that you are sure the 64-bit compilers and libraries are installed. how to make crepes
  3. Go to Download, uncompress and copy the x64 mex option files under the MATLABROOT\bin\win64\mexopts.
  4. Do a mex -setup. Let Matlab locate the installed compiler. Select "Microsoft Visual C++ 2008".
  5. Use mex command to compile a simple file. You get the following error
C:\PROGRA~1\MATLAB\R2007B\BIN\MEX.PL:  
Error: Using options file: 
         C:\Users\deancool\AppData\Roaming\MathWorks\MATLAB\R2007b\mexopts.bat 
         You cannot use this file with the WIN64 architecture because it enables 
         a compiler for a different architecture. 
         Running mex -setup may resolve this problem. 

To fix this error:

  1. Locate your mexopts.bat file. Edit the following lines:
    1. Line 17 (set PATH): add '\amd64' after set PATH=%VCINSTALLDIR%\BIN\
    2. Line 19 (set LIB): add '\amd64' after set LIB=%VCINSTALLDIR%\ATLMFC\LIB and %VCINSTALLDIR%\LIB. Add '\x64' after C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib
    3. Line 20: set MW_TARGET_ARCH=win64
    4. Line 34: set LIBLOC=%MATLAB%\extern\lib\win64\microsoft
    5. Line 36: /MACHINE:X64

NOTE: Environment - Windows Vista 64-bit, Matlab 2007b 64-bit. My mexopts.bat file: File:Mexopts.zip

How to set up the C compiler from Visual Studio 2008 on a 64-bit Windows system

  1. Go to control->system->environmental variables. Edit 'path' and add the following dir: C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64
  2. Go to control->system->environmental variables. Edit 'LIB' and add the following dir: C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\amd64

Or go to C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64 and run vcvarsamd64.bat

How to compile cvOdesGenMod5.c

Windows

1. Enter COMKATROOT\CVODESserial-2.3.0-2005\sundials\cvodes\source. Run:

cl /c /I..\include /I..\..\shared\include *.c
lib /out:cvodes.lib *.obj

Copy cvodes.lib to the COMKATROOT\lib\win64 folder (change win64 according to your system) 2. Enter COMKATROOT\CVODESserial-2.3.0-2005\sundials\shared\source. Run:

cl /c /I..\include  *.c
lib /out:sundials.lib *.obj

Copy sundials.lib to the COMKATROOT\lib\win64 folder (change win64 according to your system) 3. Enter COMKATROOT\CVODESserial-2.3.0-2005\sundials\nvec_ser. Run

cl /c /I..\shared\include  *.c
lib /out:nvec_ser.lib *.obj

Copy nvec_ser.lib to the COMKATROOT\lib\win64 folder (change win64 according to your system)


Linux

NOTE: Under 64-bit Ubuntu and 64-bit Matlab, you have to do the following changes to make the mex compilation work.

  1. Edit the mexopts.sh and remove all -lstdc++
  2. Edit the cvodesGenmod5.c. Find function 'clear' and remove the 'static' declaration.
  3. When you use gcc to compile, add a flag '-fPIC'.

How to prepare a COMKAT release



CCIR-specific settings for MATLAB distributed computing server

As the server is installed on the 123 subnets, clients on the 125 subnets will not be able to connect to the job manager unless the following modification is made:

1. On the client side, edit the file 'hosts' and add a line

<THE SERVER IP ADDRESS> <SERVER NAME>

such as:

123.456.78.9 HEADNODE

Contact Dean or Dr. Muzic to get the right information.

The 'hosts' file can be found at '/etc/' in Macs and '/Windows/System32/drivers/etc/' in Windows-based PCs.

2. On the server side, edit the 'hosts' file. Do the same thing to add the ip and computer name of the client to this file.

3. Now the findResource command should work without any problem.

MATLAB Compiler

= Weird behavior of path settings for compiled MATLAB applications

__ For example, compiled main_GUI.m under c:\comkat\comkat_GUI\ and set the output directory to be c:\compiled_dir\. Before being compiled, the output to which('main_GUI') returns:

c:\comkat\comkat_GUI\

After being compiled, the same command returns:

c:\compiled_dir\main_GUI_mcr\main_GUI\

You have to be careful because if you are calling another function, for example, loadModelTemplate.m from main_GUI. If the directory is not switched, there should not be a problem. But if you switch to the directory of main_GUI.m, different behavior happens.
The commands executed are:

cd(fileparts(which('main_GUI')))
x = loadModelTemplate

Under MATLAB, x will be returned properly; However, under compiled MATLAB application, it returns:

 Undefined function or variable 'loadModelTemplate'

The reason is that, under compiled MATLAB applications, fileparts(which('main_GUI')) returns the directory of c:\compiled_dir\main_GUI_mcr\main_GUI\ that contains all the encrypted m-files. Once you switch to this folder, although you will find a file called loadModelTemplate, or function won't be able to be called. The command exist('loadModelTemplate') returns

0

You would have to exit this folder in order to call this function.
Therefore, if you do use which and cd to find files and enter a certain directory, it is recommended that you do it this way:

if ~isdeployed
     cd(fileparts(which('main_GUI')))
end

So that you don't run into errors...

uitable errors when deployed

For MATLAB 2008a and earlier, uitable errors when it is compiled with Matlab Compiler.

[dai ly thue] [đại lý thuế]

[quang cao truc tuyen]

[seo] [rao vat] [seo services] [thiet ke web] [quang ba web] [ky nang ban hang] [Funny SMS] [du hoc] [tu van du hoc] [cong ty du hoc] [du hoc uc] [du hoc my] [du hoc singapore]

[noithatdailoan]

[bao ve]

[Phần mềm nhân sự], [lý Nhân sự], [Phần mềm quản lý nhân sự tiền lương] [ky nang lam viec nhom] [cong ty tham tu] [ke sieu thi] [quay ke]