Has anyone got Python to work on the N96???

Has anyone got Python to wok on the N96?
I have downloaded and installed the latest edition 3rd 1.4.4 i think. it goes on the phone without any problems.
However when trying to use app that use python specifically pyPiow at the moment the app goes on the phone but nothing happens when i try to open it!
is it somthing i am doing wrong, where go i install the pictures, or the apps for that matter, can the apps go on the mass memory where they are now or do they have to go on the very small phone memory?!
does current python work at all on the n96
has anyone had any joy?
please help!
cheers

I managed to get it to work, you have to install two files
the first for the actual python script files.
the second for the user interface.
you might have installed the user interface, but without installing python, and that's why its not loading up the application, also make sure you install python to phone memory.
On my N96 I installed:
Python for S60 1.4.4
Python script shell 1.4.4
if you get an 'update error' when installing its because you have not un-installed all of the old python stuff, open app manager on the handset and un-install all python relating files
one last thing, install python and the shell to the phone memory (c drive)
Hope it helps
Tony

Similar Messages

  • Has anyone got NVrotate to work under Win98SE?

    I installed the latest driver for this card for Win98
    NVrotate is not available as an option in Win98SE
    Display properties-->settings -->GeForce FX5200
    I temporarily moved a drive with WinXP Pro onto this machine.
    NVrotate is an available option in
    Display properties-->settings -->GeForce FX5200
    and works fine.
    But for various compatibility reasons this machine has to been running Win98SE.
    Has ANYONE got NVrotate to work under Win98 ??????
    MSI FX5200  TD128
    Gigabyte GA-7VAX
    AMD 2400+
    17" Analog LCD & 18.1" Analog LCD

    I managed to get it to work, you have to install two files
    the first for the actual python script files.
    the second for the user interface.
    you might have installed the user interface, but without installing python, and that's why its not loading up the application, also make sure you install python to phone memory.
    On my N96 I installed:
    Python for S60 1.4.4
    Python script shell 1.4.4
    if you get an 'update error' when installing its because you have not un-installed all of the old python stuff, open app manager on the handset and un-install all python relating files
    one last thing, install python and the shell to the phone memory (c drive)
    Hope it helps
    Tony

  • Has anyone got Safari to work with Kerberos (SPNEGO) ?

    Has anyone got Safari to with using Negotiate (SPNEGO with Kerberos) when the system is not bound to ActiveDirectory or Macs OpenDirectory?
    I can load Firefox and it works fine, but Safari does not work. I keep hearing that Safari works out of the box, but its looks like its somehow tied to AD or Macs Opendirectory and its deployment of Kerberos.

    I am having the same problem and checked out the Apple Discussions for a solution.
    I too am meticulous with my addresses.
    Seeing no solution I went back to testing.
    I have tried:
    From Shrewsbury
    To Telford
    The result was a trip in the US taking 14 hours.
    Then I tried:
    From Shrewsbury UK
    To Telford UK
    This worked.
    When on the "Get Directions" screen there is a "Globe" icon by the "Space" icon. Pressing this brings up "English (US)". Press again and you get "English (UK).
    Any ideas?
    When I use the "Contacts" to get the Start and End fields the iPhone is bringing up the correct address but with "United States" at the end of the address.
    Again any ideas?
    In my Address book I never use the "Country" field as all my contacts are in the UK. I wonder if this is the problem and the iPhone is defaulting to US in the absence of no "Country"?
    Help!

  • Has anyone got AST to work on a Lion Server?

    For the Apple Service Providers we need to run Apple Service Toolkit from a server. Has anyone gottten AST to work on a Lion Server? We have 3 locations and have all tried and have gotten different out comes but none have worked. We have chatted with Apple Service with no help.

    I have it installed on a Lion server machine and the only way I have been able to get the client machines to see it was to plug both the server machine and the client into the same switch. Netbooting across subnets seems almost impossible.
    I am also waiting to hear back from the AST support people because now, when I netboot a client machine to the gateway, it says "There is a problem with the Gateway Manager." When I log into the server and open Gateway Manager, it just sits there forever saying "Looking for gateway controller."
    Currently I'm running AST 1.0.9 and I understand that version 1.1.1 is actually the latest, but I cannot find it ANYWHERE on Apple's site nor in GSX. In fact, since they switched over to the new GSX domain, the ONLY thing I can find related to AST is a small article describing how it works. No downloads, no links, no nothing.
    Any idea where to find the latest version? I can't even find a link to it with a simple Google search. The AST support guy said to search within GSX, which found nothing but the article I mentioned.

  • Certificates and Mail - has anyone got them to work recently?

    Hi,
    I've been using Thawte digital certificates with Mail for almost three years and had no problems. Recently one of my certificates was due to expire, so I revoked it and got another one issued. The certificate is installed in my Keychain and everything looks to be correct - Keychain places a small green tick next to it and says 'This certificate is valid' and it is also ticked in the Address Book.
    However, the option to sign and encrypt messages in Mail's compose window has vanished. I can't find a way of getting it to appear so it looks like Mail can't find the certificate.
    I've quit Mail and reimported the certificate, no change. I've tried a self-certified certificate to see if that works - nothing.
    A look on the forums suggests that a number of other people have had similar problems.
    So has anyone found a workaround? This is quite important as I rely on signed email messages when working on large documents.
    Thanks,
    Mike.
    iMac G5 1.5Gb RAM 250 Gb HD   Mac OS X (10.4.6)  

    This is from Mail Help, that perhaps you have not seen:
    "Signing and encrypting email messages
    If you have a personal certificate on your computer, you can send signed messages (including the body of the message and any attachments) to anyone using Mail. Signed messages let your recipients verify your identity as the sender, and provide assurance that the message has not been tampered with in transit. A Signed icon (a checkmark) in the email header indicates your personal certificate is installed in Keychain Access.
    Encrypted messages (which encrypt both the body of the message and any attachments) offer a higher level of security than just signed messages. You can only send encrypted messages when you have certificates stored on your computer for both you and all recipients of your message. The easiest way to get someone's certificate is to have them send you a signed email message. When you view a signed message, Mail automatically imports the person's certificate (or "public key") and stores it in your keychain. You'll know you have the recipient's personal certificate installed in Keychain Access if an Encrypt (closed lock) icon appears next to the Signed icon after you address a new mail message to that person.
    To SIGN and ENCRYPT an email message:
    Choose File > New Message. In the Account pop-up menu, choose the account for which you have a personal certificate installed in your keychain. A Signed (checkmark) icon on the upper-right side above the message text indicates the message will be signed when you send it. To send the message unsigned, click the Signed icon to deselect it. An unsigned ("x") icon replaces the checkmark.
    Address the email. An Encrypt (closed lock) icon appears next to the Signed icon if you have a personal certificate for the recipient in your keychain and indicates the message will be encrypted when you send it. To send the message unencrypted, click the Encrypt icon to deselect it. An open lock icon replaces the closed lock icon.
    For security, encrypted messages are saved in your Sent mailbox in an encrypted format.
    If you don't have a certificate for all the recipients, a dialog appears that allows you to either cancel the delivery of the message or send the message unencrypted.
    If your recipients are using Mail, security headers marked Signed and Encrypted are visible in the messages they receive. If they are using an application that doesn't use signed and encrypted messages, the certificate might be in the form of an attachment. If your recipients save the attachment as a file, they can add your certificate to their keychain.
    Since many mailing lists reject signed messages (because the signature is an attachment), deselect the Signed icon before sending a message to a mailing list.
    See also
    encryption
    security
    digital signature
    Open this for me
    Apple Service & Support article: How to Use a Secure Email Signing Certificate (Digital ID)"
    Hope this answers your problem.
    iMac 1.9 GHz PowerPC G5 1.5 GB DDR2 SDRAM   Mac OS X (10.4.6)   Slot Loading 8X Dual Layer SuperDrive, iSight & Apple Remote; iPod Video

  • RegisterAlarm - has anyone got this to work?

    I'm trying to get the registerAlarm function to work on a real phone, but it only works one time. I want the Midlet to be executed once every 30 sec, but after the first reschedule it stops rescheduling.
    Does anyone have a clue on what's wrong? I do everything according to the book as far as I know.
    I've looked everywhere, and have not been able to find anyone that actually has got this to work. Is it a bug in Midp 2.0? Does registerAlarm work more than once?
    Below is some of my code that SHOULD work (<My midlet...> is replaced with the full name of my midlet class)
    protected void startApp() throws MIDletStateChangeException {
    try {
    //some code...
    destroyApp(false);
    } catch (Exception e) {}
    protected void destroyApp(boolean unconditional) throws MIDletStateChangeException {
    try {
    scheduleAlarm(30000);
    notifyDestroyed();
    } catch (Exception e) {}
    protected void scheduleAlarm(long nextAlarmTime) throws ClassNotFoundException,ConnectionNotFoundException, SecurityException {
    long nextAlarm = new Date().getTime()+nextAlarmTime;
    try {
    long t = PushRegistry.registerAlarm("<My midlet...>", nextAlarm);
    } catch (Exception e) {}
    }

    ...even starting the Midlet manually to force a rescheduled task won't work, but what is strange, is that if I turn the phone completely off and back on again, I can get it to work one more time.
    I'm confused.

  • E4200 + Vigor 120 ADSL Modem. Has anyone got this to work?

    Hi. I am in the UK. I am using the Vigor 120 in its out of the box configuration which passes a PPPoA connection through as a PPPoE giving the router complete control. It works perfectly with my old DLink DIR 635 cable router.
    The E4200 cannot get an IP address from my ISP. I have tried many hard resets.
    Has anyone actually got these two working together with an ISP that uses PPPoA as it's native standard. If so could you let me know the modem and router settings you used.
    Many thanks.

    Hi, I'm Not in the UK but have the Draytek vigor120 and LinksysE4200 set up,
    Don't quote me on this but I am pretty sure the UK and the New Zealand(where I am) have the same firmware.
    What I did was plug the draytek into the wall jack then I plugged the ethernet cable into my computer for a time,
    When plugged in launch your browser, navigate to 192.168.1.1(default unless you've changed it) then there should be a page there called Internet options with a PPPoa option, make sure it is configured PPPoA, enter your logon info(optional, doesn't make a difference uless you plan to use the draytek by itself sometimes) then select passthrough on WAN link(or something similar) which is located down the bottom of that page (will grey out pretty much all options, then save it.
    Unplug the ethernet from the computer and plug it into the E4200(still connected to the WAN port of the draytek) then plug a ethernet cable(second one) from a computer into port 1. navigate to 192.168.1.1(default for linksys) and select PPPoE out of the options at the top of the page, then fill in your ISP details such as the username and password, click save and then test it(should work-did for me at least)
    dont forget to change the wireless security to manual as the defualt is not very secure, think about a MAC address filter if you dont have a huge number of electronics connecting to it.

  • [Solved] KDE 4.4 Knetworkmanager, has anyone got this to work yet?

    Been trying to get knetworkmanager working on KDE 4.4 and haven't got it to work yet.  Well initially it did work.  Here's the steps I did.
    1) Had network running '/etc/rc.d/network start
    2) Installed 'kdeplasma-applets-networkmanagement'
    3) Commented out interfaces in '/etc/rc.conf' and defined dhcp:
    eth1="dhcp"
    INTERFACES=(!eth0 !eth1 !wlan0)
    4) Set hostname in '/etc/NetworkManager/nm-system-settings.conf':
    [main]
    plugins = keyfile
    [keyfile]
    hostname = pavilion
    5) Added 'networkmanager' to daemon array in '/etc/rc.conf'
    DAEMONS=(syslog-ng crond alsa hal kdm dnsmasq networkmanager cups netfs)
    6) Added 'network' group to user:
    gpasswd -a gen2ly network
    7) Stopped network '/etc/rc.d/network stop'
    8) Brought down interfaces 'ifconfig eth0 down && ifconfig eth1 down && ifconfig wlan0 down'
    9) Started networkmanager
    /etc/rc.d/networkmanager start
    10) Started networkmanager applet (seems to me it was already started but I guess not??)
    11) Got connected to network.
    After reboot however, the networkmanager applet is telling me 'Unmanaged' when I rollover it, and when I click it it says 'Network Management disabled'.  I've tried a couple things (like un-commenting the network devices on the interfaces line and restarting) to no effect.  Doesn't seem I'm able to get it up again.  Anyone else had luck with this?  Did I miss something?
    Last edited by Gen2ly (2010-02-23 22:51:57)

    Ah, anti-destin that is exactly what was needed to be done.  ... Thank you!  Threw be off a bit, it did .
    Off-topic somewhere here now, Ok, a good deal off-topic.. looking at the wiki page for configuring I think the wiki under section, 'Disable interfaces' is erroneous.  Does NetworkManager really parse rc.conf?  I can't think of any reason it would need to.  I'm thinking that NetworkManager would naturally scan and then do dhcp on wired, followed by wireless.  And for those that do a static ip, they can configure the applet.  To test, I put this in my rc.conf:
    #eth0="dhcp"
    #eth1="dhcp"
    #wlan0="dhcp"
    INTERFACES=(!eth0 !eth1 !wlan0)
    And it worked fine.  I'm thinking I could erase them and not have a problem.
    [wiki]Networkmanager#Disable_interfaces[/wiki]
    Last edited by Gen2ly (2010-02-23 06:03:45)

  • Has Anyone got HttpDownloadBean to work?

    Hi,
    using JDev 9.0.2.822 (part of 9iDS install) I have created a workspace and project. I run the filedownloadmain.jsp file, it runs OK within the IDE and I can see the contents of my "download_dir" directory but when I attempt to initiate the download it fails as it doesn't find the page specified by the built-up URL. The generated URL http://myhost:8988/servlet/download/download_dir/afile.txt which brings up a Page Not Found error in Internet Explorer. This suggests that my mapping in web.xml may be incorrect or my servletpath and userdir variables are incorrectly set in my processdownload.jsp file.
    Q:Has anyone managed to get this going?
    If so, can you please review my code snippets below and advise where I have gone wrong.
    All and any help appreciated ....
    Details of My Java Files and Environment
    I have created fileaccess.properties in my
    C:\ora9iDS\jdev\mywork\ABC\DownloadBean\public_html\WEB-INF direcotry - which contains the following line;
    fileaccess.basedir=c:\\mydir
    I have created a directory c:\mydir and have the following subdirectories
    c:\mydir\upload
    c:\myload\download_dir - which contains afile.txt
    Within my java project I have the following files;
    web.xml - which contains the servlet mapping
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <description>Empty web.xml file for Web Application</description>
    <servlet-mapping>
    <servlet-name>oracle.jsp.webutil.fileaccess.DownloadServlet.class</servlet-name>
    <url-pattern>/servlet/download/</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    </web-app>
    filedownloadmain.jsp - which seems to work fine and contains;
    <%@ page contentType="text/html;charset=windows-1252"%>
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
    <TITLE> File Download Utility Home </TITLE>
    </HEAD>
    <BODY>
    <H1 align="center"> File Download Utility Home </H1>
    <P align="center">
    <FORM align="center" action="processdownload.jsp" method=POST>
    <P align="center">
    <TABLE border="1" >
    <TR>
    <TD ALIGN="RIGHT">Please click on the appropriate type to download</TD>
    <TD ALIGN="LEFT">
    <INPUT TYPE="RADIO" NAME="FILETYPE" VALUE="REPORTS" CHECKED>REPORTS
    <INPUT TYPE="RADIO" NAME="FILETYPE" VALUE="LOG">LOG FILES
    </TD>
    </TR>
    </TABLE>
    </P>
    <P align="center">
    <INPUT TYPE="SUBMIT" NAME="Submit" VALUE="Choose File">
    <INPUT TYPE="RESET" NAME="Reset" VALUE="Clear">
    </P>
    <P align="center">Log me out !</P>
    </FORM>
    </P>
    </BODY>
    </HTML>
    processdownload.jsp - which contains
    <%@ page language="java" import="javax.servlet.*, javax.servlet.http.*,java.util.*, oracle.jsp.webutil.fileaccess.*"%>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <body>
    <%
    String servletPath = "/servlet/download/"; // path to the download servlet
    String userDir = "/download_dir"; // user part of download directory
    %>
    <jsp:useBean id="dbean" class="oracle.jsp.webutil.fileaccess.HttpDownloadBean" >
    <jsp:setProperty name="dbean" property="source" value='<%=userDir %>' />
    </jsp:useBean>
    <%
    dbean.setBaseDir(application, request);
    dbean.listFiles(request);
    %>
    The following files were found:
    <%
    Enumeration fileNames = dbean.getFileNames();
    while (fileNames.hasMoreElements()) {
    String name = (String)fileNames.nextElement();
    %>
    <br><a href="<%= servletPath + name %> "><%= name %></a>
    <% } %>
    <br>Done!
    </body>
    </html>
    exit.jsp - which contains the following
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
    <TITLE>Exit File Download Utility</TITLE>
    </HEAD>
    <BODY>
    <H2>
    Thank you for using File Download Utility </H2>
    <H4>The time now is :</H4>
    <P><% out.println((new java.util.Date()).toString()); %></P>
    </BODY>
    </HTML>

    In order to get this running from within Jdeveloper try the following:
    1- modify your web.xml file that resides in your Project/public_html//Web-inf directory
    remove the
    <servlet-mapping>
    <servlet-name>oracle.jsp.webutil.fileaccess.DownloadServlet.class</servlet-name>
    <url-pattern>/servlet/download/</url-pattern>
    </servlet-mapping>
    and add the following instead:
    <servlet>
    <servlet-name>download</servlet-name>
    <servlet-class>oracle.jsp.webutil.fileaccess.DownloadServlet</servlet-class>
    </servlet>
    2-ensure you have ojsputil.jar and ojsp.jar under your Project/public_html//Web-inf/lib directoy
    you can copy them from your oc4j home/lib directory.
    3- double check your download directory and make sure that it resides under c:\mydir
    from your code above it looks like your download_dir is under c:\myload not c:\mydir
    Also your fileaccess.basedir=c:\\mydir note the double \\
    4- in this line of code
    String servletPath = "/servlet/download/"; // path to the download servlet
    remove the leading forward slash in the servletpath so that you end up with:
    String servletPath = "servlet/download/"; // path to the download servlet
    I have this working with the following code, using the httpdownload tag
    <%@ taglib uri="fileaccess.tld" prefix="fileaccess" %>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
    <TITLE>
    test download
    </TITLE>
    </HEAD>
    <BODY>
    <fileaccess:httpDownload source="/temp" servletPath="servlet/download/"></fileaccess:httpDownload>
    </BODY>
    </HTML>
    The URL that you should get when you click on the link that for your file should include the web context root
    for your project.

  • Has anyone got Fonelink to work on their mac?

    I've downloaded the trial version of fonelink to my mac (OS X 10.4 tiger) from here;http://www.novamedia.de/download/e_demo_fl_mac.htm​l
    All I want to do is to be able to syncronise my ical on my mac with my calender on my nokia 6300 and also upload music from itunes. The demo version doesn't let me synchronise my calendar so I've given up. Has anyone done either sussessfully?
    Thanks!

    Rebooted OSX and FF4b worked.

  • Has anyone got firewire port working on Audigy-Live under winxp

    can anyone advise if they have got the firewire port working on the Audigy Li've (SB0090) under windows xp sp2
    my DV Camera is detected, I can control the device, but I can't pull in video from it.
    I have tried both the external port and the expansion port on it
    thanks

    nope tried windows movie maker and nerovision
    both can control the dv camera (Samsung)
    it is detected by windows and gets installed
    when try to capture nothing on screen in preview and nothing recorded just keep getting error about it.
    tried running the dvconnect but that ain't don't anything either
    i know the camera works as my wife uses it on her pc but she don't have the audigy card (using built in)
    I've tried it the back slot and using the add-on connector and both the same
    checked the info on the card and it says Audigy SB394 - SB0090

  • Has anyone got Maps to work with directions in the UK?

    If I enter US addresses, it works, but I can not get the routing function to work at all for anywhere in the UK, even used Yo Sushi as seen on the posters and I can find it but the directions function did not work, even from the next street.
    Anyone had any success with directions on maps in the UK? And if so, can you give me the example that worked.

    I am having the same problem and checked out the Apple Discussions for a solution.
    I too am meticulous with my addresses.
    Seeing no solution I went back to testing.
    I have tried:
    From Shrewsbury
    To Telford
    The result was a trip in the US taking 14 hours.
    Then I tried:
    From Shrewsbury UK
    To Telford UK
    This worked.
    When on the "Get Directions" screen there is a "Globe" icon by the "Space" icon. Pressing this brings up "English (US)". Press again and you get "English (UK).
    Any ideas?
    When I use the "Contacts" to get the Start and End fields the iPhone is bringing up the correct address but with "United States" at the end of the address.
    Again any ideas?
    In my Address book I never use the "Country" field as all my contacts are in the UK. I wonder if this is the problem and the iPhone is defaulting to US in the absence of no "Country"?
    Help!

  • CF9 and Amazon S3 - Has anyone got this to work?

    I've now sorted my other issues and thanks to everyone who helped me with them - I've now moved on to trying to create a set of services that will connect to the S3 cloud and post and retrieve pdf files in our buckets - We need to be able to supply vast amounts of files to client and the cost of that currently is exorbitant in server disk space compared to with using the cloud
    I've searched all over the net and picked up a number of ways of doing this - None of which seem to be able to generate the correct signature- I'm currently using the cf_hmac stuff from Adobe
    This is my code
    <cfobject component="AmazonWebServices.amazons3" name="amazonS3">
    <cfset s3ServiceKeys = structNew()/>
    <cfset s3ServiceKeys.accessKey = "<MyKey>"/>
    <cfset s3ServiceKeys.secret = "<MySecretKey>"/>
    <cfset s3ServiceKeys.bucket = "<MyBucketName>"/>
    <cfset s3serviceKeys.pdfContentType = "application/pdf"/>
    <cfset s3serviceKeys.gifContentType = "image/gif"/>
    <cfset s3serviceKeys.jpegContentType = "image/jpeg"/>
    <cfset s3serviceKeys.requestType = "cname"/>
    <cfset deliverDir = "<MyDeliverDir>"/>
    <cfset s3Service = amazonS3.init(awsKey="#s3ServiceKeys.accessKey#",awsSecret="#s3ServiceKeys.secret#")/>
    <cfdirectory action="list" directory="#deliverDir#" name="TheFileList" sort="dateLastModified" recurse="no" type="file">
    <cfoutput query="TheFileList">
    <cfset result = s3Service.putFileOnS3(localFilePath="#deliverDir#\#TheFileList.name#",
                                          contentType="#s3serviceKeys.pdfContentType#",
                                          requestType="#s3serviceKeys.requestType#",
                                          bucket="#s3serviceKeys.bucket#",
                                          objectKey="#TheFileList.name#")/>
    <cfdump var="#result#"/>
    </cfoutput>
    This is the AmazonS3Service - more or less a direct copy from here http://www.barneyb.com/barneyblog/projects/amazon-s3-cfc/
    <cffunction name="init" access="public" output="false" returntype="amazons3">
             <cfargument name="awsKey" type="string" required="true" />
             <cfargument name="awsSecret" type="string" required="true" />
             <cfargument name="localCacheDir" type="string" required="false"
                 hint="If omitted, no local caching is done.  If provided, this directory is used for local caching of S3 assets.  Note that if local caching is enabled, this CFC assumes it is the only entity managing the S3 storage and therefore that S3 never needs to be checked for updates (other than those made though this CFC).  If you update S3 via other means, you cannot safely use the local cache." />
             <cfset variables.awsKey = awsKey />
             <cfset variables.awsSecret = awsSecret />
             <cfset variables.useLocalCache = structKeyExists(arguments, "localCacheDir") />
             <cfif useLocalCache>
                 <cfset variables.localCacheDir = localCacheDir />
                 <cfif NOT directoryExists(localCacheDir)>
                     <cfdirectory action="create"
                         directory="#localCacheDir#" />
                 </cfif>
             </cfif>
             <cfreturn this />
         </cffunction>
    <cffunction name="putFileOnS3" access="public" output="false" returntype="struct"
                hint="I put a file on S3, and return the HTTP response from the PUT">
            <cfargument name="localFilePath" type="string" required="true" />
            <cfargument name="contentType" type="string" required="true"  />
            <cfargument name="bucket" type="string" required="true" />
            <cfargument name="objectKey" type="string" required="true" />
            <cfset var gmtNow = dateAdd("s", getTimeZoneInfo().utcTotalOffset, now()) />
            <cfset var dateValue = dateFormat(gmtNow, "ddd, dd mmm yyyy") & " " & timeFormat(gmtNow, "HH:mm:ss") & " GMT" />
            <cfset var signature = getRequestSignature(
                "PUT",
                bucket,
                objectKey,
                dateValue,
                contentType
            ) />
            <cfset var content = "" />
            <cfset var result = "" />
            <cffile action="readbinary"
                file="#localFilePath#"
                variable="content" />
            <cfhttp url="http://s3.amazonaws.com/#bucket#/#objectKey#"
                method="PUT"
                result="result">
                <cfhttpparam type="header" name="Date" value="#dateValue#" />
                <cfhttpparam type="header" name="Authorization" value="AWS #variables.awsKey#:#signature#" />
                <cfhttpparam type="header" name="Content-Type" value="#contentType#" />
                <cfhttpparam type="header" name="x-amz-acl" value="public-read">
                <cfhttpparam type="body" value="#content#" />
            </cfhttp>
            <cfset deleteCacheFor(bucket, objectKey) />
            <cfreturn result />
        </cffunction>
    <cffunction name="getRequestSignature" access="private" output="false" returntype="string">
            <cfargument name="verb" type="string" required="true" />
            <cfargument name="bucket" type="string" required="true" />
            <cfargument name="objectKey" type="string" required="true" />
            <cfargument name="dateOrExpiration" type="string" required="true" />
            <cfargument name="contentType" type="string" default="" />       
            <cfset stringToSign = "#trim(ucase(verb))#\n#contentType#\n#dateOrExpiration#\n/#bucket#/#objectKey#"/>
                <!--- Replace "\n" with "chr(10) to get a correct digest --->
                <cfset fixedData = replace(stringToSign,"\n","#chr(10)#","all")>
                <!--- Calculate the hash of the information --->
                <cf_hmac hash_function="sha1" data="#fixedData#" key="#variables.awsSecret#">
                <!--- fix the returned data to be a proper signature --->
                <cfset signature = ToBase64(binaryDecode(digest,"hex"))>
            <cfreturn signature>
        </cffunction>
    I don't appear to have any problems with what is being passed in - just the signature that is being created - All the code I've found is for earlier than CF9 and I'm therefore wondering if something has changed - although its more likely that I'm doing something I shouldn't be
    I need to be able to get stuff up there programatically before I start creating URL's so - this is a big first step to overcome

    I've actually found a work around for this problem - I took the Amazon S3 Library for Rest in Java http://developer.amazonwebservices.com/connect/entry.jspa?externalID=132&categoryID=47 and compiled the files below com into a jar - Which was dropped into the coldfusion server/lib
    I then used the examples to build the following coldfusion function
    <cffunction name="putFileOnS3" access="public" returntype="any">
            <cfargument name="localFilePath" type="string" required="true" />
            <cfargument name="contentType" type="string" required="true"  />
            <cfargument name="bucket" type="string" required="true" />
            <cfargument name="objectKey" type="string" required="true" />  
            <cffile action="read"
                file="#localFilePath#"
                variable="content" />  
            <cfscript>
                s3conn = CreateObject("java", "com.amazon.s3.AWSAuthConnection");
                s3conn.init("#variables.awsKey#","#variables.awsSecret#");
                s3object = CreateObject("java", "com.amazon.s3.S3Object");
                s3object.init(content.GetBytes());
                headers = createObject("java","java.util.TreeMap");
                contentTypeArray[1] = "#contentType#";
                headers.put("Content-Type",contentTypeArray);
                response = s3conn.put(bucket, objectKey, s3object, headers).connection.getResponseMessage();
                return response;
            </cfscript>  
        </cffunction>
    Which works perfectly - At last - I've just got to build the rest of the suite now so that we can upload, delete, create URLs etc
    Very relieved I found a work around and part of me is very pleased that good old Java provided the solution having spent 9 years as a Java programmer before starting work in Coldfusion

  • Has anyone got Aperture 3 working as it should?

    I know it's very easy to become a vocal majority but everyone here seems to have some sort of problem with Aperture 3 whether it's related to the software or the operating system, so I was wondering if anyone actually has this working perfectly with no disruptions? Then perhaps we can compare set-ups to see what is going wrong.
    Then Apple might sit up and take note!!

    I have had no problems for the past 3 weeks other than I think the retouching features still need to be faster......... until yesterday when I was editing and exporting a volunteer job. There were only 33 files to edit and export. I had to do a restart and repair permissions before the images would take the edit (only white balance and density), but it finally applied. When I went to export versions, it says "Exporting" but never did export. Nothing appeared in the file. Had to Force Quit to exit the function.
    Curiously, Aperture has been "Updating Library" all this time without ever completing the task. It indicates processing app 2600 files, so I don't know what is taking it so long.
    I did turn on Face Recognition yesterday morning but turned it back off after the problems- don't know if that has anything to do with it.
    I am currently trying to see if it will export "1" file from another project, but no good still.
    Will let you know if there it fixes.
    BTW. I also have my main library and images stored on an external hard drive. Has worked well for me for the past 8 months. Saves me dumping images off my drive every other week.
    Cheers, Howard
    Message was edited by: Howard Prendergast

  • Has Anyone Got Audacity To Work?

    I just installed the updated Audacity package and I keep getting a "Can't Access Audio Layer" message at program startup.
    Anyone have a suggestion on how to fix this?
    Lee

    Hello,
    This is Dave.
    In a previous post, it was mentioned that we had modified out .xinitrc files to use twm as window manager, and then performed a reboot (from bad old habits).
    Under twm, audacity still refuses to access the sound card...
    Although on my system, under KDE and aRts (set to sleep after 5 seconds), a recompile using the v19 switch, it works perfectly. I walked Lee (over the phone) through the same procedure on his system.... and he's still stuck.
    I also agree and suspect we're having an issue specific to Lee's particular sound driver as well................
    And yes, I've had Lee pacman in the alsa-utils and alsa-oss packages into his system.
    I think as long as Audacity isn't updated to use the newer "standard", which is ALSA, we may be fighting a driver issue, and a loosing battle. Lets switch the direction of this series of posts.
    I mean, I've been building a lot of kernels for a long time now, and the kernel configs warn that OSS is depreciated.
    Instead of fighting this issue (which may be deeper than we all really want to go), lets focus on making a recomendation of a replacement app with the functionality of Audacity for Lee....
    Lee, do you agree?
    Dave................

Maybe you are looking for