Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ampos

Pages: 1 ... 3 4 [5] 6 7 ... 105
61
No, there is a single/alone z_print function on another post, but it also uses polyvectors, as it is "necesary" to have zoomed print.

Why do not want to use polyvectors?

62
Off Topic / Re: good old times
« on: 2012-Mar-18 »
When I was at 2gr High, 15 y.o., computers come to school: 3 Spectrum and 2 MSXs. I remember being there being the very best at it, as I was programing for almost 2 years.

I was so ahead of the rest of the class that the teacher (he was the math teacher, and was just learning with the rest of the class) had to put the exams "acording to our knowledge", being my exams more dificult than the rest of the class.

I remember that a exam was "ask the user for his born year and calculate his age" (more or less), and the mine being "print any number with just 2 decimals".

I started converting number to string, finding the ".", and using right$ and left$ or something like that. When the teacher saw it, he said "you can not use functions we have not teach in class". SO I said "them Im lost". I can remember his smile for being "superior" than me at least one time. "Just multiply by 100, remove decimals and divide by 100 again". As far as I saw it, it was just a matter of seconds to have it done. This has been very useful to me in my programing life, similar to switch=1-switch.

Another day, he was explaining how to make a bingo game: create a matrix of 90 elements, fill it with numbers from 1 to 90, then un-sort them, choose a random "ball" to display the number, remove the ball, move the bottom balls one position up and keep a pointer with the total number of remaining balls. It was sooo dificult to understand (for the rest of the class). He was trying to imitate the real thing, and not thinking in computer terms. So I raised my arm, and said: why not create a matrix of 90 elements. Choose any random number and check if it is 0 or 1. Repeat until it is 0. Display this ball and mark it as 1 so it is not displayed again.

He didnt understand this so I have to write the program on the blackboard (yes, all of this was done on blackboards). The class ended before he gets it; the next day he comes saying "your method is easier than mine, but has a problem. When only a few ball are left, he can take a bit long to find a "0" ball". My answer was: we are talking about computers, isnt it? they are fast!"


Also we have many homework, to write programs in basic. On paper. I remember he just read the other students, but mines were written (by him I suppouse) on real computers, as my exercices come back with notes as "this gives syntax error" and things like this. He always wanted to ...er... pick-up me (not sure about the english word). In the end, I am sure he learned more from me than me from him, but I remember this good-old times as one of the more happier.

BTW, I had at home a Commodore Vic-20, with 3583 bytes free for programming :D

Also I remember doign a karate game for the vic, that loaded in 2 parts (the first was graphic loading). After loading...:

Code: GLBasic [Select]
print free(0)
2 bytes free

Amazing, just 2 bytes free of memory. Those were the times...

63
GLBasic - en / Re: NOOB Help
« on: 2012-Mar-17 »
You can download DIGITAL PHOTO FRAME (it is in WebOS and free in Android) and you can see someking of GUI done by me (buttons and lists).

64
How the hell are we supposed to run/test iPad 3 resolution games?

Should we buy a 60 inches computer screen for this? :D Even a fullHD tvset has lower resolution than this...  :S :'(

65
Bug Reports / Re: EXIF rotation with jpg?
« on: 2012-Mar-17 »
Digital cameras saves metadatas inside JPEG files, they are called EXIF. There is a metadata that saves the device's orientation, so the photos will be displayed correctly even if the camera was rotated.

Example: iPhone saves the photos as 2592x1936, no matter if the phone was landscape or portrait when taken it. If the phone was portrait, it saves a metadata saying "rotate 90ยบ the image when displaying it"

When I have time, I will look for it.

66
GLBasic - en / Re: inline call to rename()
« on: 2012-Mar-17 »
Dont worry, MrToad inline code works fine, at least in windows :D and if you remember that "c:\" is "c:/"  =D

67
Bug Reports / EXIF rotation with jpg?
« on: 2012-Mar-16 »
Can be the JPEG loading routine updated to read images with correct rotation using EXIF information?

68
GLBasic - en / Re: NOOB Help
« on: 2012-Mar-16 »
Notice that if you use a "native" GUI (I mean, the iOS native GUI), your program will not be compatible with other devices.

If you really need a GUI and that works with all/most devices, you should use DDGUI or create your own.

Also, DDGUI images can be changed of you draw the buttons with your paint program, AFAIK.

69
GLBasic - en / Re: inline call to rename()
« on: 2012-Mar-16 »
V7 has MOVEFILE.

Was MOVEFILE ever implemented?

Quote
You should be able to call the C rename function, although you may need to change permissions for some devices...

I will try it later. Anyway, in "public" directory in iOS or Android, will i need special permisions?

70
GLBasic - en / Re: inline call to rename()
« on: 2012-Mar-16 »
Is there a way I can RENAME a FOLDER in all (mobile) devices?

