Fixed array-size only: isnt that damn stupid???

hi all.
i'm just wondering why java can't or doesnt handle arrays with unfixed sizes?! isnt that very stupid? what do you do, when you don't know how many items your array will have? it could be 10 or 10'000!
i know php, so i can't understand why java does not support this. any reason?
thx& gr33tz
j0sh

@ harmmeijer:
ok, thats true, didnt remark that. anyway, an "epilogue-spam" doesnt make much sense, too. ;)
@ paulcw:
let me quote joey: "It's really unfare to bleem any thing without you really study and get know to it..."!
i know php quite well, and i love it. but i have to learn java on my working place. it's just quite hard to learn autodidactic at the beginning untill you know the basic concepts of it...

Similar Messages

  • Set Fixed Array Size

    Hello. I am trying to develop a VI for an FPGA target and I'm trying to make it so whoever is using the VI can specify the size of an input array when they instantiate it (such as by having an input to the VI that says "max array size" or something). So far it seems like the only way to do something like this is to go into the VI itself and manually set the array size for each input array for the VI (i.e. open the VI, right click on each input array, select "Set Dimension SIze", choose "fixed", set number of elements). I'd like to have one point where I can set the size of all the arrays at once (since in my case they are all the same size), and let the person using the VI set it to the proper size for whatever application they are using it for (to be clear, let's say I have two uses for this VI, and in one case I have an input array of size 100 and in anohter use of size 1000, I'd like to be able to set these somehow instead of doing it through the dialog). Thanks.
    Solved!
    Go to Solution.

    Unfortunately, per-call configuration of array size is not something that is supported today. This is a great idea, I would suggest that you post it on the FPGA Idea Exchange so we can get a feel for how many other people need this same feature.

  • How do I fix a photo in photoshop that I had to re size and now it is distorted?

    I had to re size a photo in photoshop cc for the lab.  It now is distorted and I don't know how to fix the problem.

    An fyi for the future, when you change the size of a picture, make sure it is done on a copy, as the original is the only one that can get you back to the beginning when that time comes to start over. When you do alter the size, you can save as a psd format, to make it easier to undo, since the some tools like the crop tool can hide the unwanted portions of an image instead of deleting them. You can also make a copy of the layer as a new layer and hide one of the two layers, then you will have a starting point assuming you save the file in a format that support layers like psd or tiff.
    Never save as a jpg for your own use, if possible. Use that format as a means to share to others as it does not support, layers, live type, transparency or objects. It is also a destructive format meaning each time you save, reopen, save again. The data is reduced by throwing out color information to a point where it is no longer a usable image if that process is repeated enough times.

  • This is a silly question, but I cannot fix it! The icons that appear on my photos after I edit them, have gone away. The only way I can see them is in the Grid view. How can I get the icons back on the thumbnail photos of the full gallery that is loaded?

    This is a silly question, but I cannot fix it! The icons that appear on my photos after I edit them, have gone away. The only way I can see them is in the Grid view.
    How can I get the icons back on the thumbnail photos of the full gallery that is loaded? TIA =)

    You have likely dragged the size of the filmstrip thumbnails to a small size that prevents Lightroom from displaying the badges. Using your mouse, mouse over the top line of the filmstrip and then drag it supports to increase the size.

  • I have the iPhone 4. and when I updated the software to iOS6 My notifications don't make a sound anymore, the only sound that I get are text messages, or Email. I checked to see if the other apps were muted and they weren't. How do I fix this??

    I have the iPhone 4. and when I updated the software to iOS6 My notifications don't make a sound anymore, the only sound that I get are text messages, or Email. I checked to see if the other apps were muted and they weren't. How do I fix this

    You cannot update iPhone 4 to IOS 8.1.2, the highest you can update is IOS 7.1.2.
    Unless you've iPhone 4S (looks similar to iPhone 4)

  • Firefox frequently freezes. I can't click on anything (tabs, menu buttons, bookmarks, etc.) The only button that works is the upper right close button which when clicked will ask me if I want to "save & quit." Then I have to restart. Help fixing this?

    Frequently when I use Firefox it will all of a sudden freeze. It no longer will accept any user input from the keyboard or mouse. I cannot click on any of the open tabbed pages I have or on my bookmarks or any of the menu buttons. Nothing works. When it happens if it is loading a page it will just freeze in the middle of loading it. I've tried to see if the freezes are caused when it loads certain types of content (java, flash, etc...) but there seems to be no rhyme or reason as to when it happens or with what types of pages. I cannot find a pattern. The ONLY button that works is the close button in the upper right hand corner (X). I can click on that and then Firefox will prompt me with it's regular message asking me if I want to save and quit, quit, or cancel. I'll hit save and quit and then reopen Firefox. It opens my tabs and if I was in the middle of a post it generally will still remember the text I've typed (except Facebook!).
    It's beginning to drive me nuts and I'm really hoping to find a fix to this.

    You will also notice that your shift key will be emulated. Meaning that keys you will try to press will press but they will act like you are pressing the shift key when you are doing them.
    Try this, minimize the firefox window by pressing the tab on your taskbar. After doing that maximize it again. You will magically be able to click any link on your page. When you navigate to a new page however, the entire situation will start all over. My only remedy is rebooting and hoping it doesn't happen again soon.

  • How do I set a fixed page size in Muse so that the window always stays the same size

    how do I set a fixed page size in Muse so that the window always stays the same size

    Hi Aish & thanks for responding;
    I would like the window size to stay the same for the entire site and not be
    able to scale to drag & scale it. ie 950 pixels x 500 pixels.
    Thanks,
    JB
    On 12/4/14 3:30 PM, "Aishvarya Raj Rastogi" <[email protected]>

  • Weird OSX display issues after going to webpage, only thing that fixes is  Perm repair

    I have a bizarre issue that i'd love some input on. Late 2009 iMac, Mountain Lion (then Mavericks).
    I use Firefox to utilize a real estate website (Fusion MLS) for several months now. A couple of days ago, after i would log into the website and use it for a little bit, the rest of my tabs, apps, windows, would all start appearing as black boxes, or have glitched out (generally black) screen display issues. To be clear, other tabs inside the browser would be black, or partially black, and also the right half of my taskbar icons would be black silhouettes of the icon. BUT, the Fusion MLS website would still work fine. Closing the page, etc, would not fix the problem, it would be stuck like that no matter what i closed or opened, computer would function fine except for the display, but i couldnt see hardly any of the apps so I'd have to shutdown, but a simple reboot didnt fix it. After an hour of troubleshooting, I started off in Mountain Lion when the problem appeared, and in the process of troubleshooting I decided to upgrade to Mavericks to see if that would fix the problem, it didnt. Ultimately I discovered the only thing that fixes the problem is to boot into Safe Mode and Repair Permissions, then i can come back in as normal and everything is normal again (a standard reboot doesnt fix it, when logging back into OSX it would still have black silhouettes and all the app windows would be black).
    So after the above I decided to just start using a different browser to go to this Fusion MLS website (Safari). Which worked fine for a day, but now when i go to the website, i have no problems, but when i put the computer to sleep, and bring it back, the windows are blacked out and icons silhouetted. So back to safe mode, repair perms, and then it works again. When i do the repair perms, there are usually no verbose things that it says it repairs, sometimes it says something about the PrinterList being 0 instead of 80, but thats it.
    Any help or insight would be greatly appreciated, I'm completely dumbfounded....

    Now regular Repair Perms doesnt fix it, it has to be Diskwarriors Repair Perms. Also it happens anytime the computer is put to sleep for a length of time and brought back, regardless of whether the Fusion MLS website was gone to.

  • I cant use the highlight, underline, or strikethrough function in a specific pdf file. The file isnt locked. I used to highlight texts from that file before the latest update. The problem occurs only with that file. Urgent need. Please help. Thanks!

    i cant use the highlight, underline, or strikethrough function in a specific pdf file. The file isnt locked. I used to highlight texts from that file before the latest update. The problem occurs only with that file. Urgent need. Please help. Thanks!

    Chester31,
    Thank you very much for sharing your file with us!  Now that we are able to reproduce the problem at our end, you may stop sharing the file on Acrobat.com.
    Do you know when this problem (for not being able to add new highlight/strikeout/underline) has started?  Did you update your iOS from 7.x to 8.0 recently?
    We will continue investigating the problem and let you know what we find.
    Thank you again for your help.

  • TS1538 My iTunes, after a short time, decides not to be able to recognize my devices, the only thing that fixes it is a re-install of itunes. it is getting irritating as this will be the 7th time i have had to do it. Any solutions?

    My iTunes, after a short time, decides not to be able to recognize my devices, the only thing that fixes it is a re-install of itunes. it is getting irritating as this will be the 7th time i have had to do it. Any solutions?

    The info that was on the old iPhone can only be retreived either by restoring from iCloud/iTunes back up or syncing from iCloud. You need to chek these places and if nothing is there then I'm sorry that data is gone and you will only have the back ups you see.
    But check iTunes back ups:
    Windows
    Edit>Preferences>devices
    Mac
    iTunes>Preferences>devices

  • I have all my alert on for email but I only see that I receive any when I open the email box. How do I fix that?

    I have all my alert on for email but I only see that I receive any when I open the email box. How do I fix that?

    Did you change the ID in Settings>iTunes & App Stores>Apple ID? Tap the old ID and sign out and then sign in with the new one. If not running iOS 6 it will be Settings>Stores>Apple ID.

  • HT4927 Am I the only one that finds this a little crappy?  Do you think there will be a future update fix?

    Am I the only one that finds this a little crappy.  Do you think there will be a update to fix this issue so you don't have to reinstall the whole library?

    I doubt it, but no one here knows. There are other forms of backing up.

  • Need help fixing my safari.  have already done files perms repair to no avail.  Only thing that happens when I select Safari is the screen changes color.

    I Need assistance repairing my browser "Safari" on my MacBook Pro.  The only thing that happens when I select it is that the Icon does bounce up and down.  I've already tried to repair the files perms to no avail. I have also created another user and tried to use Safari when logged on as them and it didn't work then either.
    Help!!  I'm new to Apple but have loads of PC experience...

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Array size mismatch error (1047) from matlab to labview

    Hello all,
    I have a very strange situation here and I am hoping someone can come up with some ideas for me...
    I am running labview vi's through a web page, and one of my vi's contains a matlab script with two array inputs, one 2d with a varying length, and the second a 1d array with a fixed set of parameters.
    If I call this report on my local system, web server labview and matlab all running on my laptop. Everything works fine. I receive no errors and the matlab script runs and returns data as expected.
    The problem is I have an Identical setup (as near as I can tell) setup on a server, and I receive a 1047 error, reporting an array size mismatch.
    All the input arrays data sets are identical in the vi at the input into the matlab script. And as best as I can tell all sub VI's and M files are identical. The only difference I can come up with is that one setup is running on a server and the other is not, however other vi's using matlab script (although a simpler configuration (no direct inputs or outputs form matlab, all data transferred in and out via txt files )) run fine in both configurations.
    On both systems I running matlab ver 7 (R14) with a single user license and Labview 7.1.
    any ideas or suggestions would be greatly appreciated. Please let me know if any additional details are needed.
    Thank you in advance,
    Chris

    Hello Matt,
    Yes you were correct upgraded LV to 7.1.1 and everything is running fine now.
    thanks
    NPI_Chris wrote:
    Hello all,
    I have a very strange situation here and I am hoping someone can come up with some ideas for me...
    I am running labview vi's through a web page, and one of my vi's contains a matlab script with two array inputs, one 2d with a varying length, and the second a 1d array with a fixed set of parameters.
    If I call this report on my local system, web server labview and matlab all running on my laptop. Everything works fine. I receive no errors and the matlab script runs and returns data as expected.
    The problem is I have an Identical setup (as near as I can tell) setup on a server, and I receive a 1047 error, reporting an array size mismatch.
    All the input arrays data sets are identical in the vi at the input into the matlab script. And as best as I can tell all sub VI's and M files are identical. The only difference I can come up with is that one setup is running on a server and the other is not, however other vi's using matlab script (although a simpler configuration (no direct inputs or outputs form matlab, all data transferred in and out via txt files )) run fine in both configurations.
    On both systems I running matlab ver 7 (R14) with a single user license and Labview 7.1.
    any ideas or suggestions would be greatly appreciated. Please let me know if any additional details are needed.
    Thank you in advance,
    Chris

  • Motion Assistant Contour Array Points - Optimal Array Size?

    I am working with the NI Motion Assistant API and plyaing around with the Contour Move generation where I feed a set of X, Y target points to the Set Contour Move Properties.
    One of the inputs is Profile Calculation Constraint - Array Size, Constraint Value (which would be the array size to use).
    I am wondering if there is a way to calculate the "optimal" array size for any particular move?  I know I can have too few - can I have too many points in an array (being reasonable here and not planning to use the whole 2^32 size allowed).
    Thanks.
    Ryan Vallieu
    Automation System Architect

    Hi Ryan,
    Unfortunately, I'm not so sure I have a good answer for you. I'll evaluate some of the pros and cons below and then ultimately make a recommendation:
    Constraint Type: Array Size
    Pros
    You always have a fixed sized array of setpoints. If you are using a 73xx card, this simplifies setting up your contour buffer. It also avoids using a lot of memory.
    Cons
    For long moves, you could have a long time and large distance between position setpoints. The motion card will do a spline interpolation to smooth the move, but the splining algorithm is only so good.
    If you are sending the contour setpoints to a motion card, you don't know the interval between setpoints (although this isn't difficult to obtain).
    Constraint Type: Sampling Time
    Pros
    Regardless of the move, you always have a fixed time between setpoints. As long as your sampling time isn't too large, even fast moves should execute accurately.
    Cons
    For a long move, you could generate a lot of setpoints that consume a lot of memory.
    Setting up contouring buffers can be trickier.
    Conclusion
    It depends on what you expect the end customer to be doing. I prefer using the sampling time constraint since it is more robust for fast, long moves (and still good for slow, short moves). It will make creating contour buffers more difficult, but there is an example (Two-Axis Smart Contouring.vi) that shows how to dynamically update the buffer. Ultimately, I think it is better to focus on accurate moves than minimizing memory consumption.
    If you decide to go with the sampling time method, I would start with a constraint value of .01, since 10msec is the shortest interval when configuring a contour buffer. Try and generate some position profiles to see how big the arrays are. For optimizing, it is just a tradeoff between array size and the accuracy of the generated motion profile.
    Thanks,
    Paul B.
    Motion Control R&D

