6,015 Topics
![]() | |
A simple way to find out a Python module's location on your drive. | |
I am learning python and trying to connect my satellite decoder using telnet. When I tried to connect my device through telnet python script, I could successfully connected to the device. But i want to capture/save as well as read the output and logs of device (connected thru telnet) from … | |
Hello i need help, I am creating a small social networking website in which i want dat a user can upload music files as well with some descriptions ,the description and file path should be stored in database and the mp3 file should be stored in a seprate folder i … ![]() | |
I'm using c# on vs2012. I wanna split to video file for a custom time arrange. For Example; my video file length 30 minutes and i want to watching just selection time arrange. (like between 10th second and 45th second.) I dont want to physical new file. My steps for … | |
Hi.. I want to reset the multiple file input field. Actually my file input field is an array. I used the following code and it works if the input field is not an array. <script> $(function() { $('input[type=file]').change(function () { var regex = new RegExp("(.*?)\.(jpg|jpeg|png|pdf)$"); var f = this.files[0]; $.each(this.files, … | |
My Program is about Directed Graphs. It reads a list of edges like : `25 589` , and puts 589 into the adjacency list (a linked list) of 25. My input file has about 5 Million such `v w` edges, with about 800K nodes/vertices, for each of which there will … | |
I need to identify how the code identifies that a file is at the "eof" (end of file). Here's why: On Monday's, I'm having to combine text files created over the weekend that will eventually be read and pulled into an Excel spreadsheet (generally there are three files). Using VB.net, … | |
So... this happened at a LAN party. A friend was pestering me for Linux Mint. For some reason YUMI wouldn't recognize my flash drive, so I did it the manual way. sudo dd if=./linuxmint-17.1-cinnamon-64bit.iso of=/dev/sdb bs=1M However, it should have been: sudo dd if=./linuxmint-17.1-cinnamon-64bit.iso of=/dev/sdd bs=1M It's an ADD/mental auto-pilot … | |
I'm using PHPExcel to generate a spreadsheet to download. <?php $objPHPExcel = new PHPExcel(); $emailReport = 'tmp/company.xls'; // Remove previous file if it exists. $testdel=unlink($emailReport); if(!$testdel){ echo "Unable to remove previous Spreadsheet<hr/>"; } echo '<a href="'.$emailReport.'" class="dbutton">Download Spreadsheet</a><hr/>'; $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow(1, 1,'Old Value'); $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5'); $objWriter->save($emailReport); ?> All well and … | |
Hi I have some code to re-encode uniface text files in to ANSII for use by a 3rd party application. This code works fine if I create a new text file using notepad, save it as Unicode and run my script. I get a lovely output file in ANSII. When … | |
Hi Guys, I'am curious if AD can be implemented over the network instead of joining the pc manually. Response is much appreciated. Thanks, | |
I have a problem with the file upload control in MVC. My DOM element looks like @Html.TextBoxFor(m => m.logo, new { id = "logoUpload", type = "file", @accept = "image/*", @onchange = "showpreview(this);" }) onChange event looks like function showpreview(input) { if (input.files && input.files[0]) { var logo = $('#logoUpload')[0].value; … | |
Hi All, I am trying get FROM Email address while uploading email. I have FileUpload control to update the any of documents from drive to application. I need to get FROM Email address when uploading email using FileUpload. Please let me know if have any code like above Scenario | |
I have a set of 2 ComboBoxes i would like to make Combobox 2 not populate from the directory if Combobox1 has a certain character in the file that is highlighted. If at all posible id like to find a way to have it continully search for the specific set … | |
How to read an excel file in php? This is my index page::: <html> <head> </head> <body> <form method="post" action="save_category.php" enctype="multipart/form-data"> <label >Import File<span class="mandatory">*</span></label> <input type="radio" name="file" value="1" checked>Excel File <input type="radio" name="file" value="0">CSV File <input type="file" name="import" value="Import" required/> <label >Book Category Name<span class="mandatory">*</span></label> <input type="text" id="categoryname" name="categoryname" … | |
Grabs the location and name of the script file itself. | |
Is it possible to add PDF files to the dates, and make it clickable to view or download files? I am looking for a calendar based file publication, as we create daily, weekly, monthly reports to be published for our viewers. The users can click on the date to access/download … | |
I need to get the size of a file, but I keep on getting 0 as the size, which is not the actual size. private void dodAlgorithm() throws IOException { int count; int randomValue; long fileSize; File file = new File(filename); BufferedWriter writer = new BufferedWriter(new FileWriter(file)); SecureRandom random = … | |
Hi Dw I have a multi-threaded server that connects thousands of clients. The clients sends in data that the server must write to a text file. As there are a thousands of clients sending in data the server has about 60 texts files but the data sent by the client … | |
Hello everybody. I need a quick help. I have a problem with running my python file code. I use Linux. I had a file with the name "app3.py" file on the Desktop; then i removed ".py" from the end of the name of the file; so now i have "app3" … | |
Filter and process data Download the file population.txt from webcourse. The file is a formatted text file with 3 columns: country, city and population. Read the file and create a short c program to do the following: a.display the name and the population of the city with the highest population … | |
Hi, all I'm working with an aspx file that's supposed to check on a directory (on the same server the file lives on) to see if a file of a particular name exists. Based on its response, it's either supposed to create a link to that file, or, well, do … | |
I try to display a pdf document with code like this: <?php session_start(); if (empty($_SESSION['nip']) AND empty($_SESSION['password'])) { ?> <script type='text/javascript'> alert('You must login'); document.location='../../../login.php'; </script> <?php }else{ include_once '../../../config/core.php'; include_once '../../../config/functioncollection.php'; $kode_materi=antiInjections($_GET['id']); $querambildata=mysql_fetch_array(mysql_query("SELECT * FROM materi_tb WHERE kode_materi='$kode_materi'")); $file = "../../../filemateri/".$querambildata['url_materi']; $filename = $querambildata['url_materi']; header('Content-type: application/pdf'); header('Content-Disposition: inline; filename="' … | |
Hi everyone. I have problem whit BSOD on Windows 7. I have a lot of dmp files in my minidump folder. After bluue screen view i have found that the main problem is this one: File name: ntoskrnl.exe Product name: Microsoft® Windows® Operating System File Description: NT Kernel & System … | |
I trying to build a web app using html5 which has a user profile page and I am having an issue with input type="file" when testing it on an Android browser. When selected it gives me the option to open camera or gallery, when an file is selected, it populates … | |
Hi! I want to put a html file into another html file . I tried iframe and object tag, which works but the problem is i also get scrolling frames. How can i insert a html file into another html file as it is without anything added to it like … | |
welcome everybody, i am able read my file by asking the filename from user but i am facing a little problem,When i type a name of file which doesnot exist,compiler also shows it with some zeroes, this is my program, please help me,having problem in case 2... #include <fstream> #include … | |
I'm trying to implement upload on [my application](http://github.com/bl4ckdu5t/vitabiotics). I'm hosting the application on Heroku, and I'm using S3. I've created a bucket and I've followed [this guide](https://devcenter.heroku.com/articles/paperclip-s3) trying to make it all work. But it still fails and I get no errors. The uploaded images never get to the bucket. | |
i need a program that saves the record of three students in one subject then saves the file. again calling this file to calculate the total of the projects,assignments, final exams and finally do grade for three of them. at the end the students record should be puttedin menu of … | |
Hey guys is it posssible to read from file and add to collectionBase?For my litle project i need to use collection and read file but the app needs to save. it saves to file but i find it faster and easyer to read from collection and search,edit,delete... string[] lineOfContents = … | |
I wanted to upload an excel file with one of my threads, but it is refused. Do I have to zip it first and if so, why? | |
Is it possible to use fclose() once for 2 file pointers. Somewhat like this : fclose(in,out); please help | |
i upload a file in php and read its contents.now i want to scan the file line by line and want to store some information in database.. can anybody help me plz.. | |
Hello everybody! Me again with an other question :) I have a file with a list and 3 functions in it; view, sort, append. I used pickle to save data changes in to an other file (films.db). Imagine you want to use this programe for the first time on your … | |
I want to copy all the files from one directory to another using the fread() and fwrite()-statements. Some of these files are rather large in size, and that's why I want to calculate who long the transfer will take. (Later I will use this information to show a progress bar … | |
When there should be a error it does not show. I can not seem to get the erorrs to work in the correct order How can I improve my file upload errors to work in correct order? public function upload() { $name = $_FILES['userfile']['name']; $tmp_name = $_FILES['userfile']['tmp_name']; $type = $_FILES['userfile']['type']; … | |
When I upload I can upload single files fine but, I cannot seem to upload if input is like **<input type="file" name="file[]">** I am not sure on my php upload function how to make it allow multiple files? Thanks in advance. public function upload() { $this->load->library('request'); $directory = FCPATH .'upload/'; … | |
Hello, I want to show select list in angular js Data is in .php file in json format as below: `["{\"0\":\"949\",\"user_id\":\"949\",\"gslab_id\":\"GS-0835\"}","{\"0\":\"493\",\"user_id\":\"493\",\"gslab_id\":\"GS-0451\"}","{\"0\":\"338\",\"user_id\":\"338\",\"gslab_id\":\"GS-0322\"}","{\"0\":\"961\",\"user_id\":\"961\",\"gslab_id\":\"GS-0843\"}","{\"0\":\"444\",\"user_id\":\"444\",\"gslab_id\":\"GS-0409\"}"]` what I have written till is in my index.php file: <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.min.js"></script> <script src="myNoteApp.js"></script> <body ng-app="mainApp"> <div ng-controller="mainController"> <select> <option ng-repeat="category in content" value="{{category.user_id}}"> {{category.user_id}} </option> </select> </div> </body> … | |
Hello All, I am working on writing a code to implement dictionary in C++. I have few functions to implement for my dictionary. Can someone please help me writing the definitions for my dictionary. Header file and cpp file is attached here. **Dict.h file is as below:** enum WordType{All, Animal, … | |
I cannot figur this out ive been researching. Changeing code structure, Everthing I could think of to get this to work but it keep giving me errors here is the error I get Im pretty sure somewhere in the code its holding onto the file but I dont know where … | |
In one file we have employee number and salary and in another file we have employee number and designation . Now in the output file i want to print salary and designation with corresponding employee number ? | |
In my Windows Forms c# project I try to connect to an already existing ms sql database file (added binding Source on the form, then : bindingSource -> properties -> DataSource -> add source - > .... ) but when I pick this file it writes something like "You dont … | |
I have a custom php function for my multiple upload function. I cannot figure out how to make it so when I insert the file name to the database that it matches the row id, of that insert. How can I make it so. When I create a new banner … | |
Hi all, Im starting to use composer, and have installed a few packages - This thread is about illuminate/database component. Im clearly misunderstanding something about how i can use the autoloader. I have the following directory structure: -app -assets -vendor index.php [Request goes to index.php] - This file includes composers … | |
Hello, I have developed a phonegap hybrid application using HTML5 and jquery mobile but there is a certain area I'm facing challenges in. In my app I am using the tag <input type='file'> to upload images, which works fine when using a pc. But when I install the app on … | |
hi i am required to write a program in mips assembler where i am to create a checkerboard which is too be saved and written to a bmp file, compile this program it has a problem with writing the file because it jumps straight to my error message could someone … | |
Hi everybody, I need to save same data to a .txt file (using javascript). Please see this example of clicking in an image and get the coordinates ([Click Here](http://www.emanueleferonato.com/2006/09/02/click-image-and-get-coordinates-with-javascript/)). The coordinates appear on the bottom of the image. What I need is to save this information (x and y coordinates) … | |
Hey all. I'm facing a bit of a challenge and and having a hard time trying to figgure out how do do this. Basically I have two computers (Raspbery Pi's) that I'm using. One (Pi A) is acting as a remote and sends a request to the receiver (Pi B). … | |
How to read clean data from .docx or .doc file? $file_url="http://www.abc.com/upload/test.docx"; $doc_data = file_get_contents($file_url); it's gives out put like �T�a�b�l�e� �N�o�r�m�a�l����ö��4Ö� l�4Ö���aö��� ���(�k ôÿÁ�(�� ������0�N�o� �L�i�s�t���� �����PK�����!�‚мú��������[Content_Types].xml how to get clean data like text file?? | |
Hello to all, I'm trying to use the function below to print strings to a file. When I use Console.Write() or Console.WriteLine() the output file grows up 3MB or 4MB per seconds, but when I try to use StreamWriter or File.AppendAllText the output in the way shown below, the file … |
The End.