Possibly a horribly stupid question: will the pywin32 extensions work on Windows 7? If not, does anyone know of plans for windows 7 extensions for python?
Quick question, when you are implementing a UITabBarController and you are adding image icons to the tabs is there a way to override the blue active masking color, can you specify your own gradient or a custom image for the background grad?
cheers Gary
This is a simple question:
Is this a correct way to get an integer part from a float division?
int result = myFloat / anInteger;
this is working, but I am not sure if it is the best way.
thanks for any help.
Exact Duplicate
Timespan formatting
First question here:
I have two DateTime vars, beginTime and endTime. I have gotten the difference of them by doing the following:
TimeSpan dateDifference = endTime.Subtract(beginTime);
How can I now return a string of this in hh hrs, mm mins, ss secs format using C#.
If the difference was 00:06:32.4458750
It should return this 00 hrs, 06 mins, 32 secs
Thanks for the help
Is storing secret keys (internal use passwords and such) on iPhone source code and project resources (such as plist files) secure?
Obviously nothing is 100% secure, but can this information be extracted easily from an installed app?
How do you recommend storing these keys to use them in the source code?
Just in case, this question is not about storing user passwords.
This is really just a "best practices" question...
I find that When developing an app, I often end up with a lot of views.
Is it common practice to break these views up into several view files? In other words... instead of just having views.py, is it common to have views_1.py, views_2.py, views_3.py (but named more appropriately, perhaps by category)?
I need to render pdf file to a webbrowser control like how ie render it. question is, i need to get the content of the pdf file from the webbrowser control. how can i do it? help please.
Jepe
This is quick confirmation question:
In order to make partial classes work, I initially thought that there would be a main Class public class ManageDates and then you would create partial classes like public partial class ManageDates to extend the ManageDates class.
But from some experiementing, I've come to find out that if you're going to use partial classes, each individual class must be declared public partial class [ClassName] ...
Am I correct in this conclusion?
Quite-probably a silly question, as I don't know much about Java/Jython/JRuby/bytecode, but..
I stumbled across _why's unholy again today.. It allows you to output Python bytecode from Ruby code.. Basically allowing them to produce the same bytecode..
Jython outputs Java bytecode, as does JRuby.. Since these both compile to the same bytecode, does this mean you could potentially use any Python library from Ruby, and Ruby libraries from Python?
I have a website that uses the facebook, twitter, delicious share links. They contain a a url encoded url of the website that you wish to share. The problem is I then want to send the facebook/twitter/delicious url through a php redirect page.
Will it work to encode a url within an encoded url? Will there be side effects?
To simplify my question:
www.website.com/redirect.php?url=" URLENCODED (http://www.facbook.com/sharer.php?t='URLENCODED(title)'&u='URLENCODED(http://www.hotel.com)')
Hi,
I was asked this question today by a colleague, and couldn't find any clue on the Internet...
Can someone tell me if calling Marshall.ReleaseComObject()directly calls the garbage collector ?
As I understand it, it only removes COM references, and then the G.C. cleans memory on its next pass, but I can be mistaken...
Thanks in advance for your help!
Quick yes/no - I'm building an AJAX application and some scripts require authentication. Can I read $_COOKIE['username'] and $_COOKIE['password'] on the server if the PHP script was called via XHR, whether that be $.get() or $.post()?
Side question: Can it also set cookies? Is that considered "good practice"?
here is the deal.
i have several templates for faceboxes (lightbox) i need at different points of the application. these are stored in different partials and files.
i will initialize different javascript functions in accordance to which ones i need. The question is, what is the best way to append the external HTML page into my body using javascript?
I'm getting crashes due to memory overwrites (possibly within STLport) running on Darwin. Totally out of ideas, what to do?
(Added this question so no-one else would run into the same trap without finding a viable answer.)
I don't do much Cocoa programming, so I'm probably missing something obvious, so please excuse the basic question.
I have a SOAP method that expects a complex type as a paramater. Here's some WSDL:
<s:element name="SaveTestResult">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="result" type="tns:TestItemResponse" />
</s:sequence>
</s:complexType>
</s:element>
Here's the definition of the complex type "TestItemResponse":
<s:complexType name="TestItemResponse">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="TestItemRequestId" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="ExternalId" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="ApiId" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="InboxGuid" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="SpamResult" type="tns:SpamResult" />
<s:element minOccurs="0" maxOccurs="1" name="ResultImageSet" type="tns:ResultImageSet" />
<s:element minOccurs="1" maxOccurs="1" name="ExclusiveUseMailAccountId" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="State" type="tns:TestItemResponseState" />
<s:element minOccurs="0" maxOccurs="1" name="ErrorShortDescription" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ErrorFullDescription" type="s:string" />
</s:sequence>
</s:complexType>
I've been using Web Services Core to call a SOAP API method that requires a simple string param, that works great. That same method returns a complex type which WSC converted into nested NSDictionaries, so no problems there. So I assumed I'd be able to convert my local TestItemResponse class into an NSDictionary and then use that as the complex type param. It almost worked, but unfortunately WSC set the object's type as "Dictionary", instead of "TestItemResponse", and the server complained.
<TestItemResponse xsi:type=\"SOAP-ENC:Dictionary\">
<ErrorFullDescription xsi:type=\"xsd:string\">foo</ErrorFullDescription>
...
I can't seem to find anything that allows you to override the type WSC assigns to the element in the SOAP XML. I've been using code adapted from here, I'm happy to list it, it's just quite long and this is already the longest SO question I've ever posted.
My application uses Spring 2.5.6. I have a service that creates explicit threads for some specific task. Triggering of this service call happens through quartz time scheduler.
Question :
While executing service calls, i want to use some sort of thread pooler that can return me thread instances. Is there any implementations that i can use in Spring?
A completely non tech question. Ive read a stackoverflow page comparing a few fictional characters with developers.
VAMPIRES as for Ruby developers - red - blood etc
I was just wondering how about python or Php pipz
Hi guys,
I'm developing a JAX-RS application and it's working fine. Now, I want to develop a web service client application using Rails. And my question is which is the best way to parse a RESTful webservice's response in Rails?
I'm creating an in-app store for a few built-in features for my iphone app. Apple's documention recommends using the Application Preferences for storing this, but another question in this forum suggested using NSUserDefaults for another task for which Application Preferences was recommended (by Apple).
Can someone clarify if, for in-app store purchases, using the NSUserDefaults is a much better way to go?
Thanks.
This question is along the same lines as What are some funny loading statements to keep my users amused, I want screenshots of all the coolest "error" pages site's throw up when something's broken.
I know pandora.com talks about a panda ravaging it's way through the office, twitter's has the little birds floating around or something, sourceforge had one with some funny robots the other day.
I'm sure I saw a blog once that had a bunch of them, but it's kinda hard to google "error pages".
Community Wiki, of course :)
I was looking for something over the web when I came across this question. Have no idea of how to solve it. Help me out please.
Suppose we have an array
a1,a2,... ,an, b1,b2,..., bn
How to change this array to
a1,b1,a2,b2, ..., an,bn in O(n) time and in O(1) space.
Hi,
just a quick question: Could I apply position relative and float left on one element? Does someone use it?
div {
float: left;
position: relative;
top: 0px;
left: 0px;
(...)
}
Thanks!
Hi ppl, Im starting a new project that consist in a game made in Flash, I use PHP for the server counterpart and a MySQL database.
My question is, what do I need to host my game?.. I mean, how good (connection, HD space, procesor, ram, etc) should be my hosting to be able to take care of all the stuff I need...?
And, if you know some good web hosting for this purpose, even better :)
Thx in advance.
I've been looking at implementing the new VerificationController to verify in-App-Purchases:
http://developer.apple.com/library/ios/#releasenotes/StoreKit/IAP_ReceiptValidation/_index.html
And I wonder if there is some example anywhere en how to validate a transaction, since it seems that the - (BOOL)verifyPurchase:(SKPaymentTransaction *)transaction; is not enough and it has to be implemented internally to verify the purchase when the data form the server is received.
Another question is if anyone has a clue on what the KNOWN_TRANSACTIONS_KEY is and how to fill it, is it just the product id of the purchase?