Jump to content

midnite

Members
  • Posts

    179
  • Joined

  • Last visited

Posts posted by midnite

  1. oh.. it's really damn!!as i have *examined* the scope that of my expert - ajax :)the codes are EXACTLY the same !!i wonder if those codes are all from some well-known sources, such as some online encyclopedia ..if not, n they are all w3 home-made codes, i 100% support you to sue him.or.. if it won't break the laws, at least we guys can have some methods to bring it *DOWN* :)

  2. i'd like to give more information about it.this is what noip2 debug information:

    > GET http://dynupdate.no-ip.com/ip.php HTTP/1.0> User-Agent: Linux-DUC/2.1.1>< HTTP/1.1 200 OK< Date: Fri, 05 Jan 2007 00:00:14 GMT< Server: Apache/1.3.27 (Unix) PHP/4.3.2< Connection: close< Content-Type: text/html<< 218.252.52.158! Our NAT IP address is 218.252.52.158

    but i got 222.166.160.xxx by my browser at http://dynupdate.no-ip.com/ip.php*xxx because it keeps changing nearly every time i hit it.the 218 one is the right one and i don't know what's going with the 222 one..any one have some clue ??

  3. haha, that's cool! Through the Lens~~ngng.. to propagate, is sending the information through a DNS server to another, until all have the updated one. Yet, as i know, the TTL is the interval to send out the information of a domain name, and a DNS server have all its domains with all different TTL (am i right?) so, a DNS server will check if any of its holding domains' TTL expire and fetch a new copy of information for them. the question comes to Who determine the TTL? if it is low, let's say 1 minute, it won't be a problem to spread it through the globe within a few minutes. yet if it is too low, it will be a burden for the whole traffic. so i guess there is some rule or some international authority to determine it, the TTL (thro the Lens, LOL).

  4. My goal is to make a page that asks the user a input. Once the user had typed in an input, the input will be pasted into a specific area in another script. If you are having trouble imagining this then heres an example: When you use a myspace page editor. You pick your color and then it will paste that code.I am not sure what browser scripting language to use for this? please help with everything.P.S. I am making a page that will ask the user all the questions about how they want there web page. Like the title articles..... then it will paste the things they type in the certain areas.Please help :(
    let me guess, is it that you wanna make something like a forum, like this one, press a button and the text (for fonts or formatting) is added over the cursor side. That's easy (but clumsy in practical) as there is a function called sorts of createRange in JavaScript.or.. you want the user to type in text box A and the text appears in text box B ? That's trivial, just B.value = A.value when A is onKeyPress.. sorts of~or.. as "justsomeguy" said, u wanna do some layout or content tuning according to users' preferences? That won't be as easy as the two mentioned, but at least handier than the first one. Different from the suggestion he given, i would rather use JavaScript to set the cookies. as these sorts of things are just preference only, it will be acceptable for users to have a default setting in a public computer. and also, using client side scripting is more user-friendly as they don't need to keep striking submit submit and submit while tuning :)if u can provide the semi-finished page or codes, things will probably be solved very soon, i promise :)
  5. at the most beginning, i would like to find some free dynamic DNS provider apart from no-ip (i still want to !!)and now my friend has just talking about registering a .com account, so i think of the possibility of hosting a .com at my home server with a dynamic IP. He said that domain names' TTL last for more than a day!! It will be totally unacceptable for hosting under a dynamic IP address. Is it true actually? Is there more or less a standard TTL for domain names? Or the TTL is determined by the domain name registration organization or the one we park the domain at? If it is the former, and it serves dynamic DNS services also, its TTL will be quite low as it can set it as low as it can, right?

  6. i am working with http://www.dyndns.com, yet his page http://checkip.dyndns.org got my ip address wrongly!! (why will it happen?) i have installed the one stated here : https://www.dyndns.com/support/kb/archives/...s_services.html, yet i have some problem in getting the ip address through my router as my router gives the ip address in this way

    			<tr>				<td width=50%>Public IP Address</td>				<td align=center><script>					document.write(va_PublicIpAddress);									</script></td>			</tr>

    yet i have that alright when i was using no-ip, yet its free plan doesn't support wildcard.. so.. if i can get and update the ip in dyndns as no-ip did, that will be GREAT!!thanks for helping in advance :)

  7. things solved by microsoft ultra clumsy functions,after several hours of researches and testing

    #include <stdio.h>#include <windows.h>main(){  HANDLE h = GetStdHandle(STD_OUTPUT_HANDLE);  CONSOLE_SCREEN_BUFFER_INFO scrBufInfo;  WORD defaultAttr;  GetConsoleScreenBufferInfo(h, &scrBufInfo);  defaultAttr = scrBufInfo.wAttributes;   printf("this is the ");  SetConsoleTextAttribute(h, FOREGROUND_RED | FOREGROUND_INTENSITY);  printf("text");  SetConsoleTextAttribute(h, defaultAttr);  printf(" that i wanna to be in red\n");  system("PAUSE");}

    LOL and i can go to bed n have a nice dream :)

  8. if you had a ftp site you could wite in some code to download it and place it in the proper folder....it is fairly easy to create an installer in C# with VS but I don't have the slightest clue in C.What compiler/editor are you using?
    um um.. what if the user runs my program offline?i use DEV C++
    By adding the following line to the CONFIG.NT file located in the Windows System32 directory, ANSI output from 16-bit legacy programs executing under the NTVDM will be interpreted:DEVICE=ANSI.SYS
    in fact, is it that just adding that line into the user's computer as said in wiki, things will be done smoothly? i don't understand thoroughly what it says actually..if yes, is that similar to downloading a file and place it in to proper place (probably simpler?). i don't know both the methods neither -.-
  9. some sound advice http://mail.python.org/pipermail/tutor/200...ary/028474.htmlnot sure if it aplies to C aswell
    It is possible but the user must load the ANSI.SYS device driver,usually in the CONFIG.SYS file. This allows you to embed standard ANSIcodes into your printstrings and thus change the colours(16 possible) and attributes(bold,underlineetc).In the days of Windows, editing CONFIG.SYS is probably too much to askusers so either you need to create an "installer" that does it forthemor write a simple GUI wrapper round your console mode code.Alan G
    Oh!! Thanks very much!! That's exactly the stuff.i did find some other text on the web saying about the ANSI.SYS too. for example in wiki. yet i don't know how to deal with it -.-as it says "you need to create an "installer" that does it for them or write a simple GUI wrapper round your console mode code", but how to ??Thanks in advance for any suggestions or solutions :)
  10. hi there,as mentioned in the topic, do anyone know how to display colored text in Windows XP console by C programming language?? please be noted that i want only the specific text be colored, NOT all the text. for exampleThis is the text to be highlighted.* in the console default, it is black background and white text.PS i found some methods in the web, but they work only in older platforms, not in XP.and it is:printf("This is the \x1b[31mtext\x1b[0m to be highlighted\n");Thanks very very much in advance !!

  11. in fact, i support to idea of open source and free software. this is only a question that raised by my friend, that i feel that this may be an interesting topic to study. in the world of internet and technology, hiding knowledge or ideas should not be encourged :)thanks for your enthusiastic replies. yet i think it will be more constructive to examine the science of encrypting sensitive data instead of hiding kid's stuff.

  12. Generally, once the data leaves the server, it is inside the Client's Browser. A simple "view source" will allow them to "save page as" and capture the data. If you have the ability to control what they receive via server-side scripting, then use that to control the flow of data to the client's Browser.
    ngng.. i think as you do.in fact, this is a question that raised by my friend.let's think out something like youtube, is it that they load the movies by Flash, and a part by a part.. and we won't have the whole movie files leave in our computer, right? though i know that there's some ways to get the movie files, but in the website of youtube, you can't directly get it..can this "loading part by part" concept apply to other types of files, such as PDF or a GAME EXE?but, is it true that youtube can do it because they make use of the Flash Player? if we have to achieve this concept to types of files that Flash Player doesn't support, is it true that we need to write up our only client side "Player"? it will be quite a big project eh. can the browser act as our "Player"??Thanks again!
  13. excuse me, is it possible to let my clients to "see" my files, but avoiding them to download it ?let's say a picture, i think of using Flash. Use the flash to load in the picture, and my client can "see" it. And the file of the picture won't leave in the client's computer (will it ?).How about if that is a PDF, or a document file, or even an .EXE? is it possible?for instant, if it is possible to send only a bit of a file to the client. if my client need for another page or the next stage, then i send again the another a bit to him... in fact i don't know how to do it, i just have such an idea and wanna see if it is possible..Thank you very much!

  14. hey, here's a better one :)

    <input type="text" onKeyPress="return ckeck();">function check(){  return (event.keyCode != 34);		// double quot}

    this is for banning, and the follow one is of replacing

    <input type="text" onKeyPress="return ckeck();">function check(){  if (event.keyCode == 34){		// double quot	var pos = document.selection.createRange();	pos.text = "'";	return false;  } else	return true;}

    if you wanna write something likes a forum, or your purpose of doing such restriction or replacement is for protecting data sent to your server or blocking trouble makers for ruinning your layout. i would suggest you to do this in the server side as the JavaScript function can be easily turned off even by an idoit that makes your intrigging protection codes useless. for instant, if you use php, you may try htmlspecialchars() and it will be enough and easy for the purpose :)

  15. hi there, i have something that need your kindly help.given that

    var range = document.selection.createRange();

    can get the words highed in a HTML document. But, is there a way to know where the user's text-cursor is ?for example, let the words in red are the word that have been highlighted:

    The following script segment creates a TextRange object.
    then, is there a way to find out the number 5 - the selection starts at the fifth character.
  16. why don't you just place the rounded rectangular stuff inline?i saw there was a place that fits it prefectly. free u out of troubles and css problems.in fact, what layout do u want? keeping that giant rectangle in the middle of clients' browsers regardless the width and height of them? it can be done. YET, it must cover up some of your buttons, or, if better, it just cover a part of some information beneath. so, think about is that really so important to make it center? in fact, there is a way out, you may make that platelet dragable. but your site seems to be a professional (at least serious) one, instead of a personal one for interest. business homepages seldom have gimmicky effects such as dragable layers ..

  17. i want the text around the pic. it means text on the both left, right, top and down of the pic. not just moving the pic to the right/left side.for example, i use "T" for text and "P" for pic.

    TTT TTTT TT TTTTTTTT TT PPPPP T TT TTTT T P   P TTT TTT TTT PPPPP TT TTTTT TTTTTTT TT TTTT

    for instant, i think the html layout may be:first line text<br>second line text<br>third line text<br>forth line text01 <img src="the_pic.jpg"> forth line text 02<br>fifth line text<br>normally, it shows like this:

    TTT TTTT TT TTTTTTTT TTT TTT TTT TTTTTT T TT TTT TT TT	  PPPPP	  P   PT TTT PPPPP TT TTTTT TTTTTTT TT TTTT

    right? but it is too ugly and i want the above one, it is possible?

  18. balabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabala ***************************************** in html, or css, or JavaScript, or any client side scripting, can i fix the table width to avoid what i have did above ? i mean, if someone typed such a long "word" and post it to our page, it will be a disaster to the look and the layout of our page. i know that there is a function called wordwrap() in PHP. But we don't know how many characters can my clients' browsers' table can hold. So if i can wrap the words in the client side, it must be great :) PS i have tried using "width" and "overflow" in CSS, but it won't work ..

    balabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabala ***************************************** in html, or css, or JavaScript, or any client side scripting, can i fix the table width to avoid what i have did above ? i mean, if someone typed such a long "word" and post it to our page, it will be a disaster to the look and the layout of our page. i know that there is a function called wordwrap() in PHP. But we don't know how many characters can my clients' browsers' table can hold. So if i can wrap the words in the client side, it must be great :) PS i have tried using "width" and "overflow" in CSS, but it won't work ..
    Oh !! This forum has cut the length by PHP ==is it possible for not cutting it in server side, i want the text wraps accordingly to the window or a specific width in the client side. It will be nice :)
  19. excuse me, may i ask, can CSS achieve words around the pic ??i can't find any example on the web (if i can, i won't ask ==)a good example will be essays we found in newspapers :)if CSS can't, can i make it in another approach ?thanks for any help in advance !!

×
×
  • Create New...