CASE and CONVERT in Q of Q / CF7

Am converting CF5 code to CF7, and from documentation,
understand you can do more things in Query-of-Queries in CF7 than
you could in CF5.
But one QofQ that worked in CF5 won't work in CF7, returns an
error. It uses a variable that on occassion causes a division by
zero. This was never a problem with CF5, but CF7 won't take it. In
a normal query, I would handle by using a CASE statement. So my
question is: CAN YOU USE "CASE" statements in CF7 QofQ's? And what
about CONVERT or CAST? Can you use those as well, in CF7 QofQ's?
Thanks for any help/advice.
Gary

Thanks to you both for confirming what my testing and
doc-reading seemed to confirm. That you can't use CASE or CONVERT
in a CF7 QofQ. I think you're right about CAST but not sure if that
will solve my problem. QofQ in CF5 was "flaky" enough to permit a
division by zero. But I had to "account" for it in my
<CFOUTPUT>, in order to get the report to run and print 0%.
Here's my situation. Current CF5 (and CF7) in main query, I'm
calculating the values of a number of variables, let's say one of
them is A, the other B. In the old CF5 QofQ, I could do an "A
divided by B" as C, where C was my Percent Complete. And if B was
ever ZERO, the CF5 QofQ would still run. For some reason, QofQ in
CF5 was "flaky" enough to permit this.
But in my <CFOUTPUT>, I would have to check the value
of B. If it was equal to zero, then I'd set C = to "0%" or "N/A",
and output the results, which printed fine on the report. If B was
not = to ZERO, then I'd re-calculate the percentage, and set C = A
divided by B, and output "C%" in the report.
But with CF7, the template throws an error in the QofQ, when
it encounters an instance where B = 0. The error message is:
"Query Of Queries runtime error. java.lang.Double ->
BigDecimal "
I can resolve by adding a HAVING statement to first query,
only accepting records where B > 0. Problem with that, is I lose
the display of the record that I would like to have shown, but
showing 0%, versus not bein there at all. I did read in the docs,
before posting message, that CAST can be used in CF7 QofQ, but not
sure if that will resolve the problem.
I'll figure something out, but the main reason for posting
the initial question was to verify from others, that CASE and
CONVERT can NOT be used in CF7's QofQ's. The docs simply didn't
mention one way or the other regarding these 2 query functions.
If you or anyone else has any other suggestions, I would be
most grateful. Otherwise, as mentioned, will hopefully be able to
figure something out. Thanks again,
Gary

