Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Share Your Creations > Open Source Projects
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Open Source Projects The place to discuss Basic4ppc open source applications.

Personal Pocket PC Wiki

Reply
 
LinkBack Thread Tools Display Modes
  #101 (permalink)  
Old 09-07-2008, 03:27 AM
Basic4ppc Veteran
 
Join Date: Apr 2008
Location: Gosford NSW Australia
Posts: 223
Send a message via MSN to tsteward
Default Platform Suport

On the subject of platform support. I am not concerned if my app only ran on WM5 & WM6, as primarily I am writing it for me. If others can make use of it then that's great. This is my way of putting back into the community that is helping me.

It seems to me to be a shame to hold a library back just to be backwards compatible. So long as the documents say "This feature is only supported on ....." then the programmer using the library can choose whether to use that feature or not.

I guess this is a little selfish as I just need a fix. My application is so close to being releasable as "Version 1" but it has this problem that's holding it back.
__________________
PC: Dual core 3.4ghz 2gb ram
PPC: I-mate Jasjam
Reply With Quote
  #102 (permalink)  
Old 09-07-2008, 10:44 PM
Basic4ppc Veteran
 
Join Date: Apr 2008
Location: Gosford NSW Australia
Posts: 223
Send a message via MSN to tsteward
Default

Ok here is an example of the problem. Load it into pppcwiki and I have the description in it.
__________________
PC: Dual core 3.4ghz 2gb ram
PPC: I-mate Jasjam
Reply With Quote
  #103 (permalink)  
Old 09-08-2008, 12:58 AM
Basic4ppc Veteran
 
Join Date: Jan 2008
Posts: 215
Default ? Try this

You might want to remove the code that you put in that prevents the file from being reparsed. I'm guessing that normally the program invokes web_navigating twice on the PDA browser except for some reason it is only invoking it once on the off page section linking (the code seems to be checking for "about:" and it may not have the "about:" in the off page section linking)

If that doesn't work then we may need to add some debugging code (write to a log file or something) to help see what's happening internally.
Reply With Quote
  #104 (permalink)  
Old 09-09-2008, 10:55 AM
Knows the basics
 
Join Date: Aug 2007
Posts: 61
Awards Showcase
Beta Tester 
Total Awards: 1
Default Regular expressions for bracket structures not a really good idea

Quote:
I need help to crete regex for the unsorted lists and sorted lists which can be nested.
Problem with regular expressions is that they mostly are used for a class of languages which are - well - regular. Which means: You cannot really handle bracket structures. If you want to know about the theoretical limitations, have a look at the wikipedia entry (Regular expression - Wikipedia, the free encyclopedia).

Unfortunately, the socalled regular expressions of .NET (and UNIX) are more powerful than the "theoretical" regular expressions. Which leads to expectations that are to high.

But, a tipp: Maxbe you can use a loop in which you replace the lists (from inside out).

Something like:
<while "regular expression for both list types" hits>
Replace inner unsorted list markup
Replace inner sorted list markup
<end while>

The idea is not perfect but might work.

Regards
Jens

PS. The best idea would be to look at open source implementations of other wikis....
__________________
Unclutter your code -- use an obfuscator
Reply With Quote
  #105 (permalink)  
Old 09-17-2008, 09:25 AM
Basic4ppc Veteran
 
Join Date: Apr 2008
Location: Gosford NSW Australia
Posts: 223
Send a message via MSN to tsteward
Exclamation

