Monday, February 13, 2017

How to enable sa Account in SQL Server?

When you install the SQL Server using Windows Authentication mode, by default, the “sa” account is disabled. Sometimes, due to users/customers request, you may need to enable the sa account. You need to change the authentication mode for SQL server from Windows Authentication Mode to SQL Server and Windows Authentication Mode to use the sa account.
To Change the Authentication Mode:
Follow the steps mentioned below to change the authentication mode from Windows Authentication to SQL Server and Windows Authentication. You need to remember that, the SQL Server service needs to restart to make this change effective.
1. Login to the SQL server instance using SQL Server Management Studio. Right-click on the database instance, and go to Properties.
image
2. On the Server Properties page, Click on Security. Click on the radio button next to SQL Server and Windows Authentication mode, and click on OK to close the  Server Properties page.
image
3. Once you clicked on the Ok button, we will get the following screen:
image
As discussed earlier, we need to restart the SQL Server service to make this change effective. After restarting the SQL Server, the authentication mode will be changed to SQL Server and Windows Authentication mode.
Enable the sa Login:
1. Connect to the SQL Server instance using SSMS and go to Security. Expand Security, go to Logins.
2.  You can see the sa account is disabled when you install SQL Server using Windows Authentication mode.
image
3. Right-click on the sa account and go to Login Properties. Specify a complex password for the sa account. By default, the Enforce password policy is checked. (if you don’t want to provide a complex password for the sa account, you can uncheck this option. However, this is not recommended.)
image
4. Click on the Status page. By default, the sa account will be disabled. Click on the Enabled button to enable the sa account. Click on Ok to close the sa Login Properties.
image
Thus, sa account is enabled and you will be able to login to the SQL instance using the sa account.
If you want to use a script to enable the sa account, you can use the script mentioned below:
1: USE [master]
2: GO
3: ALTER LOGIN [sa] WITH PASSWORD=N'z43VGYT@Iu*60i'
4: GO
5: ALTER LOGIN [sa] ENABLE
6: GO

Wednesday, February 8, 2017

Khai báo tài khoản IMS của VNPT vào điện thoại IP, tổng đài ip và thiết bị ATA

Khai báo tài khoản SIP IMS của VNPT vào điện thoại IP
1. Khai báo cho các điện thoại IP Grandstream
Khai báo tài khoản IMS VNPT vào điện thoại IP
2. Khai báo cho các thiết bị ATA của Grandstream
a. Khai báo cho frofile
- Primary SIP Server: ims.vnpt.vn
- Outbound Proxy: 113.171.225.6:5062
IMS_ATA2
b. Khai báo tài khoản
- Sip User ID: Số điện thoại người dùng
- Authenticate ID: Số điện thoại kèm đuôi @ims.vnpt.vn (ví dụ: +84432001500@ims.vnpt.vn)
- Password: Mã password của số máy
- Name: Số điện thoại người sử dụng
IMS_ATA1
3. Khai báo tài khoản IMS của VNPT vào tổng đài IP Grandstream
Khai báo Sip Account IMS của VNPT
Vào giao diện web tổng đài -> vào Pbx -> Vào Voip Trunks -> Creat new Sip Trunk và thiết lập các thông số tài khoản tương tự như sau
VNPT_IMS2 VNPT_IMS1

Tuesday, January 24, 2017

Installing MsSQL extension on cPanel/WHM server.

Currently there is no script for installing php mssql extension in cpanel server. You have to install it manually.

You need to install a few modules before installing the MsSQL extension.

1. unixODBC

2. freeTDS

3. mssql.so


Do not use rpms as it will show lots of dependency errors. Better download the source file and compile it.

Install unixODBC package

Download source file and install using following steps.

-------
~]# wget http://www.unixodbc.org/unixODBC-2.2.14-p2.tar.gz
~]# tar -xvf unixODBC-2.2.12.tar.gz
~]# cd unixODBC-2.2.12
~]# ./configure -prefix=/usr/local -enable-gui=no    (make sure you use gui option set as 'no' else it will show error message as it don't have Qt package)
~]# make
~]# make install
------

Install freeTDS package

