Pages

Friday, December 23, 2016

How to replace string on database firebird

How to  replace string on database firebird


select     replace ('Billy Wilder',  'il', 'oog') from  tablemaster_employee where  em_emplcode = 11111




Wednesday, September 7, 2016

How To Fix PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" on centos 6.5

How to fix error PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"  centos 6.5



Answer : Open terminal

# yum clean all


Enter.






Friday, March 18, 2016

Find and remove all file from termilal Linux




# find . -name "*Locky*" -exec rm -rf {} \;

or

# find . -type f -name "*.Locky*" -exec rm -i {} \;

remarks : 

-name "FILE-TO-FIND" : File pattern.
-exec rm -rf {} \; : Delete all files matched by file pattern.
-type f : Only match files and do not include directory name

Tuesday, February 16, 2016

Delete files older then 7 day on windows



forfiles -p "D:\test" -s -m *.* -d 7 -c "cmd /c del @path"


save with extention .bat

Wednesday, November 11, 2015

How to fix yum error "Metadata file does not match checksum"

how to fix yum error "Metadata file does not match checksum"

$sudo yum clean metadata v

How to fix error yum "network is unreachable" or "couldn't connect to host" errors while running yum command

Fix error yum "network is unreachable" or "couldn't connect to host" errors while running yum command.

$ sudo vi /etc/yum.conf 



[main]


proxy=http://proxy.com:8000

How to fix yum error '404 errors' on CentOS 6

How to fix yum error '404 errors' on CentOS 6

 $ sudo yum clean metadata
 $ sudo yum clean all 

Tuesday, November 3, 2015

Error Connection status: unknown The dependency service or group failed to start on windows vista

go to start menu and type cmd in the search bar and open cmd with
administrator rights

1. Type "netsh winsock reset" and hit enter....if you get an error, ignore it
2. Type "netsh int ip reset" and hit enter....
3. Restart you computer

Tuesday, September 22, 2015

Searching Column Name From Table in Database



select table_name from information_schema.columns group by table_name


select table_name,column_name from information_schema.columns
where column_name like '%MGS_Groupcode%'


Thursday, September 10, 2015

how to convert pdf file to word or excel

open this web  https://online2pdf.com/

and  then upload file pdf and convert file and finish.

nb: maximum file 50 Mb.


Saturday, May 23, 2015

How to get all user accounts SQL Server

Get the list of all SQL User Accounts SQL Server:

SELECT name AS Login_Name, type_desc AS Account_Type
FROM sys.server_principals 
WHERE TYPE IN ('U', 'S', 'G')
and name not like '%##%'
ORDER BY name, type_desc


Get the list of all SQL User Accounts Database only

SELECT name
FROM sys.server_principals 
WHERE TYPE = 'S'
and name not like '%##%'

Get the list of all Windows User Accounts only
SELECT name
FROM sys.server_principals 
WHERE TYPE = 'U'

Get the list of all Windows Group User Accounts only
SELECT name
FROM sys.server_principals 
WHERE TYPE = 'G'

Wednesday, April 22, 2015

VLC is unable to open the MRL smb://

When I tried to open remote video files with VLC via a Samba share , but I got this error message:
Your input can't be opened:
VLC is unable to open the MRL 'smb://...'
It seems that this problem is related to credentials and can be fixed by entering the credentials for the Samba share in the VLC preferences

Tools > Preferences > Input / Codecs > Access Modules > SMB Input

insert user and password

user     :
password :
domain   :

good luck