Jump to content

OrganizedFellow

Members
  • Posts

    657
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by OrganizedFellow

  1. I found this, thought I'd share: I've not tried it, but it sounds like I would make a copy of 'config.php' and rename it 'config-dev.php'. One with the live server settings and the other with the developmental server settings. Makes sense. Especially if there are other variables in config that need changing, I'm guessing perhaps timezone? That might change, pending the location of the live server. Maybe even appendTemplateFile and prependTemplateFile for various testing scenarios? BTW: I noticed the $config->adminEmail = ' '; is blank on all my sites. It shouldn't be, should it? And $config->timezone = 'America/Denver'; is mentioned twice.
  2. I had a client ask me the other day if I could recreate an old PDF document. It's a couple years old and there are a few things they want to have changed. I don't even know HOW to create a PDF, I was thinking Microsoft Word would have some sort of "Save to PDF" feature, or even Google Docs. Naturally it would be simpler and "WOW FANTASTIC" to autogenerate a PDF from a ProcessWire page
  3. Here's a real word example. $base_url = $_SERVER['SERVER_NAME']; switch ($base_url) { // LOCAL CONFIG case "mytestsite.dev": $config->dbHost = 'localhost'; $config->dbName = 'mytestsite'; $config->dbUser = 'user1'; $config->dbPass = 'PaSsWoRd1'; $config->dbPort = '3306'; $config->debug = true; $config->httpHosts = array('mytestsite.dev/', 'www.mytestsite.dev/'); break; // LIVE CONFIG case "mylivewebsite.com": $config->dbHost = '127.0.0.1'; $config->dbName = 'mylivewebsite'; $config->dbUser = 'user2'; $config->dbPass = 'pAsSwOrD2'; $config->dbPort = '3306'; $config->debug = false; $config->httpHosts = array('mylivewebsite.com/', 'www.mylivewebsite.com/'); break; } I have that in my config.php file. I can now freely make all my changes off line without fear of messing something up. Then all I do is dump and copy/paste the database.
  4. The simplest tool that I have found for updating databases manually between two different installations is adminer. It's a tiny tiny script much like phpmyadmin. I install it at the root of all my sites.
  5. How many of you use a service like OpenShift? I ask because I am looking to change my development methods. I have used it before. But at the time I didn't see the value in it. Now with my use of GIT rising and my worrisome failing WAMP server (discussed in a previous post) I need something more robust than just working on my local machine. Do you use OpenShift? Heroku? Amazon? If so, which? why? Give me some ideas on how I can improve my development.
  6. Even if you look at it from an alphabetic perspective: PW > WP lol
  7. YUP. I have the hosts and http-vhosts.conf backed up. I have around 14-16 virtual host development sites that I play with. One being the latest ProcessWire dev branch. I absolutely agree amigo. Windows7 is the MOST stable and fluid working version of Windows that Microsoft has ever released. I was rocking Win XP Pro for a super lonnnnng timmmme bro before I finally made the switch. I had custom registry edits, multiple desktops, and RainMeter displaying all kinds of cool info. I started over when I demoed Win7 in a VM and fell head over heels in LOVE with it. I'm indeed saddened to leave Win7, but my income and hobby both rely on reliability and stability. Right now, Linux is where it's at. Across various posts, I've mentioned my interest in many distros. I settled on Arch as a headless system (I liked the command line) and eventually tweaked i3 and tons of other configs just as I wanted. It took a long time, and near endless searches. But thankfully I found lots of inspiration and information to get my set up just right. I totally LOVED PACMAN, more than apt-get. But with the rolling distribution and bleeding edge methodlogy ... well, it broke some things, and I wasn't too keen on fixing them. So. Ubuntu it was I actually don't like Cinnamon for the same reasons I don't like KDE. It's too candy-ish. And I actually quite like the minimalasm of XFCE. I don't mind straying away from "the look and feel of a windows 7 desktop". This reminds me: Of of the earliest gifts that my wife got for me when we were dating (over ten years ago). She got my a multi-pack-CD-set of Suce Linux and Mandrake OVER A DOZEN DISCS, hahaha, I thought that was awesome! I've played with Linux for most of the previous ten years, but only really stuck with it as my sole OS for the last few years. I have various hard drives that I boot too. No complicated GRUB issues or dual/triple/quad/boot dilemmas. I have a hard drive switch that I select prior to powering up. I'll always keep my Win7 as the #1selector, as my wife also relies on that for her work. #2 is now (as of this morning) my new Xubuntu install. #3 is Arch. #4 is a dualboot between Elementary OS and Bodhi Linux. I love to tinker, as you can tell! OOOHH, and I also have a pink pogoplug working as my own dropbox type server connected to my router running DD-WRT and Arch on the server-side. Yes yes, I love to tinker.
  8. So I've decided to stop development on Windows7 (for a while) and made the switch to Xubuntu 14 (on a spare HHD). I can't stand Unity, and KDE is too "candy-ish". I've got my server running and almost 100% operational. Installed everything needed to get my first PW2.4 site up I's great Now I just gotta figure out how to have multiple virtual hosts up and running as I did on Win. Currently I have to sudo a2ensite website1.dev and sudo a2dissite website2.dev Can I have multiples running? Everything I've uncovered only shows the above two commands. I don't mind it. But I switch between different projects. SO FAR SO GOOD.
  9. YIKES! @kongondo I see that it hasn't been updated in years (Sep 2010). https://code.google.com/p/html5resetcss/downloads/list
  10. Looks nice, especially with all the features. But at over 100MB, I'll stay away
  11. I've successfully gotten it to run as a program, but it fails to continue running as a service. I just finished backing up my databases and backed THOSE up to my dropbox for safe-keeping. Can not afford to lose my data. Seriously considering leaving Windows entirely and sticking to my beloved Linux.
  12. <rant> UGH!!!!!!! I am so frustrated right now. Been using UniformServer for over a year now. This is the third time the server dies on me. Won't start. It's installed as a service. Their community forum and wiki are useless. Topics seeking help are not answered in a timely manner. I know there are various topics around here concerning WAMP installations. I'm not asking for help or recommendations to switch to. I've used many over the years and this one has worked flawlessly for over a year. </rant>
  13. Any reason you chose this over others? I picked normalize because it seems to be fairly recent. Last updated a few months ago.
  14. WOW, that guy is totally taking parkour to a new level!
  15. I have corrected your post! I think these would love amazing as the background of the login page.
  16. I normally just minimize both my pocketgrid and normalize and add them to the top of my style.css One call, does it all /*! PocketGrid 1.1.0 | MIT License | http://arnaudleray.github.io/pocketgrid/ ____ __ __ ______ _ __ / __ \____ _____/ /_____ / /_/ ____/____(_)___/ / / /_/ / __ \/ ___/ //_/ _ \/ __/ / __/ ___/ / __ / / ____/ /_/ / /__/ ,< / __/ /_/ /_/ / / / / /_/ / /_/ \____/\___/_/|_|\___/\__/\____/_/ /_/\__,_/ */ .block-group,.block,.block-group:after,.block:after,.block-group:before,.block:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.block-group{*zoom:1}.block-group:before,.block-group:after{display:table;content:"";line-height:0}.block-group:after{clear:both}.block-group{list-style-type:none;padding:0;margin:0}.block-group>.block-group{clear:none;float:left;margin:0 !important}.block{float:left;width:100%} /*! normalize.css v3.0.1 | MIT License | git.io/normalize _ __ ___ / | / /___ _________ ___ ____ _/ (_)___ ___ / |/ / __ \/ ___/ __ `__ \/ __ `/ / /_ / / _ \ / /| / /_/ / / / / / / / / /_/ / / / / /_/ __/ /_/ |_/\____/_/ /_/ /_/ /_/\__,_/_/_/ /___/\___/ */ html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}
  17. Saved my butt - AGAIN, thanks Ryan! (i'm glad I bookmarked this)
  18. No progress on this since late last year Mr. Pete?
  19. Many years ago, I'm certain that many of you (and I) used the reset developed by Eric Meyer http://meyerweb.com/eric/tools/css/reset/ Sometime later, I switched to normalize https://github.com/necolas/normalize.css Are browser resets still used? Do you use them? If so, which do you use?
  20. I understand bwakads confusion. I was a little confused back then too lol.
  21. If "/processwire" is the root of where you extracted the following zip, then YES. It has an index.php file http://processwire.com/download/ Upon initial extraction, you'll have this structure: FOLDER site-default wire FILE .gitignore COPYRIGHT.txt htaccess.txt index.php install.php LICENSE.txt README.md The folder 'site-default' automagically gets renamed to 'site' after installation. After installation, you'll find your WORKING FILES here: ./site/templates/... By WORKING FILES, I mean these are the ones you'll be working with 99.99% of the time. During the installation, whatever name you give your "Admin Login URL" is how you would access your site back-end. I do the same. Live site = website.com Test site = website.dev Makes it SO much easier.
  22. @Adrian I have properly selected the search.php page in the configuration setting page. The search.php page is the default that came with ProcessWire 2.4.0. <?php if(isset($options['q'])) $input->get->q = $options['q']; $subheader = "Please enter a search"; if($q = $sanitizer->selectorValue($input->get->q)) { // Send our sanitized query 'q' variable to the whitelist where it will be // picked up and echoed in the search box by (in _main.php) $input->whitelist('q', $q); // limit=the max number of items to show per pagination // to use this, enable pagination on your search template (in template settings) $limit = 10; // first try a fulltext match of keywords anywhere in title/body $matches = $pages->find("title|body~=$q, limit=$limit"); // if the above doesn't find anything (perhaps due to MySQL minimum word // length or stopwords), switch to non-indexed phrase match if(!count($matches)) $matches = $pages->find("title|body%=$q, limit=$limit"); $total = $matches->getTotal(); $start = $matches->getStart()+1; $end = $matches->getStart() + count($matches); if($total) { foreach($matches as $item) { // if item has no summary, substitute something else if(!$item->summary) $item->summary = "Found in: $item->path"; } $subheader = "Matches $start to $end of $total:"; $body .= renderBodyNav($matches); } else { // $subheader = "Sorry, no results were found."; $subheader = "The page you were looking for is not found."; } } $body = "<h2 class='subheader'>$subheader</h2>$body<p>We have tried to find the content you were looking for, but if we didn't get it right, please use our search engine or navigation above to find the page.</p>"; Am using module version 0.1.1 via ModulesManager.
  23. Are you developing on Windows? What LAMP server are you using? I do all my development locally. I have at least five separate ProcessWire installations on my Windows 7 desktop.
×
×
  • Create New...