![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#21 | |
|
Professional Programmer
|
Quote:
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;} |
|
|
|
|
|
|
#22 |
|
Programming Guru
![]() |
I can read fine, i just can't understand uncoherent blather about an unclear question.
The reasoning for putting it in an iframe most likely is so that one post can't take up too much space on the page. By allowing each post to take up a certain amount of allocated space in an iframe, it keeps the page (and posts) more legible. This could have also been done with a div with set height and/or width while using the CSS attribute "overflow: auto;".
__________________
|
|
|
|
|
|
#23 |
|
Professional Programmer
|
Your impression of incoherency is most likely due to your inability to recognise simple statements and logically connect words in order to understand someone else's question.
The post's possible length should not be overcome by something as rudimentary as an <iframe>, since that is a visually unattractive way to do something like keeping the thread 'clean' or limiting the text shown at one time. Particularly in this implementation, the border around the iframe (which can be removed) as well as the inherent scrollbar (which shouldn't be removed) makes it a less attractive option than including the text inline with the rest of the post. I'm not sure if your immaturity or ignorance is to blame for your rudeness, but it would be much appreciated if you could think before posting in future ventures. I applaud your work as well, grimpirate, as my only question was a simple one, and neutral regarding the quality of your work. I look forward to future work on it, as you're doing well so far. The colors did need a tweak though.
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;} |
|
|
|
|
|
#24 |
|
Hobbyist Programmer
Join Date: May 2005
Location: ma
Posts: 130
Rep Power: 4
![]() |
thanks for the code grim. It seems your not unwilling to share your code - are the files you mentioned also on your site for download? People might download it to steal it which is lame on their part but i'd like to download it to review it and hack at it. Me and my friend are thinking of doing a community site but want to make the forum ourselves to learn how to do it.
|
|
|
|
|
|
#25 |
|
Programming Guru
![]() |
iignotus, I don't have much to say in response to your ignorant perception of "rudeness" as i was merely responding to your rude comments. However, i'll end this post with askingL why is an iframe with a border and scrollbar are unattractive to you in a forum? It seems perfectly logical to me, and by your definition your signature is "an unattractive way to do things" with really large text.
__________________
|
|
|
|
|
|
#26 |
|
Programming Guru
![]() ![]() ![]() |
Looks good...
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#27 | ||
|
Professional Programmer
|
Quote:
Quote:
Grow up kid ![]()
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;} |
||
|
|
|
|
|
#28 |
|
King of Portal
|
The files themselves aren't actually available for download on the website, but that's the raw source code. All you gotta do is copy and paste that into Notepad and save it with a '.php' extension and you can hack away at it all you like. I don't mind sharing my source code, fact is I wish more people did it. I would hope people would at least hook me up with a link back to my site though, but s'ok if they don't. The search engine there is also written in php.
By the way, the reason I used the iframes was 'cause I just wasn't smart enough to code it any other way I had the problem where I couldn't split text or images and so it just bugged me visually and that was the way I came up with to solve it, and it worked fine soooooo... that's how it stayed.Yeah the coloring on my site isn't good but it's that way for a particular reason, not necessarily a good one, but a reason nonetheless. Also, I'd like to NOT use text files but as I explained perviously my FREE server doesn't allow me access to any database, so I'm forced to use a text file. The way I overcame the time problem was by applying a timestamp to each of the files. I would imagine the possibility of two people posting at the exact same time based on SECONDS accuracy is very VERY small.
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis |
|
|
|
|
|
#29 | |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Quote:
If you think about it, DBs are just files. The authors have tweaked them within an inch of their life, performance-wise, but they have the very same problems to overcome. They're actually inefficient if you don't need a DB's characteristics. One alternative to pure text files, if you need predictable organization and a certain degree of compatibility, is XML. Again, if you don't need DBs, or if you don't have the capability available, there's nothing wrong with a flat text file, presuming you deal with concurrency problems.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
|
#30 | |
|
Programming Guru
![]() |
Quote:
__________________
|
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|