OpenSocial Tutorial – Part 1: Gadget Basics

YouTube Preview Image

Attention! API Garbage (might be unreadable):

social account file

Social is the basic steps you or social obligations to first introduce dual primer on gadgets gadgets at the basic level are just XML files and surrendered a quick look at what an XML file looks like as you can see that they judge it is just XML of the top of the file you can see the XML version site and encoding and below that you can see the tags that specify this as a data file we open everything up with the module tag and insight that we have model preferences that specify things like the application s title and required features are necessary for the application you re requiring the open social future and below that we actually define the contents of the gadget here at the conference that does HTML inside that we have exceeded a section which were all barcode are issued on JavaScript go and the string hello world snuck a little entrance of the way we can go down to not run our first social obligation sues a couple things real need for this first a text editor and web hosting account and additions that you need in order account and access to the orchid sandbox which is where we alighted tester social applications I was in that most of you have a text editor that a lot of you probably are to have Web hosting but if you don t does two things you can try first is Google code Project hosting which is a place to host open source applications of you like to make your gadget open source and hosted there and if you don t want to do that you can use Google page Creator which allows you to upload HTML files and additional files and upload other non-additional files like gadget specifications that writing so what s it about awake during Tikrit orchid account which is pretty straightforward as the orchid.com will want to do steps want to deny me to sign up for access to the sandbox which is pretty straightforward as well with a link that you can use to do that and once you have access you can log into sandbox to orchid.com and either get frustrated and so what you should do if you should take the text of the sample gets copied into a text file and save it under Web hosting account is hello world.XML log into your account and on the edit button next apps on left and some of the page type in the URL of your newly created XML file click on the add application button at the application permission to access your account and then click on the link that adds to the applications and pitch tonight in soldier for social applications and orchid for more information on what I just did as well as more information on the rest of the social API check out the tutorial and code.google.com under the open social section

OpenSocial Tutorial – Part 1: Gadget Basics

YouTube Preview Image

Attention! API Garbage (might be unreadable):

social gadget file

Him and stuff so social obligations as there used your primer on gadgets and a musical artist XML files and surrender to what it wanted an XML file looks like as you can see a gadget is just XML of the top of the file you consume XML template and encoding and below to see the tags to specify this as a data file we open everything up with a model to an insider that we have model preferences that specify things like the application s title and required features are necessary for the application year requiring the open social future babble about we actually define the content of the gadget here to contemplate his HTML inside that we have a seated section which is where all our code are issued on JavaScript go and the string hello world s not a little entrance of the way we can go down and out wrong our first social obligation as a couple things you need for this first a text editor and web hosting account and in addition to the Indonesian order count and access to the sandbox which is where we alighted ester social obligations I wasn t most of you have a text editor that a lot of you probably only have one post but if you don t does two things you can try first is Google code Project hosting which is a place to host open source applications of you like to make your gadget open source and hosted there and if you don t want to do that you can use Google page Creator which allows you to upload HTML files additional files and upload other non-additional files like gadget specifications that writing so what about a waiter going to create an organ account which is pretty straightforward disco duck, no one to do steps want to deny any desire for access to the sandbox which is pretty straightforward as well to what you can use to do that and once you have access you can log into sandbox to order.com and aggregate in Austria to do their so what you should do if you should take the text of the simple gadget copy that into a text file and save it under Web hosting account as hello world.XML log into your account click on the edit button next apps on weapons of the page type in the URL of your newly created XML file click on the application button that the application permission to access your account and then click on the link that adds to the applications and bitch to install different social obligations or for more information on what I just did as well as more information on the rest of the social if you check out the chart on code.google.com for the open social section

DIR in C++ using Win32API (part 2)

YouTube Preview Image

Attention! API Garbage (might be unreadable):

function file path

