How to retrieve the process start time (or uptime) in python in Linux?
I only know, I can call "ps -p my_process_id -f" and then parse the output. But it is not cool.
Hey guys. I have a problem with StandardColorMap and MainMenu. I need to create ColorMap in one submenu. How to do it?
P.S.
I am programming with delphi 2007
Hi,
I'm trying to get the contents of a directory using shell script.
My script is:
for entry in `ls`; do
echo $entry
done
However, my current directory contains many files with whitespaces in their names. In that case, this script fails.
What is the correct way to loop over the contents of a directory in shell scripting?
PS: I use bash.
i have a java program executing 3 separate sqls with a same inline view - it takes about 20 minutes each time to build the inline view when the sqls are executed - is there a way to cache or reuse it ? - trying to avoid temporary table solution because it needs to be delegated to a plsql since the java program does not have rights to create schema objects.
ps: oracle 10g
I included the full page that has Coda slider (including header and scripts) inside a tabbed ajax script, but it failed to load ! link below. Is it not possible to have two java scripts load in one page? Thanx
Web site here
P.S. I asked the question in another post, but I got an answer that fixed things partially so I thought by accepting the answer the post is closed.
I realy dont know what the problem is with VS2010. I created a class, and when I'm trying create an exemplar of the class I get an error: "Error xxx is inaccessible due to its protection level.
Example:
public class Person
{
Person(string name, int age)
{
this.name = name;
this.age = age;
}
public string name;
public int age;
}
class Program
{
static void Main(string[] args)
{
Person ps = new Person("Jack", 19);
}
}
I have two machines, one running 2.4.18 and one running 2.4.20. Both run Java 1.5 build 13. On one machine (2.4.18), each thread shows up as a separate process in the ps output, and on the other the whole JVM shows up as one process. What is the distinguishing factor and can I control it?
Hi,
I am upgrading an old version 1.0 F# project to 2.0 using visual studio 2010. So many changes.
I can't seem to find the print_any command that was littered all over the place in the old books and samples.
I have installed powerpack but can't find it there either.
Any idea where i can find this command.
PS: I know I can easily implement it myself but was curious where this is now.
I've this GIGANTIC view with several hundred columns and I need to select 114th column something like:
SELECT "144" FROM MyView;
PS: Obviously, I don't know the name of the column. I just copied the results row into an Excel file, searched for a particular value that is in EJ column so I want to select all rows showing only nth column in my view to do my further debugging.
Cheers!
hello,
recently i want to upload GAppProxy to GAE.
but when i use the appcfg.py to update the files,there comes an error,it was:
urllib2.URLError: urlopen error [Errno 8] _ssl.c:480: EOF occurred in
violation of protocol
i don't know why
PS:i live in china,and may be because of the GFW.
and when i use the type :appengine.google.com and then input the password,i can't redict to the index page,there is an error too,which says:ssl error
The subject line says it all. I'd also like to do this using pipes.
I figured that I could use Get-ChildItem, Measure-Object and Where-Object, but Measure-Object doesn't like dates.
Should I have a script block which loops through each item returned from Get-ChildItem and does a comparison to see if it's the most recent? I thought that there should be a handy PS cmdlet for that.
I bind the ItemsSource of a ComboBox to an ObservableCollection<MyClass>. In code I change the collection (e.g. edit the MyClass.Name property).
The problem: the change is not reflected in the dropdown box if the ComboBox, yet when I seled the item from the dropdown it is displayed correctly in the selected item box of the ComboBox.
What's going on? :)
PS MyClass has INotifyPropertyChanged implemented
Hello :)
I need to test a piece of code which only seems to fail on Windows XP RTM. Unfortunately, all my disks came slipstreamed with SP2 on-disk. Is there any way to install an RTM install using my SP2 CD and key?
Billy3
PS: Not sure if this belongs on SU or not -- please vote it over there if you think so.
I'm looking for a while to programmatically convert (or use a tool already created) MACESS .cra, .acr, and .err files to a readable format?
I'd prefer a .NET way of doing it however at this point I'll take any programmatic way.
PS I tried adding tags "MACESS Sungard" but I don't have 250 rep yet to do so.
I use Fiddler for intercepting HTTP traffic when using IE or Firefox. Now that I'm using chrome for most of my day, I would like to be able to see the http traffic using something like Fiddler. What do chrome developers use ? I prefer something automatic like Fiddler but something that needs config, etc would also help.
P.S : I'm on windows vista 64-bit HOME PREMIUM, if that's important.
My company is planning in hiring outsourcers to work for us, but concerned to give whole existing code to outside world.
What is the proper way to deal with security of sharing code in such cases?
Is it possible to restrict part of code for developers? So each of them could work on their project without having access to whole repository.
P.S. The code we have is very integrated, and its hard to extract "one module", each module can use files from different locations.
Thanks in advance
I'd like to show node's location within a node (between other fields).
Do You know any
formatter
CCK field
other module-based
solution for that?
PS I know a semi-satisfactory solution that lets display the map above or below a node, but not in between other fields: to enable a node location block and place it close to the content.
Some people claim that code's worst enemy is its size, and I tend to agree. Yet every day you keep hearing things like
I write blah lines of code in a day.
I own x lines of code.
Windows is x million lines of code.
Question: When is "#lines of code" useful?
ps: Note that when such statements are made, the tone is "more is better".
HI, Any good resources to wrap my head around Aspect Oriented Programming?
PS:- I need to understand AO programming not the libraries or frameworks available for .NET or C# :)
Hi,
I do not uderstand why the result of:
(DateTime.Now.Subtract(user.created_time.Value.Date)).Hours
is 23.
where:
DateTime.Now is:{3/30/2010 12:00:00
AM}
and
user.created_time.Value.Date is :
{3/24/2010 12:00:00 AM}
Does it make sense for anybody?
ps: I want to select all users created in last 72 hours so i suppose that is the way i should do...
Here's the deal:
Is there a way to search for an input name or type witch is not precise and fill it?
For example, I want to fill any input with the name email with my email, but I maybe have some inputs named email-123, emailemail, emails etc... Is there a way to do something like * email * ?
And how can I click on a link verifying some text that could be on the link, or above the link, or close, or at class etc ?
ps: I'm using selenium ide with firefox
A python program opens a new process of the C++ program and is reading the processes stdout.
No problem so far.
But is it possible to have multiple streams like this for communication? I can get two if I misuse stderr too, but not more. Easy way to hack this would be using temporary files. Is there something more elegant that does not need a detour to the filesystem?
PS: *nix specific solutions are welcome too
Hi all.
In my code i tried to connect signal from QTrayIcon object and my form in such way:
connect(m_trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)),
this, SLOT(iconActivated(QSystemTrayIcon::ActivationReason)));
But i received a segfault on this code. Any ideas?
P.S. Sorry for my bad english.