71
GLBasic - en / Re: DO NOT BACKUP ME for iOS
« on: 2012-Mar-16 »
The Apple guidelines are:

Quote
Data Handling Categories

The com.apple.MobileBackup file attribute introduced in iOS 5.0.1 is the "do not back up" attribute used to specify which files or folders should not be backed up, regardless of their location in the file system. By using this new attribute and placing files in specific directories, files can be described as one of four different data categories.

Critical Data

This is user-created data or other data that cannot be recreated. It should be placed in the <Application_Home>/Documents directory and should not be marked with the "do not backup" attribute. Critical data will persist in low-storage situations and will be backed up by iTunes or iCloud.

Cached Data

This is data that can be downloaded again or regenerated, and the absence of this data will not prevent your app from functioning as the user expects in offline situations. Cached data should be put in the <Application_Home>/Library/Caches directory. Cached data may be purged in low storage situations, and is not backed up by iTunes or iCloud.

Temporary Data

This is short lived data that the app needs to write out to local storage for its internal operation, but that is not expected to persist for an extended period of time. Temporary data should be put in the <Application_Home>/tmp directory. Files in this directory may be cleaned up by the system. Files in this directory are not backed up by iTunes or iCloud. Temporary data files should be removed as soon as they are no longer needed to avoid using unnecessary storage space on the user's device.

Offline Data

This is data that can be downloaded or otherwise recreated, but that the user expects to be reliably available when offline. Offline data should be put in the <Application_Home>/Documents directory or in the <Application_Home>/Library/Private Documents directory (see QA1699 for details) and marked with the "do not backup" attribute. Data stored in either location will persist in low-storage situations and the "do not backup" attribute will prevent iTunes or iCloud backing up the data. Offline data files should be removed as soon as they are no longer needed to avoid using unnecessary storage space on the user's device.

72
GLBasic - en / DO NOT BACKUP ME for iOS
« on: 2012-Mar-15 »
My latest app, DOTS-N-LINES demo has been approved. Once it runs, it download images and save them in "platform(appdta)"

Also, the non-demo version was sent, but it as not been approved:

Quote
Mar 15, 2012 10:22 AM. From Apple.

2.23

We found that your app does not follow the iOS Data Storage Guidelines, which is required per the App Store Review Guidelines.

To check how much data your app is storing:

- Install and launch your app - Go to Settings > iCloud > Storage & Backup > Manage Storage - If necessary, tap "Show all apps" - Check your app's storage

The iOS Data Storage Guidelines indicate that only content that the user creates using your app, e.g., documents, new files, edits, etc., may be stored in the /Documents directory - and backed up by iCloud.

Temporary files used by your app should only be stored in the /tmp directory; please remember to delete the files stored in this location when the user exits the app.

Data that can be recreated but must persist for proper functioning of your app - or because customers expect it to be available for offline use -should be marked with the "do not back up" attribute. For NSURL objects, add the NSURLIsExcludedFromBackupKey attribute to prevent the corresponding file from being backed up. For CFURLRef objects, use the corresponding kCFURLIsExcludedFromBackupKey attribute.

For more information, please see Technical Q&A 1719: How do I prevent files from being backed up to iCloud and iTunes?.

It is necessary to revise your app to meet the requirements of the iOS Data Storage Guidelines.

For discrete code-level questions, you may wish to consult with Apple Developer Technical Support. Please be sure to prepare any symbolicated crash logs, screenshots, or steps to reproduce the issues for when the DTS engineer follows up. For information on how to symbolicate and read a crash log, please see Tech Note TN2151 Understanding and Analyzing iPhone OS Application Crash Reports.

The links are

https://developer.apple.com/icloud/documentation/data-storage/

https://developer.apple.com/library/ios/#qa/qa1719/_index.html

https://developer.apple.com/library/ios/#technotes/tn2008/tn2151.html

Any idea?



73
Off Topic / Re: iPad Mini launching this year?
« on: 2012-Mar-15 »
Do you know why women are so bad parking cars? Because they always has been cheated about what 8 inchs really is.

74
Off Topic / Re: good old times
« on: 2012-Mar-15 »
that is a strange youtube link, it shows "You have 4 videos in your Watch Later list"

edit: I guess I must have been "joked" :)

No, you wasn't joked. It was my mobile device joking both of us. The corrent link is

<a href="http://www.youtube.com/watch?v=Ts96J7HhO28" target="_blank">http://www.youtube.com/watch?v=Ts96J7HhO28</a>

75
Dots-n-lines demo/free was reyected because 1)it said "demo" 2)they can not find the inapp purchase.

I changed the name to something else without the demo word and tell them "the inapp is in the main screen, where it says 'get more images'". Amazing. It got approved.

The updates to DnL previous version I got an email saying "the review process will take longer than expected"  :O

Pages: 1 ... 3 4 [5] 6 7 ... 105