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 - alberthrocks

Pages: 1 ... 28 29 [30] 31 32 ... 55
436
Khavi / Re: Khavi: Java on the Prizm
« on: September 15, 2011, 07:30:46 pm »
I sound like an annoying spammy advertiser (maybe I am :P), but Dropbox is your friend. Anything I regard as important (documents, essays, projects, interesting files, etc.) I place into my Dropbox folder. (You basically install Dropbox and then put everything you want to sync in the folder, and the daemon automatically syncs it to the server.) There is no revision control (at least not that I know of for the free plan, but it may have changed).

My workflow for wxWabbitemu is pretty much: checkout from SVN, modify code in Dropbox folder, verify that the code works, and then push the changes to SVN. That way, there's no way you could lose ANY code, unless you delete the folder by accident, or the world explodes. ;)

** Admitting, I never do this for my on-calc projects. :P I want to make an iTunes like app to sync programs and apps back and forth, without the bloat...

EDIT: A portable version is available for Dropbox, if you can't install. PM me/poke me/etc.

437
TI Z80 / Re: zStart - an app that runs on ram clears
« on: September 12, 2011, 10:21:04 pm »
I think the best idea for recovery is to have only the changes be saved into an appvar - that is, "diff" the old and new programs, and then save the changes into the appvar. When the developer needs to revert, zStart just reads the appvar and reverses the changes. That way, if you're writing a 10k BASIC program, you're not backing up 10k.

Speaking of "10k programs", it may also be a good idea to have a keyhook while editing the program or in the edit menu to select which programs to keep track of. Of course, there are people who may wish to simply backup everything, so perhaps an option in the zStart app whether to backup selectively or all? (Maybe even whitelist/blacklist! OK, that's probably overkill... :P)

Also, a feature suggestion - virtual desktops! (Or multiple desktops!)
OK, calculators are not desktops, but what if you could switch between homescreen states? Or even save them?
Here's an example:

I'm in AP Chem, and I have this on my screen.

I just finished class, and am now moving on to AP Physics. I made a mistake on my HW, so I'd like to see what I did last night. *presses [ON] + [->]* Ahh, here we go...


OK, period's over! Now for AP Calc... *presses [ON] + [->]*


Oh hey, there's study hall! Let's whip out some Axe! *presses [ON] + [GRAPH], selects "Dev. Screen"* (this is subject to change)


...and so on. I'll admit that those examples are pretty stupid, but you get the gist of the idea.
The entries should be saved as well, not just the screen.

What are your thoughts?

P.S. - while I was looking up your README for non-hooked combos, I found a ZStart clone! ;)
http://www.ticalc.org/archives/files/fileinfo/219/21953.html

EDIT: Oh, and these gorgeous screenshots are provided by http://clrhome.org/resources/homer/! :) A bit buggy atm, as you might tell, but nevertheless handy to use. ;)

438
TI Z80 / Re: Gravity Guy
« on: September 11, 2011, 10:33:52 pm »
If I'm spending more time watching the screenshot than doing HW, you know that program's good. ;)

(Particularly the death animation)

A suggestion - I'm not sure how your game will be organized, but maybe you could make a little popup (animated and pretty, of course) that shows up after you die letting you restart the level, save the game, or exit? :)

439
Other / Re: Types of USB Flash Drives
« on: September 11, 2011, 09:27:22 pm »
HP's flash drives (found at Staples) are awesome. Not very fast, but they are pretty sturdy (been in the wash 3+ times with no data damage).