well I have not been able to solve the problem:
Sample [PageOtherThanCurrentPage#HeadingOnThatPage]
When creating a link to a section on a different page the wiki reads parses and writes the html but needs manual refreshing to display the page.

I guess that part of the program just sucks for now.

Moving along I want to add an encryption option. My thoughts are:
a> Encrypt a whole wiki
b> Encrypt on a per page basis
c> Encrypt only the text within special wiki markup

I am after feed back.
1> Would you do/use one or all of the above?
2> How would you go about incorporating the above?
I though maybe an ini file in each wiki that indexed the encypted pages, but this would be cumbersome.
I then thought a hidden line at the start of each wiki page.
I also considered prefix and encrypted file name with "*" or some thing.

Ideas/feed back please

Thanks
Tony
__________________
PC: Dual core 3.4ghz 2gb ram
PPC: I-mate Jasjam
Reply With Quote
  #106 (permalink)  
Old 09-17-2008, 09:52 AM
Basic4ppc Veteran
 
Join Date: Apr 2008
Location: Gosford NSW Australia
Posts: 223
Send a message via MSN to tsteward
Default

Latest changes to my program. See post #1


Version 0.70ppc
  • Fixed clicking link shortcut to close on second click
  • Fixed up about menu linking to license file
  • Added ability to turn wordwrap on and off when editing a file
  • Added ability to make voice recordings to wiki
  • Added more support for Slash wiki from shortcut buttons
  • Added shell command when clicking on a link to a pdf file
Version 0.70pc
  • Added ability to turn word wrap on and off when editing a file
  • Fixed wrong TSRecentcomboBox item being selected at startup
  • Fixed clicking link shortcut to close on second click
__________________
PC: Dual core 3.4ghz 2gb ram
PPC: I-mate Jasjam
Reply With Quote
  #107 (permalink)  
Old 09-18-2008, 03:25 AM
Basic4ppc Veteran
 
Join Date: Jan 2008
Posts: 215
Default encryption

I would probably favor encryption within markup tags. I think this would present several interesting challenges, one being how to store the encrypted text. It probably would have to be in a separate file that would work like the "^page include". Also would we store the private key somewhere or ask for it each time the program runs?
Reply With Quote
  #108 (permalink)  
Old 09-18-2008, 08:32 AM
Basic4ppc Veteran
 
Join Date: Apr 2008
Location: Gosford NSW Australia
Posts: 223
Send a message via MSN to tsteward
Default

Quote:
Originally Posted by digitaldon37 View Post
I would probably favor encryption within markup tags. I think this would present several interesting challenges, one being how to store the encrypted text. It probably would have to be in a separate file that would work like the "^page include". Also would we store the private key somewhere or ask for it each time the program runs?
Haven't decided on what encryption method to use yet. Probably just simple DES. After all I'm not trying to hide national secrets.
My thinking is:
  • The password would be stored in an encrypted file in the wiki directory
  • Only one password for each wiki would be allowed, thus when opening the wiki we would ask for the password, compare it with the stored password and not need to bother the user again unless they change wiki. An incorrect password would still allow the wiki to load but not display the encrypted data.
  • On Save the data between the tags would be replaced with the encrypted version, there for no additional files would be required. God some of my wiki's already have 200+ files.
  • On loading the file a search for the special tags would decrypt that data and replace it with the correct text. This way you could have all formatting etc inside.
  • On exiting the program the temp.html file will have to be deleted or maybe over written.
How does that sound?
__________________
PC: Dual core 3.4ghz 2gb ram
PPC: I-mate Jasjam

Last edited by tsteward : 09-18-2008 at 08:36 AM.
Reply With Quote
  #109 (permalink)  
Old 09-18-2008, 10:14 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by tsteward View Post
[*] The password would be stored in an encrypted file in the wiki directory
[*]Only one password for each wiki would be allowed, thus when opening the wiki we would ask for the password, compare it with the stored password and not need to bother the user again unless they change wiki. An incorrect password would still allow the wiki to load but not display the encrypted data.
There would seem to be little point in storing the password if the user needs to enter it as well because you would need to store that master password somewhere and optimised compiled .NET apps are easily decompiled. It would be more secure to store an encrypted bit of known text and decrypt it with the given password and check the result for correctness.
Reply With Quote
  #110 (permalink)  
Old 09-18-2008, 11:57 AM
Basic4ppc Veteran
 
Join Date: Apr 2008
Location: Gosford NSW Australia
Posts: 223
Send a message via MSN to tsteward
Default

Ok maybe im a bit slow but I just can't get my head around the crypto features in b4ppc and I have also been looking at cryptoex. I just don't understand how to use them. 8 bytes something or other.

To be honest I don't even want to know how it works. Is there a library/routine that I can supply and password and a string that will return the string encrypted or decrypted. I wish it to be simple and fast.
__________________
PC: Dual core 3.4ghz 2gb ram
PPC: I-mate Jasjam
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Another Pocket Wiki digitaldon37 Open Source Projects 4 12-30-2009 03:12 AM
Written a Personal Wiki? tsteward Questions (Windows Mobile) 3 08-01-2008 05:34 AM
Pocket Chess Database JamesC Share Your Creations 3 07-27-2008 05:07 AM
B4P Wiki meinewelle Questions (Windows Mobile) 5 05-30-2008 07:55 AM
print class for pocket pc tanrikuluahmet Basic4ppc Wishlist 1 10-01-2007 10:10 AM


All times are GMT. The time now is 03:11 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0