Ladies & Gents
So in the process of coping some text out of html files in konqueror into kwrite I discovered that it will drag and drop the text after it is selected. The problem is that when I try to open the file saved in kwrite it is in a strange encoding that is not readable. There are a lot of these files that are now corrupt. Does anybody know how to re-encode the files so I don't have to regenerate them
Thanks
Hi all. I am tweaking my php.ini file and I do not understand the bolded text below...
http://phpsec.org/projects/phpsecinf...d_tmp_dir.html
Quote:
upload_tmp_dir
Test Description
Checks if the current upload_tmp_dir is a world readable or writable folder, and if it matches the common UNIX system temp directory.
Security Implications
upload_tmp_dir allows you to specify where uploaded files should be saved until the handling script moves them to a more permanent location. If this file is within the document root of the web site and/or accessible to system users other than PHP's user, it could be modified or overwritten while PHP is processing it. By default upload_tmp_dir is set to the system's standard temporary directory, which can typically be accessed by all system users.
Recommendations
Set upload_tmp_dir to a folder that is:
- outside the document root of your web site
- not readable or writable by any other system users
You can set upload_tmp_dir in the php.ini file:
; Set upload_tmp_dir to a safe location
upload_tmp_dir = /var/www/foo.bar/sessions
The setting can also be applied in apache's httpd.conf file, or an .htaccess file:
# Set upload_tmp_dir to a safe location
php_value upload_tmp_dir /var/www/foo.bar/sessions
Questions:
1.) What does the bolded text mean, and how do I do that?
**NOTE: I don't have VPS Root access, and am hoping this can be done using my regular account via SSH.
2.) Where would be a safe place to put these temporary files?
Sincerely,
Rob
I just find the below URL , it shows how to convert file to utf-8 , but it need to check the current encoding first , would advise how can I convert a file to utf-8 without checking the coding first ? thanks
http://ask.xmodulo.com/change-charac...ile-linux.html
I have a server sending me a plain text email every day, reporting the below parameters. Its reading them from a text file, and sending them to my email.
How can convert this to a three column html table and send that?
Code:
Sync Total: 1 directory, 4 files, 0 symlinks
---------------------------------
Host Name: host name here
---------------------------------
Group Name: group name here
---------------------------------
Disk Usage: 37%
---------------------------------
CPU Usage: 78%
---------------------------------
Memory Usage: 11%
---------------------------------
Temperatu 44.9'C
---------------------------------
Local IP: 192.168.0.115
---------------------------------
Public IP: public ip here
---------------------------------
Tunnel Port: 5001
---------------------------------
Tunnel Status:
Fri Mar 6 06:23:00 EET 2015 opening reverse tunnel from my_host_he 5001 to 127.0.0.1:22
---------------------------------
Thanks
For one user I generated a gpg2 key-pair. I exported these to ascii-armour text files as master.asc and pub.asc. Then took only the pub.asc onto the keyring of a second user on the same partition. I "signed" a simple text file (say trial.txt) with the master key and also transferred it to the home directory of the second user. The pub key on the second user's keyring could verify the signature on the signed text file (trial.txt.gpg) but could not decrypt it. Also, a file encrypted by the second user with the pubkey could be decrypted by the masterkey. Each key therefore has, embedded in its structure, information about child/parent keys. Can anyone thrown light on the actual method of incorporation of this mutual recognition in the key structures? Note:The same kind of recognition happens with sub-keys derived from the Master-key. Can't find any literature which details. Help pl.
from the desk top i open documents file , i have multiple folders but no information Clearly what iam see is the background. how do i fix this perhaps i have deleted some thing wwhich has created the problem .
OPENING A FILE i receive multiple notification from OKULAR SAYING CANNOT OPEN FILE AND QUOTES FILES WHICH HAD BEEN DELETED .
ANY SUGGESTION ON HOW I CAN FIX THE DEFECTS .
What I have here is a Dell Optiplex GX620 (stock) with a new install of Xubuntu as of May 18. It works fine except that I am having trouble printing.
The printer is an HP Deskjet 832c hooked to a Linksys BEFW11P1. The Linksys box is an old internet router/firewall/wi-fi/printserver. I am using it as a network printserver with all the other functions disabled. It's a strange setup for sure. But, over there I have another computer running Lucid Puppy 5.3.2 and it prints just fine.
This machine running Xubuntu only will print the simplest of documents. The printer setup will print a test page, Text files will print, AbiWord files will print, PDF files and HTML pages displayed in Firefox do not print.
I have been taking some stabs at trying to fix this problem by changing some settings. but no joy.
Has anyone seen an issue like this? Any pointers/ideas on where to actually look for the problem.
It seems to me that Xubuntu does not use CUPS to manage it's printers? True? Would installing CUPS be a good idea?
Thanks
hello all,
please help me with python ftplib. i was trying to copy files from my linux machine to a windows server using ftplib. everything was working good. but i'm only able to copy files from the same directory the script is. how do i copy files from a different directory? i always get "file not found error message". here's my code :
Code:
tester_name = str (socket.gethostname())
def upload(ftp, file):
ext = os.path.splitext(file)[1]
if ext in (".txt", ".htm", ".html"):
ftp.storlines("STOR " + file, open(file))
else:
ftp.storbinary("STOR " + file, open(file, "rb"), 1024)
parse_source_path = ('/path/to/where/i/go/')
parse_source_file_list = os.listdir(parse_source_path)
ftp = ftplib.FTP("server_IP")
ftp.login("username", "pass")
folder_list = []
ftp.dir(folder_list.append)
if str(tester_name) not in str(folder_list) :
ftp.mkd("%s"%tester_name)
ftp.cwd("%s"%tester_name)
for files in parse_source_file_list :
print files
upload(ftp, files)
else :
print "later"
On kali, how do i split a 15.7gb text file into 3 parts ? Also when i split the text file i don't want words to be incomplete from the split. Please help on how to exactly do it. Writing the exact commands to my specific situation would help me out a lot. Thanks in advance.
I am running xubuntu 11.10, fully updated, on an Acer 250 netbook (1GB ram, 1.8 GHz clock, single core Atom processor, if you can believe it). Runs pretty well, I think. So much so that I have decided to migrate from Windows to Linux.
My first question to the forum is this: I have set the Thunar file explorer to show hidden files. However, hidden files still don't show up on various File Open or Browse... dialogs.
How can I set up xfce or xubuntu to always display .hiddenfiles in Open... or Browse... dialogs?
Problem comes up when I want to edit some .config file or run the alacarte Main Menu editor and have to specify some long path to an executable in a hidden directory (as in wine). I have to enter the file name manually, which gets to be a problem for my thumb-fingered typing.
Hi all,
I'm not quite a newbie having been using Linux for around a year now and think I know some of the basics at least. In the main it does what I want, some things better than they ever did on Window while some things frustratingly more awkward!
I have a load of music files that I'd like to search through and transfer some to the external sd card of my android phone. This was something that was a doddle during my Windows days but seems unbelievably difficult now. Back then I used a media player I loved, Mediamonkey, and could simply drag and drop whichever tracks I wanted, or right click and move to a device that way. Sadly this doesn't work too well with WINE though so is fine on XP through Virtualbox, apart from a lack of USB function.
I'm using Linux Mint 17.1 with a KDE desktop.
When I plug my phone into a USB port, it is recognised straight away as an android phone and I can navigate around it with no problems in Dolphin. I could look for each individual file and transfer them that way but with around 30,000 mp3s the task would take quite some time!
None of the media players I've tried so far recognise the phone or the storage on it.
I've installed Windows XP on Virtualbox and have Mediamonkey on there with all my audio files. I can't seem to get Virtualbox to recognise any USB devices so I can't transfer files that way either.
I find it annoying that, in effect, Android is a variety of Linux yet connectivity between the two is so complicated. Airdroid has been the best way that I've found but that's not an option.
I've been trying for 4 hours now and have got nowhere. If anyone can help I'd be grateful Thanks