Sandisk Cruzers with U3 will NOT work with msd8x. (I've tried.) msd8x hates USB CD drives :P

440
  •   The two have different screen sizes, so programs trying to crank the most out of their screen space would have to be redesigned for a different LCD space (I believe it's a bit smaller and narrower on the CX)
6144 pixels to be exact. I don't think it would be too painful to redesign for, though...

  •   The two have very different key sets which would fare badly for certain programs.
I would have to disagree with that. Admittingly, the API to get the key would be different, but nevertheless, you're still using arrow keys and ENTER. ;)

  •   With Lua many routines commonly used with the Prizm's C are not useable.
Ehh... they are very different languages. It's like comparing apples to oranges. :P

  •   Most Prizm owners don't own a CX, and likewise the other way around.
  •   Many of the Prizm owners are fed up with TI and don't *want* to port it to a TI platform
Agreed there, even if I'm not a person against TI (not in the dev world, anyway).
The most one can do is to ask for the source code and do the port themselves.
You can't ask am Axe coder to port their game to the TI-89, right? ;)

  •   Porting in general is never as fun as making a game, and even if most of the above didn't apply, most people don't port for the hell of it -- it's usually a very boring and tedious process
Not too bad ;) Wabbitemu -> Linux is kinda fun, as you get to see the program come to life! :D
It's still not as fun as making a game yourself, but porting it is still nothing to be bored of! :)

Personally, I wouldn't say porting is "impossible". ;) Admittingly, Ndless is very young at the moment.
The issue is NOT the hack - the Ndless devs are always hunting and hunting, and they seem to have one in the works. ;)
It's the current SDK that's offered - there's absolutely NO drawing APIs available. You have to do all the screen updating yourself, which isn't fun.
Hopefully, with the next release of Ndless, we might get a full API. :) That will certainly boost the currently stale C/ASM dev for Nspire.

I would also say that the delay may also be because of the new HW, particularly the screen.
The devs are likely trying to figure out how to make good use of it. ;)

In the end, I'd say that if you want a port, you should probably do it yourself... when the time is right. :)

441
Web Programming and Design / Re: [PHP] Checking if file was submitted
« on: September 11, 2011, 04:00:12 pm »
Should work for all. "tmp_name" doesn't mean /tmp in *nix, it just refers to where the temp area for the uploaded file may be. ;)
Typically, for Windows the temp dir would be C:\Windows\Temp (but don't try accessing it directly :P).

442
Miscellaneous / Re: Lowered participation
« on: September 08, 2011, 10:35:26 pm »
Hey, we're in the same boat! :) Junior year's gonna be tough, with SATs and 4 APs (at least for me).

Major, major suggestion, something I've learned the hard way in AP Chem, thanks to this awesome teacher who knows students like no other....

DO. NOT. PROCRASTINATE.

...and again...

DO. NOT. PROCRASTINATE.
...even if given the opportunity to do stuff late, or if the due dates are a bit lax. (The latter especially applies to notes.)
You will find yourself grasping for much, much air, and falling into unseen depths. :P Just don't do it!

Organization - a MUST. If a teacher wants you to use a separate binder/notebook for your class, DO IT. Don't be like me last year and stuff it all into one binder with no dividers... :P

Your agenda book (if you get that) is something awesome. Use it to its fullest. Write as much as you need, even re: other activities you wanna do. Time yourself, and always keep focused. (Focus is the major factor!) To be honest, I've committed to not procrastinating, and am just starting to get a hold on keeping organized. I'm beginning to write everything, anything in my planner/agenda book, but not too good with time and focus. (GAH I'm on Omni again :P)

That said, good luck to you this year! :) What APs are you taking? I got Psych, English (Lang), Calc AB, and Physics Mechanics.

443
TI Z80 / Re: Wikipad: the online calculator keypad anyone can edit
« on: September 04, 2011, 03:20:11 pm »
Wow... you never cease to amaze me, Deep Thought! ;)