And go in April and I thought for quite a while but an iMac that we in the UK and I m going to show you how to make your own data manually connect on the farm and particularly in awful lacking in any sort of active iostream or see out to eat window.H. really not be had and back page which might not have heard about the pimping the function call in July 2000 night per the left of the Fulbright is another declaration that he needs the 50 or were going to declare the function and am I m in on my own of the void and numb my all to and out of the actual function implementation is a so it divided the family need a handle and pull them value for sorry sorry sorry that your H. file = force file alphabetically of course you any names than expansion and point her to SND file now he H. filed a story that is going to be sort of the first file automatically in the older you get a do while you do if at any time that you we find a few and find to be back blogging event that is why Wilby means that the 510 and to show it yeah statement BR who have known you/Bab had the lowest insertion FNB.E. file name and then of course occasion to make things a little bit more than anything else in the victim has been to a file on 4 yards by L./toughest time again at 98 filename daddy of Durham and went on with your database be done that will undoubtedly lead going to store find next by once again appointed to H. I LN appointed to FNB by a toy with me finish the do statement YLB Donnie close to be done equally close to you that Monica Nagy through the often now return the function is the genetic map on main function and the main ball a bit in the scrotum of the immediate wondering if how about the function know from which they bite off what they generally infected floppy with the unlike that time back going at that time they have indicative of the files will be taken at Kosovo and the CME main function a city planner and I have tentatively to hold the path of the folder lock usually for almond now and it s golden and managed to motivate and guide you feed attack by looking at the path veto indeed what you_get July the good life inside the function defined in a back page now there are 48 have sex whenever I will be path one of the old Hughes advanced the path to URI and the will to play us and eat by@anyAVmotive.mil company On did not allow them affect the run-of-the-mill terminating And ubiquitous equipment of right now practical effect on the authority of the wreck when he he path now he gets it right in me that it would be a path if you will see two .do you: am I L. while the airing of the newest implementation now some violence you to were not compiling ES and the Haley have a narrow new what our exactly do we have the demanding a battle on, what Arafat did I find I can t find any error, if it s anything as dumb as amusing as the cynical assortment to compile again and I hope it works knocking anything see if I ll put it to Everything that it may approve documents and saying the things that I might feed my program files system with information users needing that the Windows do that and whether the theater portable I enter that on a config.so and that I believe they did the wheel a few rent onto my own thing I would have been to get out of either that new guy on the and defined by my

Apollo Alpha Preview – Using the Apollo File API

YouTube Preview Image

Attention! API Garbage (might be unreadable):

fall file save

