Also, the page generates errors way too often and makes it go slow.
Posts made by zzo38
-
RE: Recursive javascript security
-
RE: YouTube Ordered to Give User Histories to Viacom
@Zagyg said:
And make some typing mistakes and don't correct your typing mistakes before sending it. That way, nobody can figure out the correct information. And then spill something on it and try to clean it off, but it still makes it hard to read even after you have cleaned it off.@mallard said:
Now if I were Google, I would be rather tempted to deliver all this information in dead-tree form...
It's petty, but I like it. Print it on ultra-low-grade paper, draft resolution, font size 4 too for "environmental" reasons.
-
RE: Google can now search+index Flash websites
Is there an option in Google to tell it not to return Flash sites in the results? There should be.
-
RE: DMCA threatens Canada -- WE MUST ACT NOW
@Doctor Steel said:
Indeed, zzo. Please elaborate... in English, not Canadian. (Isn't Swampy Canadian?)
Unfortunately I am only Canadian and I have never been to England, and I can't always write clearly for other people to understand. However, this topic about the Canadian DMCA wouldn't concern you much if you aren't Canadian anyways. -
RE: Can you please review my C codes and tell me if it is good so far?
@ammoQ said:
AAAAAAAAAAAAA!!!!!!!! Whatever I do, it is all wrong! I tried many things, and nothing works! It all generates messy pictures! Some without text, some with invalid characters (even after removing the invalid characters, everything on the screen is all wrong), and some that don't actually generate SVG at all.@zzo38 said:
how do you convert WMF to SVG?
Is it really that hard to google for "wmf to svg conversion"?
Seems like there's a lot of options.
-
RE: Firefox 3 download day
@upsidedowncreature said:
I didn't write that. They didn't write half-equations, they wrote full equations, which happen to be wrong anyways. Also I just noticed something now, you can see a little bit the back of the paper as well, you can see it better if you highlight the picture. I did make some of the pictures, though.@ammoQ said:
Filed under: we have a new swampy here...
The evidence would seem to support this: http://zzo38computer.cjb.net/images3/207hn.0.jpg
-
RE: Can you please review my C codes and tell me if it is good so far?
Some of the circuit diagrams are available at: [url]http://zzo38computer.cjb.net/powerxy/hardware/[/url] but, how do you convert WMF to SVG? Can you please tell me how, so that I can make it SVG instead of WMF if possible? Also, I set a wiki site: [url]http://powerxy.wiki-site.com/index.php/Main_Page[/url]
-
RE: Lets spec out the worst programming language we can think up!
Here are some of my deliberately bad and strange and confusing ideas (on Esolang):
- There is no way to store numbers.
- Input is a nybble at a time, but output is a byte at a time.
- The program can be drunk by using DRINK command
- You can deal with "half-references"
- Built-in constants: ZERO (actually 1, to confuse you), ONE (actually 0, to confuse me), PI (set to 3, in case you are too much religious), and HOURSINADAY (which can be used as a filter criterion).
- Forced constants are in roman numerals
- All programs running everywhere share variables
- If you leave a variable for too long without assigning a value, the variable will lose its value.
- You can return from a function more than once to return multiple values from the function at the same time. (for example: return 0; return 1; // returns both values at the same time)
- Sometimes it skips commands and doesn't do it right the first time so you have to repeat it sometimes. (example: LET X=7 LET X=7)
- If you try to read a value of a variable that isn't set yet, it will continue until a value is assigned, then it will go back and try again what it was trying to do before.
- A return statement will not always know where to return to.
- You can write a program by dragging a stylus across the screen, and if you don't like it, you can try again.
- The source-code needs to have a .EXE extension to confuse people.
- You have to use floating-point calculations for dealing with strings.
- Large arrays are stored on VHS tapes.
- The program has to compile itself after it has been compiled with the compiler.
- The program source-code includes control characters like BEL and stuff as parts of variable names.
-
RE: Overdue Library Book
@danixdefcon5 said:
SyncEdit still does say something like "26 Jun108" instead of the correct date, it is a editor used in Synchronet and Synchronet is still being used today (I sometimes log in to X-BIT to play Word Warp or sometimes for other reasons as well). They know about the Y2K bug.Heh. Looks like a -1 on a datetime format using the 1900 epoch.
Though I laughed even more with a lot of sites (and some BBS's) that used 2-digit dates. Their own "Y2K" bug consisted in 2000 being marked as 100, 2001 as 101 ... so you'd find stuff like Last logged in on 13/02/106.
[code]Y2K Patch ~~~~~~~~~ There is a Y2K bug in all known versions of SyncEdit where the year 2000 is displayed as 100, causing the status bar to wrap and making the program unusable. I've released a group of binary-edited SyncEdit executables (for all located versions) that works around this problem: the year is still displayed as 100, but the status bar no-longer wraps. The file that includes these patched files is SYEDTY2K.ZIP and can be downloaded via Telnet/Zmodem or FTP from vert.synchro.net.[/code]
-
RE: Can you please review my C codes and tell me if it is good so far?
@joga said:
You do not understand. Auto-start means that if the DVD is inserted then when you turn it on it will run that software from DVD automatically. Nintendo DS you can toggle that, but Wii they still didn't add that (hopefully they will add it, but I have no control over what they add to the Wii). Mine you can still toggle if you want to, as well. You can still pause the game by pushing a button like START button on game controller or whatever, but to give one example, in Super Smash Bros Melee you can disable pause, in which case you can't pause it. There should still be a way to pause it by push button directly on front panel, in case you really need to.@zzo38 said:
Fixes some bugs in other game console systems, such as Wii doesn't have a option to auto-start, and not having buttons on the front panel for "pause game" and stuff like that. (This one will have CANCEL - + ACCEPT buttons and 4 lights, blue, yellow, green, red, and also a display 4 digits.)
- What does auto-starting a games console mean in practice?
- Nice that you've noticed the obvious problem of the Wii, I too thought pressing a button on the Wiimote to pause the game was too fancy and easy.
@joga said:
No, but if you send it in, we will upgrade the hardware and software at a reduced price, without having to buy a whole new one or transfer the files or stuff like that, because it won't change much, and it won't cause incompatibilities.@zzo38 said:
- Many times today people force you to update computer, and pay more, and making more incompatibilities and other stuff like that. This one, even more updates should be designed to not make incompatibilities and forcing you to pay more.
So after using your PC console for two years, do I get a free hardware upgrade?
@joga said:
You don't need to use the command-line or learn BASIC at all to use this system. You use a keyboard to use the command-line, and the keyboard is optional. You can use a normal PC keyboard, but the specification of POWER X Y says the function keys should be moved to the left, and a few other things (relabeling some of the keys is one thing), but you can ignore that if you want to.@zzo38 said:
- Modern computers are design to be user-friendly at the expense of other stuff, that is no good. This one is not design to be user-friendly, but it can still be easy to use most of the functions that you will need to use. Mostly you just have to push START and it will go, other times you can use the menu. For more complicated things, you can access the BASIC/Forth interpreter or the Linux command-line.
Do you use the command line with the 4 front panel buttons or do you also ship a clunky keyboard from 30 years ago for BASIC coding?
@joga said:
It still is a pretty versatile tool that I could use to code in many different languages and it still works. You don't need to use BASIC to use this at all, it is just something that it has. The only difference in this case is that most computers (or game consoles) now do not display a BASIC (and Forth, in a combination) interpreter when you turn it on. It won't run a C64 emulator at boot because it isn't a C64, it can run other programs as well.@zzo38 said:
- Modern computers don't do what old computer like Commodore 64 does, that you can write your own program using BASIC, and it will run OK.
Oh? What do you mean by running OK? Last I checked my computer was a pretty versatile tool that I could use to code in many different languages and it still works...
Why not run a C64 emulator at boot?
@joga said:
You don't need bootstrap codes. It will automatically boot from the hard drive if you don't enter anything else. The bootstrap is just there if anyone needs it.@zzo38 said:
- Now you can (if you really want to), enter the bootstrap codes manually using the front panel, without needing any keyboards, game controller, IR remote control, USB, TV, computer monitor, etc to do so! (But without the external stuff, it isn't really that useful)
You need "bootstrap codes" to use this thing? Now that's user friendly!
@joga said:
Only a little bit.@zzo38 said:
- Even though I don't want copy protection on the software I wrote, some companies do, so, there will be a way of copy protection using a security dongle, which actually makes it more effective than other copy protection system anyways, and can still have the operating system and built-in programs to be GNU GPL license.
Have you already designed the dongle?
@joga said:
Actually I think only one person will buy it based solely on the nice front panel and/or Forth. That isn't completely the point.@zzo38 said:
- Other computers crash too often and boot up too slowly
- And more things other than just that...
I'm sure everyone switches to your computer games console instead when they hear about the nice front panel and Forth.
@joga said:
@zzo38 said:
There will be a "root-sticker" on the back, with the root password. Other programs don't know that password and can't install a virus or stuff (there will be other ways of increased security as well, not just this), but the owner of it can still enter the root password to modify the system more, if they want to.
Can the owner change the root password? And after some malicious program you download from the net asks for your credentials convincingly and ruins the system after that, how do you fix?
The owner can change the password the same way you do in Linux, and you usually don't need to anyways. If a program asks for the root password and messes up the system, we won't fix it because the warranty is void. You should have paid attention to the manual and not done such a things!@joga said:
@zzo38 said:
You can still try including other forms of copy-protection if you want to, but even Wii DVDs have been copied a lot.- Reduced development cost and licensing cost
Unless they want the dongle, hehe. Why would anyone buy the games anyway if it's simple to copy them?
@joga said:
@zzo38 said:
It means I didn't write very clearly.- Make multi-system DVDs, that work for multiple systems
What does this mean exactly?
@zzo38 said:
- Support of XY-MINI, which is OK even for handheld systems. XY-MINI is also an easier way to make sure it works on multiple-system, but you can do it other ways as well, including a normal Linux C program
And this?
@joga said:
@zzo38 said:
I also plan to sell a multi-games DVD for a low price (such as $5.00 in Canadian money), with many different games, some I wrote myself and some other public domain software. It will be designed many of them can run on other systems as well (Windows, Mac, Linux, Yellow Dog Linux, Game Boy Advance, etc) but to run all of the games/software on the DVD, you need POWER X Y system to do that.
So the software runs everywhere? Good luck with that.
Not quite everywhere. The software that it isn't hard to run on multiple systems will have a program to make it run on multiple systems, the other ones won't.@joga said:
@zzo38 said:
I already created some of the circuit diagrams as well, but it isn't complete yet.
Please do post some of these, would be interesting!
I might post it later. -
RE: Firefox 3 download day
@tster said:
@zzo38 said:
It isn't completely to do with new features, there are features in older versions of Firefox that I don't like also. And also in other web-browser software. Some features I can fix easily by writing a extension (such as making the location bar relative, I never liked the absolute one used in most software), but some I can't. You didn't know what I meant, you just guessed. Maybe I didn't write very clearly. This time I hope I write clearly so it can be understood what I wrote by some people.
well, you still didn't list anything that you don't like that will make you not download it...
OK, I will copy this list from my weblog:
- ALT+key will select menus and location bar if they are the same as an accesskey attribute on the page, but selects items on the page if it doesn't match anything built-in to the web-browser program. ALT+SHIFT+key always selects items on the page.
- Get rid of some features: Spell-check, option dialog, help For Internet Explorer Users, broken web-site report, Send Link, Web Search, Read Mail, phishing filter, mouse gestures, user-friendly, automatic update, and the "get more extensions" link in the extensions dialog box (these features can still be put back in by creating an extension with those features) (these are useless features)
- Remove close button on tabs, tabs can be closed by context menu or CTRL+F4 (close button just takes up space, and/or you might accidentally click it)
- Rename "Error Console" back to "Javascript Console", and improve it to allow you to work by itself, by a selected tab, or by chrome (renaming it is not really that important, and it could probably be done just by editing some file, but I think "Javascript Console" makes more sense)
- Relative location bar (URLs entered into the location bar are treated as relative) (I fixed this in my extension already, but I think it should be built-in)
- Do not create exposable URI (keeps wyciwyg: in URLs) (I fixed this in my extension already, but I think it should be built-in)
- Nearly all icons are removed, including favicons (we don't need these icons!)
- Includes all features of Web Developer Extension (I think it should be built-in)
- Image/cookie/script blocking by regular expressions and javascript (the existing one doesn't help as much as it should)
- Allow gopher on any port, possibly configurable by about:config (because my own gopher is on port 80, and other gophers might use other ports for query, and stuff like that)
- Built-in support for Greasemonkey userscripts, and restore old behaviour of displaying script source when navigated to (I think it should be built-in, and displaying the source is more useful than what the current version does, anyways)
- Built-in proxy that can be configured by javascript and regular expressions, to redirect to other proxies, use redirect, block completely, modify page content and/or headers before sending/receiving, etc, including support for changing things based on how it is accessed, such as images, across-site, etc (this would improve it lots)
- Override javascript DOM by writing your own interface using javascript (I might want to change what some functions do, for all web-pages, maybe to make some not work)
- Feature to block events of your choice, including by creating a script return true/false to determine whether or not to call DOM event on current page (I think it should be built-in)
- Feature to disable certain HTML tags and/or attributes (to make it act like older browsers that don't support those ones, or if you just don't like those tags/attributes, or for other reasons)
- CTRL+ENTER in location bar opens window to edit HTTP headers to send (or other options for different protocols) (better than what it does now, I think)
- Session save and cancel session save (I think the new version might have this, but I'm not sure)
- Macros that can be loaded at any time, without restart, similar to K-Meleon macros, so you don't have to write an extension, also an option to edit and test in place, but written using javascript instead of kmm (K-Meleon support this macros but not real javascript that Mozilla Firefox should support!)
- Support Firefox extensions (obviously!)
- ALT+ENTER in location bar opens new tab (it already does this)
- SHIFT+ENTER in location bar bypasses proxy (better than what it does now, I think)
- Underline letters in buttons on web-pages if they match the accesskey attribute, configurable by about:config (would make it clearer to view)
- Improve about:config by including a way to delete preferences, A way to switch between flat/tree view, and context-sensitive help if F1 is pushed (you can't currently delete preferences, and there isn't much documentation)
- Option to disable extensions individually without uninstalling (I think this was added already, but the version I am currently using doesn't)
- Add forcetype: URI scheme to force mime-type of a URL (for example, enter forcetype:text/plain:http://zzo38computer.cjb.net/ to view the root page of my web-site as plain text, of course this isn't the best example, it just explain how it works) (some web-pages do wrong mime-type and I want to force a text file to be viewed in browser instead of download, or view HTML even if some web-site says text/plain, really some do, I don't know why)
- Allow javascript: URL entered directly into location bar regardless of script enabled/disabled (not sure whether or not it already has this)
- In file input fields, if you type a vertical bar then the part before the vertical bar is the remote name and the part afterward the local name. Also the ability to enter a URL in the file input field, and if you do, then it will then download from that URL and upload to the form post URL. (makes it more useful)
- Ability to turn off automatic e-mail/URL link in gopher (it keeps doing it wrong, I want to turn it off)
- Change some modal dialog boxes to non-modal (so you can view other web-pages or dialog boxes at the same time)
-
RE: DMCA threatens Canada -- WE MUST ACT NOW
@tster said:
@zzo38 said:
selling devices with multiple functions
So it's legal to sell a DVD copier thing, so long as you put a hole in the top and call it a cup holder?
That's one example, but not exactly what I meant. I meant something else. (This is a similar idea to making it legal to sell radios that pick up police band if they pick up other things as well, but you still can't use the police band for illegal things)@tster said:
@zzo38 said:
Certainly the license in my new combination computer/game-console
system my company will be selling must fix it, which prevents me from
suing you for copying it privately and allows you to sue anyone who
tries to sue you for this kind of copying that the DMCA is supposed to
allow the author to sue you for such things. Now they can't! My new
company will fix everything!This sentence parses correctly, but my brain is throwing compiler warnings because the semantics don't make sense. What in the name of god are you trying to say here?
Nothing.(Also, the DMCA in general is unfair and you shouldn't be restricted from doing those things. You should only be restricted from doing what normal copyright restricts you from, but DMCA restricts from fair-use as well! That is why it is unfair!)
-
RE: Firefox 3 download day
@dhromed said:
It isn't completely to do with new features, there are features in older versions of Firefox that I don't like also. And also in other web-browser software. Some features I can fix easily by writing a extension (such as making the location bar relative, I never liked the absolute one used in most software), but some I can't. You didn't know what I meant, you just guessed. Maybe I didn't write very clearly. This time I hope I write clearly so it can be understood what I wrote by some people.@zzo38 said:
I'm not going to upgrade if they make it more user-friendly. I have made a list of my opinion of how it would be better.
You imply that FFX3 is way different and that those massive changes are detrimental to your user-experience. But after casual observation & browsing, I must disagree.
The main differences:
- Defaults to full page zoom instead of text zoom.
- the rich location bar, which so far hasn't tried to be smarter than I, and just works the way I've been using it in 2.
- a few rendering quirks here and there. Meh. That'll sort itself out.Which new featres are the focus of your dislike?
-
RE: Can you please review my C codes and tell me if it is good so far?
@joga said:
This is hilarious! I suppose after implementing the BIOS yourself (can't be hard, right?) and "fixing" everything for years your company can sell a most likely non-booting, obsolete PC based gaming system that can run a subset of BASIC and FORTH...together! Now if that isn't a feature to die for I'll be damned.
Seriously, your plan sounds ridiculous and I think you should rather sell books with your friend. This thread was better than many articles here.
I won't implement the BIOS completely myself, I will get coreboot and modify it.
It won't run only a subset of BASIC and FORTH, it will have more commands, from many different kind of BASIC (for improved compatibility), and it can run everything (such as compiled Linux programs), not only BASIC and FORTH anyways. You can run other software as well.
I will sell books as well, he might write some and I help also, maybe include some type-in BASIC programs also, including URL to download so that if you have internet connection you can type: LOAD "http://blablablabla.example.net/jakljdsflkj.bas" and it will load.
-
RE: Can you please review my C codes and tell me if it is good so far?
@Nelle said:
@zzo38 said:
POWER X Y system is a new combination computer/game-console system my company makes, designed to fix nearly everything.
Now you got my attention.
What is nearly everything ? Fix how ?
Some of the things include:
- Fixes some bugs in other game console systems, such as Wii doesn't have a option to auto-start, and not having buttons on the front panel for "pause game" and stuff like that. (This one will have CANCEL - + ACCEPT buttons and 4 lights, blue, yellow, green, red, and also a display 4 digits.)
- Fixes the problems we have today with DRM and with companies being greedy.
- Many times today people force you to update computer, and pay more, and making more incompatibilities and other stuff like that. This one, even more updates should be designed to not make incompatibilities and forcing you to pay more.
- Modern computers are design to be user-friendly at the expense of other stuff, that is no good. This one is not design to be user-friendly, but it can still be easy to use most of the functions that you will need to use. Mostly you just have to push START and it will go, other times you can use the menu. For more complicated things, you can access the BASIC/Forth interpreter or the Linux command-line.
- Modern computers don't do what old computer like Commodore 64 does, that you can write your own program using BASIC, and it will run OK.
- It is harder to install a virus on the computer, because of the increased security, but you still have more controls over the system than other people (including me) do. The computer obeys you, they don't obey Hollywood anymore!
- Now you can (if you really want to), enter the bootstrap codes manually using the front panel, without needing any keyboards, game controller, IR remote control, USB, TV, computer monitor, etc to do so! (But without the external stuff, it isn't really that useful)
- Nintendo requires a verification license and developer license for each software you wrote. Mine doesn't require a developer license, and verification license will be optional but still exist, but lower price a bit. It is recommended, to make sure they follow some good standards and allow them to use our trademarks in some more ways than you normally can.
- Even though I don't want copy protection on the software I wrote, some companies do, so, there will be a way of copy protection using a security dongle, which actually makes it more effective than other copy protection system anyways, and can still have the operating system and built-in programs to be GNU GPL license.
- Other computers crash too often and boot up too slowly
- And more things other than just that...
@Nelle said:
@zzo38 said:
It will include an increased security, also.
What does this mean ?
There will be a "root-sticker" on the back, with the root password. Other programs don't know that password and can't install a virus or stuff (there will be other ways of increased security as well, not just this), but the owner of it can still enter the root password to modify the system more, if they want to.
@Nelle said:
Since we're talking about "game-console system", what about the graphics card ?
Which operating system, version ?
Of course I need a graphics card but I don't know yet completely. Operating system will be Linux, probably the newest version, but with many modifications, including modifying the kernel. Some modifications to make it faster, other modification for different purposes.
@Nelle said:
And since you obviously thought this through, could you give a few reasons why would production houses/game studios support this console ? and on the other side, why should someone buy this system and not Xbox/Wii/PS ?
People who buy POWER X Y system are still allowed to buy other system as well. We won't stop them, and we don't really intend to do so. Companies can make software for POWER X Y system for various reasons:
- Reduced development cost and licensing cost
- Small companies that can't afford the other system or are unable to comply with their restrictions
- Make multi-system DVDs, that work for multiple systems
- Support of XY-MINI, which is OK even for handheld systems. XY-MINI is also an easier way to make sure it works on multiple-system, but you can do it other ways as well, including a normal Linux C program
- Companies that like the FOSS system, regardless of whether or not they write FOSS
I also plan to sell a multi-games DVD for a low price (such as $5.00 in Canadian money), with many different games, some I wrote myself and some other public domain software. It will be designed many of them can run on other systems as well (Windows, Mac, Linux, Yellow Dog Linux, Game Boy Advance, etc) but to run all of the games/software on the DVD, you need POWER X Y system to do that.
@Nelle said:
And finally, what do BASIC and FORTH have to do with this console ? Your not planing to put an BASIC/FORTH interpreter in BIOS, are you ?
I do not plan to make BASIC/FORTH interpreter in BIOS. The BASIC/FORTH interpreter will be a separate program, that will start automatically after auto-login. By default it will display a menu (but you can change the setting to turn that off if you want to, or toggle between BASIC/FORTH and menu, by pushing all 4 front panel buttons at same time), with text-mode and skin mode (I like text-mode, but some people don't, so it will accept skin-mode as well).
I already created some of the circuit diagrams as well, but it isn't complete yet.
Does this message answer your question(s)? Maybe if I don't write it completely clearly you will not understand, but I hope you do understand what I wrote.
-
RE: Can you please review my C codes and tell me if it is good so far?
@Physics Phil said:
........a basic interpreter written in C which seems to have something (although I have no idea what) to do with Forth?). It is also apparently broken. In fact, this is not so much half-baked as completely non-baked. In fact, to take a metaphor to the point of ridiculousness, zzo38 hasn't even got the ingredients out of the cupboard. .....
I do not get ingredients out of cupboard because I don't have ingredients to get out of cupboard yet.
What it has to do with Forth is that you can combine BASIC codes and Forth codes in the same program. Any line that says FORTH at the beginning (after the line number, if there is any line numbers on that line) is treated as a Forth codes, the rest of the lines are treated as BASIC codes.
-
RE: Can you please review my C codes and tell me if it is good so far?
@Nandurius said:
I see that some new code has appeared, a first stack operation.
// Discard top value of stack.
// ( value -- )
void basicfn_drop(void) {
unsigned char t=*stackptr++;
if(t==BTYPE_NULL) {
// nothing to do!
} else if(t==BTYPE_U8) {
stackptr++;
} else if(t==BTYPE_U16 || t==BTYPE_S16) {
stackptr++; stackptr++;
} else if(t==BTYPE_U32 || t==BTYPE_S32) {
stackptr++; stackptr++; stackptr++; stackptr++;
} else if(t==BTYPE_RAWSTR || t==BTYPE_437STR || t==BTYPE_NKSTR) {
int L= *(int *) stackptr; stackptr += sizeof(int);
while(L) {
stackptr++; L--;
}
stackptr++; // for the terminating null, used to send BASIC strings to C function calls
}
// TODO: Other data types
}Comments:
- Don't combine assignment and data manipulation: "unsigned char t=*stackptr++;" Don't try to be cryptic when you write code. Split up the line into the logically independent tasks: Take the top bye from the stack: t = *stackptr; Remove the byte from the stack: stackptr++;
- What the hell is this: "stackptr++; stackptr++; "? You know computers can add more than one. stackptr += 2; or stackptr += 4 in the following case.
- What's up with this cast? "int L= *(int *) stackptr;"? Wouldn't a "raw string" process one byte at a time? Why are there two assignments on a single line? I'm sure you can afford the space for the extra linebreak.
- You're finally using stackptr += sizeof(...) here, why not before?
- Don't write "while(L)", again this is needlessly cryptic. State your intentions when you code: while(L != 0) ...
- L--? Is this supposed to be portable code that works with various sizes of int? The other cases all seem to imply fixed encodings, yet here you're using sizeof() and rely on integer pointer manipulation arithmetic. What gives?
- You're well on the way of writing redundant code. Do you have any design/concept/plan for the organization and structure of the program? How are you planning on writing a stack "pop" operation? You'll have to write this wholepart again, to figure out what the top value on the stack is. It would be much better to reuse code: Write the pop operation that removes the top value from the stack. Once you have that, the "drop" operation is just a special case (call pop and discard the return value.)
OK, I will answer this question to you:
- No, it's clear. I like C because it allows you to do such things, and it goes together anyways, that is why it is together.
- O! Sometimes I write a code and later realize it is bad coding and wonder what I was thinking at that time. Thanks, I fixed that!
- That is for the length of the string. I added a comment. They are on the same line because they go together.
- Because I don't know what I was thinking about before, but I fixed the before one.
- No, this is clear if you program in C. It is clear to other people that I have talked to, also.
- It has nothing to do with sizes of int. L is the length of the string (I need the length because BASIC strings are allowed to contain embedded NULLs). The string is still a byte at a time (the length is in bytes, in NKSTRs the number of characters may be different).
- I do have a plan. A code that needs to pop a value, if it isn't one it understands will call basicfn_drop() and if it does understand, will remove the values itself.
- I didn't use unicode because it is more complicated to write a program for dealing with unicode than with NK strings.
- POWER X Y system is a new combination computer/game-console system my company makes, designed to fix nearly everything, with everything in GNU GPL, including the BIOS. I will build specialized hardware for it (but it will still use a standard PC motherboard), and the designs for the hardware are also GNU GPL. It will include an increased security, also. I do have a partner in my company (which sells other stuff as well, including books). External software for POWER X Y system is not necessarily GNU GPL, it could be proprietary software, but the built-in software isn't proprietary software. Unlicensed software will be allowed but there will also be a small fee license for verification of proper function, that can be included in list on web-site of proper function, and allows them to put "verification" logo on the DVD box, and making sure your software doesn't void the warranty.
-
DMCA threatens Canada -- WE MUST ACT NOW
[url]http://digg.com/linux_unix/Stop_Canada_from_passing_US_style_restrictions_on_technology[/url][QUOTE]On Wednesday, Industry Minister Jim Prentice introduced a bill that BoingBoing's Cory Doctorow described as making it "flatly illegal to break any kind of digital lock, or to violate terms in one of those absurd end-user license agreements that make you promise to agree to let the record industry kick your teeth in and drink all your beer, just for the dubious privilege of paying for a song at iTunes or watching a video on Viacom's website.".[/QUOTE]
Really we need to fix this. FAST! Are you Canadian? Did you send the letter? I did already. Certainly the license in my new combination computer/game-console system my company will be selling must fix it, which prevents me from suing you for copying it privately and allows you to sue anyone who tries to sue you for this kind of copying that the DMCA is supposed to allow the author to sue you for such things. Now they can't! My new company will fix everything!
I also suggest a compromise: Simply disallow pure circumvention devices from being sold in retail stores (like disallowing pure police scanners). But still allow building your own, selling devices with multiple functions, using them for private usage (as long as you don't break other laws while doing so), mail-ordering them, etc.
-
RE: Firefox 3 download day
I'm not going to upgrade if they make it more user-friendly. I have made a list of my opinion of how it would be better.
-
RE: Lets spec out the worst programming language we can think up!
Brainfuck and INTERCAL is not the worst. Only Malbolge is the worst.
-
RE: Can you please review my C codes and tell me if it is good so far?
@MasterPlanSoftware said:
That's because the program isn't complete yet.Where do you see a program?
I see a messed up string library that is supposed to be the beginning of some kind of emulator...
-
RE: Can you please review my C codes and tell me if it is good so far?
@antred said:
I might upgrade later (one thing I know about it though, is that you need a hotmail account even to register for a FREE program). But I'm not using that compiler. I'm using pure C, not C++, and I'm using only the Microsoft IDE for color coding. The actual program is meant for compile on Linux (probably sometime in the summer I will get a Linux computer). I will have to link it with SDL in frame-buffer mode, and make it work with the specialized hardware I am designing (it uses a IBM compatible motherboard and case and power supply and hard drive and memory and video and audio, but the rest of the hardware is different, and the BIOS is also different, and it has to work with TVs as well as with computer monitors)Another thing, I saw that dsw. file in your ForthBASIC directory. You aren't by any chance using MS Visual C++ 6.0, are you? If so, you should definitely upgrade to Visual C++ 2008. The express edition is totally free and uses the same compiler as the Professional and Enterprise editions: http://www.microsoft.com/express/vc/
Compared to the old 6.0 compiler, this is a vastly superior compiler and the IDE beats the pants off of the old one, too.
-
RE: Security protects only up to 8 "crackers"
Other than the people saying "crackers" instead of "characters", there is a article in 2600 about the passwords. They do mention short password limits, and they give three options:
- Find a similar site with better password policy. Many sites provide similar services.
- Crack the web site. Show the administrator how weak it is. Of course this may be illegal, but sometimes nothing else works.
- Type as much as possible (what was done in the above message). Whatever doesn't fit, it doesn't fit, and it still works OK.
-
Grandmother Computer
Maybe this is not the TRWTF (if it isn't the TRWTF, I am sure someone will figure out what is), but it is something someone might like to read anyways. These are things my grandmother used to ask me about her computer. (She is still alive, even though her birth certificate doesn't.)
She said she wanted a slow computer instead of a fast computer, because she didn't want it to go too fast for her to follow.
After she deleted the e-mail messages from the Inbox, she went to Deleted Items, and call me (she called me many times about this, and I keep answering the same way every time), saying "I deleted the messages, but now I went to Deleted Items and the messages came back!" I told her that it is normal, when you close the e-mail, anything in Deleted Items will delete automatically (that is how it was configured).
She never uses the backspace key, instead she moves the cursor left and pushes delete, for every character wanted deleted.
And various others.
-
RE: Can you please review my C codes and tell me if it is good so far?
I am glad you asked.
@Nandurius said:
What C core are you talking about? I only see string_functions.c and some header files. The "String functions" may look like C, but they're really just a nightmare. Why on earth would you even think about passing parameters using global variables? Just because you may be getting the parameters from a stack-like structure doesn't mean you have to write functions that "look like" the machine you're trying to implement. That's just beyond crazy.
I am passing parameters in global stack because it is a combination of Forth and BASIC (any line that says FORTH or _FORTH at the beginning (possibly after the line number, if that line has a line number) is treated as a Forth code). Also, I didn't have enough time to write all of it yet, I just write the parts that I understand how, and also I didn't have time to write all of it, and I am getting help for some of the other parts.@Nandurius said:
Write maintainable, testable functions that take and return parameters and DO NOT RELY ON EXTERNAL CONDITIONS. Then get a loop to manage the stack, pop arguments from it, compute the results (using normal looking functions) and then push the result back onto the stack. I don't understand the header files either.
No answer (yet).@Nandurius said:
Why does "stack.h" declare "char *" pointers? presumably you're not storing 8 bit but 32 bit addresses.
Actually I am storing all sorts of stuff in the stack.@Nandurius said:
Why aren't there any function declarations that operate on the stack? push/pop/top, etc?
I do intend to write "push/pop/top, etc", just I didn't have time quite yet. I will do it later today probably.@Nandurius said:
What's going on in "datatypes.h"? You can typedef your own types, and use sizeof to determine their size. Why avoid all that and hack in values using preprocessor defines?
The stuff in "datatypes.h" are BASIC types, not C types. -
RE: HTML 4, WC3 validated
TRWTF is making the entire site done in flash. (and also what the OP and other people wrote, as well)
-
Can you please review my C codes and tell me if it is good so far?
Can you please review my C codes and tell me if it is good so far?
[url]http://zzo38computer.cjb.net/powerxy/ForthBASIC/[/url]
I don't know a lot of things about C programming, I only know a few things about it, so I want to know if it is good or not. Please tell me if something could be better than it already is, or if it is good just how it is. -
RE: Unusual web entertainment
@Zemm said:
I usually turn that option off (Move and resize existing windows) in Firefox but for some reason it was left on - I blame a workmate who was trying to tell me that
self.resizeTo(screen.availWidth,screen.availHeight);
is a good thing...
Actually I think screen.availWidth and screen.availHeight should just return the current window size anyways. I also think that web pages should not be able to move and resize existing windows. -
RE: New thread for all of my other thoughts and ideas and projects
@MarcB said:
No, you can't count the 1's and 0's if there are an infinite number of them. That is how mathematics just works in general. It is nothing specific to this idea.@zzo38 said:
Yes it is possible, but then the string representing it is also infinitely long,
Exactly. It is also irrational, yet you claim you can determine the numerators and denominators by countings the 1's and 0's. But that directly contradicts the fact that irrational numbers can NOT be expressed as a proper fraction. So are you saying that pi is really 22/7?
-
RE: New thread for all of my other thoughts and ideas and projects
@MarcB said:
@zzo38 said:
Once I fix the typing mistakes, it will be perfectly correct.
Oh? So tell me, how do you draw a line with slope of pi (3.14159265...)? Or e (2.7182818...)? Or any other transcendental number? If you're claiming that your method can perfectly represent ANY real number, then you'd better come up with a method of handling those pesky infinitely-non-repeating numbers that are members of the set of real numbers.
Yes it is possible, but then the string representing it is also infinitely long, but you can still do calculation with it such as figure out which is larger, or a number in between, etc. The golden ratio starts: "101101011011" and if 2 is "1" then the golden ratio is less ("0" is worth less than the end of the string). -
RE: New thread for all of my other thoughts and ideas and projects
@Welbog said:
@zzo38 said:
Line-string mathematics
Thanks for pointing out all of my typing mistakes. It is not meant to be a new useful way of dealing with numbers. I will fix them later today. One mistake is that 0 is crossing a horizontal line (representing vertical movement) which is wrong. There are a few other mistakes as well. Thanks for pointing them out to me so I can correct it. Because without pointing it out to me like that, it will be wrong forever. Once I fix the typing mistakes, it will be perfectly correct. -
New thread for all of my other thoughts and ideas and projects
I made this thread because MasterPlanSoftware told me to. Many of my ideas are available on ChronoJournal, but here are some of my ideas, with some duplication (but not all duplication):
- It's sometimes claimed that prayer doesn't work, it doesn't increase the probability of getting whatever you prayed for. I think probabilities are not calculated like that. I also think that assigning material efficacy to prayer is like greed, and greed should be avoided.
- Planeswalkers are a good idea, but I don't like the implementation that well. I have my own idea of how it is done: You don't have a chance to automatically redirect damage to planeswalkers. Instead, cards should say something like "1 damage to target permanent or player" and if the target is a planeswalker, loyalty counters are removed. Abilities should be worded differently, and not use a different textbox than other cards. "+1: ..." would be short for "{T}, Add a loyalty counter to ~: ... Use this ability only as a sorcery." A card that is both a planeswalker and a creature takes that amount of damage in both ways.
- I even invented my own religion.
- Line-string mathematics
-
RE: XY-MINI Final Specification
XY-MINI new revision, and also a assembler, please.
I made a next revision, with scrolling and many typing mistakes fixed, and headers are now longer as well. It is: http://zzo38computer.cjb.net/xym/xym_spec_1_0.doc
Also I made a assembler. Tell me if you think it is good, or if you find a mistake, etc. http://zzo38computer.cjb.net/xym/xymasm.flog I tested it, and check the output file with a hex editor to make sure it does correctly, it seems to do OK.
-
RE: XY-MINI Final Specification
@Daid said:
... You can write to the display size?!?
Yes, you are write the display size. If you do, then the picture will be centered on the screen, the window will be smaller (on a Windows computer), or the picture is zoomed 2x to fill the screen, or something else, etc.
And you can never have enough general purpose registers :) -
RE: XY-MINI Final Specification
@CodeWhisperer said:
.....
Oh, and it looks like you are overloading the Data Available Flag. (FFC1). You use it if there is data waiting in the keyboard buffer, and you use it if there is a record read in XROM.
.....
The XROM or keyboard buffer are used only if the header tells it to use those. And you can use only one anyways, and only in file loading mode. In device loading mode, the header is ignored and the device (or game cartridge, or internet connection, or whatever it is) that the program is loading from has to provide that function instead (but it can't do keyboard very well like that). -
RE: XY-MINI Final Specification
@MasterPlanSoftware said:
@zzo38 said:
Now please read the XY-MINI document and make comment of it, please.
Sure, as soon as you sign the purchase order, I would be happy to. Invoice terms are Net 30.
What purchase order? I didn't see any purchase order.
(Also, I made a mistake, it isn't final. The next revision is: http://zzo38computer.cjb.net/xym/xym_spec_0_9.doc)
-
RE: XY-MINI Final Specification
There was a power outage, but it works now. Now please read the XY-MINI document and make comment of it, please.
-
RE: XY-MINI Final Specification
@Nandurius said:
That is because someone turned off the computer, or because of a power outage, the IP address change, or something like that. It doesn't happen often. I always leave the computer on all the time. Maybe some people (or maybe stupid people) turned off the computer. I will turn it back on tonight, or if I can call those people I can tell them to turn it back on for me. They say they never touch it, but I think they keep moving stuff and it is wrong. Also the button is on the front and I want to put a cover, because the power button and reset button are easy to push. I will fix it today or tomorrow. Maybe I need something to check if computer is not working, if so, turn it back on and update the DNS. Like the ITAPPMON ROBOT, but a better way like checking keyboard lights to see if it works OK, which is a better way than the CD-ROM drive, for sure! Try again a few minutes, if still broke, reset computer and fix dynamic DNS.Indeed it has. I think CJB.net is a dynamic DNS service, so chances are it'll be back when the OP is back online. That's high quality hosting for sure.
(Hint: googlepages.com)
-
XY-MINI Final Specification
The final specification is now made. It now includes a license allowing you to use/modify/redistribute this document under certain conditions. I would like to see if someone could write a interpreter for it.
-
RE: Eee PC "security"
I use Windows and even I don't run as root all the time. I have 2 accounts 1 called "root" and 1 called "user" and I usually log in to the account called "user" which doesn't have administrative access. I can use the runas command when I need to run as root. I also disabled the welcome screen and make require CTRL+ALT+DEL to login, and make it to not display the last user name, so you have to type it in every time. I do that even though I am the only person using this computer. I also have an account called "printer" as well, but login is disabled on that one, that is used only for printing from another laptop computer, on to the printer that is connected to my computer.
-
RE: Death by lack of input validation
@ailivac said:
I disagree.....And forum software should be responsible for converting URLs into real links
-
RE: Null Pointer Exploit in Flash
Not everyone has Flash installed. I don't have Flash installed, and I never did. I won't install it.
-
RE: Why you don't let monkeys do data entry...
@mrprogguy said:
What if you have more than one phone (possibly on different phone numbers)? In that case you might have multiple ringtones so you know the difference of each one, maybe you should also buy a different colors of phones so you know the difference of each one, also.A phone that stays in your home only needs one ringtone. Ringtones allow wireless phone users to distinguish whose phone is ringing in places where many different people happen to be present; in a home scenario, there's no need to distinguish which phone it is, because only the house phone sounds like a--house phone!
-
RE: Mashup Challenge $100,000 prize - WTF if Spectate Swamp wins?
@SpectateSwamp said:
@burntfuse said:
I don't know, that seems like a stretch. He definitely doesn't like normal shortcut keys, and that should probably go somewhere (the SSDS section?) but it really doesn't seem like he thinks they're a conspiracy.
People say things like "what if somebody hit "jjj" by accident and didn't want "Ctrl/Alt/Del" so what. They could just as easily hit Ctrl/Alt/Del. It's not a big deal. The repeat keys options could be turned off on on as you like. Using any keys that the user has to look for is slow. Terribly slow. Too slow.ie select the file to search at prompt #1 by using inset keys ie "j" for file 4 "k" for file 5 etc. way way quicker than reaching for the upper row or a mouse (mouse won't work here) But a nice new skin would fix that...
The other main conspriacy is "political plants" at forums. Hillary Clinton did it. Got in lots of trouble for it and should. A camcorder exposes them. Plants don't like to see a record of their deeds. The last few forums were remarkably free of plants. They were scared that I would expose them. Here in Canada the chamber of commerce puts on most of the forums and is about the worst for rigging questions. They want their members to be elected to council. They select other phoney winners for "citizen of the year" usually their members as well. Watch them with a camcorder they are easy to catch.
If you can type fast (as I can), you don't have to look for the keys, you already know where the keys are. Also repeated keys aren't any faster than just using a few letters, such as 2 or 3 letters for every command would work OK, preferably sensible letters. Using "j" for file 4 and "k" for file 5 isn't really sensible, using the number keys works fine, reaching isn't that hard. (at least the number keys are not in the "penalty zone" like the esc key, function keys, arrow keys, etc. See Zenclavier: Extreme Keyboarding)
The way SSDS is designed, it would make more sense as a console-mode program, because then scrolling, ability to change font/colors/window-size, and many other things are then automatically work. And, it also allows you to drag files to the command window. The next thing that needs to be implemented is tab completion.
The source-code also has to be packaged correctly if anyone is going to do anything with it.
I don't use SSDS however, it is because I already know where all of my files are, I have no intention to keep a list of something. And there are other command-line programs that do most of these functions anyways, I don't need it all in one program, but if for some reason you do need all this functions in all one program, I guess you can use SSDS if you want to
-
RE: Double RAS
@AbbydonKrafts said:
... How am I supposed to enter "Ken sent me" with only numeric buttons?
536736863 -
RE: Karmic Revenge: should I screw this guy or not?
Do a clean slate, because he now works for you instead, so it is different, so you can forgive him. If he does the bad thing again, then you can fire him.
-
RE: Why do people hate vista?
@KenW said:
@zzo38 said:
I do dislike the default background (I dislike the default XP background as well, so I just made it no background picture instead), but not liking the default background is no reason not to use Vista (that that is why it isn't on the list), it can easily be corrected. There are real reasons not to use Vista but the default background isn't one of them. Actually I didn't like the graphics of XP either but if you select "adjust for best performance" it makes it better and also faster. Title bar gradients can also be easily removed and that is what I did, many of the things I don't want can easily be removed. And, XP does not have a lot of incompatibility, as much as Vista does! At least XP is not hard to understand like Vista is. I have used Vista before on other people's computers so I do know how bad it is, and the FSF just confirms that belief.
You're still spewing nonsense.
You're another one of the Linux fanboi idiots who hasn't got a clue what they're talking about and continues to babble on anyway. First you bitch because Windows is bloated, 'cause it still has all that backwards-compatibility code in it. I mean, who cares if people can still run DOS and Windows 3.1 programs anyway? Change it and get rid of the backward compatibility bloat! Besudes, it has all those security holes in it that haxers use!
So then MS does get rid of some of the backward compatibility stuff for security reasons, and you bitch about the new security and it not running your old crapware applications; of course, the problem is that that crapware was written by other idiots who couldn't understand that when MS said "Don't save your settings or write to Program Files. Put stuff <here> instead", they meant it. Then you bitch about idiotic things like title bar gradients. You bitch about not being smart enough to adapt to the changes. And then, because you're a moron, you post a list by FSF (anti-MS for the most part) as your "evidence".
If you had any intelligence whatsover, you'd understand that:
- things change, usually for the better
- you have to either be smart enough to adapt to the changes, or be stuck where you are
- you have to be smart enough to make your own decisions and not rely on others to do it for you
- posting a list of flaws in Windows written by a bunch of anti-MS rabble doesn't help your case. That's like saying "but slashdot.org says MS is evil" and expecting people to believe you know what you're talking about.
Maybe you didn't read my message very clearly. I wasn't complaining about the title bar gradients, I just said I didn't like them, that's different. I easily removed the gradients that I didn't like and I don't have a complaint about it. And, yes there are good thing about it as well, and wrong thing, read message 8315/157694 that I posted also. I do understand "Don't save your settings or write to Program Files. Put stuff <here> instead", and that is a good idea, it does make sense. However some prorgams don't like that, I can change the security setting for individual directory/file to fix specific things. I don't bitch because it still has all those backwards-compatibility code in it. I do use DOS programs and Windows 3.1 programs still. I do have intelligence but I am still different than other people and I do understand, just sometimes I don't write very well. (Maybe "evidence" is the wrong word for describing the FSF list, but I don't know a better one) Really it is because you don't understand what I am writing about, probably because I don't write good. So, therefore, the real problem is that I don't write good. I did a professional IQ test from a professional psychologist (I do understand that it is just a close estimate, but the professional psychologist ones are still much better than other one), and I got way above average in many things, average in many things, the only low mark I got was, in common sense I got the worst possible mark ever. -
RE: Why do people hate vista?
@jakkle said:
in my experience there is little to no incompatablility with vista, and most can be solved with 'run in compatabilioty mode'. it really annoys me when people whing that windows is bloated with backwards-compatability, and then say how annoyed they are that some stuff wont run on their new vista PC.
were you like this with the release of XP? i bet you were, and you will be about the one after vista. Advice: leave until youre either a] as stupid and as entertaining as spectate, or b] in possession of coherent, rational views, that people wont mind hearing
When XP was launched I saw at the store I didn't like it, but when I used it for the first time I easily corrected it. The first time I used Vista I couldn't correct a lot of stuff, or it is very hard to correct. Some stuff is very good though, such as keeping the old keyboard shortcuts. ALT+D to access the old-style address bar (it was easy to figure out, just try), WIN+R to run (also easy to understand), ALT+SPACE for control menu, double-click control menu to close, double-click title bar to maximize/restore, just like XP and older versions. There is probably other good things, also. Not that bad, yet. But, when I try to do more complicated things, I realize how bad it is, it really is 100x much harder to understand as XP. Also, I don't think you can use unsigned drivers in 64-bit Vista (but if you don't use 64-bit, it doesn't matter). So, just like any other version of Windows they make many good stuff and many bad stuff also. Which means, that when I stop using XP, I will not be using Windows at all anymore. Windows ME is also bad, at least I don't use that one either! XP has a few incompatibility, such as, the F.A.S.T.E.R engine keeps speed up and slow down all the time in XP, but on 98, the F.A.S.T.E.R engine works perfectly. -
RE: Why do people hate vista?
@bstorer said:
I do dislike the default background (I dislike the default XP background as well, so I just made it no background picture instead), but not liking the default background is no reason not to use Vista (that that is why it isn't on the list), it can easily be corrected. There are real reasons not to use Vista but the default background isn't one of them. Actually I didn't like the graphics of XP either but if you select "adjust for best performance" it makes it better and also faster. Title bar gradients can also be easily removed and that is what I did, many of the things I don't want can easily be removed. And, XP does not have a lot of incompatibility, as much as Vista does! At least XP is not hard to understand like Vista is. I have used Vista before on other people's computers so I do know how bad it is, and the FSF just confirms that belief.@zzo38 said:
Here is the reasons:
That list is like half baseless, uninformed Vista bashing and a quarter Linux-fanboy rhetoric. Was #14 on your list going to be dislike of the default desktop background? The funny thing is, you probably made the same whiny complaints about XP when it came out, too.- It is slow.
- It uses too much memory.
- It uses too much disk space.
- DRM.
- Everything is moved around too much.
- Incompatibility with a lot of stuff.
- It will eventually expire anyways unless you can fix it so it doesn't do that.
- Graphics is too much.
- You can no longer have multiple identities in e-mail software without creating multiple user accounts.
- I don't like the login screen, the old NT login screen is best and that is what I use on my computer.
- It is very hard to understand, almost I have to remove my eyes, it is so bad!
- Apparently there is some hidden blocked software list, that it refuses to run any software from that list.
- All sorts of things.