A fun little suggestion - include a section that tells the ports of the key?
(Don't know if this is the right terminology for it :P)

444
Miscellaneous / Re: 5.9 earthquake in Virginia
« on: August 23, 2011, 06:16:53 pm »
The 5.9 earthquake that occurred is enough to knock things off shelves and shatter windows, so it's already pretty bad.

A perspective in MD - house was rattling, initially thought that someone was banging hard on our door... until things started to fall.
A little statue and some ceramics fell, both which were quite audible. Silly me stayed inside (didn't know that you were supposed to go outside!) :P

All this while doing SAT prep... interesting, eh? :D

445
I second this as a semi-op! :) (Bot manager :P)
And yeah, the posts will still remain on #omnimaga as well.

446
TI Z80 / Re: Croquette IDE
« on: August 20, 2011, 04:34:27 pm »
Alberthrocks, I am sorry but we're not using C++ for any part of the GUI, this is a pure Python project.
Oh no no no, I'm not asking you guys to write it in C++! :P (That would be quite a pain!)

I just offer my C++ code so that you guys can possibly take some ideas and convert it to Python.
Python *can* derive from classes, as shown here:
Code: [Select]
class RedButton(wx.Button):
    def __init__(self, *a, **k):
        wx.Button.__init__(self, *a, **k)
        self.SetBackgroundColour('RED')
        # more customization here

Of course, you guys are free to decide whether to use it or not.

447
Other Calc-Related Projects and Ideas / Re: TILP: beta-testing...
« on: August 20, 2011, 12:37:22 pm »
Some issues to report:

1) On the SourceForge download page, the ZIP I got for the Windows latest version is corrupted. I tried opening it with the native (Windows) ZIP opener on XP, and it didn't work. Then I tried my magical 7zip (the open-all archiver), and it said that it couldn't open it as a archive.

http://sourceforge.net/projects/tilp/files/tilp2-win32/tilp2-1.15/tilp-1.15.zip/download

2) When trying out your link above to your new installer, my lovely Norton Antivirus/Internet Security software blocked the download!
(Well, it downloaded, then the scanner went to scan it, and then it called it a "threat" and deleted it. :P)

I know you guys aren't malware authors, nor do you guys bundle malware with a FOSS program.
You should go to Synmantec (Norton's company) and request that the program be removed from the "bad" list.
I'm not a security expert, so I'm not too sure if it's just a database that they use, or if it's a bit more universal (whether it belongs to them or they source it from a main DB).
Make sure to ask them about that! If it's universal or shared, ask if the removal automatically spreads out. If not, also ask which companies to contact to remove your binary from the list.

It seems that this is a "community-reported malware" - it does NOT match any specific virus definitions.
I've pasted the security software log of the removal below. (And yes, it's not name specific - first time I named it tilp_setup.exe, it rejected it. Then I just left it at setup.exe when downloading/saving again, and it still rejected it. Probably a SHA/MD5 match.)
Code: [Select]
Full Path: c:\documents and settings\albert\my documents\tilp_setup.exe
____________________________
____________________________
On computers as of:
8/20/2011 at 11:49:22 AM
Last Used:
8/20/2011 at 11:49:21 AM
Startup Item:
No
Launched:
No
____________________________
____________________________
Very Few Users
Fewer than 5 users in the Norton Community have used this file.
____________________________
Medium
This file risk is medium.
____________________________
Threat Details
Threat type: Insight Network Threat. There are many indications that this file is untrustworthy and therefore not safe
____________________________
Origin
Downloaded from  http://lpg.ticalc.org/prj_tilp/beta/setup.exe
http://lpg.ticalc.org/prj_tilp/beta/setup.exe Downloaded File tilp_setup.exe
(WS.Reputation.1) from: ticalc.org


tilp_setup.exe
____________________________
File Actions
File: c:\documents and settings\albert\my documents\tilp_setup.exe
Removed
____________________________
File Thumbprint - SHA:
4638cb5c3fd0be3d5e0187955f68f36bcba64bf7817c079052b7cfe1a51fc161
____________________________
File Thumbprint - MD5:
dfcdff1d389271e405ec2717efff3fba
____________________________

3) Regarding the filter driver installation - I'm not too sure how you guys handle device driver installation (that is, TI-Connect is NOT installed, so your installer would detect that and proceed to install the libusb device driver for the possible USB configs for calc connectivity), but I think you can possibly make the filter driver installation automatic. In the libusb distribution (the ZIP file), bin\x86 contains "install-filter.exe", which is the CLI version of the wizard you mention (which is "install-filter-win.exe"). If you have created INF files for the device driver installation, I think it might be possible to use that same INF file for filter driver installation. You just need to include the libusb distribution, select the appropriate arch., and then run the "install-filter.exe" with proper arguments at the end of install. Of course, I have no idea if you guys even install a driver or not due to the reason above (terrible security software), so I apologize in advance if this doesn't make sense!

Usage of "install-filter.exe":
Code: [Select]
WARNING:
  Improper use of libusb-win32 install-filter can cause devices to
  malfunction and in some cases complete system failure.

