signatureimage
Members-
Content Count
49 -
Joined
-
Last visited
About signatureimage
-
Rank
Newbie [Level 3]
-
signatureimage started following Winsock Problem license required for msinet.ocx, Dns Servers How do they work?, Running Shell Script And Redirect To Log File? and and 7 others
-
Incorporating Ssi Into Flash anyone done this?
signatureimage replied to geancanach's topic in Programming
Dear geancanach, You might be wondering how a flash (.SWF) file obtains data from remote files. Flash can obtain external data from: * External Text Files (*.txt) * ASP/PHP Files (*.asp,*.php) * XML Files (*.xml) The values from these files has to be sent in a format understandable by Flash. Flash Actionscript has an XML object to obtain data from XML files. The Flash player loads variables and their values from any of the remote file into its memory and then uses them as required. How does Flash get external values? Variable-Value Format: 1. Flash needs to receive the variables and values in the format below: For a single variable: variable1=value1 2. Similarly for multiple variables it needs the same format, but separated by "&" in between them: &variable1=value1&variable2=value2&variable3=value3&variable4=value Note: The variable name should be understandable by you as to what it represents and shouldn't include spaces. Spaces should not be present between the "&" sign, the variable name, and the "=" sign. The values can have spaces. A. Loading Variables from External Text File into Flash 1. Flash can call any remote text file by using a command in the Actions Panel called loadVariables ('Load/Unload Movie' in Flash 5). 2. Select its 'Load Variables into location' option and give the URL of your file in the URL box provided. The command will now look like: loadVariables("your_file_URL.txt",""); Flash - 5 Load Variables ("your_file_URL.txt",""); 3. The values of the variables can be accessed from Flash with the help of the variable names specified in the external text file into any Dynamic text field in Flash. 4. Let the variable name of the Dynamic text field in Flash be called as 'dyn_txt'. The value of the variable can be obtained as follows: dyn_txt = variable1; 5. Obtaining variables and their values into the Flash interface from the text file should be done in a special format as mentioned below. This format can be remembered easily as the Variable-Value format Variable-Value Format (*.txt file) 1. Flash needs to receive the variables and values in the format below: For a single variable: variable1=value1 2. Similarly for multiple variables it needs the same format, but separated by "&" in between them: &variable1=value1&variable2=value2&variable3=value3&variable4=value B. Loading Variables from ASP/PHP Files into Flash 1. The ASP page interacts with the Database and gets the required data and sends the retrieved data to Flash. Read more.. 2. Flash can call any remote text file by using a command in the Actions Panel called loadVariables ('Load/Unload Movie'). 3. Select its 'Load Variables into location' option and give the URL of your file in the URL box provided. The command will now look like: loadVariables("your_file_URL.asp",""); (or)loadVariables("your_file_URL.php",""); Flash - 5 Load Variables ("your_file_URL.asp",""); (or)Load Variables ("your_file_URL.php",""); 4. The values of the variables can be accessed from Flash with the help of the variable names specified in the external text file into any Dynamic text field in Flash. Variable-Value Format (*.asp file) Flash needs to receive the variables and values in a similar format form the ASP file as shown below: response.write "&name=" & fldName & "&email=" & fldEmail & "&mess=" & fldMess & "&date=" & fldDate Variable-Value Format (*.php file) Flash needs to receive the variables and values in a similar format form the PHP file as shown below: echo "&name=$fldName&email=$fldEmail&mess=$fldMess&date=$fldDate C. Loading Data from XML Files into Flash 1. The Flash Actionscript object XML can be used to load the XML document returned by the server into Flash. 2. We first create an instance of the XML object and then load the XML document using the load command as shown below: getxmldata=new XML();getxmldata.load("xmldata.xml",""); 3. Create 4 Dynamic textboxes with variable names - xmldoc, node_name, topic, author and write the following code in the 3rd frame as given below: if (getxmldata.loaded){ var p = getxmldata.firstChild; xmldoc = getxmldata.childNodes; node_name=p.nodeName; topic=p.attributes.topic; author=p.attributes.author;} 4. The 'loaded' method is used to check for loading of the XML document, if it is loaded the values are retrieved from the XML document through the methods of XML object. 5. The firstChild method is used to reference the first child of the parent node, nodeName is used to retrieve the name of the XML Node. 6. The attributes if present, can be displayed using the attributes.attribute_name by specifying each attribute_name. More info on: macromedia More info on: smart webby -
Batch Challenge Find the password in the file (Easy)
signatureimage replied to etan's topic in Software
Sorry,My WinRar 2.01 reports: CONSOLE File header brokenJohn. -
Dns Servers How do they work?
signatureimage replied to nightfox1405241487's topic in Websites and Web Designing
Dear nightfox, DSN servers do NOT participate themselves in the sending of email or the browsing of the web... When you type the name of a web site in the address bar of your browser, it is your browser that will first form a TCP/IP packet for the "Address Resolution Protocol" (ARP), requesting for the translation of the server name into a TCP/IP address. (Suppose you want http://www.somewhere-paris.com/en/ and you connect from yourisp.jp) These ARP packets will be routed in the following way: - on your own machine: the ARP cache that has been constructed since power-on - on your own machine: the hosts file + result: NOT FOUND - on the DNS server (yourisp.jp) of your Internet service provider (ISP): the ARP cache - on the DNS server of your ISP: the configuration file + result: NOT FOUND - on the DNS server for domain (jp) (the last word of your ISP's domain): the ARP cache - on the DNS server for domain (jp): the configuration file + result: info NOT FOUND in domain jp - on one of the top domain DNS servers: tha ARP cache - on one of the top domain DNS servers: the configuration file + result: info IS OVER THERE: - on the DNS server for domain (info) (the last word of your destination): the ARP cache - on the DNS server for domain (info): the configuration file + result: somewhere.info IS OVER THERE: - on the DNS server (somewhere.info) of your destination: the ARP cache - on the DNS server (somewhere.info) of your destination: the configuration file + result: http://www.somewhere-paris.com/en/ IS OVER HERE, AND HERE IS ITS TCP/IP ADDRESS The same is true for your e-mail client and your FTP client. They all have to first translate a server name into a TCP/IP address by means of the Address Resolution Protocol (ARP). You can inspect your local ARP cache with the ARP command-line utility of your OS. Once your browser has obtained the TCP/IP address of the web server, your browser will form a TCP/IP packet for the "HyperText Transfer Protocol" (HTTP), using the TCP/IP address that has been obtained. Similar action is true for your e-mail and FTP clients. The File Transfer Protocol (FTP) and the Simple Mail Transfer Protocol (SMTP) all work only with TCP/IP addresses, not with names. The DSN servers no longer participate in these TCP/IP packets. So, search the Internet for more explanations of the ARP.... -
A Xml Editor? and where?
signatureimage replied to The_Element_Him's topic in Websites and Web Designing
Dear H_E_H,The Subject of your post asks for an XML editor.The very best XML editor is - without doubt - XML SPY.The Body of your post asks for an XHTML editor.Any modern HTML editor will do. -
Dear ninjamunky, Some characters are indeed reserved for some special functions. Like the greater-than sign, the less-than sign and the pipe sign, and others. Therefore it is my habit to type all these texts into a separate file, like message1.txt And then, in the batch file, I execute: type message1.txt This has the very same result as various echo statements. The special batch characters pose no problem that way. And furthermore, I find it easier to maintain.
-
Whats Is The Difference Between Javascript & Java
signatureimage replied to cool1405241471's topic in Programming
I totally agree with Alpha six on this one: By the way, neither of them started with the name they have today! When the Netscape corporation invented a scripting possibility in their Netscape Navigator browser, they called it Livescript . When the Sun corporation invented a new programming language, they originally called it Oak . Sun renamed it as Java , and made much publicity around it. Specifications of the Java language, the JVM (Java Virtual Machine) and the Java API are community-maintained through the Sun-managed Java Community Process. Java was developed in 1991 by James Gosling and other Sun engineers, as part of the Green Project. As this Java became very well known, Netscape decided to try to cash in on this by renaming the language built into their browser to Javascript. Note that while some Java and Javascript code may appear similar, they are in fact two entirely different languages that serve completely different purposes. Not to be left behind, Microsoft's Internet Explorer was soon updated to support not one but two integrated languages. One was called vbscript and was based on the BASIC programming language and the other was called Jscript and was very similar to Javascript. In fact if you were very careful what commands you used you could write code that would be able to be processed as Javascript by Netscape Navigator and as Jscript by Internet Explorer. At that time, Netscape Navigator was by far the more popular browser, and so later versions of Microsoft's Internet Explorer implemented versions of Jscript that were more and more like Javascript. By the time that Microsoft's Internet Explorer became the dominant browser, Javascript had become the accepted standard for writing interactive processing to be run in the web browser. The importance of this scripting language was too great to leave its future development in the hands of the competing browser developers, and so in 1996 Javascript was handed over to an international standards body called ECMA, who then became responsible for the subsequent development of the language. As a result of this the language was officially renamed ECMAScript or ECMA-262 but most people still refer to it as Javascript. -
Languages Worth Learning What languages should I learn?
signatureimage replied to FearfullyMade's topic in Programming
Dear FearfullyMade, My two cents: You choice of C++, C#, and Java is a very good one. With your knowledge of C++, you will certainly have possibilities in the job market. Be it in client-server model programming or in GUI-based programming, even in the game industry. With your knowledge of C#, you will certainly have possibilities in the job market that is based on the Microsoft dotNET stable. Thinking in an Object-Oriented way will give you an edge over traditionnal programming. The same is true for JAVA. With your knowledge of JAVA, you will certainly have possibilities in the job market that is based on the JAVA stable. Be it in client-server model programming or in GUI-based programming, or even in the small world of embedded devices, like cell-phones, set-top boxes, the automotive industry, and the like. If you want to consider other languages, like COBOL, keep in mind that it is still around in many companies, mainly on the large central systems that were build in the seventies and the eighties, and that the craze in the nineties about COBOL programmers shortage was due to the year-2000-effect, that caused many COBOL programs to be reviewed and inspected for the Y2K bug. COBOL is a relatively easy language to learn. Applying the right program algorythms is the hard thing - as it is in any language. Furthermore, the companies that used to use COBOL are now switching mainly to JAVA, under the influence of IBM's choice for that language. Besides pure programming languages, please do not forget to try to become an ace in SQL. Were data-bases are concerned, you will soon find that your programming efforts will be interspersed with SQL statements. So, learn SQL, both the SQL Data Definition Language and the SQL Data Manipulation Language parts of it. Visit SQL.org. Concerning assembly language: there is no such thing as an assembly language ! There are as many assembly languages as there are processor types ! Assembly language for the 8086 - now Pentium - is radically different from the assembly language for the Power-PC and the assembly language for the ARM and the assembly language for the {fill in yourself}. So, really, concidering assembly language would be a thing when the job requires it. But, nevertheless, looking in one of those assembly languages is never a bad thing: you will have learned an approach to how to learn it! Many will say that you must learn JavaScript - or Perl - or PHP - or Python - or Ruby - or even Visual Basic. You must not. If you have the right programming algorythms in your fingers, then you can code in those languages with the reference manual on your knees - or the reference PDF in a window on the side of your screen. It is not the grammar of a language or the vocabulary of a language that is important. It are the algorythms. My two cents -
Dear jedipi, Yes, you can add a new column to an existing data-base table. First method: with the interactive phpMySql dialogs that you have on your control panel of asatahost.com Second method: with the SQL statement: ALTER TABLE ... May I suggest that you visit the mySQL website for the full explanation of this method. There, you will also find examples of how to let the data-base engine automatically generate the missing autoincrement values. The mySQL website is not the only source of valuable information, you should also visit SQL org. There you can find more general information and tutorials.
-
Winsock Problem license required for msinet.ocx
signatureimage replied to connectpal's topic in Programming
Could it be that there is a mismatch with the VB6 that your have? There are several versions of VB6, like VB6 Professional and VB6 Enterprise, etc. Could it be that the msinet.ocx that you have downloaded is not the right one for the VB6 version that you have? Just an idea.... On my VB6 cd-rom, the msinet.cab is located in \Common\Tools\VB\Cabinets\ -
Dear jedipi, While deciding on the columns (=fields) of your data-base table, you should definitively use an extra column that has the data-base attribute autoincrement . This extra column will be used by the data-base engine as a counter, and the value of this column will be created by the data-base engine, everytime that a new row is inserted into the data-base table. Its value will auto-increment - as the name suggests. Most data-base designers use the name id for this extra column. If you want to obtain the last inserted row of the data-base table, all you have to to is request the row that has the highest value in that column. You ask the highest value with the MAX() data-base function, as in SELECT MAX(id) FROM myuserid_mydatabasetable;
-
Dear konedima, If you have never programmed before, and you want to experience what is required to deliver a running game, I propose that you take a look first at a very simple environment. One that does not immediately requires you to learn a computer language, but rather allows you to focus your attention on the LOGIC that is needed to produce a program, and also gives you a simple interface that you can use to design your game. Please visit the Peter Programming System at this site:Peter At first look, it may seem childish, but don't be fooled by the cute looks: programming a game is not simple, you will need logic, discipline, planning, and before all: AN IDEA ! So: look at the examples, and download PeterLite.