For instance, if I have:
C:\42\main.py
and
C:\42\info.txt
and I want to read info.txt from main.py, I have to input "C:\42\info.txt" instad of just "info.txt".
Is it supposed to be like that?
If not, how can I fix it?
Hi,
I'm trying to figure how can I use git for multiple environments (dev-test-prod) with code promotion. I read a bit about branching but didn't understand much how can this solve my problem since I must have the ability to run all of the environments concurrently and separately from each other.
Will be very thankful for some kind of how-to.
Hello
If there is only 1 running application in the system (and default 100 sleeping process), and it do a blocking syscall (I'm interested in blocking recv or blocking read). Will linux kernel delete this application from task_t *current pointer?
To read an int using scanf we use:
scanf("%d",i);
What if i is long not int??
Note: when using %d with long it gives me an irritating warning..
Thanks!
I have table 'products' and I need to update 'price' field by 20% if product 'type' field is "imported".
How do I read and update field at the same time in my UPDATE query?
this is the url:
http://maps.gstatic.com/cat_js/intl/zh-CN_ALL/mapfiles/208a/maps2.api/%7Bmod_drag,mod_ctrapi%7D.js
and i want to read it for study ..
thanks
Does anyone out there who's familiar with Scala know how I could use scala.collection.immutable.Set from Java? I can vaguely read the scaladoc, but am not sure how to call scala methods like "-" from java (I assume that I just need to include some scala .jar file in my classpath...?)
I wander how do client side get response if the connection of request is not finished yet?
What's the principle?
In fact I've read quite a few posts on this subject:
http://stackoverflow.com/questions/333664/simple-long-polling-example-code
http://stackoverflow.com/questions/932415/how-does-the-live-real-time-typing-work-in-google-wave
But none of them solve my doubt
Hi,
given all the possible solutions to have a template system with GNU Emacs, what do people use today ? I am still using skeleton-mode but as I read it here and there, we must be really few to do so.
What are you using and why ? (maybe I could switch to a more popular tool).
Cheers
Hi,
I've realised just how rusty my knowledge of PHP 5 and advanced PHP programming is after completing some questions for a test.
I seriously need to read a book or something.
Any recommendations for PHP 5 books?
I read somewhere that java is faster to develop than C++ as a pro of using java, in addition to portability and security. Is this true? I don't understand why it is faster.
[HttpPost]
public void Test(HttpPostedFileBase file)
{
UsersContext db = new UsersContext();
byte[] image = new byte[file.ContentLength];
file.InputStream.Read(image, 0, image.Length);
CrimeReport i = new CrimeReport
{
ImageId=1, ImageName="Anjli",ImageContent = image,
Active=true
};
db.CrimeReports.Add(i);
db.SaveChanges();
}
I am getting an exception on db.CrimeReports.Add(i);
Hello, I'm trying to figure out the right way to read lucene index only once whilst running the application multiple times, how can I do that in java?
Because indexed data will not change so reading them each time would not be necessary. Can someone explain me the logic of it reading them only once? thank you
I read the http://htmlpurifier.org/docs/enduser-youtube.html doc, but I still can't figure out where to put the code to allow object, param and embed tags and Use experimental features with my htmlpurifier. Can someone please show me how to do this?
Why when I click on the x button to close the window in a Java application only the window dissapears and the applicaton is still running.
I've read so many times that java designers tried to cater Java behaviour for the most common needs of programmers and save they precious time and so on and so on. What's more common case than closing app when I click on a X button?
I am trying to sum up the values in a textfile
try.txt
firstNumber,1
secondNumber,2
I tried with this script
#!/bin/bash
while IFS, read -r -a array; do
printf "%s %s\n" "${array[0]} ${array[1]}"
for n in "${array[1]}"; do
((total += n))
echo "total =" $total
done
done < try.txt
and I landed up with this output
firstNumber 1
total = 1
secondNumber 2
total = 3
expected output
firstNumber 1
secondNumber 2
total = 3
Thanks in advance
I have a shell that runs CentOS
For a project I'm doing I need python 2.5+ but centOS is pretty dependent on 2.4
From what I've read a number of things will break if you upgrade to 2.5
I wan't to install 2.5 separately from 2.4 but I'm not sure how to do it. So far I've downloaded the source tarball, untarred it and did a ./configure --prefix=/opt which is where I want it to end up. can I now just make, make install ? or is there more?
Hi folks,
is it possible to give users the permission to view, but not to change or delete.
currently in the only permissions I see are "add", "change" and "delete"... but there is no "read/view" in there.
I really need this as some users will only be able to consult the admin panel, in order to see what has been added in.
Help would be amazing!
I read the manual page of the "mount" command, at it reads as below:
All files accessible in a Unix
system are arranged in one big tree,
the file hierarchy, rooted at /.
These files can be spread out over
several
devices. The mount command serves to attach the file system found
on some device to the big file tree.
My question is:
Where is this "big tree" located?
Hello :)
I want to make an iPhone OS app for a Wordpress blog, and I'm unable to figure a way to grab the data from the blog.
The XML-RPC doesn't seem to have an anonymous read-only mode
The RSS feed has truncated posts
So, if anyone managed to make it, please help me ;)
In C#, when messing with that system DLLImport/(unmanaged?) code stuff, I read somewhere it's important to use Int32 exact type instead of int. Is this true? And can someone please elaborate on why it's important to do this?
JsHelper cant to use in elements ? I try use it (JsHelper) but not work
and was AjaxHelper deprecate in cakePHP 1.3 . I read document but dont see notice, i only see JavascriptHelper was deprecated.
Hi, we need to send an http post from an iphone device to our server with some info which the device token (APNS) which we want to store. How on the server do you read the HTTP post and store what is in it? We just have a standard ISP hosted server which currently just has a website.
Thanks