And how do I convert it to a datetime.datetime instance in python?
It's the output from the New York State Senate's API: http://open.nysenate.gov/legislation/.
I'm working with Maven pom files, and I don't wish to source control iml files.
When I open a project, IntelliJ seems to add some of the iml files it creates to the SVN source control. How can I prevent this?
I have "*.iml" in an "svn:ignore" property on the repository root, but it doesn't seem to prevent IntelliJ from adding the imls.
Ok, I have a Preferences activity set with an XML layout.
Here I have a couple of Preferences that open some dialogs. On these preferences I want to have an arrow on the right of them like in the screenshot. How I do this, is something related to the theme ?
First screenshot is how I want to look, second is what I have now.
http://img545.imageshack.us/i/screenshot1zlk.png/
http://img405.imageshack.us/i/tsc3.png/
I've recently been given a MS Access .mdb database file and asked to make it usable in a Linux system. What I'm looking for is a way to convert the Access database to an open-source database such as MySQL or PostGres.
I don't have MS Office, and it's a one-time project for a volunteer organization so I don't want to spend money if it's avoidable. I'm running Vista x64, and have a Linux virtualbox, so something usable in either one will be good.
Hi I have the following codes
$('#<%= btnOpen.ClientID %>').click(function() {
$('#content').modal();
});
<asp:Button ID="btnOpen" runat="server" Text="Open" />
When I click on the button, the modal window will appear for about 0.5 second and disappear right away.Can anyone help me please? Thanks a lot!
I have a java class containing all the columns of a database table as attributes (member variables) and corresponding getters and setters.
I want to have a method in this class called getColumnCount() that returns the number of columns (i.e. the number of attributes in the class)? How would I implement this without hardcoding the number? I am open to critisims on this in general and suggestions. Thanks.
ofstream f("test",app);
f.seekp(5,ios::beg);
f << "hello world";
f.close();
What I'm trying to do here is open a file that already has data in it, and then put "hello world" somewhere in the middle of the file. However, when I run my code, it overwrites the whole file. How can this code be fixed?
Hi there I have build a project with visual studio 2010 but I now need to open it using an older version vs2008. Is this possible by just changing the target framework to .net 3.5?
as topic, I am strange that why does the SDK not provide API to show the UIFont picker ? like the date Picker......
or maybe some open source code is available now ?
Thanks for your help !
Regards
Hi, I require to buy a laptop, but I'm clueless really-need a laptop that will run the usual software for web work-photoshop,fireworks,dreamweaver,flash etc but also run php and .net, maybe most programs open at same time.
My budget is between £400-£600 ($600-$900)
please provide links if possible! Any help is very much appreciated.
I have a page with a menu like navigation pane (too repeater) and a placeholder in these page.
This is my problem : on menu item click i open different control in my placeholder, one at click.
When i change them selected item in my menu on page init i load the old control and i load the new control on menu event. How i can get te selected item of a repeater on page init???? or load.
P.s items are LinkButton
Hello everybody. Lately, I've been trying to learn C++ from this website. Unfortunately whenever I try to run one of the code samples, I see that program open for about a half second and then immediately close. Is there any way to stop the program from closing immediately so that I can see the fruits of my effort? Thanks in advance.
In older versions of Windows, it was just open the Control Panel, select the System applet, select the Advanced tab, and then hit the Environment variables button. As a normal user, you could edit the "User variables" but not the "System variables".
In Windows Server 2008 R2, if I try to hit the Advanced System settings option in the System applet, it prompts for the Administrator password.
I'm customizing work item templates in TFS 2008 through the PowerTools and I'm wondering is it possible to hide a field (or it's value) for certain users?
For example, let's say I open TFS to my clients so they can submit feature requests. I'd like them to see the work item created, to see the history, changes etc. but I'd like to keep some of the field private and for our internal use.
Is it possible?
I am using Open Source toolchain to compile my iPhone apps. So I have no Interface Builder or XCode. How would I setup the layout of widgets like UIButton, UITextView, etc. Also, how would I add an event handler to those UI widgets? Please remember that I don't have Interface Builder or XCode.
I am reading some frameworks like nakedobject (the .net version is not open source!), ironspeed?
not sure if they are good or not. Is anyone using them or?
If i have a # {} , like #{results}, in the snippet below:
results = Array.new
f = open("/Users/kahmed/messages", "r")
f.each_line do |line|
results << "#{$.} #{line}" if line =~ /NFE/
put #{results}
end
How can i use it in the following ssh.exec command
Net::SSH.start( HOST, USER, :password = PASS ) do|ssh|
ssh.exec(#{results})
when I start a new project an try to open the toolbox... it hangs for a minute and the status bar indicates that some 3rd party controls are loading, how can or where can I stop these controls from loading?
----SUPER EDIT----
found sorta solution =3
its here:
link text
Below works on Python 2.6 but on Python 3.x it doesn't:
old_file_write = file.write
class file():
def write(self, d):
if isinstance(d, types.bytes):
self.buffer.write(d)
else:
old_file_write(d)
# ... do something like f = open("x") f.write("...")
The problems is that with Python 3.x the first like will generate an error:
NameError: name 'file' is not defined
How can I make this work on Python 3.x?
PS. In fact I'm looking for a solution that will work on both versions.
I feel like there should be a simple way to do this but I can't figure it out. I have a JFileChooser that allows the user to select directories. I want to show all the files in the directories to give the user some context, but only directories should be accepted as selections (maybe the Open button would be disabled when a file is selected). Is there an easy way of doing this?
I have a windows service which is trying to access an xml file from the Application directory.
Windows Service Installed directory : C:\Services\MyService\MyService.exe
Path of the xml file : C:\Services\MyService\MyService.xml
I am trying to access the file using the following code.
using (FileStream stream = new FileStream("MyService.xml", FileMode.Open, FileAccess.Read))
{
//Read file
}
I get the following error.
"Can not find file : C:\WINDOWS\system\MyService.xml"
My service is running with local system account and I don't want to use absolute path.
I'm looking for a much more idiomatic way to do the following little ruby script.
File.open("channels.xml").each do |line|
if line.match('(mms:\/\/{1}[a-zA-Z\.\d\/\w-]+)')
puts line.match('(mms:\/\/{1}[a-zA-Z\.\d\/\w-]+)')
end
end
Thanks in advance for any suggestions.
So I havea file.png . I am using windows OS. How can I embed .phg file(image) into (blank by default) file.html file so that when you open that file in any browser you see that image but file is not anyhow linked to it - it is ebbeded into it.
Can any one please give me instructions?
i want to deploy our official asp.net web application (Enterprise Resource Plan ) which mostly contain critical data. currently we have deployed it on internal machine on intranet now we want to open it for public i.e on web
what would be the best deploying strategy so that application remain fast,data secure and prevent unauthorized access.
we have also a public ip and also have a server machine.