-
Posts
2,862 -
Joined
-
Last visited
-
Days Won
47
Everything posted by Joss
-
My client of the day is a chap for whom I did a couple of banners to run when Double Click was very first launched - 1996? Something like that. It seems he never got round to using them until now but cannot find the CD. He would apreciate it is I could run a new copy for him - he is not prepared to pay. NO I BLOODY WELL CANT! ------------------------------------- Please feel free to post YOUR client of the day.....
-
There is an argument to change them twice - once now because you may already have been hacked and then once you are sure services have changed. But the main thing being pushed in the press is to not duplicate the use of passwords, so this might be beneficial just as a reminder. The other problem with waiting is that this is fine if you are in the business. If you are just a normal internet user, how will you know if that forum you use has been updated or not? The chances are you wont have the foggiest so you could be waiting for ever. Complicated as hell.
-
http://www.askapache.com/htaccess/rewrite-uppercase-lowercase.html Have fun!
-
Yes, MS Notepad changed many years ago now. However, although I use Sublime mostly now, I still find myself falling back to TextPad and Notepad++ regularly. Very fond of TextPad, to be honest, though it has never been very popular, probably because it is not strictly free, though you can evaluate it forever. I always liked its robust search within files
-
Having been a creative for around 35 years, I have always worked on the two stage process. 1. Think of an idea 2. Get on with it. If I do get stuck it is on number one as delaying on number two would get me fired. One trick for not getting stuck on number one - when your client briefs you down the phone tell them immediately what your first thoughts are to get a reaction. 9/10 they will like your gut reaction and the one time they don't you have at least eliminated one route.
-
Good point, Soma And I will not even attempt at dipping a toe into that whosstupidideawasittobaseanalreadycomplicatedlanguageonhungarian langluage Finnish.
-
The poem was originally by Richard Krogh The Oxford English Dictionary was started at Mill Hill School in a shed in the grounds (just by where I was brought up) And the reasons that it seems so confused is actually quite intentional. When the language was first rationalised, like many languages there were lots of very different spellings of the same word, depending on the origin of the writer (not the word) or the local dialect distortion or just a thousand spelling errors. The compilers had a choice - set a spelling style in stone and thus alienate huge numbers of writers, or look for evidence of the most common spelling in each case. They chose the latter, so bough and cow may sound the same despite different spellings, but they reflect what was most used in each case and not bloody mindedness of the dictionary editor or even the strict lineage of the word. Just to confuse things a little more, English has the largest vocabulary of any language in the world - by miles! It is also one of the most concise (by syllable count and grammar and therefore sentence length), though the Scandinavians on here will no doubt point out that their languages can be shorter. However, this is probably a direct result of them having a thousand words for "can we hurry this up and get inside; I am bloody freezing!" Such is the effect of climate on language...... (PS: Surprisingly, the British do not have a thousand words for rain, but we do have a thousand ways of complaining about it)
-
Thanks, though to be fair, writing is part of my job, so it is probably cheating!
-
You need to have been brought up in th sixties with a festival loving older brother - any colour becomes visible
-
Wow, out of the blue I got an invite for Atom! Unfortunately, I do not run Mac.....
-
There you go, Julien http://www.foodloversdiary.com/good-stuff/my-kind-of-food-the-bow-tie-duck-review/
-
Very nice site and right up my street. Might even give you a review.... http://www.foodloversdiary.com (Though you are a little bit far away for most of my UK readers!) If ever your need a food writer.....
-
Yep, and a special thanks from all of us YOU who were born before 1970 ..... *cough*
-
oh, wire ARRAY!!! I thought you meant kittens..... (PS: I bet you pronounce my name Yos ... I get a lot of that from the Netherlands.)
-
I find hanging them from the ceiling and seeing which one gets closest to the floor works...
-
One template doesn't recognise any paths, but one works fine
Joss replied to JohnHalsey's topic in General Support
And since any new a page is a child page of the home page (/mynewpage/), it will be looking in the wrong place for your css etc EDIT: Oh, Martijn explained that - I should read the whole post! -
Repeaters: sorting input fields; listing according to input fields
Joss replied to joe_ma's topic in Getting Started
Below is a code that sort of did a similar thing - you should be able to adapt it. Actually it went further than you in that is breaks the date field down by first of all year, and then by month, and then by date and then by time And then it stuck it all into a series of tables. The output is here (sorry, they are a bit behind filling in fixtures...) http://www.harlestonanglingclub.co.uk/fixture-list/ function events() { // get all of the events $events = wire("page")->events; //gets the repeater field $years = array(); $out =""; // find the array of years for all events foreach ($events as $event) { $years[]= date("Y", $event->getUnformatted("event_start_time")); // add properties event_year and event_month to the $event object $event->event_year = date("Y", $event->getUnformatted("event_start_time")); $event->event_month = date("m", $event->getUnformatted("event_start_time")); } $years = array_unique($years); asort($years); // for testing // print_r($years); // print_r($events); foreach($years as $key => $year) { // Output the year $out .="<h2>{$year}</h2>"; // find the array of events this year and put into new array $year_events $year_events = $events->find("event_year=$year"); // print_r($year_events); // loop through the events for this year and add the months to the array $months = array(); foreach ($year_events as $year_event) { $months[]= date("m", $year_event->getUnformatted("event_start_time")); } $months = array_unique($months); asort($months); // print_r($months); // loop through the months and find events for the month foreach($months as $key => $month) { // Output the month as a number $monthName = date("F", mktime(0, 0, 0, $month, 10)); $out .="<h3>{$monthName}, {$year}</h3>"; // filter only the events for this month, from the $year_events array. $month_events = $year_events->find("event_month=$month"); // print_r($month_events); $out .="<div class='table-responsive'>"; $out .="<table class='table table-bordered table-responsive'>"; $out .="<thead>"; $out .="<tr class='success'>"; $out .="<th>Date</th>"; $out .="<th>Who</th>"; $out .="<th>Place & Event</th>"; $out .="<th>Time</th>"; $out .="</tr>"; $out .="</thead>"; $out .="<tbody>"; foreach($month_events as $e) { $out .="<tr>"; $start_date = date("l jS", $e->getUnformatted("event_start_time")); $out .="<td><strong>{$start_date}</strong></td>"; $out .="<td>{$e->event_who}</td>"; $out .="<td>{$e->event_where}</td>"; $start_time = date("g:s a", $e->getUnformatted("event_start_time")); $end_time = date("g:s a", $e->getUnformatted("event_end_time")); $out .="<td>{$start_time} to {$end_time}</td>"; $out .="</tr>"; } // end foreach events for this month $out .="</tbody></table></div>"; } // end foreach months } // end foreach years echo $out; } -
"Thankyou Brother" A bit London, perhaps.....
-
New kid in class with "is this the CMS for me?" questions...
Joss replied to PhotoWebMax's topic in Getting Started
This is what persuaded me to try ProcessWIre when Matthew suggested it to me - not being a programmer, and not having a huge amount of time to put to the task, I do not want to learn yet another way of doing things. When I first worked on a complicated site back in 2000, the chap who helped me (who was a PERL guru) was very strict about not reinventing things that already existed. He felt, quite rightly, that it fragmented and complicated the process and, as a consequence, was almost inevitably a security risk simply because it did not have the support required. Actually, although the site was in PHP he did feel that it was a lot weaker and less secure than if it had been written in PERL - at that time he was probably right. And it just makes things hard work! It is notable that as a job he was not a web developer but a sysadmin and solutions developer for a multinational - very hard core and working in a world of very strict rules. He has left that world now and is joyously writing old fashioned game books. -
Ah, some nice reading to go with my coffee in the morning! Ta, bruv....
-
I use Somas mod a lot - I use it for a full "how to use this form" description while keeping the field descriptions to minimal reminders.
-
I have a younger bro? I knew I should have paid more attention to my family. (Particularly the Swiss bit)
-
Learning PHP: where to learn (just enough to make living w/ PW easier)
Joss replied to PhotoWebMax's topic in Getting Started
Yep. It is a very good environment for learning -
That's probably best, and then having done that, export another profile so you have one with minimal info that you can use in the future. I now have a habit of when developing a site, when I get to the point where the structure of the site is set in stone, I create a profile and keep that aside, then carry on adding content. Just gives me a near empty starting point which may be useful down the line. For the few seconds it takes, it is worth it.