Jump to content

redbullmarky

Staff Alumni
  • Posts

    2,863
  • Joined

  • Last visited

    Never

Everything posted by redbullmarky

  1. [url=http://www.phpdoc.org/]phpDocumentor[/url]?
  2. yeah definitely looks interesting. will take a closer look through the day. it does mention Jokosher too, which looks like a really simple sequencer but the one you mentioned definitely looks like it's trying to market itself in the same sort of category as cubase/logic. I need to specifically look at VST or AU plugins, as i'm using entire drumkit and guitar modelling plugins which i'd need to use. If my audio interface is supported, and so are either VST or AU, then that's good enough for me. Out of interest for those who do use these types of packages - how good are they in terms of system requirements? I'm aware (or have been told) that Linux desktops are much lighter on resources than Windows, etc so just wondering how a PC running Ubuntu and a powerful sequencer fair up against a PC of the same specs running Windows and Cubase.
  3. with forms that involve a page refresh, i personally use a mixture of sessions (to store the data before it's confirmed) and a 'header' redirect (ie, header("Location: /wherever.php") ). This clears out any $_POST data you may have and avoids the "submit this form again?" message you get.
  4. [quote author=Daniel0 link=topic=123419.msg510053#msg510053 date=1169420424] Driver support: Ubuntu supports a lot of hardware by default. [/quote] I love the fact that on my Mac laptop (which I dont use enough to keep) I can generally just plug something in without even considering drivers. It just...works. I've been told Linux based setups have the same sort of knack of not requiring huge extra installations and mountains of files to get things working, but how true that is right now, i dont know... [quote author=Daniel0 link=topic=123419.msg510053#msg510053 date=1169420424] Don't know about the other ones. For dreamweaver replacement you could use Zend Studio, but it isn't a WYSIWYG editor... [/quote] neither is it cheap, or better still free...I dont want to pay shedloads of cash making the switch, TBH. If i'm going to an open source platform, I'd probably want to try going the full hog (with the exception of the odd couple of £ here and there). WYSIWYG is useful, but I guess it'd be more fair to say that if there's a proven, excellent editor that contains: code highlighting for multiple languages (notably PHP and C/C++), FTP and SVN (I have a DW extension at the moment that interacts with TortoiseSVN which is pretty cool) then I can live without the WYSIWYG bit. Oh if only TextMate was on other platforms with FTP built in.... cheers Daniel. Points noted...
  5. [code] <?php echo '<a href="javascript:popUp(\'http://www.mysite.co.uk/files/profile.php?id=' . $id . '\')" class="red_bold_none">Profile</a>'; ?> [/code] [b]edit:[/b] pipped to the post ;)
  6. Alright, I've been inspired after doing a bit of digging after reading this thread: http://www.phpfreaks.com/forums/index.php/topic,123403.0.html and also by various movements over the last several months regarding Linux. I've tried it, I liked it (notably a Ubuntu setup). My main argument against it, I bought up in another topic, re "Which OS do you prefer": [quote] If Linux supported Logic Pro or Cubase natively (which I don't believe it does) for music production, then I'd probably switch to Linux, as a few hours playing around, I was impressed at how (contrary to popular belief) how easy it was to get around, etc. [/quote] So i'm throwing a few questions out here, aimed at people who HAVE made the transition, not as some sort of debate starter or to guage peoples opinions. My main tools on a day to day basis are Dreamweaver (8 on PC, MX on Mac), Fireworks MX, Logic Pro (Mac) though have experience of Cubase and no particular loyalty to either, MS Office (notably Word and Excel), Firefox, Thunderbird, TortoiseSVN, MSN Messenger,iTunes, Realplayer/Windows Media Player (for embedded web content only), iMesh/Limewire As for hardware, my main concerns are a Novation SpeedIO audio interface and a Belkin wireless card. So my questions. What equivalents do you guys use? I've put some that I'm already aware of: [b]MSOffice[/b]: OpenOffice [b]Dreamweaver Replacement[/b]: (please ... dont suggest Notepad-type things) [b]Browser/Email[/b]: Firefox/Thunderbird [b]MSN[/b]: [i]Gaim[/i] [b]Music Sequencing with VST/AU support[/b]: [b]Web audio/video plugin[/b]: [b]TortoiseSVN[/b]: (notably with the right-click context menus for easy use) [b]iMesh/Limewire[/b]: [b]iTunes[/b]: [b]Driver support[/b]: cheers!
  7. whoa...i've said before around these parts that the main reason i stick with PC/Mac these days is because of the multitrack music production software I use (Cubase/Logic) with no decent alternatives for Linux. Considering Ubuntu was something I tried and liked, if they DO get around to getting the music sequencer up and rocking (looks like not in the first release, unless i read it wrong) and considering the nature of open source (constant updates, features that people ACTUALLY want, etc) then I'm already looking for the dotted line to sign on... Cheers for the link Neal...bookmarked! Mark
  8. Margaret Thatcher has proven that a woman can actually run a country very well with more balls, stamina, conviction, etc, than half the "lets say what people want to hear because i have no spine" men. As for the whole race thing - unfortunately I can see some of your point. The whole "Big Brother" thing over here has proven that there are undertones of that sort of prejudice regardless of how much racism there [i]seems[/i] to actually be. Whether it's connected or not, I doubt it - surely anyone (be it white, black, asian, etc) has the right to run in the campaign? I'm sure there was nothing stopping anyone else jumping on board.
  9. Tis probably a bit more picky than anything, but I think it'd be good if the code highlighting when posting code picked up on short opening tags (<?) as well as normal (<?php) ones. [code] <? echo 'an example of unhighlighted code. Though Im still valid PHP!!'; ?> [/code] [code] <?php echo 'wahey look at me all colourful and stuff!'; ?> [/code] reason being, i've seen a handful over the last few days where there's been plenty of HTML mixed with PHP which has all displayed in plain black text. it's cool on short snippets, but when code examples are longer....
  10. couple of pointers: a) a post, followed by 2 bumps, all within 30 mins is a pretty annoying. people here arent paid to help, nor are anyones' problems more or less urgent than yours. If you need help urgently, consider a request for paid help in the freelancer forum. b) as a tip - watch when you're pasting your code with DB connection stuff. You're not the first (and probably wont be the last) to leave your database login username/password in the code. i've done you a favour in bumping your thread in the process of pointing out a couple of things, but please take note of what i've said and consider that your problem goes in the same pot for free help as everyone elses. If someone knows how to solve your problem, they'll post an answer... good luck
  11. that would be more something you could achieve via either Javascript, or CSS (background/foreground colour exactly the same until you select the text). nothing really to do with PHP itself.
  12. it [i]would[/i] definitely work. the problem would come in the case of PHP shifting the equation around (like you'd do if you were solving one for real) depending on where the unknown values are. so [b]f = x+2[/b] would be easily enough, but [b]f + x = 5[/b] wouldnt be as straightforward - although again, a few simple-ish steps would sort that out. it really depends on how complex you see these equations getting.
  13. have you tried it on another file to see if the problem is the same?
  14. hmmm. assuming there's nothing out there and that you had to write it yourself, i dont think (for fairly simple equations) it'd be too hard to write your own. a process along the lines of: 1, using [url=http://www.php.net/preg_replace]preg_replace[/url] to find and replace adjoining number/letter with a * between them (so that, for example, 2x would become 2*x) 2, also using preg_replace to replace the letters with their known values (so that, if x is known and is equal to 4, the equation would be 2*4) 3, using [url=http://www.php.net/eval]eval[/url] to actually execute the calculation from the resulting string have you tried writing your own as of yet?
  15. you'll need to be a bit more specific...
  16. it'd be better if you could set up a test account - i'd guess that most here will be very reluctant to sign up for something where they dont know what they're getting (which is a critique point in itself - there are no introductions, no clues, no FAQ, etc) cheers
  17. what's the issue you're having? the only thing i can see that's out of place (but not 100% sure its important but worth a try) is Date. Try and change the function name to ALL lowercase [code] $d=date("D"); [/code] also you may want to look at the switch/case method, as it removes the need for so many ifs/elses and makes things easier to read: [code] <?php switch ($d) {   case 'Sun':      echo $s;      break;   case 'Mon':      echo $m;      break; } ?> [/code] you can then even take things further by using an array (a group of variables). so: [code] <?php $message['Sun'] = "This is Sunday"; $message['Mon'] = "This is Mondays message"; $message['Tue'] = "Tuesday, anyone?"; ...etc...etc... $d = date("D"); echo $message[$d]; ?> [/code]
  18. try the 'echo' line i suggested and see, but from what i can understand, you'll get  $query_insert with two values, ("tests") and ("ispsdjfsdf") which when imploded will make ("tests"),("ispsdjfsdf"). then your query will look like: [code] INSERT INTO tbl_table1 (review_type) VALUES ("tests"),("ispsdjfsdf") [/code] if you only need to allow ONE box to be ticked, then consider: a) using a radio button on your form instead b) use an ELSE between your IF's c) removing the implode/use of an array, and just use a variable. if you can explain better exactly what you're trying to do, then we should be able to help a little more. cheers
  19. as for debug suggestions, just put an 'echo' before your last line so you know what query is being run. all of the hardcoded queries look fine, though the last one is formed in a different way: [code] <?php echo $query; $Result1 = mysql_query($query, $MySQL_tick) or die(mysql_error()); ?> [/code] you dont have any checks for the result that BOTH checkboxes are unticked, and also - if both ARE ticked, then you're gonna get something a little weird.
  20. a mixture of [url=http://www.php.net/preg_match]preg_match[/url] and [url=http://www.phpfreaks.com/forums/index.php/board,43.0.html]regular expressions[/url] should do the trick.
  21. i wont disagree with you on this one, 448191, as you're right too - using some sort of cache will inevitably create just as many files anyway. however, a few points (based on personal opinion and choice rather than solid facts): - in the event of changing the format/structure of the feeds (which has/will/does change), only the generator would need changing. - assuming your normal stance on frameworks, reusability, etc, a script that generates feeds on the fly (albeit with a caching mechanism) is going to be better and more re-usable than an app specific RSS feed that generate different files based specifically on comments. - My personal preference: ANYTHING that needs changing regularly throughout a site is best kept in a database, or at least generated from a DB. The reason being is that all I need to do is backup the database - not the database AND files (ok, so an element of laziness in there too ;) ). Images and similar content are kinda unavoidable, unless you store them as BLOB's, but I really have issues against changing actual files of my sites if I can help it. my £0.02 plus a Mars Bar.
  22. [quote author=ra2833 link=topic=123227.msg509231#msg509231 date=1169318897] [code] $photo = addslashes(fread(fopen($_FILES['file']['tmp_name'], "r"), $_FILES['file']['size'])); [/code] [/quote] not sure why IE in particular would tell you something is wrong with it, but it's not good either for readability or your sanity to try and squeeze code up into one line like that. this should be more readable, and easier to see if there are any PHP errors: [code] <?php $handle = fopen($_FILES['file']['tmp_name'], "r"); $contents = fread($handle, $_FILES['file']['size']); $photo = addslashes($contents); ?> [/code]
  23. whoops my bad. here: [code] <?php $five_hours_ago = time() - (60*60*5); $d = date("D", $five_hours_ago); if ($d=="Sat") echo "Insert Content 1 Here"; elseif ($d=="Sun") echo "Insert Content 2 Here"; else echo "Insert Content 3 Here"; ?> [/code]
  24. you could always just subtract 5 hours when getting the day. [code] <?php $five_hours_ago = time() - (60*60*5); $d = date("D", time() - $five_hours_ago); ?> [/code] i'm sure there's a function that allow time adjustments like this, but i cant recall what it is, tho sure someone will point it out...
  25. your quotes are invalid. either use proper double quotes " or single ones ' I'm not even sure how to get the ones that you have in your code...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.