I never got to use it in production but i used it once in my undergraduate thesis. I was working with artificial neural networks simulations and I couldn't find any way on how to determine how long it will take a particular ANN to learn. So I kept the loop going until the error was lower than that of the maximum allowed. I had no choice, the iteration can go from a few thousands to millions.
Macotti
Posts
-
while (true) and for (; ; ) [modified] -
F1 for help in VSI so agree. The one above was rather poor.
-
What's With h1, h2 ? ? ? [modified]Can I see your code? I tried creating a test page using the style in your first post like this. I'm only assuming that you did it somewhat like this.
CSS Test Page
.test h1,h2,h3,h4,h5,h6 {
font-style: italic;
}.test h1,h3,h5 {
color: red
}
.test h2,h4,h6 {
color: maroon;
}<h1 class="test">Header 1</h1>
<h2>Header 2</h2>
<h3>Header 3</h3>
<h4>Header 4</h4>
<h5>Header 5</h5>
<h6>Header 6</h6>Everything went as expected. Since styles with the syntax
<classname> <element>
{
/*styles here*/
}requires the element to be inside another element with the stated class. Like
<div class="test">
<!--
the element to adopt the style from the previous declaration
-->
</div>h2 was italicized though. your problem was it was not italicized right? the color red for h1 and color maroon for h2 did not apply as expected. you said you encountered no problem when you put it inside
<div class="test"></div>
right? try creating another set of headers outside the "div" tags and you will encounter the problem again. I've been working with CSS for quite a while now. I'm just really curious about this. whatever you might have in mind about this, i'll be glad for a reply. :)
-
What's With h1, h2 ? ? ? [modified]Oh I see. Stupid me. Weird indeed. Unless of course the styles were overridden somewhere.
-
PHP File Open and Reading character by characterI see, it was a resource indeed. I think he also tried to replace the spaces with a comma but did it the other way around. The comma (if there was any) was replaced by spaces then he used explode with comma as a delimiter.
-
What's With h1, h2 ? ? ? [modified]".test h1" means h1 INSIDE another element with a class equal to "test". Maybe you were expecting your style to work with headings outside of that element with the "class=test". Subsequent headings did not encounter the problem because there were no constraints, that is they did not have to be inside the said element to adapt the style.
-
PHP File Open and Reading character by characterI think this is what happened. You misused the str_replace() function. If you will check the documentation for it. What you actually did was find an occurrence of "," and replace it with " " and then you searched for "," on your explode(). The character no longer exists by then. Try interchanging the first two arguments of your str_replace(). I think that should do.
-
PHP File Open and Reading character by character$output should turn into an array after the explode() right? i think something else is wrong.
-
LoginFirst of all where do you want to store your login information? Websites over the internet obviously use a database but you can actually store it in a file if it will be a really simple login. Storing and retrieving information from those storages differ. Also, where are you running your PHP scripts? Do you use XAMPP, WAMPP, etc.? They could be helpful if you're planning to do the "database" approach.