Maybe you are looking for

  • PixelBender/ Flash ShaderJob

    The Flash docs say the following: To process a ByteArray containing a linear array of data (as opposed to image data) set the corresponding ShaderInput instance's height to 1 and width to the number of 32-bit floating-point values in the ByteArray. I

  • Lightroom 5 and Bridge 6- Color Label and Keyword compatibility

    I've added color labels and keywords to images in Lightroom 5 but I'm not seeing them in Bridge CC. Lightroom Metadata > Color Label Set is set to Lightroom Default (Red-Yellow etc. And Bridge Preferences > Labels is also set with "Red, Yellow etc" t

  • Sequential Numbering on Import?

    Does anyone know if the Sequential Numbering option, in the LR 3 Import window, have the ability to remember the last sequential number used and then restart at the next sequential number when you load  a new card or import new images? Photo Mechanic

  • BDC Error while executing in background

    Hello, I am run a BDC to upload Assessable value in J1ID transaction. When I am running the program in background it gives "Runtime error SAPSQL_ARRAY_INSERT_DUPREC has occurred" But when I am running the same in foreground mode it is running perfect

  • Question about Migration Assistant

    So I just bought the iMac i5 and I have a second generation MacBook Air that I would like to transfer all of the data from to my new iMac. I was wondering if FireWire method was the fastest way to do it because I just tried over Wi-Fi and I walked aw