--------
1. Download from ftp://ftp.freetds.org/pub/freetds/old/0.82/freetds-0.82.tar.gz
2. tar -xvf freetds-0.82.tar.gz

3. ./configure -with-tdsver=8.0 -with-unixODBC=/usr/local

4. make

5. make install
---------

Configure freeTDS

1. Locate the freetds.conf and add the following entries. default location is /usr/local/etc/freetds.conf

[MSHOSTNAME]
host = MSHOSTNAME
port = 1433
tds version = 8.0

In cPanel servers the extensions are located at /home/cpeasyapache/src/php-x.x.x/ext. Navigate to the above directory and then to mssql directory.

cd /home/cpeasyapache/src/php-x.x.x/ext/mssql

phpize
./configure
make
make install 

The above commands will generate a copy of mssql.so in the installed extensions directory. Check and make sure that mssql.so is there and add the following to php.ini

---------
# php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini

# vim /usr/local/lib/php.ini
extension=”mssql.so”

-----------
Restart httpd and check the modules using the following command.

~]# php -m | grep mssql
mssql

Thursday, December 29, 2016

How to hide the All tab from the Menu bar in sugarcrm

How to Hide The ALL tab from the Menu bar 

Here i am explaining how to hide the All Tab Menu Bar from sugarcrm 6.4.4

STEP 1 :

Go to file
    /include/MVC/View/SugarView.php
open the file in the php editor

STEP 2 :

Go to line number 509 and comment the line
 $groupTabs[$app_strings['LBL_TABGROUP_ALL']]['modules'] = $fullModuleList;
below that add a new code
 $groupTabs[$app_strings['LBL_TABGROUP_ALL']]['modules'] = '';

So when you set that All menu tab only display one item under the subtab.

STEP 3 :

Now moving forward got to line number 513 and comment the line
$allGroup = $app_strings['LBL_TABGROUP_ALL'];


below that add a new code
  $allGroup = $app_strings['LBL_TABGROUP_ALL']  = '';


For the higher version means Sugarcrm 6.5.* use the following way

/include/MVC/View/SugarView.php

Find for the " $ss->assign("groupTabs",$groupTabs);"

just above this line put this code

//this code is used to hide the all tab

unset($groupTabs['All']);
$ss->assign("groupTabs",$groupTabs);


STEP 4:

 Now save the file and refresh your sugarcrm instance. you will not find the ALL menu tab.

Tuesday, December 27, 2016

Tìm kiếm file chia sẻ trong MediaFire

Những file bạn đã upload lên MediaFire, mặc dù không gửi link chia sẻ cho người khác, nhưng vẫn có người tải file của bạn. Và bạn cũng muốn tải file của người khác mà không cần có link?
A7.jpg
Do dịch vụ lưu trữ file MediaFire được rất nhiều người sử dụng nên có thể nói đây là một kho lưu trữ khổng lồ trên Internet. Để đáp ứng nhu cầu tìm kiếm file trong MediaFire, người dùng có thể sử dụng trang www.searchshared.com/mediafire.com/ (tập trung tìm kiếm trong MediaFire).
Hay sử dụng Google để tìm theo các cú pháp sau:
- Tìm nhạc: google: mp3|wma|ogg site:mediafire.com
- Tìm phim ảnh: google: asf|rm|avi|mp4|wmv|flv site:mediafire.com
- Tìm truyện tranh: google: cbr|cbz site:mediafire.com
- Tìm file: google: rar|zip|exe site:mediafire.com
Như vậy, khi bạn upload file lên dịch vụ này thì người khác có thể dễ dàng tìm thấy file của bạn khi sử dụng các công cụ tìm kiếm như trên.

Thursday, December 22, 2016

Monday, December 5, 2016

7 xu hướng công nghệ năm 2017

