Games in ApEx

Hi,
Has anyone created any games in Apex?
I have some plsql code for solving sudoku that I would like to implement in ApEx (when I can work out an interface).
I would think that any of the game book ideas (if you choose to go right go to section 142, otherwise go to 122) would easily convert to the apex page format.
Regards
Michael

Thanks Doug,
I'll probably write my own interface (based loosely on yours).
Has anyone tried cards?
I wondered about cards....
If I could create a central table that people/robots could log into and record who is playing and who's turn it is.
Then I could trial one procedure against another to see which performs best.
I could even log into one of the slots myself to see if I can beat the computer!
Regards
Michael

Similar Messages

  • 2010 Forum Quotes

    In remembrance of last year let me share my collected (funny) quotes from this forum:
    | 2010 PL/SQL Forum |
    Aketi> This thread is to discussion what is difference between wmsys.wm_concat and ListAgg.
    michaels2> You might then also introduce a comparison with 11g's similar (undocumented) stragg function:
    BluShadow>Have they been letting Tom at the source code again!
    Slow_Moe>There is most certainly a difference here. I use Toad 10.5.1.3 in both cases, just pressing the button.
    We do have some issues with the database, performance wise, though. I'm starting to think it is
    not completely sane (upgraded from 9i, not installed from scratch).
    BluShadow>That could be an issue in Toad.
    We've just installed Toad 10.5.1.3 and they certainly have seemed to manage to introduce a multitude of bugs in it.
    Op presenting some large select> This was actually a query that someone else put together and asked me to fix - so I'm not actually sure what their requirements are.
    Tubby> I think you should stop immediately what you are doing, i mean this seriously.
    If you don't understand the requirement there's very little chance you'll have any measurable success tuning this. The bulk of tuning (in my experience anyways) comes from understanding the data, their distributions and the exact requirement needed by the query in question. Sure you can throw in the odd bit of technical magic to save the day, but i would say this is the exception and not the norm.
    It's entirely possible you could transform this query into an elegant 20 line query that executes in a fraction of the time, however, that's never going to happen without understanding the question you are trying to answer.
    oP> Thanks for Information.I will do in the below method.Confirm me it is OK or not
    amarkiewicz >I'm not exactly a machine and can't parse it as well as the db can. It looks like a good start. Try it out and see what happens.
    sybrand_b>BTW will anything bad happen if you post a question consisting of more than 1 line. Salary substracted? Fingers chopped off by your boss?
    John Spencer (about naming conventions in Sql Server Db)>
    Given that an unqualified name is usually resolved (only?) in the current database, and doing master.dbo.sp_help table_name gets tedious after a while, they chose to use the sp_ convention to "force" initial resolution to the master database.
    Billy> So it was introduced just because they were lazy to type a fully qualified name and rather hacked the object resolution scope and introduce exceptions to what should be sacred grounds - consistent behaviour in scope resolution....
    Makes sense... if you happen to be a Ferengi and dislike everything Vulcan...
    OP>I am finding out that explain plan and running the optimzer tools in SQL Navigator is much to read than in sql plus.
    SomeoneElse>I shall alert the media.
    OP>My database session has been locked. Please suggest something.
    Karthick_Arp> Kill the session.
    Saubhik>Find the lock and kill....
    sree>pls try alter system kill session 'SID,SERIAL#
    Ulfet>Firstly investigate why session was locked. If necessary kill session.
    Sven>All of you are session terrorists! All you want to do is kill...kill...kill! ;)
    William>The killing is regrettable but necessary to liberate the session ;)
    Billy>With most the advice offered here, you just as well can get some PE4/C4 (plastic explosives) and blow up the server. That will not only kill the "locked" session, but also kill any other potential and imagined problem arising from that server.
    As William said - a session is never locked. There is no such concept at session level in Oracle. A session can be blocked - something very different from being locked.
    A session can also become unresponsive for a number of other reasons. Stuck in an infinite loop courtesy of buggy code. Doing tons of I/O courtesy of bad SQL design that results in a cartesian join. Or slow because of just plain shoddy PL/SQL code. Etc.
    Killing that session will not tell you anything about what happened, what went wrong, and how to prevent that from happening again.
    The very first step when dealing with any IT problem is to identify the problem. Once you know WHAT the problem is, you will know HOW to address it. Killing the problem.. that only works as a solution in the military. Not in software engineering.
    Toon Koppelaars>Don't believe everything you read on the internet (even not this...)
    OP> what is the view?
    JS1>It's what you see when you look out your window.
    Someoneelse>http://theview.abc.go.com/
    OP> the application generates dynamically the condition in the form :
    where <condition_string> in ( 'red','blue')
    Billy> You need to consider what that means in actual terms.. in terms of the data model, in terms of dealing with end user requirements, and it terms of database performance.
    In most cases. this approach is fatally flawed. Is due to a poor data model and not correctly dealing with end user requirements in a performant and scalable fashion. Never mind trashing fundamental database concepts dealing with performance and sharable SQL.
    OP>of course, thats what I know. I looked for a quick workaround.
    Billy> So instead of running into a brick wall at a 90 degree angle, you want to see if it hurts less using a 60 degree angle?
    I would have thought that not running into the brick wall at all was the aim...
    BluShadow(after some heated discussion about pros and cons of SQL language syntax elements)>
    SQL> select * from dual;
    SQL> please process your datafiles and return the data from all of the columns from the table that is referenced by the name of dual;I know which I'd prefer....
    Munky>I like the way you said 'please'. Maybe, rather than all this 'tuning' nonense - response time could be directly correlated to how polite you are!
    Boneist>That's certainly true of the forums, if not the database! *{;-)
    Karthick_Arp>I would wish for MAKE_ME_RUN_FAST hint
    Munky>But surely this would be better?
    SQL> set timing on
    SQL> Hi ther Mr. DB (I do hope you don''t mind me calling you that?).
         I''ve got some super stuff for you to do and I would be just
         thrilled if you could do it expediently.
         However  - no pressure - you just do it at your earliest convenience.
         What I''m look for is all of the data from all of the columns
         that you've got in that dual fellow.
         Would that be okay?
         Jolly good, and thanks again old boy! xxx;
    D
    X
    Elapsed: 00:00:00.01
    SQL>----------
    Hari>Sorry Blushadow if my information went wrong, I copied it from a OTN Forum
    Blueshadow>Don't believe everything you read on the OTN forums, it's full of people posting inaccurate information. ;)
    William (in the "Wishlist" thread">I'd like BETWEEN to have an optional EXCLUSIVE clause for each end of the range so we didn't have to keep rewriting it using AND x < y etc.
    I'd like them to drop the stupid MODEL clause so I didn't have to feel inadequate for not understanding it, along with GROUP BY CUBE and while they're at it, XML.----------
    OP>If I need to remove some sensitive data from single field of a row in database (10g and 11g), is there a function provided by Oracle Db to do that? Just simplely set the value to null is not enough. I heard that 3 passes or more with certain set of values can do the trick. But I am not quite sure about it. Any suggestions? Thanks.
    hoek>Tricks don't exist in Oracle database-world. Please turn you mumbo-jumbo into somethng humans and databases can read and understand.
    Munky>You could get Prime's armed DBA to hack away at it? When NULL is not enough, use a chainsaw (sure I heard that somewhere?).
    John>Wouldn't it be a bit insensitive to shoot sensitive data ? (armed DBA ... could be a new role ;) )
    Munky>{code}SQL> CONNECT SYS as ARMED_DBA{code}
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:1156151916789#25335122556076
    user11268895>..but i was wondering why:
    user11268895> select count(distinct rowid) from mytable
    user11268895> select count(rowid) from mytable
    user11268895>were not rewirtten to the same thing (syntaxically/logically they are not the same, but an optimization can be made there (removal of the aggregate))...
    BluShadow>It's probably not automatically rewritten to teach you a lesson for not understanding what rowid is and not knowing that rowid's are already distinct. :P
    3360>Also it is a game of catch up. When Oracle protects developers from doing one stupid thing they seem to be infinitely resourceful in coming up with new ways to shoot themselves in the foot.
    http://www.quotedb.com/quotes/2701
    op> what is scalar subfactory .what is the purpose of it.
    MichaelS>Do you - by any chance - actually mean Scalar Subquery?
    op> scalar subfactory usage in performance tuning
    WHiteHat>do you mean a sub-contracted industrial plant specialising in extreme musical instrument manipulation?
    OP>I am getting an ORA-03113: error when executing the below trigger
    CharlesRoos>This happens when you come to work in the morning run first query without reconnecting to database firstly.
    OP: find first three highest salary from emp for each dept
    Sven: John, Paul and George.
    Munky: Got em! They were hiding under my desk! Do I get a reward for returning them safely?
    OP: query to find first three highest salary from employee table for each department
    Maxim: But really interesting is , what their salaries are... And whether their company still hire...
    Munky: "query to find first three highest salary from employee table for each department " => I've have made the appropriate enquiry. Hope this helps!
    Dbb: I suspect it is for fire them...
    Riedelme: "Sven wrote: John, Paul and George." What do you have against Ringo?????
    Munky: The OP only wants to fire the three that earned the most (obviously forgetting any additional income made from doing voice overs for children's programs)
    Sven: Afaik Ringo doesn't earn as much as the other three.
    OP: asking some question about dependencies
    OP (30 minutes later): Is any one there????
    Someoneelse: "Just nod if you can hear me"
    OP: I'm noding can u c me?
    Jay> First of all, whenever i try and put my attempted code for this in a thread it says 'sorry content not allowed'.
    BluShadow> It could be that your code contains some words that aren't permitted on the forums. If it contains certain words that spammers use a lot e.g. "S h o e s" then it may be rejected by the forum on the belief that you're trying to post spam.
    Billy> Or "d i s c o u n t" and similar words..
    Munky> But not 'bollocks'! <cringes - sorry couldn't resist>
    BluShadow>Of course not, we're allowed to talk bollocks. We do most of the time anyway. ;)
    Mosaq> and some of it is necessory sometimes ;-)
    | APEX forum 2010 |
    Peter to Carl>but if you say it's possible, it should work!
    carl>I say all sorts of things, that doesn't mean that it "should" work just that I think it "should" work . ;)
    j4john>Now that Craig Venter is creating synthetic life and the Higgs boson is wearing a false nose to evade detection, it's probably time to up the game in Apex file uploads.

    This is the great thread ;-)
    My favorite threads are below.
    Munky posted great reply :8}
    SQL Query Help
    order in a connect by

  • Changing Column Value Style using SQL Query

    Hi,
    I'm trying to build a fantasy basketball game with APEX. I have a table that has a list of games. I need to change the color of the column value i.e. the name of the team that wins according to a SQL query Here's an example:
    TABLE NAME: LATESTGAMES
    Home Away Homepoints Awaypoints
    Boston Cleveland 105 101
    Toronto Washington 122 83
    What I want to do is display the winning team i.e. Boston and Toronto in Green since that's the team that won.
    The SQL query is:
    SELECT HOME,
    AWAY,
    HOMEPOINTS,
    AWAYPOINTS
    from LATESTGAMES;
    What do I need to do in order to display the Winning Team as Green on every column? Please Help

    Hello Devilfish,
    I did something like that in my DG Tournament application (http://www.dgtournament.com)
    Your SQL query can look like this:
    SELECT CASE
              WHEN (homepoints > awaypoints)
                 THEN '<span style="color:green;">' || home || '</span>'
              ELSE home
           END AS home,
    SELECT CASE
              WHEN (awaypoints > homepoints)
                 THEN '<span style="color:green;">' || away|| '</span>'
              ELSE away
           END AS away,
    HOMEPOINTS,
    AWAYPOINTS
    from LATESTGAMES;Hope that gives you an idea,
    Dimitri
    -- http://dgielis.blogspot.com
    -- http://apex-evangelists.com

  • Apex 3.2 Tabular form - dynamic selection based on prev selection

    Hi guys,
    I am using apex 3.2. I am having difficulty in setting up a tabular form which provides an option to record information in other columns based on a value selected in the drop down.Here is an example
    I have a table product. All the products are added using a tabular form by selecting type from a drop down list.
    This allows the user to add multiple products without having to press save each time.
    e.g.
    product | type
    monopoly | game
    vase | home
    coffee | food
    cards | game
    Depending on the product type, I want the user to be able to multi-select other options using checkboxes based on the option selected.
    So for example if they add a product of type food, it should give additional options like beverage, cereal etc. If they select game, then they should get other options like for age_groups 10-12; 12-16; 18 and over;
    Is it posisble to do this on a tabular form in apex 3.2?
    If yes, please can someone help.
    Thanks
    Sam

    Closed

  • Is this possible to make work in ApEx?

    Look at the link:
    http://www.comlinebrokers.com/index.php?id=5
    "floating" table header is really amazing...is that possible to create in ApEx?
    THX!

    Hello Damir,
    This floating table header has nothing to do with APEX. It is all HTML, JS and CSS games. You can see the principle demonstrated in the following Vikas's example - http://htmldb.oracle.com/pls/otn/f?p=24317:156 . With the same technique, you can float the report's header.
    BTW, if you are looking for a table fix header functionality, already adapted to APEX, you should look into the following - Re: How to implement fixed column headers
    Regards,
    Arie.

  • b The nicest APEX app / feature /b

    Hello,
    At ODTUG I'm doing the APEX vs ADF Shoot-out, together with Lucas Jellema.
    The last presentation Lucas and I did last year in the Netherlands. We decided to change some things in the presentation. One of them is to include "the nicest app or features in both environments".
    So, I thought to ask the community what they think I should show.
    Currently the list I thought to chose of:
    * Out of the box in APEX: from raw Data to Application and Interactive Reports
    * "Web 2.0" extensions in APEX: for ex. ExtJS and Dhtmlx
    * Integration with Webservices, Fusion and SOA
    * Extending E-business suite with APEX
    (although I don't have the Oracle Applications Suite running on my laptop, so it will be hard to show)
    * Integration with SQL Developer
    I've about 15 mins to show the coolest, nicest features or application around, build in APEX. So it's not necessary to show things in dept or explain how to do them.
    What features do YOU think make APEX incredible? Feel free to send me some screenshots or even nicer real demo sites or an application export I can show.
    I know a lot of the applications we build are "internal" only, but if you could make a subset of it to just show the cool feature, that's already fine. If you just want to share what you think would be cool to show, just add a comment ... there might be a chance I already did some testing with it.
    See also: http://dgielis.blogspot.com/2008/06/nicest-apex-appfeatures.html
    Let's show the ADF guys something ;-)
    Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://apex-evangelists.com/
    -- http://apexblogs.info/

    Hi Peter,
    I have a very nice anecdote about 1. APEX for Dummies!
    In DG Tournament there was a problem, people couldn't login... but I didn't have an internet connection at that time and as people had to bet on the games it had to be fixed asap.
    So I called my brother (as he was one of the only persons I could reach) and asked him to follow my instructions. In 5 minutes it was fixed! He's a teacher in sports, so NOT technical at all. He could do everything with his browser, no need to redeploy or have tools on his pc. I should blog about it, but then I'm not sure if the ADF guys read it, they will shoot at that ;-)
    I don't want to stress 1 too much, as APEX is/was seen like that before and the marketing is also done like that by certain people, but as you also say in 2. APEX is very powerful. I see it as a fit for a lot of people; from business people who have not many technical skills to the guru developers.
    Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://www.apex-evangelists.com/
    -- http://www.apexblogs.info/

  • Implementing Google Search into Apex Application

    Hello everyone
    I've recently been moved to handling Apex at work so I've been creating applications in my free time. At the moment, I'm working on a game wishlist application, where users can add games to a wishlist, get email updates upon release, etc.
    I had the idea that a user can click on a game's title and be brought to a overview of that games details, including a news section where you could see recent news around the title. What I'd like is to integrate Google News into my application and have the search term dynamically change depending on which game the user is viewing.
    Would this be possible and what would be the best way of doing it?

    Not something I've ever done, but perhaps create a URL based region and define the source as the relevant google URL with your search field substituted in
    ie, taking the URL example from 4.1
    http://quote.yahoo.com/q?d=b&s=ORCLAnd try changing it to
    http://quote.yahoo.com/q?d=b&s=&P1_SEARCH.
    Scott

  • Build form and report on APEX RESTful service on another server

    Hi guys,
    I have been stuck with this for long time.
    I have this web service on server A ( an exposed report as web service )
    http://brown.maxapex.com/apex/apex_rest.getReport?app=112&page=8&reportid=REST
    - I exe this command on server A
    select utl_http.request('http://apex.oracle.com') from dual;
    and did not get error which indicates that the Network resources are available.
    I need to build a form and report based on that service on server B. But I could not. Can you help pls ??
    work space : fam
    user: test
    password: test
    Application 49141
    user: fateh
    password: fateh
    Regards,
    Fateh

    Hi guys,
    Pls, answer my questions. I am at the final stage of the game ..
    Regards,
    Fateh

  • [b]Adding IM (XMPP/Jabber) messaging to APEX[/b]

    For anyone interested on adding IM notifications to an APEX application, I have blogged about it at http://apextoday.blogspot.com . This has been a great hit with my deployed applications. In some cases sending e-mail notifications with apex_mail.send might be overkill, but some users don't seem to mind getting an IM with some useful data.
    Let me know if this is useful to you!
    Noel Portugal
    http://apextoday.blogspot.com

    h2. Interact with Openfire
    h3. How to use Oracle XMPP and Openfire
    The purpose of plugging Oracle XMPP is to integrate Instant messaging in a secure way in already existing production environments, as it seems like more and more people do use XMPP for different reasons. As a DBA, will appreciate to get Alert Messages from my instances without having to open ports to the world wide web as network people do dot really appreciate to open ports to the outside. So, here we are, i'll provide you a very simple tutorial on how to interact with Openfire from Oracle XMPP.
    h3. Requirements
    In this howto, i'll assume that you will use Openfire and Spark default settings, so if you perform a Next/Next install, things will be straight for you.
    In this very short tutorial, be sure to follow some very basic conditions.
    Be sure that the Oracle-XMPP account and target user do accept messages the one from the other. In my case (surprise !!!), the XMMP used to send messsages from Oracle is the openfire configured scott/tiger user, and i'll send messages to prslump. In my case, everything runs locally on my laptop and my hostname is l20323.
    In my configuration, i connect my self to the Openfire with the Spark client as prslump. That's all, we are ready to start make interact Oracle with Openfire/Spark.
    h3. Test connection
    Log on with your prslump/target IM account (the one that will receive incoming messages) with Spark (or any other XMPP client of your choice, like Pidgin) to your running Openfire server
    Notice that everything is here running locally, so for a more realistic example, replace localhost with the server name that hosts Openfire.
    Next, run from your Oracle session :
    {noformat}select dbms_xmpp.test_connection('localhost',
         5222,
         'spark',
         'scott',
         'tiger') xmpp_return_code from dual;
    {noformat}And you should get the following output : {noformat}XMPP_RETURN_CODE
    0
    {noformat}this is it. We are ready to go further.
    h3. Send a Messge
    In this section, scott/tiger will send a message to prslump, and it will be a bit fun. Before to run the script, be sure to always have your Spark client, logged as prslump, and at a give instant, you will see scott online, then you get the message, then back offline.... hmmm looks like dba have funny games ;-)
    Therefore, just run :
    {noformat}select dbms_xmpp.send_plain_text_message('localhost',
         5222,
         'spark',
         'scott',
         'tiger',
         'prslump@l20323',
         'Dummy subject',
         'Hi, this is scott talking ! Can you run stats on my schema please ?') xmpp_return_code
    from dual;
    {noformat}And you should get the following output (and of course your message in your IM client) : {noformat}XMPP_RETURN_CODE
    0
    {noformat}
    h3. Get Rosters
    Finally, discover scott's contacts. Hence we should (at least) discover prslump, therefore, just run :
    {noformat}- get XMPP rosters
    col ID for 99
    col ROSTER_NAME for a30
    col ROSTER_USER for a30
    col ROSTER_TYPE for a5
    col ROSTER_STATUS for a30
    set linesize 135
    select ID as "Id",
         ROSTER_NAME as "Name",
         ROSTER_USER as "User",
         ROSTER_TYPE as "Type",
         ROSTER_STATUS as "Status"
    from table(dbms_xmpp.rosters_table('localhost',
         5222,
         'spark',
         'scott',
         'tiger'));
    {noformat}Then we get something like that : {noformat}Id Name User Type Status
    1 prslump prslump@l20323 both ITEM_STATUS_NULL     
    {noformat}That's all.
    h3. Conclusion
    As you can see, there's nothing more to configure to interact with Openfire and Spark from Oracle-XMPP. Initially, i wanted to interact with Openfire for two main reasons :
    # Be able to use Oracle-XMPP in secured and closed environments
    # Be able to work and develop locally while not connected to internet
    I think that both goals have been achieved and hope that it could be helpfull to some of you. As always, your feedback is of course welcome.

  • [ Games ] Zangband

    i got bored so heres a pkgbuild for zangband.. although i find the key combinations absolutely rediculous (id rather program brainf***), arch is missing any rogue like games from what i can see.. so heres one!
    unfortunately its not the most well written piece of software!
    im really hammering a square peg into a round hole here..
    if anyone can make it neater.. PLEASE.. do so!!
    youll need to do `mkdir ~/.config/zangband' before you play or you wont be able to save your character
    ive never gotten the graphical tilesets to work, if anyone does, please let me know how.. ascii is no fun
    PKGBUILD
    #contributor: Adam Griffiths
    pkgname=zangband
    pkgver=2.7.4c
    pkgrel=1
    pkgdesc="Zangband is a variant of the game Angband which is descended from the game Moria which is in turn based upon the game Rogue."
    url="http://www.zangband.org/"
    depends=()
    conflicts=()
    backup=()
    install=zangband.install
    source=('ftp://ftp.sunet.se/pub/games/Angband/Variant/ZAngband/zangband-2.7.4c.tar.gz')
    build()
    # from http://www.zangband.org/Compiling.aspx#linux
    cd $startdir/src/$pkgname/
    cp makefile.std makefile
    # zangband make file doesnt make parent directories.. peh
    mkdir -p $startdir/pkg/usr/local/share/games
    mkdir -p $startdir/pkg/usr/local/bin
    make || return 1
    make prefix=$startdir/pkg/usr/local install
    # move the data to a respectable area
    mkdir -p $startdir/pkg/usr/local/games
    mv $startdir/pkg/usr/local/share/games/zangband $startdir/pkg/usr/local/games
    rm -rf $startdir/pkg/usr/local/share
    # make a small script to run zangband
    # this script will require X11!! remove the '-mx11' parameter to allow for console
    mv $startdir/pkg/usr/local/bin/zangband $startdir/pkg/usr/local/games/zangband/zangband
    echo -e "#!/bin/bash n/usr/local/games/zangband/zangband -g -mx11 -dd=/usr/local/games/zangband/lib/data/ -db=/usr/local/games/zangband/lib/bone/ -de=/usr/local/games/zangband/lib/edit/ -dz=/usr/local/games/zangband/lib/script/ -da=/usr/local/games/zangband/lib/apex/ -df=/usr/local/games/zangband/lib/file/ -dh=/usr/local/games/zangband/lib/help/ -di=/usr/local/games/zangband/lib/info/ -dx=/usr/local/games/zangband/lib/xtra/ -ds=~/.config/zangband" > $startdir/pkg/usr/local/bin/zangband
    # set our data / executable permissions
    chmod -R 774 $startdir/pkg/usr/local/games/zangband
    chgrp -R users $startdir/pkg/usr/local/games/zangband
    # set our script permissions
    chmod 774 $startdir/pkg/usr/local/bin/zangband
    chgrp users $startdir/pkg/usr/local/bin/zangband
    md5sums=('b638b05c3fd967e4e9fcd6dbc1e7deb6')
    zangband.install
    post_install() {
    echo ""
    echo "--------"
    echo "Before playing, each different user of your system must perform a 'mkdir ~/.config/zangband' or they will not be able to save their character"
    echo "--------"
    echo ""
    op=$1
    shift
    $op $
    ive never used a .install file before so it may have some useless stuff in it.. ie the `op' stuff..

    This is a game named "Nova"?
    Where are you downloading it from?
    Detailed questions from you would be helpful, rather than just one line statements.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Resources on building multi-resolution desktop games?

    Hi, I'm currently working on a game and was wondering if it was at all possible to build an Adobe AIR desktop game that has multi resolution handling.
    For instance, when you boot up Binding of Issac, or any other desktop game, in the settings page you can change the resolution from2560 x 1440, to 1920x1080, and so on so forth to accomadate the game to your monitors screen / fullscreen, windowed, etc.
    Is this possible to do?
    I've looked on the web for and I've come across is iOS resolution development. Are there any resources available for desktop games? So that hypothetically in the future, if I use Adobe Air to package up my game I could submit it to steam, and not neglect users who have monitors bigger than 1920x1080 6:9?

    O.K.
    This is my opinion:
    If you want to create high quality applications using Apex you will need the following
    (the percentages in the brackets are supposed to show the importancy in the total of 100%):
    1. Good knowledge of PL/SQL and SQL (70%)
    2. Good knowledge of javascript (10%)
    3. Good knowledge of HTML and DOM (10%)
    4. Good knowledge of CSS (5%)
    5. Other programming skills (5%)
    How can you get (improve) that knowledge?
    1. getting a training (5%)
    2. reading documentation (15%)
    3. learning by doing (50%)
    4. participating in forums (20%)
    5. using google (10%)
    As I said, this is only what I think and how I see that. Other people may dissagree.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Can I play Game Center Games with other family members sharing one Apple ID

    I have several IOS devices sharing the same Apple ID that my sons and wife use. I have set up a game center account using that ID and can find no way that we can play head to head games on those multiple devices against each other using that one Apple ID login, even if I create multiple Nicknames. Am I missing something?

    An Apple ID is just an account that uses an email address and password. It does not have to be tied to iTunes. You can create one here. Create one each for your sons and wife.

  • Apex application registered with sso as partner application

    We have 1 apex app registered with sso and working properly.
    I just registered a new apex application with sso. when i authenticate through sso, it directs me to the originally registered application.
    I went in through the portal administrator app and verified my settings all pointed to the new application. I verified that my dad is set up correctly.
    Any ideas?
    APEX 2.0

    i did register and obtain the keys through portal admin.
    to ensure i used the proper keys (i guess there is a possibility i used the keys from db1 registration) i re-ran regapp with the right keys but recieved the following output:
    SQL> @regapp
    Partner Application Configuration
    Enter value for listener_token: HTML_DB:050iasphttp.xxx.na.xxx.com:7777
    Enter value for site_id: EFBE3E14
    Enter value for site_token: MSMXURH1EFBE3E14
    Enter value for login_url: https://050iaspdb.xxx.na.xxx.com:4443/pls/orasso/orasso.wwsso_app_admin.ls_login
    Enter value for encryption_key: 2EBDD126A3A40606
    Enter value for ip_check: N
    ERROR: Error in registration. Please try again
    User-Defined Exception
    Registration successful.
    Listener token: HTML_DB:050iasphttp.xxx.na.xxx.com:7777
    Site id : EFBE3E14
    Site token : MSMXURH1EFBE3E14
    Encryption key: 2EBDD126A3A40606
    Login URL :
    https://050iaspdb.xxx.na.xxx.com:4443/pls/orasso/orasso.wwsso_app_admi
    n.ls_login
    Logout URL :
    https://050iaspdb.xxx.na.xxx.com:4443/pls/orasso/orasso.wwsso_app_admi
    n.ls_logout
    IP check : N
    PL/SQL procedure successfully completed.
    Commit complete.
    No errors.
    SQL>
    ...in spite of the error, i aske the app developer to try and use sso for db2. he now recieves:
    User-Defined Exception
    Error Error in wwv_flow_custom_auth_sso.process_success:l_sso_user_name:l_sess_id:: Please contact administrator.
    OK
    any ideas?

  • APEX-The manullay created column is not getting updated in the database

    Dear all
    I have a form on page, which is created along with a report using Form on a Table with Report option. From the form I have deleted one field and recreated manullay as set the property as database column. When I am calling from the report page (using defualt edit option) the value is showing there, but if I am 'Apply Changes' , the column value in database is get updated with null.
    Please help
    DJ.

    This is the SQL and PL/SQL forum.
    Please re-post this on the APEX forum.
    Oracle Application Express (APEX)

  • How to repaint a JPanel in bouncing balls game?

    I want to repaint the canvas panel in this bouncing balls game, but i do something wrong i don't know what, and the JPanel doesn't repaint?
    The first class defines a BALL as a THREAD
    If anyone knows how to correct the code please to write....
    package fuck;
    //THE FIRST CLASS
    class CollideBall extends Thread{
        int width, height;
        public static final int diameter=15;
        //coordinates and value of increment
        double x, y, xinc, yinc, coll_x, coll_y;
        boolean collide;
        Color color;
        Rectangle r;
        bold BouncingBalls balls; //A REFERENCE TO SECOND CLASS
        //the constructor
        public CollideBall(int w, int h, int x, int y, double xinc, double yinc, Color c, BouncingBalls balls) {
            width=w;
            height=h;
            this.x=x;
            this.y=y;
            this.xinc=xinc;
            this.yinc=yinc;
            this.balls=balls;
            color=c;
            r=new Rectangle(150,80,130,90);
        public double getCenterX() {return x+diameter/2;}
        public double getCenterY() {return y+diameter/2;}
        public void move() {
            if (collide) {
            x+=xinc;
            y+=yinc;
            //when the ball bumps against a boundary, it bounces off
            //bounce off the obstacle
        public void hit(CollideBall b) {
            if(!collide) {
                coll_x=b.getCenterX();
                coll_y=b.getCenterY();
                collide=true;
        public void paint(Graphics gr) {
            Graphics g = gr;
            g.setColor(color);
            //the coordinates in fillOval have to be int, so we cast
            //explicitly from double to int
            g.fillOval((int)x,(int)y,diameter,diameter);
            g.setColor(Color.white);
            g.drawArc((int)x,(int)y,diameter,diameter,45,180);
            g.setColor(Color.darkGray);
            g.drawArc((int)x,(int)y,diameter,diameter,225,180);
            g.dispose(); ////////
        ///// Here is the buggy code/////
        public void run() {
            while(true) {
                try {Thread.sleep(15);} catch (Exception e) { }
                synchronized(balls)
                    move();
                    balls.repairCollisions(this);
                paint(balls.gBuffer);
                balls.canvas.repaint();
    //THE SECOND CLASS
    public class BouncingBalls extends JFrame{
        public Graphics gBuffer;
        public BufferedImage buffer;
        private Obstacle o;
        private List<CollideBall> balls=new ArrayList();
        private static final int SPEED_MIN = 0;
        private static final int SPEED_MAX = 15;
        private static final int SPEED_INIT = 3;
        private static final int INIT_X = 30;
        private static final int INIT_Y = 30;
        private JSlider slider;
        private ChangeListener listener;
        private MouseListener mlistener;
        private int speedToSet = SPEED_INIT;
        public JPanel canvas;
        private JPanel p;
        public BouncingBalls() {
            super("fuck");
            setSize(800, 600);
            p = new JPanel();
            Container contentPane = getContentPane();
            final BouncingBalls xxxx=this;
            o=new Obstacle(150,80,130,90);
            buffer=new BufferedImage(getSize().width, getSize().height, BufferedImage.TYPE_INT_RGB);
            gBuffer=buffer.getGraphics();
            //JPanel canvas start
            final JPanel canvas = new JPanel() {
                final int w=getSize().width-5;
                final int h=getSize().height-5;
                @Override
                public void update(Graphics g)
                   paintComponent(g);
                @Override
                public void paintComponent(Graphics g) {
                    super.paintComponent(g);
                    gBuffer.setColor(Color.ORANGE);
                    gBuffer.fillRect(0,0,getSize().width,getSize().height);
                    gBuffer.draw3DRect(5,5,getSize().width-10,getSize().height-10,false);
                    //paint the obstacle rectangle
                    o.paint(gBuffer);
                    g.drawImage(buffer,0,0, null);
                    //gBuffer.dispose();
            };//JPanel canvas end
            addWindowListener(new WindowAdapter() {
                @Override
                public void windowClosing(WindowEvent e) {
                    System.exit(0);
            addButton(p, "Start", new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                    CollideBall b = new CollideBall(canvas.getSize().width,canvas.getSize().height
                            ,INIT_X,INIT_Y,speedToSet,speedToSet,Color.BLUE,xxxx);
                    balls.add(b);
                    b.start();
            contentPane.add(canvas, "Center");
            contentPane.add(p, "South");
        public void addButton(Container c, String title, ActionListener a) {
            JButton b = new JButton(title);
            c.add(b);
            b.addActionListener(a);
        public boolean collide(CollideBall b1, CollideBall b2) {
            double wx=b1.getCenterX()-b2.getCenterX();
            double wy=b1.getCenterY()-b2.getCenterY();
            //we calculate the distance between the centers two
            //colliding balls (theorem of Pythagoras)
            double distance=Math.sqrt(wx*wx+wy*wy);
            if(distance<b1.diameter)
                return true;
            return false;
        synchronized void repairCollisions(CollideBall a) {
            for (CollideBall x:balls) if (x!=a && collide(x,a)) {
                x.hit(a);
                a.hit(x);
        public static void main(String[] args) {
            JFrame frame = new BouncingBalls();
            frame.setVisible(true);
    }  And when i press start button:
    Exception in thread "Thread-2" java.lang.NullPointerException
    at fuck.CollideBall.run(CollideBall.java:153)
    Exception in thread "Thread-3" java.lang.NullPointerException
    at fuck.CollideBall.run(CollideBall.java:153)
    Exception in thread "Thread-4" java.lang.NullPointerException
    at fuck.CollideBall.run(CollideBall.java:153)
    and line 153 is: balls.canvas.repaint(); in Method run() in First class.
    Please help.

    public RepaintManager manager;
    public BouncingBalls() {
            manager = new RepaintManager();
            manager.addDirtyRegion(canvas, 0, 0,canvas.getSize().width, canvas.getSize().height);
        public void run() {
            while(true) {
                try {Thread.sleep(15);} catch (Exception e) { }
                synchronized(balls)
                    move();
                    balls.repairCollisions(this);
                paint(balls.gBuffer);
                balls.manager.paintDirtyRegions(); //////// line 153
       but when push start:
    Exception in thread "Thread-2" java.lang.IllegalMonitorStateException
    at java.lang.Object.notifyAll(Native Method)
    at fuck.CollideBall.run(CollideBall.java:153)
    Exception in thread "Thread-3" java.lang.IllegalMonitorStateException
    at java.lang.Object.notifyAll(Native Method)
    at fuck.CollideBall.run(CollideBall.java:153)
    i'm newbie with Concurrency and i cant handle this exceptons.
    Is this the right way to do repaint?

Maybe you are looking for

  • Not enough storage space error. wont let me back up

    When my 4S attempts to automatically back up I get an error message saying there is not enough storage space. I'd like to see whats taking up the space on the cloud, but when I access the cloud, theres NOTHING that could be taking up that much space!

  • Computer crashing on boot

    I'm trying to troubleshoot a computer remotely (family computer in another state) and am running out of ideas. The computer in question is a Powerbook G4 1.25 running Leopard. The computer apparently crashed (hard crash to the grey screen) shortly af

  • How to create service PO while using BAPI

    Dear Experts I am getting error while creating Service PO using BAPI E 518 No account assignment exists for service line 0000000010 E 518 No account assignment exists for service line 0000000010 TYPES : BEGIN OF ty_header,         po_no(10)   TYPE n,

  • Help needed in writing installers for swing application

    Hi , I want to write an installer for one of our home grown profiler tool. I need to write the installer for different platforms such as windows,linux,solaris,HP-UX. Does anybody have any idea of how to go ahead in writing installations. Share if the

  • Increase your mailbox size - email threat

    I have been hit with an email threat - subject starts out as "Increase Your Mailbox Size", there is a link in the email.  I am guessing that this initiates when a user clicks on the link, but the link is disabled now. We've had at least a couple user