Jump to content

yoshida

Members
  • Posts

    293
  • Joined

  • Last visited

Posts posted by yoshida

  1. Issues on Safari for Vista reported earlier by me seem to be resolved. Assuming youEDIT: funny... I was just writing 'assuming you're using the current standards and the correct doctype, Safari is a pretty safe bet for your day to day browsing and testing your websites'.On Submit, this line broke at the apostrophe in "you're". Might have something to do with my keyboard settings. But that doesn't break away too much off my point.

  2. name:My-placePricing:Free 350 MB Disk Free 6 GB trafficFree MySQL Database Free FTP AccountFree Sub Domain No file size limitsFree PhpMyAdminInstant ActivationNo signup costDon't know about banners and such. You can register a free .tk redirect domainname, but they have banners.My-place.us will shortly be my preferred host to test AJAX scripts. My current websites are hosted locally (Netherlands) on a paid domain, but it's been paid for by whoever asked me to create a website.

  3. Also, (one other hobby!) Charles Babbage was the first person come up with a way to break the vigenire cipher.See 'The Code Book' or 'The Craking Code Book' by Simon Singh for more about Babbage in the encrytion world.
    Anyway, Mr. Hewlett and Mr. Packard 'stole' a concept which they were invited to fund (if I remember correct), without giving credit.I've never used a HP device since I foud out about that. Computer history 101.Fermat, if you want your signature be shredded... I see a number of languages which are way over your head (right now) and aren't really urgent if you first want to design a good user experience.I see serversided script, clientsided script, programming language, style language... but if you want to comply with web standards, ECMAscript, DOM, HTML, CSS and (perhaps) XML will do great. (and ofcourse PHP/SQL for transferring and storing data) You're probably not even going for the XMLHttpRequest (aka AJAX), eventho you master everything you need to know to learn that. Your signature tells me you're going for the complicated alternative, which is likely to result in an over-budget page with less-than-intended quality.Hm... don't know if I'm shredding your signature, or your ambitions ^^; anyway, what goes around comes around, so go ahead :)
  4. Hi. I'm working on an antispambot script for my guestbook, based on a content filter amongst some other tricks.How would I match a message to a blacklist and stop it from getting processed if it contained certain words? Also: how would I randomize field names so spambots can't 'remember' in which field to post? (I'd also generate some fields hidden by css ofcourse, to lure spambots into using it).Jolly long easter weekend. :)

  5. Hi. Some months ago I've written a form to outsmart spambots. The object was to put some hidden fields in my form, and lure the bot into using it. The message would not be posted ofcourse if either of the fields contained text. Apparently, they found a way around it. They managed to post over forty spam messages in the last two weeks.I used <div style="display: none"> rather than <input type=hidden>. Would it help to create a new class .form { display: none; } and use that instead? The ultimate goal is to block spam without the legit visitor knowing there is a blocker in action.For the record: I let the website generate a report for each blocked attempt. Above method blocked over 120 messages and IP-banned 3 spambots (for making over 20 spam attempts).Help appreciated. I'd also appreciate you notifying me if and when you develop technology based on described method.

  6. Sounds like gibberish to me. I just want to learn .net, where do I start? It's for interaction with Revit projects (Revit is a CAD-program to use Building Information Models or BIMs).I also posted a question on the Revit forums, but they assume I can already program if I want to write an api. This is the place to learn .net, right? :)Here's the post:

    Would it be possible to print sheets from a project and change the sheet(/project) information, without actually opening the project? Having a preview from each sheet would be incredible, but just listing sheets from a project, their sheet date and size, and a checkbox to print with custom printing settings is sufficient for now. The goal is to manage and print 10 to 20 files from the same project, this will happen on a monthly base. (real estate database)Right now I only want to know if it's possible at all, and what would be the best approach. My guess is to create an application using Visual Basic Studio Express, and extract sheets and sheet(/project) data from projects in sub folders (and then create a subroutine to print projects as if I were in Revit). However, I'm totally new to Visual Basic (but not-so-new to PHP). Basically, this would be called a sheet viewer and project manipulator.
    I just want to collect some pointers from different resources, so I can attempt to go from there. Where do I start if I wanted to write standalone .net applications with Visual Basic or Python?Hope this helps.
  7. ...and this does what? I used Google but I just don't know where to start. Some pointers would be helpful.EDIT: Visual Basic (Studio Express) just became an option, but I will have to work with ASP.NET to make it work.Help plz :)

  8. 'when you hit refresh'...There are two ways to maintain a variable.One way is to have variables stored in a session on the server. Those variables need to be sent to the server first ofcourse! Then the variable can be stored as $_SESSION['variable'] = $variable;and read as $variable = $_SESSION['variable'];The second way is in a cookie, don't know how that is done though.I think your best bet is to have some JS code create a cookie as soon as you leave the field where the file input is entered. This topic may enter the realm of AJAX but I'm not sure.Is this what you mean? I hope this is of any help.

  9. Hi. I want to learn to write Python applications on an ASP.NET framework.What programs do I need to have installed? They should be free for now. And it should be .net at least, b/c of connectivity with a CAD program.Any references?

    Filter

    Remember websites should comply with the conventions of the WorldWideWeb Consortium, or W3C. Microsoft decided to create their own set of rules, in order to create Internet Explorer. Since Mozilla browsers are fairly independent they decided to comply to the W3C conventions. This is an old discussion however (the cross-browser gap), one most webdesigners should be aware of.I try to write Firefox compliant pages, test them in Opera and adapt them for Internet Explorer. This way I'm pretty sure most people should view the page as I designed it.To answer your question: according to Google there seems to be no hack, no sollution and no workaround for this issue.I may be wrong tho... keep trying.

  10. or state .hr {display: block; height: 2px; margin: 0 30px 0 30px; background-color: #1234ab; }and i/s of <hr attribute="bladibladibla" /> just stating <div class="hr"></div> will be sufficient. This also works fine for Opera (which doesn't support hr style attributes no matter what).It will validate.EDIT: forgot I wasn't in the CSS forum. If you're new to css, I would strongly recommend using that instead of style attributes. It will give you full controll of your layout.

  11. I was thinking of using a browser sniffer. But I also found out position: absolute; is part of the cause (now it's only 20px to the right of the intended position). Defining a (any) margin:left does the job.resultCSS

    body { margin: 0; height: 100%; background-color: #ffffff; font-family: arial; }#home { position: absolute; float: left; margin-top: 112px; padding: 0;}#blog { position: absolute; float: left; margin-top: 103px; margin-left: 100px; padding: 0;}#cont { position: absolute; float: left; margin-top: 94px; margin-left: 200px; padding: 0; }ul { list-style: none;} li ul { display: none; left: 0;}li:hover ul, li.over ul{ display: block; margin: -14px 0 0 10px; text-align: left; font-family: monotype corsiva; font-size: 20px; color: #6699ff; padding: 20px; width: 100px; height: auto; background-image: url(img/base/menu/menubg.gif);} li a:hover { color: #6699ff; text-decoration: underline; font-weight: 600; }li a { color: #6699ff; text-decoration: none; }#head {	position: relative; height: 170px;	width: 760px; margin: 0 0 0 0; background-image: url(img/base/head/head.gif);}.container {	margin: 0 0 20px 15px; width: 780px; background-color: #ffffff;}

    Javascript for IE6:

    startList = function() {   if (document.all&&document.getElementById) {	  navRoot = document.getElementById("nav");	  for (i=0; i<navRoot.childNodes.length; i++) {		 node = navRoot.childNodes[i];		 if (node.nodeName=="LI") {			node.onmouseover=function() { this.className+=" over"; }			node.onmouseout=function() { this.className=this.className.replace(" over", ""); }		 }	  }   }}window.onload=startList;

    Usage:

    <ul id="nav">	<li id="anydiv"><img src="any img" border="0" alt="Hi, I'm a list header." />		<ul>			<li><a href="index.html">List item 1</a></li>			<li><a href="index.html">List item 2</a></li>			<li><a href="index.html">List item 3</a></li>		</ul>	</li></ul>

    I added a rollover image (still need to figure that one out for IE however, might become another piece of js) and menu-opacity. This is becomming more like a proof of concept than a troubleshooting topic :)

  12. Hi. I know css-manipulated list based menus are causing headaches. Now I've experienced it. I did the <ul id=nav> thingie and css-ed the nested lists, and I must say it's perhaps the most advanced thing I did with CSS since rounded css corners. I'm pretty satisfied with it.I hereby present to Teh World, a Photoshop and CSS co-operation: *drumroll*the Diagonal Dropdown Menu!*k-tsjinnnng*okay perhaps abit overdone, but if you're looking at this thing with Firefox2.01 or Opera9.10 it should display okay (at least on Windows machines).If you look at it with IE6 (and perhaps IE7) however, well... see for yourself.The rollover images cascade topleft to bottomr... solved - just had to replace <li><div id=home> with <li id=home> etc.The dropdown list appears next to it instead of underneath.The lists look narrower than specified.Here's the code:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>streetwise</title><style type="text/css"><!--body { margin: 0; height: 100%; background-color: #ffffff; font-family: arial; }#home { position: absolute; float: left; margin-top: 112px; padding: 0;}#blog { position: absolute; float: left; margin-top: 103px; margin-left: 100px; padding: 0;}#cont { position: absolute; float: left; margin-top: 94px; margin-left: 200px; padding: 0; }ul { list-style: none;} li ul { display: none;} li:hover ul, li.over ul{ position: absolute; display: block; margin-top: -14px; text-align: left; font-family: monotype corsiva; font-size: 20px; color: #6699ff; padding: 20px; width: 100px; height: auto; background-image: url(img/base/menu/menubg.gif);} li a:hover { color: #6699ff; text-decoration: underline; font-weight: 600; }li a { color: #6699ff; text-decoration: none; }#head {	position: relative; height: 170px;	width: 760px; margin: 0 0 0 0; background-image: url(img/base/head/head.gif);}.container {	margin: 0 0 20px 15px; width: 780px; background-color: #ffffff;}--></style><script type="text/javascript"><!--startList = function() {   if (document.all&&document.getElementById) {      navRoot = document.getElementById("nav");      for (i=0; i<navRoot.childNodes.length; i++) {         node = navRoot.childNodes[i];         if (node.nodeName=="LI") {            node.onmouseover=function() {               this.className+=" over";            }            node.onmouseout=function() {               this.className=this.className.replace(" over", "");            }         }      }   }}window.onload=startList;--></script> </head><body><div id="head"><ul id="nav">	<li id="home"><img src="img/base/menu/home.gif" border="0" alt="Hi, I'm a list item." />		<ul>			<li><a href="index.html">is1</a></li>			<li><a href="index.html">is2</a></li>			<li><a href="index.html">is3</a></li>		</ul>	</li>		<li id="blog"><img src="img/base/menu/blog.gif" border="0" alt="Hi, I'm a list item." />		<ul>			<li><a href="index.html">is1</a></li>			<li><a href="index.html">is2</a></li>		</ul>	</li>		<li id="cont"><img src="img/base/menu/cont.gif" border="0" alt="Hi, I'm a list item." />		<ul>			<li><a href="index.html">is1</a></li>			<li><a href="index.html">is2</a></li>			<li><a href="index.html">is3</a></li>			<li><a href="index.html">is4</a></li>			<li><a href="index.html">is5</a></li>			<li><a href="index.html">is6</a></li>		</ul>	</li></ul></div><div class="container"><p>Hello world !</p></div></body></html>

    Help plz :)

  13. EDIT: resolved!css:

    ul {padding: 0; margin: 0; list-style: none;} li {display: block; text-size: 12px; text-align: center; float: left; margin: 0; width: 80px; padding: 0; } li ul { display: none; left: 0;} li > ul { top: auto; left: auto;} li:hover ul, li.over ul{ display: block; } #navi { position: absolute; margin-top: 84px; margin-left: 230px; }#navi li ul a { position: relative; display: block; height: 14px; width: 120px; text-align: left; background-color: #ffffff; border-color: #ffffff; border-width: 1px; border-style: solid; margin: 4px -50px -4px 0; padding: 2px 5px 2px 5px; }#navi li ul a:hover { position: relative; display: block; height: 14px; width: 120px; background-color: #bbbbbb; text-align: left; text-decoration: none; border-color: #555555; border-style: solid; border-width: 1px; margin: 4px -50px -4px 0; }

    menu:

    <ul id='nav'>  <li><a href="index.php?pageid=home">home</a>  </li>  <li>Afstuderen    <ul>       <li><a href="">Het project</a></li>      <li><a href="">Even voorstellen</a></li>    </ul>  </li>  <li><a href="index.php?pageid=showobj&obj=sponsoren">Sponsoren</a>  </li>  <li><a href="index.php?pageid=showobj&obj=links">Links</a>  </li>  <li>Foto's    <ul>       <li><a href="">Omgeving</a></li>    </ul>  </li>  <li>Download    <ul>       <li><a href="">Schetsontwerp</a></li>    </ul>  </li>  <li>Contact    <ul>       <li><a href="">Adresgegevens</a></li>      <li><a href="index.php?pageid=email">Email</a></li>      <li><a href="index.php?pageid=gastenboek">Gastenboek</a></li>    </ul>  </li></ul>

    This piece of js makes it work for IE:

    <script type="text/javascript">startList = function() {   if (document.all&&document.getElementById) {      navRoot = document.getElementById("nav");      for (i=0; i<navRoot.childNodes.length; i++) {         node = navRoot.childNodes[i];         if (node.nodeName=="LI") {            node.onmouseover=function() {               this.className+=" over";            }            node.onmouseout=function() {               this.className=this.className.replace(" over", "");            }         }      }   }}window.onload=startList;</script> 

    Actual website

  14. If a paranoid pirate ninja says so, I sure as he|| agree! :)I must admit tho, that the idea is not my own. All credits on this one are due to a co-worker who is also a PHP programmer.STATUS: implemented.Result(s) tomorrow.

    		echo "<br><textarea rows=8 cols=35 name=gibgib></textarea></table>";		echo "<div style=\"display: none\"><input type=tekst name=message><input type=tekst name=content><input type=tekst name=gcon></div>";

    Handler:

    			if ($_POST['gcon'] == "" || $_POST['content'] == "" || $_POST['message'] == "") {				$query="INSERT INTO gastenboek VALUES ('','$gnam','$gmal','$page','$datum','$gdat','$gcon')";				mysql_query($query);

    1-19-07: no new spam messages yet. Let's not propagate this solution throughout the web - people might adapt their spambots. :)

  15. Yeah, but I don't want any extra user interaction. I want to outsmart a spambot.Approve/disapprove would be a nice way, but it's not exactly what I want either. The captcha is a big letdown for me on registration pages.I could also include a checkbox like 'I agree with the posting terms and conditions' or something like that.

  16. Currently I'm facing a new challenge.Some spambot thinks it's funny to flood my guestbook with spam messages. So I had to do the unthinkable:build a delete button.Deleting spam messages is just a temporary solution. What would be the best serversided way to prevent spam? I don't want extra user interaction, and I'm pretty certain spambots use random IPs.Some of the options that I have in mind: - lure the spambot into filling a hidden field (handler checks if the field still has the default value) - content filtering (would require the handler to check the message against a database)Most of the spam messages are pretty much the same. They contain a bunch of gibberish with a link every now and then. They also don't know how to fill the e-mail field.Help appreciated.

  17. Currently I'm writing a script manager to use one website as an editor for my central script library, and I'm wondering how I'm going to str_replace a tab to an empty space of equivalent width (and back). Any suggestions?Help appreciated.

    eval()

    True, so I'll have to keep an eye on that. Last thing I knew was that the last parsed value of a variable is always true.Thanks.PS for the rest of the site 'basecontent' will be replaced by a propagated variable (WHERE sid='$_GET['pageid']')

    eval()

    EDIT: stupid me. There was a syntax error in my script.I now have access to base html content for my script editor. Get this: within days I can throw my default script editor out of the window and replace it with easyphp and my own html-based editor.Hi. I want to learn about eval().Here's what I want:

    $query="SELECT * FROM standaard WHERE name='css'";$result=mysql_query($query);$num=mysql_num_rows($result);$i=0;while($i < $num) {	$content=mysql_result($result,$i,"content");	echo stripslashes($content);	$i++;}// When logged on, this is where the webmaster menu is loaded;if ($_SESSION['logid'] == '1') {	$query="SELECT * FROM standaard WHERE name='bram'";	$result=mysql_query($query);	$num=mysql_num_rows($result);		$i=0;	while($i < $num) {		$content=mysql_result($result,$i,"content");		echo stripslashes($content);		$i++;	}}// this is where the head is loaded. The head is editable from the webmaster menu;$query="SELECT * FROM standaard WHERE name='head'";$result=mysql_query($query);$num=mysql_num_rows($result);$i=0;while($i < $num) {	$content=mysql_result($result,$i,"content");	echo stripslashes($content);	$i++;}

    The purpose is to create a script manager, to manage a script library. The library will be used by a number of websites, and replaces most of the scripts used by those sites.Does anyone have a way of doing this? Or am I overlooking something? Help appreciated.

×
×
  • Create New...