Any good way to combine 32 boolean bits to a number?

I have 32 boolean inputs, and want to combine these 32 boolean to an unsigned number. Is there any good way other than "joint number" or "logic shift & logic and"?
input:
32 boolean: boolean 0, boolean 1, ,,, boolean 31
output:
32-bit unsigned number: boolean 0 is bit 0, boolean 1 is bit 1,,,,, boolean 31 is bit 31.
Thanks.

Darin.K wrote:
Ben is nudging you towards a mention in the Rube Goldberg thread, which I enjoy as much as the next guy.  Ravens had it right though, you just need a small tweak to get the Boolean Array from the DBL array.  Assuming any non-zero value is TRUE, you can simply do this:
Bonus version for the FP math junkies.
Telling someone there IS a bucket of Truth is not the same a pushing (or nudging) them in.
The questions started to go down the path of ".... this is how I would have done it in C ...." so I was making sure they know where to find the functions in LV.
Take care,
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • Any good way to store pdf files in oracle 10g?

    have, i have many pdf files, i want to store in database. Any good way to do that in 10g? Or, I have to go to 11?
    thanks,
    t.k.

    mbobak wrote:
    Justin Cave wrote:
    user10217806 wrote:
    Can I store pdf in blob, and still search words in the pdfs?Probably not, no. If you want to search the data inside Oracle, you'll want to look at Oracle Multimedia.I think the correct answer is "not efficiently". :-)Well, there is nothing that prevents you from building Oracle Multimedia yourself and getting similar levels of efficiency. Other than a desire not to invest dozens of man-years replicating delivered functionality, of course.

  • Any good way to find out which process is running on which CPU, how long it

    Hi All
    any good way to find out which process is running on which CPU, how long it took, how many threads it has forked, which thread went to which CPU, etc. .
    RPS
    Message was edited by:
    RajeshPS

    Hi All
    any good way to find out which process is running on
    which CPU, how long it took, how many threads it has
    forked, which thread went to which CPU, etc. .Because the scheduler moves threads from CPU to CPU all the time, that would be a lot of information to store. I don't know any easy way to gather it.
    Under Solaris 10, you could write a dtrace script that noted every time one of the processes thread was enqueued or dequeued on a cpu and post-process that.
    That's probably the best way.
    Darren

  • Does Apple have any good way of managing iPhones for business?

    I finally broke down and allowed iPhones into our company when Apple introduced the ability to provision phones like phones (e.g. don't have to teather them to a computer to set up).  This and the "business" management tools opened the door, so we got about 30 of them.
    WHAT A HUGE MISTAKE!!!!
    Apple is now going backward.  When a phone comes into our shop, we have to load up iTunes and get the phone to sync before we can do simple things like wipe the phone or troubleshoot "why did my bluetooth quit working".  All of their "enterprise focus" seems to be around security and app control, with nothing I've seen for the day-to-day keeping things running.  (Not saying app control and secuirty are unimportant, just not enough).
    Does Apple have any good business management tools that I'm missing?  I know about MDM, but too much setup for a relatively small number of phones.  Besides, my understanding is the MDM only does app management / security policy.  Right now we use Apple's stand-alone configurator.  Fine for pushing policy and apps, but useless for troubleshooting and day-to-day management (like resetting a phone back to factory configs).
    Also, is my carrior correct that Apple will not allow them to replace phones that have gone bad under warranty?  They told me for the iPhones we have to physically take them to an Apple store for troubleshooting / replacement even after 100% identifying the issue!  That is an hour (at least) wasted to send one of my folks to the store.  I know we don't just have a bad carrior, becaue they happily send out replacement on other brands after troubleshooting over the phone.
    I actually do like the overall look/feel of the iPhones.  But unless Apple becomes much more corporate-friendly, I can only recommend that companies refuse to purchase any iDevice.  BYOD, sure...but when you buy tens or hundreds of phones stick to Android, Blackberry, or even (sorry) Microsoft based devices.

    Does not seem to work that way for us.  We plug the phone in, and the first thing iTunes does is say the phone needs to be "authorized for this computer".  It also states that the phone can only be authorized for x computers.
    It then goes through it's jig while we wait, and finally comes up with the phone.  Only then can we try to wipe / update the phone.  We do stop the sync process, that automatically starts wanting to run.  Maybe has to do with a version difference between what you use and what we use.  I did notice that an older version of iTunes seemed a bit friendlier, but would not support our iPads.
    However, when we were troubleshooting the bug where wireless / bluetooth quits working it was quite a bit more difficult than this for a phone a user handed us.  Troubleshooting steps required that the phone be "restored" in iTunes.  However, iTunes insisted on our providing a password that neither we nor the user knew.  Maybe just learning curve, but it took about an hour before we were able to get that phone to a point where we could reset it.
    Here is a sincere question for you, since you say you support a fleet of phones.  Do you really NOT get annoyed when your tech has to take a iPhone to a computer with iTunes, plug it in, and work from there whenever there is a user issue that needs to have the phone wiped back to factory standard?  This compared to being able to punch a few buttons on a different phone, right there in the users office, then hand it back to the user and say "your are fixed".
    My only assumptions are that IT staff want to solve issues as quickly and efficiently as possible.  Requireing a tech to deal with iTunes for simple procedures is not, IMHO, "as quick and efficient as possible".

  • TS3090 Is there any good way for using a network account locally on the server?

    We have a bunch of macs at home. I want to be able to login to a laptop and have my account (home dir) in sync with de desktop account in a noninvasive way. 
    For achieving this I thought  promoting one imac to be a network profile server would be a good solution.
    This way we can work on any machine and sync portable home directories (phd) with our laptops.
    The server should also be usable as a workstation.
    One problem is: is possible to login on the server (locally) and work in a network account?
    I know it is possible, but this article describes issues.
    Also i am concerned about perfomance because files wil be mounted over afp rather than being on the harddisk. (one workaround would be to have a phd on the desktop, this would however not be possible on the server itsself (unless you have two copies of the home directory there))
    Does anyone have any experience with a simular situation or perhaps some other helpfull insights.

    Sorry, you must have edited your message. When I saw it, only the title showed .
    Embedded is what you want. You can change the windows apperance (e.g. hide the scroll bars) by changing the VI properties.
    Uncheck "request control" in the web publishing wizard, and it will be read only.
    Works fine here in LabVIEW 7.1. I don't remember if 6.1 had any limitations.
    LabVIEW Champion . Do more with less code and in less time .

  • Any good way to access a folder of hmtl files in weblogic server hard disk

    I know that I can deploy a .war file containing some html and WEB-INF/web.xml file etc. to weblogic server, and then access the webpages in that .war file.
    But is there any more convenient way to be able to lift the restriction of having to put those html files in the .war file beforehand? It is not very flexible to expand/modify the collection of html files. Please give me some advice.
    Thank you.

    Even if you find out how to define an IP address that folder was modified from, in some cases it may lead you to the public WiFi or other internet access areas.

  • Any Good Way To Edit Wordpress In Dreamweaver?

    Hey guys,
    Firstly here's my site:
    http://buyproactolplus.net/
    What I want is to be able to edit everything easily in Dreamweaver CS4.I want to take the text from the wordpress editor and copy it into Dreamweaver but I need to see a preview when I make changes without going back and forth.
    Is there any way that I can somehow get the previews working accurately instead of just having a blank site when I copy from the editor?
    Awaiting response hope there is a workaround. Thanks in advance!
    Dean

    I forgot to mention that if you want to Preview a dynamic site locally, you must install a Local Testing Server on your PC.
    Get one of the following servers for your OS and follow the installation instructions.
    WAMP for Windows
    http://www.wampserver.com/en/
    XAMPP for Windows
    http://www.apachefriends.org/en/xampp-windows.html
    XAMPP for Mac
    http://www.apachefriends.org/en/xampp-macosx.html
    MAMP for Mac
    http://www.mamp.info/en/downloads/index.html
    Setting up a PHP environment in Dreamweaver
    http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • ANy good way to "logarithmically" stretch a 4x3 image into 16x9?

    Hi everyone-
    I have recently re-telecined a 16mm film so I could get it as an HD master. it was originally shot and composed in 4:3 years ago.
    HD is 16:9. The 16mm film, as I said, is 4:3. I am trying to find a way of changing the aspect ratio. I know I can simply strectch the horizontal, but then all the people are short and fat. I could zoom so the sides hit the edge of frame, but then I loose a lot of head room.
    When I have played the 4:3 DVD on my 16:9 Panasonic TV there's a mode called "just" (I have seem simillar modes on other brands called "mesh"). It zooms in the image slightly and streches it logarithmically. The center of the image is virtually untouched. The sides are gradually further and further stretched as it moves further from the center.
    Sure, some shots look odd (if a person walks from left to right of frame they will go from long and flat on one end to normal shaped as they go through the middle of the picture space to long and flat on the other end. But for 99% of the DVDs I have watched (and the over the air Standard def stuff) the method looks fantastic.
    I think combining the three various methods on a shot by shot basis would be the best solution.
    The problem is I haven't been able to find a way to do that "logarithmic stretching" on FCP. Has anyone here seen a way? Or is there a plug in that I can buy? Its seems like it should be a simple math based solution.
    Thanks much,
    David

    Here's another from one of the regular contributors to this forum:
    http://web.mac.com/andymees/Freeand_Easy/main/Entries/2008/3/3_Andy’s_ElasticAspect.html
    Did I mention that it's free too?

  • Any good way to sort an ArrayList??

    I have a ArrayList now which must be sorted by the order such as:
    All
    string
    message
    number
    float
    My arrayList may only contains some of them, lets say{"float","string","number"}. how can I make this sort?
    thanks for any advice.

    Use Collections.sort, and write your ownComparator.
    If you store String objects you don't need a
    Comparator because String implements the Comparable
    Interface so their ordering is already defined. You
    just use Collections.sort on the ArrayList.Except that the ordering required by the original
    poster is goofy (non-alpha ordering), so the default
    String comparitor will not suffice...
    So, the answer is: "Use Collections.sort, and write
    your own Comparator".
    (Darned those pesky requirements :-) )
    - KAnd it's pesky when the OP never comes back and makes clarifications. I interpreted the list given as the input list, not the resulting sorted list. If it was already sorted he wouldn't need a program at all would he! -:)

  • Any good way to store configuration file?

    I need to store some configuration information in a file from Java. This file will be used by a C++ module. I know we can use XMLEncoder to serialize a Java object to XML file. Is there a opensource C++ library that can parse the XML file something similar to XMLDecoder class?

    There are plenty of C++ XML parsers, but nothing like the XML decoder class-
    Firstly the format used by XML encoder is based on Java objects and is strongly tied to the structure of those objects. They won't exist in a general C++ application.
    Secondly, C++ doesn't provide the reflection mechanisms that OO* languages use for that sort of task, so you'd have to have some form of factory pattern, and register all classes that may be created from your XML with that factory (something that may be automated with a little effort).
    Pete
    * or all other OO languages, if you don't consider having metaclasses as essential to OO-ness

  • Any good way to report bugs?

    I educate myself to quality assurance and testers in Sweden. and made a test ride with skype as my goal. I have find some bugs and other things that would need your attention. how do I get in touch with support?Sincerely, Magnus 

    You can report them here in the Community or pass that information onto Skype Customer Service. https://support.skype.com/en/faq/FA1170  

  • Safari and Others Hang. Is there a good way to diagnose which process is being a trouble maker?

    I have a peculiar problem that has been developing for some time now.
    Current Symptoms:
      Safari (Any Version 5.0-Current) will load but WebProcess.app Opens to 100%
               on one core of CPU (Non-Responsive) and no web-pages will load.
      VLC.app launches in the same fashion, one process pegs to 100%.
      iMovie.app hangs.  Not crashing, but failing to successfully launch.
      Apple Script saved as an application behaves in the same way.
    Attempted Diagnosis:
          I'm currently running OS 10.7.3 on a Early 2009 Mac Pro.
         I have tried:
      Deleted Preferences, and Saved Application States. Then realized the
    problem can't be in ~/Lib/Prefs. because it also is a problem on a clean user
    profile I created to check. So I also looked in /Sys/Lib/Prefs. with no Success.
      I have run disk permissions more times that I can count. 
                    This comes up with regularity but solves nothing:
      Group differs on “Library/Preferences/com.apple.alf.plist”; should be 80; group is 0.
      Repaired “Library/Preferences/com.apple.alf.plist”
      Permissions differ on “usr/lib/ruby”; should be lrwxr-xr-x ; they are drwxr-xr-x .
      Repaired “usr/lib/ruby”
      Reinstalled 10.7.3 from the Combo Updater from apples website.  No Help.
      I did find launching any affected App from the Unix Exe File in the .app
             bundles (So it launches in terminal)  will open them and allow them to
             runwithout issue (yea! temporary fix)! 
    Finally I booted with -x into Safe Mode.  There the problem vanished.  Hooray
            it's another piece of  software or an extension I have loaded (Could  be any over
            the past 6 months or so)!
    So, I rebooted and tried to launch Safari immediately. It worked!  Only after a
            minute or so, when the GUI and background Apps had finished
            loading, the problem returns.
    What I need help with:
    Is there any good way to tell what application is causing the problem or what
    these four apps have in common?  I have looked at Console Logs, Crash Reports,
    etc. etc. but admittedly am not sure what to look for.  I would be happy to post logs
    or reports or more detailed info, if it would help.
    Otherwise Thank-you to anyone who reads this and has any good ideas short
    of a fresh install. Cheers!

    Hi...
    Reinstalled 10.7.3 from the Combo Updater from apples website.
    The only way to reinstall the Mac OS X or repair the startup disk running v10.7.3 Lion, is to use Lion Recovery The combo update does not do that.
    How much free space on the startup disk? Not enough free space can account for the problems with your apps.
    Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure there's a minimum of 15% free disk space.
    and no web-pages will load.
    Try using OpenDNS as suggested here >  Safari 5.0.1 or later: Slow or partial webpage loading, or webpage cannot be found
    Use OpenDNS for better speed, more security, includes anti phishing filters, prevents browser redirects, and it's free.
    Open System Preferences / Preferences then select the Network tab. Click the Advanced tab then click the DNS tab.
    Click +
    Enter these addresses exactly as you see them here.
    208.67.222.222
    Click +
    208.67.220.220
    Then click OK.
    edited by:  cs

  • Good way to capture audio?

    I'm looking for a quick and easy way, if there is such a thing, for capturing audio in OSX. I'm doing scoring work in Logic, and am always coming across reference ideas in movies, shows, etc., that I'd love to grab. Is there any good way to capture audio streaming from, for example, netflix or youtube? Or any audio that's flowing through the mac at any time. Doesn't have to be great quality, just as reference.
    The only way I've been able to do this is rent dvds and record that from a dvd player etc into my audio interface, into logic or garageband, audacity, etc. Seems like since Netflix is already streaming through the mac (somehow, I'm technologically illiterate, it would be great to be able to just grab a few minutes or seconds of audio as it goes by.)
    Thanks!

    I'd take a look at Rogue Amoeba's Audio Hijack Pro.
    http://www.rogueamoeba.com/audiohijackpro/
    Matt

  • Anyone know of a good way to move finalcut pro X to an external HD without loosing any of the project files?

    Anyone know of a good way to move finalcut pro X to an external HD without loosing any of the project files?

    If you're looking for improved performance, you should move your events and projects to an external FW800 or faster drive.
    The FCP X application itself should reside in your Applications folder on your system drive.
    If you're talking about backing up to another drive, I use a cloning application (SuperDuper) to clone my working drive to my backup drive two or three times a day.
    If you want to install FCP X on another computer, simply download it again from the App Store (using the same Apple ID you used to purchase the app).
    Andy

  • Is there any way to combine Google Calendar and iCal?

    Is there any way to combine Google Calendar and iCal?

    Here's an article that should help you:
    http://support.google.com/calendar/bin/answer.py?hl=en&answer=99358