DISCLAIMER:
  THIS SOFTWARE IS PROVIDED IN AN "AS IS" CONDITION. NO WARRANTIES,
  WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED
  TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
  PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE ORGANIZATION SHALL
  NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR
  CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.


USAGE: install-filter [install|uninstall|list] <-ac> <-dc> <-ad>
                                               <-c=> <-d=> <-f=>
                                               <-p=> <-w=>

Commands:             Compatible Switches:
  install   (i/-i)      <-ac> <-c=> <-d=> <-f=> <-p=> <-w=>
  uninstall (u/-u)      <-ac> <-c=> <-d=> <-f=> <-p=> <-w=> <-ad>
  list      (l/-l)      <-ac> <-dc> <-c=> <-p=> <-w=>

NOTE:
  * If no switches are specified, the default class key list is used.
  * 64bit OSes must use the 64bit version of this application.

Switches For Class Filters:
  --all-classes         (-ac)
    install  : Adds libusb-win32 as an upper class filter for all
               classes in the USB enumerator. (Same as -dc in install mode)
    uninstall: Removes libusb-win32 as an upper class filter for all
               known classes.  This is a FULL class removal.
    list     : Displays all known classes.

  --device-classes      (-dc)
    install  : Adds libusb-win32 as an upper class filter for all
               classes in the USB enumerator.
    uninstall: Removes libusb-win32 as an upper class filter for all
               classes in the USB enumerator.
    list     : Displays all classes in the USB enumerator and the devices
               contained within them.

  --class=<nameOrGuid>  (-c=)
    install  : Adds libusb-win32 as an upper class filter for the
               specified class only.  Classes can be specified by name or
               guid.
    uninstall: Removes libusb-win32 as an upper class filter for the
               specified class only.  Classes can be specified by name or
               guid.
    list     : Displays information about the specified classes and the
               devices contained within them.

Switches For Device Filters:
  --device=<hwid>       (-d=)
    install  : Adds libusb-win32 as an upper device filter for the
               specified device.
    uninstall: Removes libusb-win32 as an upper device filter for the
               specified device.
    list     : <NA>

  --all-devices         (-ad)
  install
    install  : <NA>
    uninstall: Removes libusb-win32 device filters from all devices in the
               USB enumerator.
    list     : <NA>

Switches For INF Files:
 --inf=<your_file.inf> (-f=)
    install  : Installs usb device(s) from an inf file.
    uninstall: Attempts to roll back a device driver installation. If
               rollback fails or is unavailable, the device is removed and
               all root hubs are restarted.
    list     : <NA>

Common Switches:
 --prompt=<your_prompt_string> (-p=)
   Prompts the user with the specified string before running. To include
   spaces in the prompt string, place the entire switch in double quotes.
   Example: "-p=Are you sure?"

 --wait=<your_wait_string>     (-w=)
   After the operation completes, displays the specified string and waits for
   user input. To include spaces in the prompt string, place the entire
   switch in double quotes.
   Example: "-w=Press any key.."


Examples:
  install-filter install --device-classes
  install-filter uninstall --all-classes
  install-filter list --device-classes
  install-filter install --class={00000000-0000-0000-0000-000000000000}
  install-filter install "--device=USB\Vid_04d8&Pid_000c&Rev_0000"
  install-filter install --device=USB\Vid_04d8.Pid_000c.Rev_0000
  install-filter install --inf=your_file.inf

448
TI Z80 / Re: Croquette IDE
« on: August 07, 2011, 12:58:43 pm »
ephan is using an awesomesauce special text editor thingie specially designed for code. :)
Ahh yes, just did some research on magical text boxes and found out that wxWidgets has a code text box - a Scintilla wrapper, which it seems you are using! :)

That should be easy.  For now, just run 'console.py' (get the version from the repository, not the downloads, which has a few bugs).
Got it. If you intend to make it in one file (as in croquette.py becomes both a GUI and CLI program), make sure you don't import wx! (If you do, trap the error with a try/catch statement.)

