Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
Is it "wrong" to piggyback off someone's wireless network?
Daniel0 replied to a topic in Miscellaneous
[quote author=GingerRobot link=topic=105646.msg878695#msg878695 date=1209589581] [quote author=Daniel0 link=topic=105646.msg878687#msg878687 date=1209589239] [quote author=448191 link=topic=105646.msg878654#msg878654 date=1209586220] [quote author=neylitalo link=topic=105646.msg878591#msg878591 date=1209580775] 947740, read the thread first. Thanks. [/quote] Yeah, and what's up with using 6 digits for a username? Lame... <balloon snap/> [/quote] Damn, now I can't refer to you as [tt]^\d{6}$[/tt] anymore... :( [/quote] Im just trying to work out just how lame it is that i actually laughed at that. [/quote] Yeah, well... I occasionally make "lame" remarks when I'm bored. I guess you'll have to live with that :P -
Is it "wrong" to piggyback off someone's wireless network?
Daniel0 replied to a topic in Miscellaneous
[quote author=448191 link=topic=105646.msg878654#msg878654 date=1209586220] [quote author=neylitalo link=topic=105646.msg878591#msg878591 date=1209580775] 947740, read the thread first. Thanks. [/quote] Yeah, and what's up with using 6 digits for a username? Lame... <balloon snap/> [/quote] Damn, now I can't refer to you as [tt]^\d{6}$[/tt] anymore... :( -
Well, that's what you can use a blog for. A blog is essentially a medium through which you can express yourself or publish things. An example could be Smashing Magazine whose aim is to "[deliver] useful and innovative information for designers and web-developers" and "inform [their] readers about the latest trends and techniques in web-development" (source). In the time of writing 69598 subscribers to their RSS feed, so surely at least a couple of people find that there is a point in that particular website. To answer the question of the poll, no, I do not maintain a blog nor have I ever done so.
-
I think people would donate if there was a donation link. All the donation links I've seen on here so far go to an invalid link. You can donate to [email protected] using PayPal. I've also setup a form here: http://www.phpfreaks.com/donations.php
-
Could you post an example of how such an array would look? Post the output of either print_r(), var_dump() or var_export().
-
Whenever you ask "Is it possible to do <insert thing here>?" then the answer would in most cases be "yes, it is". So is it in this case. You just need to nest the loops. E.g. <?php for ($i = 0; $i <= 10; $i++) { for ($j = 0; $i <= 10; $j++) { $var = $array[$i][$j]; } } ?> That would loop through a 2d array.
-
Try to run aschk's code and see if it works (I don't see any reason why it shouldn't). And then post your code along with the error message verbatim.
-
You can do any scripting language.
-
grep will do it fine. Otherwise, I think Zend Studio 6 allows you to search files recursively for a string.
-
"u" and "r" are letters, not words... :\
-
They do if the user uses lowercase <?php tags. Maybe it can be done using CSS. I'll try to see that. I don't mind doing changes to the stylesheet. echo "testing... just to have some html source code to look at..."; Edit: blocks now have the same CSS as [code] blocks have. I was only reccomending this for PHP code blocks ( which are already detected becuase of the special syntax highlighting they get ). That would limit it to PHP code only. Would it really be that bad if somebody had a function name in there comments or strings and it got detected and linked? If it is, then it would not be very hard to detect comments and strings and skip them. That is very easy to do. Perhaps, but we are still not going to modify the SMF core files. See Tom's post for the reason.
-
Positioning things with CSS is really easy (once you get the hang of it). Try to take a look at these examples where, using the same markup, you have the navigation positioned in three different ways using CSS. http://phpfreaks.com/daniel/tableless/example1.html (left) http://phpfreaks.com/daniel/tableless/example2.html (right) http://phpfreaks.com/daniel/tableless/example3.html (top) (the red outline is there so you can see where the divs are) By separating your site in layers (content (HTML), presentation (CSS), behavior (Javascript)) you'll also use less bandwidth as the only thing which is likely going to change very often is the HTML and the rest can be cached by the client. It'll also be easier to maintain, just look at how I was able to change the layout using only the CSS. Had I used tables then I would have to rewrite the HTML every single time. There are other benefits as well, try to research it a bit.
-
You can select which of the built-in bbcodes that should be enabled here, but you cannot add additional codes. You don't seem to be able to do it in SMF 2 either, but if they implement it in the final release (unlikely), then I wouldn't mind adding a such code. It will in no way be automatic though as we risk regular text will trigger it and add totally irrelevant links.
-
If you want a LAMP then the following should do it: aptitude install apache2 libapache2-mod-php5 mysql-server-5.0 You might also want to install the phpmyadmin package for managing your MySQL databases.
-
Seeing as this was posted in the regex forum, it's quite unlikely he is seeking a Javascript solution. Could could get it like this: preg_match('#<a.*>(.*)</a>#iU', $string, $matches); $text = $matches[1];
-
Hmm...
-
Firefox pros: How can I put a custom BG color for webpages with firefox?
Daniel0 replied to dsaba's topic in Miscellaneous
background: <something> !important; Should do it. -
Does anyone know how to prevent Data Execution Prevention (DEP) in Vista from messing with my apps? It often shuts down Firefox stating that it "protected" me. Truth is, the only thing it is doing is pissing me off. It's set to "Turn on DEP for essential Windows programs and services only", but I don't know how the f**k Firefox qualifies as any of those two things. There is a setting allowing me to enable it for all programs except those I explicitly choose to put on a whitelist, but it's refusing to put firefox.exe on it. Help, anyone?
-
[SOLVED] SOLVED:php include inside of div tag
Daniel0 replied to jaydeesmalls's topic in PHP Coding Help
I marked your topic as solved. There is a little button on the bottom of the page which you can use to mark topics as solved -
I'd go with a with custom code as well. Modern frameworks will greatly cut down on the development time and will usually do most of the "tricky" things for you. With a forum like here for instance, I wouldn't bother creating my own though. There is no point in reinventing the wheel. Chances are your forum would have the exact same functionality as the existing products anyways.
-
Technically, yes, the session id could be caught while in transit between the client and server. It's likely that Facebook and eBay have other sorts of things guarding it. They could for instance generate it at each request so it would be useless if somebody intercepted it as it would quickly change again. The username and password is much more valuable than a session id because those two together could create valid sessions for whoever that possesses them.
-
You might want to read the language reference section of the manual: http://www.php.net/manual/en/langref.php
-
With such sparse information, how could we possibly know?
-
function myFunction($num) { editText($num); echo $vars["field-{$num}"]; } ?
-
Ah... you also need to change $url = '$link[$i]'; to $url = $link[$i];