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 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 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
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.
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'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 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?
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})
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?
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.
Note that I'm not looking for something based on TextBox or RichTextBox. What I'm interested in is a text editing control written from scratch using WPF typography features. Open source would be a plus.
I'm using launching firefox from the command line in a script to get snapshots of pages. These pages have basic http authentication. When using:
firefox http://user:[email protected]
Either a dialog appears, or authentication doesn't work at all.
Is there any option to make firefox open the page without showing the dialog?
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!
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?
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.
WARNING [2] include(somepath/templates_c/%%B0^B01^B019F522%%login.htm.php)
[function.include]: failed to open stream: No such file or directory on Line No 1871 in somepath/Smarty.class.php
Error!: An internal error occurred during runtime.
Any body please tell me why this error is occuring..
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 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 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 am trying to use open query to run a stored procedure in a remote database, and insert it into a table in my local database:
-- this works
exec remotesvr.sys.dbo.golden_table 'some', 'parameters'
While the above works out, I try the following:
insert into my_local_table
exec remotesvr.sys.dbo.golden_table 'some', 'parameters'
I get a SQL error to the effect of 'unable to begin a distributed transaction'.
Is there any way around this?, i.e. can I execute take the results of a remote stored procedure and put its contents in a local table?
Hello
While trying to understand how a web server worked, I came accross this:
//myfile.js
function donothing(){};
//myfile.html
javascript:donothing(open('http://www.acme.com/whatever.jpg','','left=100, right=0, top=100, scrollbars=no, status=no, titlebar=no, resizable=no, toolbar=no, menubar=no, width=255, height=255'))
I'm no JavaScript expert, so I don't get how an empty function can be made to work. Does someone know?
Thank you.
Mailto links are not working at all in Chrome (8.0.552.224).
These links are working in IE 7&8, Safari, and Firefox.
In Chrome, we are clicking on mailto links (we have tested this about 25 times now), and things just go into the ether.
In all other browsers, we click on the mailto links, they open up email clients (gmail, outlook, and others), and we can send the email.
But in Chrome, we click the mailto links and nothing happens...
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
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?
Java is not my main programming language so I might be asking the obvious.
But is there a simple file-handling library in Java, like in python?
For example I just want to say:
File f = Open('file.txt', 'w')
for(String line:f){
//do something with the line from file
}
Thanks!