Mới đây, chuyên trang Gartner đã công bố danh sách nững xu hướng công nghệ được kỳ vọng sẽ trở thành tương lai của nhân loại.
7 xu huong cong nghe nam 2017 hinh anh 1
1. Trí thông minh nhân tạo (AI) và máy học nâng cao (Advanced Machine Learning): Được tạo thành từ các thuật toán và mạng lưới thần kinh nhân tạo có khả năng thống kê và sử dụng thông tin, kiến thức một cách tự động, trí thông minh nhân tạo ngày càng đóng vai trò quan trọng trong cuộc sống của con người. Ứng dụng phổ biến của công nghệ này là các robot y tá, cố vấn kỹ thuật số… Ảnh: PCWorld.
7 xu huong cong nghe nam 2017 hinh anh 2
2. Ứng dụng thông minh: Các ứng dụng này có chức năng như những trợ lý cá nhân, vừa lập kế hoạch, quản lý email, tin nhắn, thậm chí là dự đoán tương lai cho người sử dụng. Có thể kể tên một vài ứng dụng – trợ lý ảo - đắc lực hiện có như Siri (Apple), Cortana (Microsoft), Google Assistant (Google) và Amazon Echo… Ảnh: Microsoft.
7 xu huong cong nghe nam 2017 hinh anh 3
3. Đồ vật thông minh: Là sự hữu hình hóa của AI, các vật dụng thông minh xuất hiện ngày một nhiều. Nổi bật trong số đó phải kể đến xe ôtô tự lái, máy bay không người lái, bếp thông minh và nhà thông minh… Tất cả đang thay đổi cách con người hưởng thụ cuộc sống.
7 xu huong cong nghe nam 2017 hinh anh 4
4. Thực tế ảo (VR) và Tương tác thực tế (VR): Cả VR và AR đều là những công nghệ được săn lùng hàng đầu hiện nay không chỉ bởi các nhà phát hành game, game thủ mà còn bởi các doanh nghiệp và người tiêu dùng. Các chuyên gia nhận định, những công nghệ này sẽ sớm được đồng bộ trên các thiết bị cá nhân khác như điện thoại, máy tính bảng, nhằm mang đến trải nghiệm sinh động và phong phú cho người dùng. Ảnh: Intrepid.
7 xu huong cong nghe nam 2017 hinh anh 5
5. Công nghệ Digital Twin: Nói một cách đơn giản, Digital Twin là công nghệ cho phép các nhà khoa học sao chép chính xác mọi thứ, từ hình dạng, vị trí, cử chỉ, tình trạng và chuyển động của sự vật thông qua bộ phận cảm biến hiện đại. Bản sao này được gọi là “thiết bị cái bóng” (device shadow). Một trong những ứng dụng hữu hiệu của Digital Twin là giúp doanh nghiệp lập kế hoạch sử dụng thiết bị, vận hành nhà máy, dự báo thời điểm phải thay mới nhằm nâng cao năng suất hoạt động và hỗ trợ phát triển sản phẩm. Ảnh: iothub.
7 xu huong cong nghe nam 2017 hinh anh 6
6. Phương pháp ghi dữ liệu Blockchain: Đây được coi là “cuốn sổ cái” lưu trữ các giao dịch, thỏa thuận, hợp đồng và bất kỳ dữ liệu gì mà chúng ta cần ghi chép một cách độc lập, không bị tác động bởi các yếu tố bên ngoài. Các dịch vụ tài chính như ngân hàng, quỹ tín dụng…đã sớm áp dụng công nghệ này như một “vệ sĩ” trong thời đại số. Các ngành công nghiệp khác, đặc biệt là những ngành có quan hệ mật thiết đến sở hữu trí tuệ như âm nhạc, điện ảnh…cũng đang dần nhận ra sự ưu việt của Blockchain và áp dụng nó trong các hoạt động sáng tác. Ảnh: steemit.
7 xu huong cong nghe nam 2017 hinh anh 7
7. Nền tảng công nghệ kỹ thuật số đồng bộ: Trong tương lai, 5 nền tảng sau sẽ được đồng bộ, trở thành lõi phát triển cho các doanh nghiệp: Nền tảng thông tin, nền tảng xây dựng từ trải nghiệm của khách hàng, nền tảng dựa trên số liệu phân tích, Internet của vật dụng (IoT) và hệ sinh thái kinh doanh. Ảnh: ET Group.

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Powerade Coupons