Hey.
Im pretty new to Python (and programming in general in fact). I have received two different files, each containing 10 000 integers mixed up with some commas, colons, and \n, and in one of the files there are also negative numbers. I have tried all day retrieving those numbers using all...
I used to know all about the FAT file structure and sectors and clusters and stuff but have forgotten it all. I was shocked to find that the new 5TB external HD I bought takes 1Meg to store a 1Kb file (and any file less than 1Meg).
Is this standard on drives over 4TB ?
Is there some other more...
Lately I have been receiving pdf files ( with Adobe sign) that I cannot open with my Adobe reader. I have no problem with all the Adobe pdf I have, just those from that sender. The error message is:
When I click OK, I have this message:
I tried all the options, got nowhere. Anyone know...
The program ffmpeg can be run on a video file to print out information about the file format.
An example of some output:
What is the meaning of the brand information?
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<time.h>
int main(){
int index=1;
int *arr;
int data;
char *c;
FILE *fp;
int input,inp;
arr=(int*)malloc(sizeof(int));
fp=fopen("list2.txt","r")...
I'm writing a simple script that writes to a csv file. When ran from console it works fine. When ran with cron, it doesn't write. No errors in the log. All files and folders are 777. The cron is active and running. What am I missing?
Hi PF!
I have a list of files data0.0.csv, data0.1.csv, data0.2.csv,...data0.10.csv... I would like to pad the central number with a zero for single digit cases, so that my files become data0.0.csv, data0.1.csv, data0.2.csv,...data0.10.csv... So far my code looks like this
% DEFINE FILE...
Hi PF!
I'm trying to edit two lines from files in different directories, U and controlDict. I want to change the lines with numbers from two other .dat files, VEL.dat (vector of numbers) and VEL_t.dat (single scalar number). Below is my attempt, but I know at least two things that are wrong...
Hi PF!
To open hello.py in the past I've used gedit hello.py but this opens the file in text editor. I would prefer to use sublime since it has features that are appealing to me. So my question is, how do I open hello.py in sublime from the terminal?
Homework Statement:: None. This is part of implementing a project and not an actual question. It's a technical problem or equipment failure.
Relevant Equations:: The Code I get is;
Error: (vlog-7) Failed to open design unit file "Waveform.vwf.vt" in read mode.
[Mentor Note -- moved to the...
We bought a Win 10 computer last year after Microsoft's planned obsolescence program finally caught up with us, ending support for Vista. I held out as long as I could, since we had a computer that worked fine for our purposes, and Win 10 horror stories abounded, but finally had to give in. I...
Hi PF!
I made an .STL file and am trying to open it with Paraview. When I toggle "open" on the Paraview drop-down menu, I don't see the file (but it is there, since my terminal shows it).
However, when I look for a different .stl file (one downloaded from an OpenFOAM tutorial) I can open it...
Hello,
I am getting the following error
Unexpected error in file
I have gone through the code and noting seems to be amiss. Does anyone have any ideas?
"The FBI file of John Wheeler"
https://physicstoday.scitation.org/do/10.1063/PT.6.4.20191203a/full/
"John Wheeler’s H-bomb blues"
https://physicstoday.scitation.org/doi/10.1063/PT.3.4364
"How the Nation’s Hydrogen Bomb Secrets Disappeared"...
So I have Python 2.7 ( Don't ask) installed in my VM.
Now I have two files named " Untitled 10" in my Jupyter notebook therein ( Notice the bottom cell in both files , named "Untitled 10" -- please see top of attachments -- which have different content in the "bottom-most" cell ); please...
I need help in writing a Fortran code to read in the numeric data, but the file contains initially some character in few initial lines and later the numeric data has been written. please help me in writing the Fortran code. I will be thankful for the kind help...
I am having an issue with MCNP6. When I run a simulation an output file is created, but not a mctal file. This behavior started after getting the following error
forrtl: severe <157> : program exception -access violation
I restarted and didn't get the error, but now not the mctal file and I...
Hi,
I want to change the header of some document files like pdf, ms word, libre office programatically. I know that I have to use some byte type command like putc(..) and getc(). But I don't the header size of the above mentioned file formats.I saw a list of file format at wikipedia...
I have three classes: Prog, CreateThread and BuildGUI. The last class has the main() method. I tested these classes using JDK 12 on NetBeans 11.0, and my program is working fine.
But I am being unable to create an executable JAR file. As you might be knowing, Apache NetBeans 11.0 no longer...
I have two 2-D equal sized arrays (m×n) say a,b and want to print them in a single .txt file and have tried this using numpy
np.savetxt('data.txt',(a,b)) but it fails..,
Can anyone please help in sort out this
Thanks
I don't know much about batch, but what I want is to execute a command such as ping google.com -n 200 and store all 200 ping latency results to a variable. The default results (avg max min %lost) isn't enough for me to tell if I can do what I need to do. I would like to calculate the average...
I’ve been looking for a certain type of software that can host programming (preferably C or Python) and other process that I’m going to need such as DSP, DSP filters, diagrams (3D graphs, charts,…), and text editing within the same file. It’s mainly so that I can incorporate and use each one...
I'd like to rename a bunch of files in a directory based on data from a tab-delimited text file. I know how to do this in R:
dir <- "~/user/folder/"
fileNames <- read.table(paste0(dir,"fileNames.txt"),sep="\t",header=T)
for (i in c(1:nrow(fileNames))){
oriFile <-...
I have attempted to sketch the timing and got the following graph
From reading the VHDL code my understanding is io each rising edge clock tick the system will carry out one of the following (choosing based on priority):
reset if Clear_L is high
load in a value if Clear_D is high
UP count if...
Hello,
I've got this question:
A 16 MB file is compressed using a compression ratio of 4. The resulting compressed file is transmitted over a wireless connection that offers a maximum data rate of 1.2 Gbps. If a throughput of 60% can be achieved, and assuming there are no other transmissions...
Hi All,
While trying to read a matrix from data file using fortran90 code ,I get garbage values and a backtrace error.
Error termination. Backtrace:
#0 0x7f4a4de3631a
#1 0x7f4a4de36ec5
#2 0x7f4a4de3768d
#3 0x7f4a4dfa4d42
#4 0x7f4a4dfa6ad5
#5 0x7f4a4dfa80f9
#6 0x56040bbeae57
#7...
Hi all,
I had shebanged a Python program file to train myself to run Python from the command line or search box. Problem is now I cannot access my old text-based .py files. Every time I click on them to open, they run in the command line. How can I access the text format again?
Hi All,
More Win10 fun. I cannot access any content in the Win10 help bar, on the lower left of the screen. I just get a blank. Please see attached.
Any Ideas?
Thanks.
I'm new to fortran coding and trying to read a file called "data.dat" with data like a triangular matrix
0.1
0.1 0.2
0.1 0.2 0.3
0.1 0.2 0.3 0.4
0.1 0.2 0.3 0.4 0.5
using the code
PROGRAM matrix
IMPLICIT NONE
REAL, DIMENSION(5,5) :: a
INTEGER :: row,col,max_rows,max_cols
max_rows=5...
All the white space among words in a text file was lost. Write a C++ program which using dynamic programming to get all of the possible original text files (i.e. with white spaces between words) and rank them in order of likelihood with the best possible runtime.
You have a text file of...
Homework Statement
I have a complete code that calculates distances between point 1(x1,y1,z1) and other points(from 2nd up to more than 100) and the nth point that results in minimum distance and the minimum distance between point 1 and nth point. The code is below.
The code is 100% correct...
Homework Statement
I have successfully opened and discarded the headers. Then I calculated the distances between point 1 and others and the minimum distance as well. However, I am not sure how to make the code work for more than 4 points. The attached text file is what I am trying to read and...
I'm new to prorgramming . I have been working with Fortran90 for my physics project and I have to read data from a file. I need to find a specific matrix and then print the said matrix onto a different file and diagonalize it. How do I read the matrix that follows a specific line from a file ...
Homework Statement
Write a program that can read an input file with a simple header.
The Attempt at a Solution
#include <iostream>
#include <fstream>
using namespace std;
int main() {
ifstream inFile;
inFile.open("Data"); //Check for error
if (inFile.fail()) {
cout...
What's the history of using extensions of file names (such as *.c, *.for, *.bmp etc) to indicate the general type of a file?
My hazy memory of working on ancient mainframe computers is that a file name extensions were not mandatory for most software. For example, if you wanted to compile a...
I have been attempting to open up files on NASA’s GRS and neutron data,
http://pds-geosciences.wustl.edu/missions/messenger/grs_edr.html
but have been running into some roadblocks. The data is all stored in .dat IEEE binary format (which IEEE format they do not specify in their documentation...
Let's say I have a client that asks for a file from a remote server that then asks for the file from some other remote server (Let's say Azure Blob Storage, for example). Let's say that the file can be transferred from blob storage to the web server at 60mb/s and from the web server to the...
Hi there,
I would like some help understanding the attached MCNP output file.
The file tells me that the mean alpha energy is 7.1931E-04 after a million simulations.
I have two questions:
Does the file tell me anywhere what the error in the mean value is (+/-)? Or can I simply work this out...
Hi
I am trying to learn how to manipulate 3D files like obj or stl using programming (I primarily use Python, but also know Javascript). Which resources can I use to learn this?
There is no sample file given in DBMS file organization chapter in my book.
1. Storing each relation in separate file
2. Storing many relation in one file.
Can you please provide a sample of these files. How they look ?
I am trying to add 'pip' in Python/Scripts to path in Win10 but the method available to do this seems to have changed recently. I used to just double click on 'path' in 'system variables' and paste path to pip (or whatever) at the end of a string of similar paths separated by a semicolon. But...
There is an extensive amount of missing notation in both parts of Numerus Numerans Numeratus.
I understand I am responsible for the correct transfer of word documents. I understand how to do so...and did at first...but then found the word limit and re-posted in two parts. However I failed to...
How do I use Python to extract all text that comes between a recurring set of unique strings? Example:
ABC;the red dragon;123,
ABC;the blue dragons;123
ABC;the black dwarf;123,
ABC;the gray elves;123
ABC;fantasy characters;123,
ABC;winged balrogs;123
I want to parse through a large text file...
Hello. I created a restore point in Windows 8 but it doesn't work because of a problem.
"System restore did not completed successfully. Your computer's system files and settings were not changed.
Details:
System Restore failed to extract the file "C:\Program Files...
I have an acquaintance who's building houses for Purple Martins. He has audio he wants to play between 4AM and 8 AM local time that's supposed to be a dawn song for the birds. He's seeking a way to automatically play this audio on loop. I'm sure there are a million easier ways to do this, but my...
Hi;
Thank you so much in advance for any help.
My question about FeynArts model file, I have coupling of my model and I did arrive to insert (write) constant 4*4matrix in generic model file in Feynarts or I should write it in model file.
Thanks again
Homework Statement
I want to read only specific lines from a file using fortran code.
Homework Equations
Fortran code
The Attempt at a Solution
I have a dummy.txt file wrote
7
5
6
4
5
6
9
10
14
19
I want read only values between lines 5 to lines10. But when I use print statement, the value...
Hello
I am not sure about what should be the best format for a input text file. I think before start shooting in the dark, it's better to ask experienced people.
The (C++) program has to create a net. The nodes will be defined in a input text file.
For convenience, the net will be a bunch of...