i want to create a quiz application. the questions should be randomly selected from a word/text file(which contains some 20 questions). the application is in c#. syntax plz...
TheAutoConfig URL says to run the script in the directory that contains your package's configure script,what that directory means?anybody has experienced this to execute the script?and also how can we extract tar file through that?
I am getting a too long line error while trying to build a jar. the long line in the manifest file is the Class-Path line as the application uses a lot of third-party libraries. needless to say, I am using Windows :-( and Eclipse Java 1.6
I tried Class-Path: lib or Class-Path: lib/ but they did not work.
Hi,
Is it possible to get the extension of a file but when you specify the entire path other than the extension? For example:
C:\Users\Administrator\Pictures\BlueHillsTest
Thanks
Hi Team,
I am uploading audio files in asp.net using FFMPEG.My question is how can i get the duration of the file(in seconds).
Please suggest me.
Thanks and Regards
Srinivas M
Is it possible to create a file on a mounted SMB share that is hidden from Windows? The .(dot) prefix doesn't work in this case because that only works on Linux. Basically I'm looking for the same affect as using attrib +h on Windows, but under Linux.
Hi,
I use this command to copy all files whose names start with 'file' from a server.
scp -vp me@server:/location/files* ./
But i got a 'No Match' error. probably Concerning the '' in the command.
How can i protect the '' for ssh to understand that this refers to a list of files and not taking it as a filename.
Thx
August
Hi
I wonder when saving plot into image file in matlab, what is the difference between saveas and print? In what cases both can be used and in what cases only one can be used?
Thanks and regards!
I manually placed a library in the library directory (/usr/local/lib/ruby/site_ruby/1.8) and when I try to require it, it says "no such file to load".
I used "$:.first" to get the library path, so why wont it work? Is there any good way to debug this?
Thanks
I'm using the ARM7TDMI-S (NXP processor) and I need a file system capable of reading/writing to an SD card. There are so many available, what have people used and been happy with? One that requires the least amount of setup is best - so the less I have to do to get it started (i.e. write device drivers to NXP's hardware) the better.
Hi,
The connection string in my app.config for my C# project looks like
Data Source=.\SQLEXPRESS;AttachDbFilename='|DataDirectory|\EIC.mdf';Integrated Security=True;User Instance=True"
I am writing unit tests for the project and have the set the test run configuration to copy the EIC.mdf, but I do am not able to reference the Deployed copy of EIC.mdf to be referenced by the app.config I created for the test project. If I set it to
Data Source=.\SQLEXPRESS;AttachDbFilename='EIC.mdf';Integrated Security=True;User Instance=True"
It still does not find the mdf file.
my current url is something like:
http://something.somedomain.com/about_us/profile.php?tab1=about_us
a more complicated on is:
http://something.somedomain.com/exchange_hosting/feature/outlook_web_access.php?tab1=exchange_hosting&tab2=feature&tab3=outlook_web_access
i want to make them shorter:
http://something.somedomain.com/about_us/profile
http://something.somedomain.com/exchange_hosting/feature/outlook_web_access
my .htaccess
#################################
# Directory Indexes #
#################################
DirectoryIndex index.php
#########################################
# REWRITE RULES #
#########################################
RewriteEngine On
RewriteBase /
Options +FollowSymlinks
<IfModule mod_rewrite.c>
#not a file
RewriteCond %{REQUEST_FILENAME} !-f
#not a dir
RewriteCond %{REQUEST_FILENAME} !-d
#this dosen't work
#RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$ /$1.php?tab1=$0&tab2=$1
</IfModule>
# END #
All,
I have a hosts file that looks like this:
10.10.10.1 myserver1 myserver1alias
10.10.10.2 myserver2 myserver2alias
I'm looking for a way using perl to pass in an argument of myserver1 and have it return myserver1alias, likewise if I pass in myserver2 it should return myserver2alias. Any suggestions?
Is it possible to read binary in ruby file and execute it directly in memory?
for example something like this:
x = IO.read('/bin/ls')
execute(x)
I tried system(x) but it doesn't work
ArgumentError: string contains null byte
Hi,
I'm trying to read a large file ( 2.0 GB).
The seeking is done by lseek64, then I tried to read using read(fileHandle, buffer, bufferLength)\ pread64(fileHandle, buffer, bufferLength, offset) - but both return with -1.
What could it be?
Thanks in advance!
Hey Guys
I'm reading an excel file with C# and OleDB (12.0). There I have to specify the select statement with the name of the sheet I wish to read ([Sheet1$]).
this.dataAdapter =
new OleDbDataAdapter("SELECT * FROM [Sheet1$]", connectionString);
Is it possible to select the first sheet, no matter what name?
Thank you.
i have seen a lot of coders choosing this filename convention:
file.class.php.
is this a standard of naming class files?
just curious. so i know if i should follow it for all class files in the future.
thanks
Hiya.
I'm trying to read a file line by line to a string type variable using the following code:
#include <iostream>
#include <fstream>
ifstream file(file_name);
if (!file) {
cout << "unable to open file";
exit(1);
}
string line;
while (!file.eof()) {
file.getline(line,256);
cout<<line;
}
file.close();
it won't compile when I try to use String class, only when i use char file[256] instead.
how can I get line by line into a string class?
thanks!
I am creating a document database which business people will be able to easily send documents to. Which file format do you think is the most understandable and easy to write by business / non-technical people?
My current contenders are XML, JSON, and YAML
I have setup a Bash menu script that also requires user input.
These inputs are wrote (appended to) a text file named var.txt like so:
input[0]='192.0.0.1'
input[1]='username'
input[2]='example.com'
input[3]='/home/newuser'
Now what I am trying to accomplish is to be able to read from var.txt from a script kinda like this:
useradd var.txt/${input[1]}
now I know that wont work just using it for an example.
Thanks in Advance,
Joe
Is there anything the Dalvik VM supports (in terms of bytecode) which is not used currently because the .class files don't have it?
As an example, if people would write their own Source-to-DX converter for their functional language XYZ, would they be able to implement e. g. full tail calls although the .class file does support tail calls only under certain circumstances?
I need to determin the byte size of a file.
The coding language is C++ and the code should work with Linux, windows and any other operating system. This implies using standard C or C++ functions/classes.
This trivial need has apparently no trivial solution.