Similar Messages

  • Don't change 1st slide of a show created in iPhoto '08 and converted to '09

    I discovered that a slideshow that was created in iPhoto '08 and then converted to '09 (i.e., the whole library file was converted) can cause iPhoto to freeze if you change the 1st photo in the show, e.g., by moving another photo into the 1st position (iPhoto doesn't crash -- it just fails to respond to all mouse interactions, and you can't even kill iPhoto via Apple-CMD-Q).
    So -- warning if you have '08 slide shows converted to '09 -- don't try this!!!
    I have submitted a bug report to Apple's iPhoto support, but my guess is that the bug is due to such a weird combination of circumstances that they won't place high priority on fixing it. In case you're interested in further details, here's the description I wrote in my bug report:
    ========
    I recently bought a new iMac with Leopard and iLife '09. I copied several iPhoto '08 (version 7.1.5 -- I believe that's the latest version available for OS X 10.4) library files from an old PowerBook G4 running OS X 10.4.11. When I opened them in iPhoto '09 iPhoto asked me to convert them to the new version and I did so. I can view, edit, run slideshows, etc. of all my updated iPhoto '08 library files fine in iPhoto '09 -- except for one very annoying bug!
    When working in iPhoto '09 with a slideshow that was created in iPhoto '08 and converted to '09:
    When I move a slide in the slideshow browser to the 1st position of the slideshow and then either Play the slideshow or try to select other photos in the slideshow browser that causes iPhoto to freeze (not crash, there is no Crash Log file). iPhoto stops responding to mouse clicks, there's no way to unhide the Dock with the mouse, and I can't even kill iPhoto with the Apple-CMD-Q keystroke (to terminate iPhoto I use Apple-CMD-TAB to switch to a Terminal shell, find the process id, and then use the shell's "kill -9 pid" command). When this happens I find that after moving a slide to the 1st position in the browser the 1st position in the browser shows a blank instead of the photo that was moved there. When I click on other photos (other than the 1st one) the image gets refreshed with the wrong photo (the one next to it instead of the correct one). However, I have been able to change the 1st slide by deleting it.
    It seems that this error only occurs when moving or changing the 1st slide. Making changes to the other slides in the slideshow doesn't cause any problems.
    This error also happens when I make a duplicate in iPhoto '09 of a slide show that was originally created in iPhoto '08 and then converted to iPhoto '09 and try to change its 1st slide.
    When working with slideshows created in iPhoto '09 none of these problems never occur.

    I have been having this same problem even with slideshows created in iPhoto '09. I also reported it to Apple Support. I found a work-around in the meantime, and it might work for you as well.
    First of all I discovered the problem when I moved the last thumbnail into the first position. What eventually worked was moving that thumbnail into the second position, and then moving the first thumbnail into the second position. For some reason this did not cause a freeze, and the slideshow played.
    As for iPhoto not responding to mouse clicks, I had the same experience. I placed my cursor on the desktop and clicked on it. This enabled me to access the drop down menu from the Apple icon and then I was able to use the force quit option.
    I hope this information is helpful.

  • Reading files and converting into xml structure

    Hi,
    In my application a client requests for the folder structure information to a server through RMI. The server needs to read files and folders on local machine and convert it into some structure (I am thinking of using xml) and send it back. For eg: I am planning to have Server send back something like:
    <directory name = "parentdirectory">
    <file name = "abc.jpg"/>
    <file name = "def.bmp"/>
    <directory" name = "subdirectory">
    <file name = "hij.jpg"/>
    <file name = "klm.bmp"/>
    </directory>
    </directory>
    It is just the names of the files I am interested in and not the contents. Is this a good approach of sending back the data as a string containg xml definition. Is there any better appproach in terms of performance, memory etc? I am currently planning on using DOM for construction of this structure. Is there a source code for reading and converting the folder structure into xml. Just for your information, the clients gets this information and shows it as a tree structure on the GUI.
    Thanks!!!!

    Is this a good approach of sending back the data as a string containg xml definition. It'll work.
    An alternative, more direct approach is to build a memory representation and send this as argument/return value of an RMI call. You'd need to write classes MyDirectory and MyFile; MyFile has just a name; MyDirectory has a name and a collection of MyDirectory and one of MyFile. Make these classes implement Serializable and you can send them over RMI.
    The effort to write those trivial classes would be less than to implement XML encoding/decoding, and also in terms of runtime performance and memory it will be hard to beat Java's serialization with anything XML-based. In this case I doubt performance/memory are relevant considerations though.
    If for some reason I'd go for sending XML Strings anyway, I wouldn't do the encoding/decoding myself; I'd use XStream to convert Java classes to/from XML and still end up writing the above two classes and be done.
    Sorry if you wanted a simple yes or no :-)

  • TFS Integration Platform Error while Syncing - Caught and converted, The request was aborted: The request was canceled

    Hello,
    We are doing a 2-way version control sync between TFS 2013 servers. 
    TFS A - Project A is getting synched with TFS B - Project A.
    TFS A - Project A has got all the code and files, whereas TFS B - Project A is empty.
    Previously we have synced TFS 2013 projects across servers with out any error or issues. Today we came across an issue (check log at end of post) and hope Microsoft can
    provide some guidance on this. Following is the problem we are facing today:
    We have configured the TFS Integration platform tool for VC - 2 way sync and started the migration. Current
    status is that the discovery, analysis is complete and migration is half way when I started to get such errors
    (check log at end of post) .
    Note that the migration has not stopped...
    After doing some research and googling I understand that the reason for this error is that by default if
    an individual file transfer cannot complete 16MB in 5 minutes, the operation will fail. And the solution to this is to modify
    chunk size in the file of "TfsMigrationShell.exe.config". I have few questions regarding this...
    Question 1:Is
    above understanding and solution correct? I also notice that this error appears for every huge file (approx >30MB), is there any timeout setting at the target server? Is this something to be changed at the Tool level config or the Target IIS level
    config?
    Question 2: Suppose
    I do not change the config setting, then huge files are skipped due to this error. However, after the migration of the other files is finished, then, will the tool retry to sync the skipped (huge) files? Or has it skipped them forever?
    Question 3:
    Suppose I modify
    chunk size in the file of "TfsMigrationShell.exe.config", then, which of the following do I need to do (give me the best solution among the 3 below)
    a) Do I need
    to restart the migration (by deleting and recreating the project on the 2nd TFS Server and re-starting migration)? 
    b) Do
    I need to create a new configuration and restart migration?
    c) Do I need to restart the sync service?
    The concern here is that we have got 3 more jobs (TFS
    Integration tool configurations) running parallelly that
    is syncing Work Items & VC of other TFS projects and want to make sure that restarting the TFS Integration Job Service will not have any negative impact on the other jobs as well as no negative impact on the current migration job...
    Microsoft, Please advice. Thanks!
    Log:
    [1/21/2015 10:55:39 AM] AsyncUploadFileState.Completed -- caught and converted:
    [1/21/2015 10:55:39 AM] Microsoft.TeamFoundation.VersionControl.Client.VersionControlException: C:\TfsIPData\10\ications\MDM Folder\Binaries\v9.5\DMS Web Service Release 1.5.zip: The request was aborted: The request was canceled. ---> System.Net.WebException: The request was aborted: The request was canceled. ---> System.IO.IOException: Cannot close stream until all bytes are written.
    [1/21/2015 10:55:39 AM] at System.Net.ConnectStream.CloseInternal(Boolean internalCall, Boolean aborting)
    [1/21/2015 10:55:39 AM] --- End of inner exception stack trace ---
    [1/21/2015 10:55:39 AM] at System.Net.ConnectStream.CloseInternal(Boolean internalCall, Boolean aborting)
    [1/21/2015 10:55:39 AM] at System.Net.ConnectStream.System.Net.ICloseEx.CloseEx(CloseExState closeState)
    [1/21/2015 10:55:39 AM] at System.Net.ConnectStream.Dispose(Boolean disposing)
    [1/21/2015 10:55:39 AM] at System.IO.Stream.Close()
    [1/21/2015 10:55:39 AM] at System.IO.Stream.Dispose()
    [1/21/2015 10:55:39 AM] at Microsoft.TeamFoundation.VersionControl.Client.FileUploader.UploadChunk(FileStream fileContentStream, Int64 end)
    [1/21/2015 10:55:39 AM] --- End of inner exception stack trace ---
    [1/21/2015 10:55:39 AM] at Microsoft.TeamFoundation.VersionControl.Client.Workspace.EndUploadFile(IAsyncResult asyncResult, PendingChange& pendingChange, Byte[]& uploadedContentBaselineFileGuid, Int64& uncompressedLength)
    [1/21/2015 10:55:39 AM] at Microsoft.TeamFoundation.VersionControl.Client.Workspace.AsyncUploadFileState.Completed(IAsyncResult asyncResult)

    Hi Charles,
    I have been doing in depth research and testing of this and here are my findings:
    Replies to your points:
    1) It failed with UploadChunkSize value change. Tried 1MB, 500KB, even 100KB. Fails with same error! Is there any other setting we can change for the timeouts at the target TFS server also?
    2) The huge files are not skipped. The migration loops on the failed files and doesn't continue to process the next lot of files. So the migration is blocked on the huge files.
    3) OK. Thanks. 
    Please see below the finding on when migration succeeds and when it fails:-
    Scenario 1:
    a) Where Migration fails:
    TFS A is in India and TFS B is in UK. Both TFS are on different domain. Migration tool is installed on same machine as TFS A. There is a firewall that allows the access from TFS A machine to TFS B machine. The migration tool fails to work in this scenario
    when it encounters a file size approx > 8MB. I tried setting the UploadChunkSize value to 100KB. Yet it failed!
    b) Where Migration works:
    However, if the files are approx less than 3MB then the migration works without any errors.
    Scenario 2 where TFS migration tool works:
    TFS A is in India and TFS B is also in India (located closeby). Both TFS are on different domain. Migration tool is installed on same machine as TFS A. There is no firewall in this case. No changes were made to UploadChunkSize value and files with size
    of 10's and 100's of MBs got synced without any issue.
    Questions
    Question 1: Can we conclude now that there is some issue with the firewall or network in case of scenario 1? As mentioned above Scenario 1 works if file size is less then approx 3MB.
    Question 2: Is there any timeout setting on the Target TFS server which can be set so that it waits for the file without timing out?
    Thanks for any help...

  • ITunes no longer recognizes midi files how can I play and convert them?

    iTunes 10.3 recognised midi files, I could "move" them to the iTunes library and select them. then click on "Advanced" and "Convert to AAC" (or to MP3 etc).
    iTunes 10.5 will not recognise midi files.
    I think an older version of GarageBand could also read and convert midi files, but this no longer appears to be the case either in the latest version.
    How can I now convet midi files? Has Apple decided to simply ignore them?

    Thanks to Limnos, I now have some further things to try, but in the meantime I found I had been maligning GarageBand 11. Indeed its built-in Help system doesn't seem to mention Midi files at all, but I found out how to insert them from Apple's on-line support system at http://support.apple.com/kb/PH2009 and it works superbly well - one can even change the instruments on individual channels etc and then save the lot as an AAC (m4a) or mp3 etc file.
    I also loaded up an old version of iTunes, version 10.3, which still recognises Midi files and can convert them to AAC or mp3 but in so doing some volume seems to be lost.
    But the winner so far for me has been Audacity, free software. One needs to add a LAME encoder for mp3 output, I installed Soundflower and routed the playback of the midi file available in the Finder (in fact for the whole machine, while playing the midi file) and declared Soundflower as the input for Audacity. I could then use Audacity's effects menu to increase the volume throughout the track and save it. I then, using the Sound preferences of the machine, switched back to the inbuilt speakers and was able to listen to a higher volume version, playable in iTunes 10.5. More faithful to the original midi file than the GarageBand version.
    See instructions at http://ask.brothersoft.com/tags/convert-midi-to-mp3/ and in particular one of the links http://ask.brothersoft.com/how-to-convert-a-midi-to-a-mp3-using-audacity-26125.h tml
    This is for Windows but for Mac it's very similar/ - still Audacity. BUT the instructions in the last link don't seem to quite work, which is why I had to use Soundflower. I can import the midi file, I can select it, but then the export item on the file menu remains greyed out and unuseable, so I must presumably be missing some plug-in. Also Audacity keeps telling me it can't find various ffmpeg files even though I thought I had installed them correctly. I'm obviously missing something here, but at least I can now get my midi files into aac or mp3 format again at last.
    For Soundflower see http://cycling74.com/soundflower-landing-page/ and http://kineme.net/forum/General/soundflowerforlion
    and there is a useful tutorial by Nowjobless on YouTube at
    http://www.youtube.com/watch?v=r3FGOIW08gA&feature=related
    Good luck to anyone else facing the same problems, it remains to be seen how to "convert" midi files to mp3 in Audacity without recourse to Soundflower.

  • Oracle adf file handling af: inputFile and convert to binary to send in

    Hi ...
    I want to try to do is select a file by a <af: inputFile and convert it to binary without having to upload it to the UCM .... I have some idea of how it would be something like this ....
    <af:form usesUpload="true">
    <af:inputFile label="Upload:"
    valueChangeListener="#{backingBean.fileUploaded}"/>
    <af:commandButton text="Begin"/>
    </af:form>
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.faces.application.FacesMessage;
    import javax.faces.context.FacesContext;
    import javax.faces.event.ActionEvent;
    import javax.faces.event.ValueChangeEvent;
    import javax.xml.namespace.QName;
    import javax.xml.ws.Holder;
    import org.apache.myfaces.trinidad.model.UploadedFile;
    import org.tempuri.*;
    String Binary = new String();
    public void fileUploaded(ValueChangeEvent event) {
    UploadedFile file = (UploadedFile) event.getNewValue();
    if (file != null)
    FacesContext context = FacesContext.getCurrentInstance();
    FacesMessage message = new FacesMessage(
    "Successfully uploaded file " + file.getFilename() +
    " (" + file.getLength() + " bytes)");
    context.addMessage(event.getComponent().getClientId(context), message);
    public void llamarWs(UploadedFile file){
    URL url;
    try {
    Holder<String> holder = new Holder<String>();
    Holder<Boolean> holderResponse = new Holder<Boolean>();
    url = new URL("10.10.20.152:8088/VTDWEntelSAEDWS/DWSAEDService.asmx?wsdl");
    DWSAEDServiceSoap servicePort = new DWSAEDService(url, new QName("http://tempuri.org/","DWSAEDService")).getDWSAEDServiceSoap();
    servicePort.uploadDocument(holder, arg1, arg2, arg3, arg4, arg5, holderResponse);
    String respuest = holder.value;
    } catch (MalformedURLException e) {
      but I can not make it work ...
    Edited by: 892270 on 16-Aug-2012 08:46

    User, please always tell us your jdev version as the solution might depend on it.
    Instead of posting some code, can you please elaborate on the use case? From the code I don'T understand what you try to do. Data (file) uploaded through the af:inputFile is binary. The file may only be a text file, but it might be an image. The inputFile doen not know as it only represents the data stream send from the client.
    In you code I don't see that you actually read the data from the stream, neither do I see any action on the stream. Can you describe what you mean by
    but I can not make it work ...You may read http://tompeez.wordpress.com/2011/11/26/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-1/ for more info about file handling in ADF
    Timo

  • Copying and Converting to DNG

    Using Lightroom 3 beta 2, when importing raw files to both a primary location and a secondary backup location, using "Copy and Convert to DNG". the files are copied to the primary location as DNG, but NOT to the secondary location where they are copied as NEF (Nikon) files.  Shouldn't they be copied as DNG to both locations, or am I missing something?

    Bob,
    I think the idea behind keeping your files as NEFs is that LR is archiving the original. That wouldn't be the case if it were converted to DNG at that point.
    Hal

  • Problem using "CASE" (trying convert from IIF in access)

    I try convert a function IIF from ACCESS, replacing "IIF" for a "CASE", and get me a error in "SELECT line 19", can any1 help me ?
    PROCEDURE  [GetInfo_ASN] 
    @P1 smalldatetime     -- Data de Entrada
    AS
    BEGIN
      SET NOCOUNT ON;
    SELECT 
      dados.dbo.GVAL_PEDIDOS.AVAP_Id AS [Reg SIGA], 
      dados.dbo.GVAL_BEM.AVAB_Codigo AS [Cod Bem], 
      select case when (SUBSTRING([dados.dbo.AVAB_Codigo],5,1)="0")
                  then Right([dados.dbo.AVAB_Codigo],6)
     else (SUBSTRING([dados.dbo.AVAB_Codigo],5,1) & Right([dados.dbo.AVAB_Codigo],6))
             end as [UE/UL],
      dados.dbo.GVAL_PEDIDOS.AVAP_dtEnvio AS [Dt Envio], 
      dados.dbo._FREGUESAS.F_Distrito AS Distrito, 
      dados.dbo._FREGUESAS.F_Concelho AS Concelho
    FROM (dados.dbo.GVAL_PEDIDOS INNER JOIN dados.dbo.GVAL_BEM 
    ON GVAL_PEDIDOS.AVAP_Codigo = GVAL_BEM.AVAB_Codigo) INNER JOIN _FREGUESAS 
    ON GVAL_BEM.AVAB_DCF = _FREGUESAS.F_Codigo
    WHERE (((GVAL_PEDIDOS.AVAP_dtEnvio)>=@P1) 
          AND ((GVAL_PEDIDOS.AVAP_Status)=7) 
          AND ((GVAL_PEDIDOS.AVAP_Origem)='7521'));

    Remove the SELECT in front of your CASE Expression, then it should work =>
    PROCEDURE [GetInfo_ASN]
    @P1 smalldatetime -- Data de Entrada
    AS
    BEGIN
    SET NOCOUNT ON;
    SELECT
    dados.dbo.GVAL_PEDIDOS.AVAP_Id AS [Reg SIGA],
    dados.dbo.GVAL_BEM.AVAB_Codigo AS [Cod Bem],
    case when (SUBSTRING([dados.dbo.AVAB_Codigo],5,1)="0")
    then Right([dados.dbo.AVAB_Codigo],6)
    else (SUBSTRING([dados.dbo.AVAB_Codigo],5,1) & Right([dados.dbo.AVAB_Codigo],6))
    end as [UE/UL],
    dados.dbo.GVAL_PEDIDOS.AVAP_dtEnvio AS [Dt Envio],
    dados.dbo._FREGUESAS.F_Distrito AS Distrito,
    dados.dbo._FREGUESAS.F_Concelho AS Concelho
    FROM (dados.dbo.GVAL_PEDIDOS INNER JOIN dados.dbo.GVAL_BEM
    ON GVAL_PEDIDOS.AVAP_Codigo = GVAL_BEM.AVAB_Codigo) INNER JOIN _FREGUESAS
    ON GVAL_BEM.AVAB_DCF = _FREGUESAS.F_Codigo
    WHERE (((GVAL_PEDIDOS.AVAP_dtEnvio)>=@P1)
    AND ((GVAL_PEDIDOS.AVAP_Status)=7)
    AND ((GVAL_PEDIDOS.AVAP_Origem)='7521'));
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Link needed between Case and activity

    Hi CRM guru`s,
    I need a function module or a table in order to make a link between a case and its activities.
    Can anybody help?
    Thanks,
    Frederik

    Solved it see
    my code sample
    * Get casenr where this activity belongs to                            *
    * >>> Start from activity nr                                           *
    * .......... convert activitynr > activity guid
    CLEAR x_actguid.
    SELECT single GUID FROM CRMD_ORDERADM_H
                        INTO X_ACTGUID
                        WHERE object_id = p_activ.
    IF sy-subrc = 0.
    * .......... convert activity guid > document ID
       CLEAR X_LOIO_ID.
       SELECT single LOIO_ID FROM SCMGRECP01
                             INTO X_LOIO_ID
                             WHERE PHIO_ID = X_ACTGUID.
       IF sy-subrc = 0.
    * .......... convert document ID > Dossiers POID-ID
          CLEAR X_PDIR.
          SELECT single PROP08 FROM SCMGRECL01
                               INTO X_PDIR
                               WHERE LOIO_ID = X_LOIO_ID.
          IF sy-subrc = 0.
    * .......... convert Dossiers POID-ID > Case nr
             CLEAR x_case_guid.
             SELECT single CASE_GUID FROM SCMG_T_CASE
                                     INTO x_case_guid
                                     WHERE RECORD_PDIR = X_PDIR.
             IF sy-subrc = 0.
                CLEAR x_case.
                SELECT single EXT_KEY FROM SCMG_T_CASE_ATTR
                                      INTO x_case
                                      WHERE case_guid = x_case_guid.
                IF sy-subrc <> 0. ENDIF.
             ENDIF.
          ENDIF.
       ENDIF.
    ENDIF.

  • Computer case and RAID controllers

    Reading all the posts on this forum has really got me thinking about a lot of different changes to my machine now! So much information! One change I am definitely going to be doing is changing cases. My current case is a padded with sound deadening foam, and it is super quiet which is awesome, but I am having trouble with heat, especially over long renders etc. I saw Harm suggest a HAF 932 to someone, and I looked it up and I really like the case, but I am also now looking at an Areca RIAD controller to speed up my storage raid, which I have known to be pretty slow on the onboard controller since I installed it.
    My question comes in the form of HDD storage slots. I've seen it suggested to get as many connector RAID controller as you can swing, but I'm wondering how you guys with the huge raids, 12, 16 or 24 drive setups are managing all those drives! The HAF 932 looks like it has 5 or 6 3.5" bays and 5 or 6 5.25" bays.. so at max there is space for 12 drives if converting every 5.25" bay. Are there external racks or something that you can wire in or how are you guys handling this?
    That was way longer than it needed to be, but thanks for looking!

    I used the CM HAF 932 x case and I love it. The 4 supplied fans spin at 700 - 1000 rpm, move lots of air and are very quiet, but I know quiet is in the ear of the beholder.
    BTW...
    5 drives through the side and 2 through the front with 4 available slots for burners, fan control panels, etc.

  • Checking and Converting binary, octal, decimal, and hex

    Hi,
    I have a classroom project which will need to validate that data entered in a text is of a certain type with a keyListener, and then convert that value to the other 3 types.
    I know character.isDigit will handle the decimal case, and that I can then use Integer.otString methods to convert to binary, octal, and hex, but what about the other cases?
    Thanks

    OK, this isn't working. If I've already established
    that the string entered into, for example, the
    integer-only textfield is a valid integer, I should be
    able to simply use integer.parseint(s, 2) to convert
    it into binary, right?Not exactly. You should be able to use Integer.parseInt(s, 2) to return the result of converting it from binary representation. You appear to think that this affects whatever "s" refers to, which is not the case. Note also, that method returns an int which is the decimal value in question.
    When you are thinking of int variables, be careful not to think of them as "decimal" or "binary". They are neither. They are just numbers. "Decimal" and "binary" are text representations of numbers, so those concepts can only be applied to strings.
    Integer.parseInt(s, 2);
    txtBin.setText(s);So here you want to assume that the input is a string that represents a number in decimal, and you want to find the string that represents the number in binary. Like this:// convert string in decimal representation to number
    int dec = Integer.parseInt(s);
    // convert int to binary representation as string:
    String binary = Integer.toBinaryString(dec);
    // write that to the text field
    txtBin.setText(binary);You could use a one-liner to do that, but you'll need the "dec" variable to set the other text boxes.
    Rembering why I hate OO...All of what I said there is true in just about all computer languages, OO or otherwise.
    PC&#178;

  • How to edit a Animated Gif file and convert to SWF

    I am using the creative cloud with fireworks. I chose the free trial with buying in mind if I saw it work properly. I simply want to upload an animated GIF file and then download it as a SWF file. I saw someone on youtube do this and it's not that if I get on the correct page I would not know how to do that but I just cannot find how to get the GIF into the software to edit. It has just simply put them in the creative cloud folder which can open them on IE> How do i make it available to edit and convert to SWF please? Thanks in advance.

    You will likely get better program help in a program forum
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Switched computer cases and now I hang at the MSI splash screen.

    Hey guys. I've never had any problems with building my PC until yesterday on the simplest of tasks.
    I decided to buy a new case and switch everything over but when I did it decided to hang on the MSI motherboard splash screen.
    Specs:
    * MEM 4Gx2|G.SKILL F3-12800CL9D-8GBXL + one more stick.
    * Processor = AMD Phenom II X6 1055T Thuban 2.8GHz Socket AM3 125W Six-Core Desktop Processor HDT55TFBGRBOX
    * Graphics Card = HD 7950
    * Motherboard = MB MSI| 880GM-E41 880G R
    * PSU = CORSAIR CX series CX500 500W ATX12V v2.3 80 PLUS BRONZE Certified Active PFC Power Supply
    * OS = Windows 7 64Bit
    * No overclocking.
    So far I've done the following. 
    * Removed battery/Jumped the bios. 
    * Checked and rechecked each RAM stick. 
    * Removed all connections. 
    * Removed graphics card etc. 
    Any help would be greatly appreciated, Christmas has kind of killed my budget for a new build.
    Thanks!
    These are as far as I can get before everything stops working.

    Really strange.
    Have you made sure that there was will be/was no contact between mobo and case (apart from spots where the contact should be made) ? This could've break the motherboard.
    Check ALL of the power supply cable connections between it and mobo.
    Now something weird which doesn't seen to make any sense... Try to put your motherboard back to the old case.
    That's all my suggestions, apart from that, if you're still able, then get it on a warranty and RMA it.
    Good luck.

  • Is it wise to keep the Nikon camera files "DSC's"  after downloading them and converting to DNG files via Adobe converter for lightroom use. In other words do the DNG files have all the raw data I would ever need in processing or should I save the camera'

    Is it wise to keep the Nikon camera files "DSC's"  after downloading them and converting to DNG files via Adobe converter for lightroom use. In other words do the DNG files have all the raw data I would ever need in processing or should I save the camera's DSC files?

    DNG files do not contain some metadata supplied by the camera, which can be used by the manufacturer's software. Thus, if you don't keep the original Raw photo, you will lose this information.
    If your 1000% sure you're never going to use the manufacturer's software, then this isn't a problem. But who can be sure what software you will be using 10 years from now?

  • Inventory Report-Replacement path for Base UOM to Case and Standrad Cost

    Hi, We have a Scenario as below:
    Question1:
    We have a multiprovider contains 4 infocubes and 2 Master Data objects
    a.Demand
    b.Inventory
    c.Sales Orders
    d.In Transit
    Master Data objects
    a. Material (contains Base UOM to Case as Key Figure Attribute and also Base UOM as an attribute)
    b. Material Location (Contains material as an attribute and also Standard Cost as a Key Figure attribute)
    At the report level two formula variables are defined with replacement path for showing the Base UOM to Case and Standard Cost in columns.
    We have 4 reports on this multiprovider. There is a dialy sales report which gives the following details
    Material, Location, MRP Controller, CalDay, Base UOM, Actual Sales(AS), Dependent Demand(DD), Consumption Qyt(CQ), Base to Case UOM, Standard Cost
    In this report for all the records the Base to UOM and Standard Cost column is coming with values which is nothing but the replacement path on the material master key figure attribute. Though this report is on the multiprovider all the major keyfigures (AS, DD and CQ) are coming from a single cube( this is an observation from myside).
    We have another report which is the Inventory Report with the following details:
    Material, Location, MRP Controllder, Calday, Base UOM,      Unrestricted Inventory(UI), committed Inventory(CI), Back Order Qty(BOQ), In Transit by Sh/Rec(ITS), In Transit Pipeline(ITP), On Order Qty (OOQ), Current Inventory Position (CIP), Quality Inspection Stock(QIS), Block Stock(BS), Base to Case UOM, Standard Cost
    Now in this report for all the records the Base to Case UOM and standrad cost is not showing up. Is there anything which needs to be done in order to get the Base to Case UOM and standard cost for all the records.
    Question2:
    When Non-Cumulative and Cumulative key figures are combined at the multi provider and also at the report level, will there be any problem?
    Regards
    Vijay

    Hi,
    I think you can proceed with virtual characteristics for this.In the code you can truncate the time and you can display on the date:
    Regards
    Prasad

Maybe you are looking for

  • How to Store an XML Data into Table?

    Hi All, My Requirement is "I Have an XML File (or) XML Data as CLOB, now I should decode this XML Data and find the equivalent data for columns in a table and then store that in a relational table", Would be greatful if any one can provide me a feasi

  • Why does black and white photos appear color on my pc?

    When using camera filter, my pc  photostream shows only color. How can this be corrected?

  • Date Problem oracle

    hi i want insert current date in oracle database using prepared Statement or Statement. how i can insert. any one help me.

  • Why my AE CC looks so ugly?

    Hello, I saw a tutorial on Youtube and AE apperance was like that. Mine is so ugly like this. I'm using windows. Is it the reason for that? 

  • WhaTS going on with my hyper editor

    OK, so all of a sudden, when I create a GM set in my hyper editor the tags are wrong, for example where it says Kick 1 the sample I get is like a bongo or something, I've used the hyper edit with this instrument (the Garage band Rock Kit) like a hund