Maybe you are looking for

  • Link to download Adobe Design Premium CS5.5

    Hi there, I am looking for a link to download Adobe Design Premium CS5.5 to my new iMac as it doesn't have a disc drive. Can someone please point me in the right direction?! Many thanks Si

  • How can I have individual count of each branch?

    Hi, I need to write a query for the following scenario. For ex: Reliance is a company which is has diffenect branches under city1, city2, city3. under city1 we have different regions like reg1, reg2, reg3. Under city2 we have reg4, reg5. Similarly un

  • Can I install Adobe Creative Suite 6 Master Collection in my PC?

    Hi, I'm Kendo from Bangkok,Thailand. I'm using Windows 7 Ultimated 64 bit -CPU Core 2 Duo 2.93 GHz -RAM 4 GB -Graphic Card Geforce 9500 GT I'm afraid that Adobe Premiere Pro and Adobe After Effect won't smooth as expected because Adobe recommends 8 G

  • Menu item appears multiple items

    I've created a menu item for the extension I'm working on; however, it is showing up 4 times in the Tools menu instead of just once. I've looked at various tutorials on the subject,but I can't seem to find what I've done incorrectly. VSCT File <?xml

  • Is it possible to move the ldb selection screen?

    Hi All, I have a custom program which uses a logical db. The selection screen from the LDb is displayed first and then my custom selection screen is displayed. There is a requirement where the custom selection screen needs to displayed first - at top