Application was built with simple HTML editor which will highlight some future APIs Apollo provides 300 and so create a new Apollo Project with the Fox bowlers from the foul new Apollo Project and begin through basic project and let s call this HTML editor will use the default location this click finish this will create all the default false for me just as we did in whole world we need to go to edit a few properties and the XML file and hit enter their affiliatescall was calm about my chambers but HTML editor in list is look over other properties so named HTML editor given a description of simple issue motive or and we do know the publisher which is me my chambers or signature owning and assorted rude constant tide of which can just use a rigorous system chrome server thing here is falling will come back later and add the icons will fill that in just just also say this fall file and save what we can close that in the switchover time XML file is the default application that looks to close which overthrew the design view so can actually lay out the UI of our petition to force a larger owner bring a button_click of the components panel and drag it over bringing the corner and with that select them will come over the properties panel will give it an ID first one is called save button and basically the IDE is giving the component of variable names so you can reference it later on within your application also change the label will call it saved them if only one scroll down to the constraint options and we want this button always be in the bottom right panel source, thank you then write their own right you can see here for and hit enter up your solicitor for now this button over the long right the next thing we need is a go back over her components you can select a text input this just a simple text field and displace RMS a save button again with that select to go to the properties of you forgive the ID of file name will use this solo all the user to put in the file name and the default text with go ahead and give it a default value just so we ll have the full limit recounts one scallop test.html for traditional fall and again we want to set the constraint options again we just want the text input to be in this position along the bottom phones, select this on the bottom to get to the bottom and then to the right and you can see here is about 72 pixels there and that s just where we are dragged final thing we need to do is bring enough text area control so drag the text area control from the components you onto the stage and the Marina resizes to take up most of the stage and this is control that shouldn t be used actually type in the HTML photo with the control selected again go to flex properties when given the ID modems call this input field and then we want to go down to the constraint properties and we wanted to take up the space of Corsica so just tag it on all four corners and basically this ll save these dimensions will always say the same as we resize to this point we can save the file to the file and save him and we can test the supplication Infosys run that need to see everything ran safe resizing works so resizing works correctly and can type in my text area so we can close out so our UIs also solus switchover to the source you and now we need to add some action script code is with action script total dues Watson code so when the user presses the save button will actually write the fall out to the fall system so I want to add a new M. XML tag in this election script tag and you could see him getting code completions that AMEX: script of that and UC Fox bowlers give me code completion and writing some of the XML forming in the first thing I want to do is come down to the save button which is right here the button tag and we will not listen for the click event and basically when the user presses could lead we want to tell the button what code to call forward ~call function called on click and now we need to create a function so you can move back up to the script block and create an action script function Pvt. function on click and this is just basic action script three if you can do to flex her nude action script make sure to check out some of the introductory flex movies also on London.com so now created a function of this functional get called every time that the user presses the save button normally do when they presses button will write the text out to the file system for Xanadu just made a little easier will just hardcode that the fall of always get saved to the desktop. And so the desktop and we can do that using the new fall API you can see Fox bowlers give me some code completion if it didn t code complete for you then you can just type in import flash.fall system of file and must just import the class and we want to use a static API called desktop directory and missile return a reference to the default directory next we want to actually create the file on the directory through Iraq should create a new file called save fall again at the file in now would it create this on the desktop directory through Jos\xe9 desktop but resolved no resolve the debate beyond the fall API that basically puts together to pass from this case we want to add the file name that the user specifies overlook down here again we have the tech simple or they can specify the file name and so we just want to grab that once a fall name.txt and all that s going to do is describe the file name and then create off on the desktop of course it having created the fall yet we haven t opened it yet and we written treatise of us what we need to do next order to actually write to the fall we want to fall stream object and UC flex builder again has given me code completion is automatically important for me to import flash.fall system of fall stream resource a new fall stream and then we will open it and knows what the open call actually does business as when it actually opens up the fall if it hadn t been created or created at this point and open up the right of it so takes two arguments the first one is the fault open to and that s our same file and then the second is a stream which you can get from a class called file mode and you make sure to import file modes with import flash.fall system of fall mode and you should get code completion and we wanted to fall mode.write is what that ll do that will get the falls this ll overwrite the file and the file doesn t exist it will create a fun-loving wonder that you write to the fall we will write what the user typed into the text field for the fall so we ll say also summer of thousands of a variable name and the user API and actually can see here her a lot of API different ways you can write files through Jos\xe9 Wright UTS bites this allows us to write a fall in a UTF-8 encoding them in one pass in a string to write in that begin returning from our text area which is called input field solicited input field.txt and then finally we would does one make sure we close it so a close of the fall of go of it and that s all we have so let s save this and we save a flexible actually compile it and if we made any typos or errors that ll told some problems easier we make any errors now we can test this morning that Ron feel my text area here domination mother selecting the type of racing no body tag and was put arose simple drag here is a very basic additional document entering at the station always do that sort click save and L3 switch to a desktop and click right here you can see we have test out a Chanel fall double-click the open of Safari and we have our simple HMO fall so those are two pretty simple but only took a couple lines of code you can of course read and write files but pretty much no matter what you re doing you re going to follow the same steps which is located to fall your right open the fall stream object and rewrite the file and close it so the next step will be that of live preview of the HML as we type it and will do that in the next