Quick survey on coding techniques

G'day:
I'm just running a quick survey on my blog, and if you had a coupla min to write some code and post it for me, that'd be a big help.
This is the blog article, and this is a summary of the question:
Consider this string:
nz = "Aotearoa";
What I want is to see how you'd approach turning that into an array of characters, ie: so if you dumped it you'd get this:
array
1
A
2
o
3
t
4
e
5
a
6
r
7
o
8
a
That's it.
Thanks for helping (if you do, that is ;-)
Adam

Yup, once I get enough results. It'll go on my blog though, rather than here, but I'll post the URL when it's done. Probably won't be until next week though.
Adam

Similar Messages

  • Requesting peer review of coding technique.

    Hello, I'm curious if anyone here can review my flash to see
    if my coding techniques are proper.
    To start, here's the site:
    Example Site
    If you click on the top row of buttons corresponding to each
    section, you'll notice a slight transition before the section is
    loaded. Each section is a separate .swf file, which is loaded via
    actionscript to a MovieClipLoader. (See livedocs for the
    MovieClipLoader API reference)
    The transition animation is responsible for passing calls to
    the MovieClipLoader for loading/unloading movies, and does so
    during keyframes in the animation's timeline. For example, when a
    button is clicked, and "the curtain is down" the MovieClipLoader is
    unloaded, and then loaded with a different .swf.
    I don't have access to a screen reader to test how accessible
    the flash is. However, I have been told that accessibility
    standards suggest animations be hidden from a screen reader via the
    "wmode" property. Assuming the animation is disabled in the screen
    reader, will the transition animation still fire events it incurs
    on the timeline?
    Should I not control loading/unloading of movie clips on the
    timeline? I believe my technique is robust enough to work in a
    non-accessible environment. It locks input while the animation is
    playing, and ensures a small memory footprint by unloading unused
    .swf files. However, is it the right approach with accessibility in
    mind?
    Thanks for any input,
    -Jonathan

    it would look better if instead of a white dropdown covering
    the previous content and then a black dropup revealing the next
    content, you used a dropdown that changed the previous content to
    an alpha of 10% until the bottom is reached when the next content
    is loaded with an alpha of 10% and the dropup revealed the next
    content with 100%.

  • Quick Survey: JDeveloper and Notepad

    Just for interest - a quick survey:
    I've made the experience that it is impossible to seriously work with BC4J and JDeveloper without extensively using a Texteditor.
    Topics like
    - renaming BC4J Components
    - moving packages
    - bugs in the wizards
    - working with more than one (dependent) projects
    forces me regularily to use a texteditor to fix the XML-files by hand.
    Just to know, if I'm the only one who made this experience, I'd like to know I you have made the same experience...

    Well, I never used notepad, but that's because I use SciTE (another text editor, http://www.scintilla.org/) for it. But you are right that all the stuff you mentioned often requires manually editing of the BC4J XML files. Renaming / moving BC4J entities, views, packages is a real pain. On a related subject, why are the XML files not more human readable / maintainable? JDeveloper / BC4J often forces us to manually edit the XML files. Unfortunately a lot of information is spread over multiple files. If you need to rename a component or something similar you often need to edit several files (and don't get me started on the problems that arrise if you forget to edit a certain file...). But the contens of the XML files aren't always clear to me, for example:
    <Item>
      <Key class="java.net.URL" path="src/package/Dept.xml"/>
      <Value idref="17"/>
    </Item>The value of this item (that can be found in a project file) is referenced. I understand this is an optimization to keep the XML files "small", but if you need to manually edit the file it's getting you headaches...
    Another example:
    <Data>
      <Property Name ="NAMESPACE_REFERENCE" Value="3b23c9bc-00f1-1000-807c-0a000a06524b::::BC4JPackage"/>
      <Property Name ="ID" Va[i][pre]Long postings are being truncated to ~1 kB at this time.

  • Quick Survey on ColdFusion 10 usage

    G'day
    Hey, this is not a question and I hope it's OK to post here soliciting traffic to somewhere else.  It is not spam though!
    I'm just running a quick survey on people's ColdFusion10 usage.  It'd be helpful to me if you could read this blog article, and then fill in the survey linked to at the bottom.
    Cheers.
    Adam

    Per the ColdFusion Blog entry regarding the EULA, Adobe considers four cores to be a CPU - so a quad-core processor is one CPU.  You can run ColdFusion 10 Standard on up to a dual quad-core server under the terms of the license.  Here is an excerpt:
    The power of a CPU has grown enormously over the last few years and we now see individual core in a CPU itself being as powerful as a CPU. Few companies treat every group of two cores as a CPU and also change their licensing based on the power of processing core involved. We decided to take a lighter stand on this. Our idea was not to penalize our customers just because we now have cores in the CPU definition. Four cores in a CPU is the norm these days. So we decided to chose four cores to be deemed as a CPU.
    What this would mean is, if you are running ColdFusion on a 2 quad core CPU (8 cores in total, which would be deemed as 2 CPUs), you can still continue to run ColdFusion 10 on it.
    HTH,
    -Carl V.

  • "Quick survey" doesn't accept answer

    On Apple Support Communities (ipad) today I got message inviting me to take a quick survey. I agreed. It had 3 questions, I answered them and hit Submit, but nothing happened - it didn't accept the answers!

    I bought down Quit Time 7 Pro for OSX Tiger years ago, but recently I upgrade to Lion and QT7-Pro doesn't acept my Keys anymore.
    Do you have QT 7 v7.6.6 installed on your Lion system? Are you trying to key QT X.1 or QT 7 for "Pro" use? Are you entering both the Registration Name under which you purchased the key (to include any salutation used like Mr. or Dr.) along with the key? Is the key for QT 6, QT 7, for a Windows or Mac platform?
    What should I do?, pay the full price again?
    Not if the original key was for a Mac platform version of QT 7 and you are correctly entering both the Registration Key and purchaser Registration Name in the "Registration..." window under the "QuickTime 7" menu as described HERE. If you are unsure about either the key or the name used for your purchase, don't have your purchase confirmation email, and the key was purchased at the US Apple Store, then you can review the purchae information by signing in HERE.

  • [Survey] Which coding feature do you want in JDeveloper 11?

    Do you have any capability that you are missing in the JDeveloper code editor?
    This is your chance to influence the editor of the next version of JDeveloper.
    Let us know what are the top 3 features that you would like us to add to the JDeveloper code editor, by posting them on this thread.
    Thanks,
    The JDeveloper Team.

    1. Case insensitive Import Assistance
    When I am writing variables, I write them all lower case and then hit Ctrl+Space which changes them to correct camel case. It is faster because I don't have to use shift key or think about correct capitalization (don't get me wrong, I declare my variables with camel case). I constantly find myself hitting Alt+Enter three or four times in a row just to realize that I made mistake in one letter case (lower or upper)!
    2. Merge Code Insight and Import Assistance
    Why there are these actions separated? Can you merge Alt+Enter into Ctrl+Space. It is like that in Eclipse. To me it is much more convenient. When I am using some class I have to think did I already typed that class somewhere else in the file and press Alt+Enter or Ctrl+Enter consequently.
    And Ctrl+Enter (Code Templates) should be merged too. To me it is much more natural to have all this Smart Coding features on the same shortcut.
    There should be a switch in Options to choose between these two behaviors (separated and unified) (As in Eclipse)
    3. Propose Java key words in Code Insight
    Java language key words should be proposed when you press Ctrl+Space. instanceof, synchronized, implements, interface... are big words. (As in Eclipse)
    4. Add tool tip with JavaDoc to Code Insight
    When I am choosing method from list, I want to know right away what that extra boolean parameter (e.g.) stands for.
    5. More JavaDoc
    I know you can't distribute source code of your libraries (ADF). But you could distribute stub source files with empty method bodies and full JavaDoc comments. Maybe strictly speaking this is not a coding feature but it helps coding a lot. Currently, because of this, Ctrl+D (Quick JavaDoc) is pretty useless.
    P.S.
    Check out these on MetaLink:
    4767168: Improve Consistency Of Smart Coding Features
    4767166: Import Assistance Should Be Case Insensitive
    4767176: Regrn: Focus Is Always On Code Insight Popup Even If Import Assist Is Invoked

  • Proper init coding technique

    Basic object oriented coding question using init.
    The following code works, but is really not proper (or is it).
    Can someone point out the best way to code initWithType:buttonType properly?
    The instantiation of a button using a custom subclass buttnView:
              UIView* buttonView;
              buttonView = [[ButtonView alloc] initWithType:buttonReset];
              [self.view addSubview:buttonView];
    ButtonView.h - really basic:
    @interface ButtonView : UIView {
              int myType;
    @property (nonatomic) int myType;
    - (id)initWithType:(int)buttonType;
    @end
    ButtonView.m
    - (id)initWithFrame: (CGRect)frame {
        if (self = [super initWithFrame:frame]) {
            // Initialization code
        return self;
    - (id)initWithType: (int)buttonType {
           if ( buttonType == buttonReset ) {
                [self initWithFrame:CGRectMake(buttonResetX,buttonResetY, buttonSize,buttonSize)];
                myType = buttonReset;
           else  {
                ... a bunch of different button-types ...
           else
                return nil;
           self.userInteractionEnabled = NO;
           self.opaque = NO;
           return self;
    As I said, this "works", but Analyze complains:
    Instance variable used while 'self' is not set to the result of '[(super or self) init...]'
    And while I recognize, yep, I'm not doing this quite right, I don't seem to be able to think of the right pattern.
    The code puts custom buttons at pre-defined locations type'X, type'Y each at size buttonSize.
    Thanks.

    No, it's happy with initWithFrame.  It just complains about every line which calls it in initWithType, e.g.
    [self initWithFrame:
             CGRectMake(buttonResetX,buttonResetY,buttonSize,buttonSize)];

  • Adobe wants your feedback on Acrobat: Take a Quick Survey

    We are conducting two brief surveys to learn more about how customers get information on using Adobe Acrobat. We'd like your feedback. Additionally, please extend this invitation to anyone you know who uses Adobe Acrobat. Freely blog, email, or tweet the invitation to your contacts.
    Please click a link below to take a brief survey on one (or both) of the following topics:
    ·         Create and edit a PDF Portfolio
    ·         Create and distribute a PDF form, and export form data
    JoAnn Davis
    Community Help Administrator for Adobe Acrobat

    Have never needed to number 1, tried number 2 years ago without much success. No that no longer hold position (retired) I needed it for it no longer applies.
    Bigest problem Acrobat Macintosh has is creating a PDF since The adobe Pdf Printer Driver no longer works. And the work around doesn't work more than it does.

  • Quick Survey

    Hello,
    I'm doing some research on why people use bulletin boards such as this one. The survey is just 5 questions and can be found at:
    https://fp1.cc.lehigh.edu/cmr4/JCMC/JCMC_Survey.asp
    If you would help me out and complete it, I would really appreciate it!
    Cathy Ridings
    Lehigh University

    1) To share information
    2) To learn
    3) To solve sticky problems
    4) Just cause
    5) To avoid people asking us stupid survey questions or trolling for information that does not pertain to java.

  • Quick Survey: WPC... WPC navigation or Traditional Navigation

    Are you using WPC navigation (using the navigation.wpc files and external connector) or are you creating iviews and pages for each WPC page?
    From what I can tell, the "traditional" way might provide statistics a bit easier, but maintenance would be much more difficult, with much more dependency on a company's IT department. Plus all stats are in one grouping. You don't have to combine Activity Reporting (iviews and Pages) with [KMC Activity Reporting |http://help.sap.com/saphelp_nw70/helpdata/EN/45/74eeda9ba26975e10000000a114a6b/frameset.htm](the kmcActivity logs).
    Conversely, navigation the navigation.wpc way puts more control into "content authors", but activity reporting is a little more complicated. [I am using the kmcActivity file, but I do not get some infomration that I would like. I have added additional parameters to the Main File Format property (such as users, folders, target urls to help trace where the wpc file is), etc... but none of these show up for WPC pages (but do show up for non WPC files).
    Right now, our portal is heavily weighted with WPC content and "files", so the navigation.wpc way with activity reporting through the kmcActivity logs seems preferable.
    Please share your opinions...

    No interest.

  • Forms standard coding technique

    Hi:
    Thinking in terms of efficiency I need to check for the existence of a value in a database table E.g. in a W-V-I trig
    CURSOR c1
    IS
    SELECT 'X'
    FROM TAB_A
    WHERE COL_A = :blockA.itema;
    IF ( c1%NOTFOUND THEN )
    show_alert('Does not exist...blah blah blah....');
    CLOSE c1;
    RAISE Form_Trig.....;
    END IF;
    Now in a Post_query trigger I would usually place a function in a Package to return a description for say Cust_Id.
    But is it worth creating a BOOLEAN (packaged) function just to check for the existence of a row like in the example above ?
    I am of the opinion that no client side explicit cursors should exist in forms modules no matter how simple they are. Does anyone agree ?
    Let us know your comments.
    Pradeep.

    By the way are you a forms developer for Oracle Corp?Nope. Just a government (university) employee.
    I like to use a Form Level W-V-I .. depending on trig
    block then fire a seperate unit for validating items
    in that block e.g.Yes, I sometimes put all of a block's WVI triggers into one at the block level. Don't know, though... it gets ugly sometimes. I usually create separate procedures within the enclosing Declare-Begin, and name them Edit_Name, Edit_Street, Edit_Phone, etc, and then call them from a main processing block in the trigger.
    Declare
    v_it VARCHAR2(50) := :SYSTEM.TRIGGER_ITEM;Sometimes, I add this:
    Val varchar2(100) := Name_in(:System.Trigger_Item);
    Then I can check
    If VAl is null then...
    ---- Second message:
    Just to go ‘deeper’.
    What about when an implicit cursor checks for
    TOO_MANY_ROWS ?
    So firstly the implicit cursor checks for row
    existence and then checks again for
    uniqueness(TOO_MANY_ROWS). Where as an Explicit
    cursor will only check for existence once. Is an
    Explicit cursor still inferior considering this ?I saw a discussion a year or two back that Oracle had tightened that up a bit, so that they can do it all in one round trip -- or something to that effect. Anyway, if you create yourself a benchmark test both ways, I believe you would find that the implicit cursor will process faster than Open-fetch-close.

  • Another Quick Survey!

    Hi everyone!
    I know we are in a MSI forum, but i have to make this question:
    Who is the "King of the Hill": MSI or Asus???
    Have to do it...sorry  :P

    MSI boards tend to perform better but ASUS boards are better built. People tend to have far more problems with MSI boards than pretty much any other board make out there.
    But still, i'm an MSI board fan simply because they perform better and look really sexy in that gorgeous red.

  • Quick Survey how good do you think the k7n2 board is

    hi
    im tired of people writing in here and complaining about the k7n2 being a bad mobo just by reading all the posts.
    well folks people dont write here when they have a good working computer.
    so please write an shortly say what equipment you have and what you think of it and rate it between  1-10 stars.
    my k7n2g-l works great but i didnt get the built in network card to work
    easy to overclock the cpu
    just put it all together and installed windows xp no hassle
    i give 9 stars
    bye

    I think the overall design on the K7N2G-ILSR stinks!! I have a MSI KT3 Ultra 2 BR and it is better laid out than this board. The mobo has only one fan pinout? is up with that? You can only plug in the cpu fan, that's it!? Also, the bios chip as well as other diodes and connections (SPDIF) exist on the edge of the mobo where your PCI cards have to go into...why? My SPDIF bracket can not be inserted into any slot in the back of my case without hitting something on the mobo...not allowing it to fully seat into the slot. So I had to insert it into the very bottom slot on my case, and it is still hitting pins on the mobo which had to be slightly bent out of the way to accomodate my SPDIF bracket! Also, I can't seem to use my 9500 Pro with this mobo either. Nothing but problems and bad design! Think about things before you release a product and have people spend a heap of $$ on it, only to figure out afterwards that there are bugs and design problems. The performance on the board itself, besides being a huge power slurper, is great. That hardly makes up for the other poor qualities it holds...i'm sad to say. I give it a 4 out of 10. Nuff said. X(

  • Just a quick survey

    Something you did not mention here is if the VoIP calls to and from the branches would be going over the VPN to the PBX that I assume is in the datacenter.
    That is actually the biggest issue in the entire scenario.
    If the SIP traffic from the remote office will be going over through the tunnel then you will have to actually provide QoS priority to the entire VPN first. then a separate QoS policy for the traffic inside the VPN.
    For those taking notes at home, this is also why VLANS are bad. You QOS the entire VLAN not the actual RTP traffic on the VLAN when you use 802.1Q.

    nick8010 wrote:
    well you can't qos traffic on the internet, are you saying i should limit the data traffic on the pipe to like 40 in out for the data traffic and reserve 10 for the voip stuff?This is you caving in to marketing and hype. There is no such thing as QoS for 99% of ALL call ever. The only time you could even possibly get a 100% QoS would be for the you and the person you are calling to BOTH be using the same SIP trunk provider and the same carrier for said provider.
    The slim chance of THAT is why there is no real point in putting all of your eggs in one basket and paying for a SIP trunk from your carrier to give you the warm fuzzies about QoS.

  • Survey: how do you power off your nano?

    This is basically a quick survey on how people normally power off their ipod nano.
    i have a 2gb black nano and have noticed some problems with turning the nano off by "holding the pause button" as this seems to reset my clock to 12am when i turn the nano back on after awhile.
    so currently i just hit pause and let it sit and the nano shuts itself off eventually. so far i have had no problems with this method.
    has anyone seen problems with this method or the other one? thanks!

    hi jeff,
    yes i have reset the nano multiple times and have even restored it multiple times. i think maybe the problem i am seeing lies in holding the pause button to shut the unit down, perhaps I am pressing too hard. i notice when i power it on after a "hold" shutdown, sometimes the power surges (its a loud power-on sound) and thats when the 12:00am appears. All the other settings remain the same as I set it, just the RTC resets. This problem never happened with a "automatic" shutdown...
    The reason for this survey is too see if anyone else has this problem and what the more "popular" way of shutting down the nano is.

Maybe you are looking for

  • Printing barcode in oracle report 6i in character mode

    Hi there, I am new in oracle reports, especially in printing it in character mode. I am trying to create a report for ticketing purposes, so I have to put barcode on it. So far, I did follow this link Printing in character mode (urgent) and yes, I di

  • How can we stop the finger pointing?  Apps Vs iPad

    Here is a WiFi problem I sent the Print Magic HD developer with the hopes of getting Print Magic HD working on my iPad. Check out their response blaming Apple WiFi. My Wifi works well with all other Apps! Whose to blame? Set up: Print Magic HD versio

  • Need to split 2up a document

    I have a pdf that needs tyo be 2upped, so that we can: duplex the document cut the page in half, place the left stack on top of the right and everything is in order. So if my original pdf looks like this: Letter1, page1 Letter1, page2 Letter2, page1

  • Update and combobox

    Hi all! I have a problem that i to reach impasse.There fore,Can you help me? i am writting code for your's form ,This Form have one datagrid to display data.in datagrid ,I used 1 Combobox to select values for ***(nam,nu), Ok button ,cancel button and

  • Oracle intermedia on the Web

    Hi We have various Oracle intermedia things in bits n peices But there are some pzzles Like 1. If all HTML files are stored in Oracle8i table and Intermedia text is created on the column in the table. How can we extract the document from the database