That should be pretty easy.
Actually, even though Croquette is supposed to only work with Axe, it'll still convert TI-Basic tokens anyways.  I don't encourage it (due to code-readability reasons), but you can mix and match Axe and Basic tokens freely, and still have it convert.

We'll look into adding a menu option for fully switching.
Oh, cool! :) Yeah, the core code is pretty sophisticated - I know there's support, just no GUI option for it yet. ;)

Quote
== Solving the "token vs. letter" problem by catching keyboard and mouse input to avoid positioning the cursor in the middle of a token, and maybe coloring it as well? (optional, but pretty cool, and you guys will be the only one who has done it successfully... if you can, that is.) This will require a different file format specific to Croquette, like 8xpxml to distinguish letters from tokens.
Hmm.  This one might be a bit trickier.
I can supply some code... unfortunately C++ (but the APIs for the wxPython are VERY much alike), but it should give you an idea. I haven't been tapping into Python's OOP part, but you should be able to derive classes (called subclasses?), and add input event hooks.

You should be able to derive from wxStyledTextCtrl... but if you need to dive into the deeper class, ScintillaWX, you're going to have to play a bit with fire (and possibly C++):

http://wiki.wxwidgets.org/WxStyledTextCtrl#Deriving_from_ScintillaWX

Here's the code I wrote for MertheseConsole - the code of interest is in ConsoleTextCtrl.cpp.
http://dl.dropbox.com/u/1016340/MertheseConsole.zip

@ephan: doesn't wx.stc come with a bunch of autocompletion methods?
Yes indeed! O_O This wxStyledTextCtrl is very, very fancy....
http://www.wxpython.org/docs/api/wx.stc.StyledTextCtrl-class.html
(look for AutoComp)

449
TI Z80 / Re: Croquette IDE
« on: August 07, 2011, 10:58:04 am »
Awesome stuff! :D For some reason, I've never figured out how to make my text control as fancy as that... :P
I would still like a CLI only version, even if it's just importing the decoding library and calling it.

I will be including ticonverter.py into the AGL builder (and doing some other significant things) soon...

Some suggestions:
 == Add option to detokenize into Axe OR Basic tokens. And as a plus, a menu option to instantly switch tokens to and from Axe! :D
 == Solving the "token vs. letter" problem by catching keyboard and mouse input to avoid positioning the cursor in the middle of a token, and maybe coloring it as well? (optional, but pretty cool, and you guys will be the only one who has done it successfully... if you can, that is.) This will require a different file format specific to Croquette, like 8xpxml to distinguish letters from tokens.
 == Intellisense :P Sounds insane, but my theory of Intellisense is that it's just a non-focused wxFrame, with a wxListBox inside it. If you guys manage to do it, you will gain quite a bit of notoriety from the wxWidgets community. :P (Again, this is optional, but something to aim for if you can do it! ;)) Also include a help box - something like VC++/VB, where they show a yellow box as you type telling you how to use the command.

If you guys need any help, let me know! :)

450
TI Z80 / Re: Croquette IDE
« on: July 29, 2011, 08:07:50 pm »
Linux AND Mac OS X can be bundled into a single executable (surprisingly)! :)
You just have to look a little closer and not be deceived by the names of projects. ;)

Meet PyInstaller. As such, the name can be quite deceiving. But this project isn't an installer - it's a python -> EXE converter! :D And by EXE I mean "system executable" - yup, this isn't limited to Windows. It is truly cross-platform - able to deploy Python programs to any user without lugging Python along! :D

As proof, here's a standalone executable in Linux. Extract, and make sure you make the program croquette executable! :)
Included is the PyInstaller v1.5 archive, as well as a convenient script to build a standalone binary. I built the Python source in r13.

http://dl.dropbox.com/u/1016340/croquette_linux_x86.zip
MD5SUM: 04b64b0e6db44310187285688d29e253
Size: 15 MB (Yes, it's big, but that's what happens when you build it into a standalone binary. PyInstaller says if you build the dependencies as static binaries, it can be compressed further.)

Unfortunately, you can't build to another platform - that is, building a Windows binary on Linux, a Mac OS X binary on Windows, etc. So you will need people with those OSes to build binaries for the project.

Pages: 1 ... 28 29 [30] 31 32 ... 55