Jump to content

Adam Kiss

Moderators
  • Posts

    1,303
  • Joined

  • Days Won

    7

Everything posted by Adam Kiss

  1. It is, especially when it comes to JPGs with text, which is much sharper (and visually much more appealing)
  2. Not to be nagging, but noone still has answered my question about setting the quality of resized pictures higher
  3. I really think you should do processwire2.0 stable version of this plugin, but that might be just me
  4. Yeah. But I would welcome any script cleanup, some system-wide button 'clean shit up & recreate resized versions'
  5. Yeah, except I really need to change quality, to have the pictures a little less blurry. And also, I tried a lot of sizes, I want to those resized images gone And I know that PW duplicates pictures, doesn;t resize original... that's why I can't just go to e.g. cache/images and delete stuff – because it's in the same dir as originals, so I would have to be extre careful Isn't there some other way, via API maybe?
  6. I think the only problem here is translating selector's code into mathematics. I would use language as a bridge id != 10|20|30 The only (I hope) possible explanation is, that you want pages, which id isn't 10 or 20 or 30. Meaning you don't want pages, which id is 10 or 20 or 30. Correct? I think yes:) This sentence is much easier to transfer to mathematical logic, because you can clearly change it to 'Pages NOT with id = 10 or 20 or 30'. !(id = 10 || id = 20 || id = 30) => id!=10 && id!= 20 && id!=30 Note: The sequence in [ code ] brackets is the only correct mathematic translation of !(x||y). The problem is transferring the linguistic construction into correct mathematical equation.
  7. Hello, I have, during building the site changed the imagined size of pictures. Now I found myself with sizes I'm okay with, but I need to re-resize all the images again & with higher quality, because I'm unsatisfied with current quality, caused by (besides other things) by multiple resizes I did in my code. How to do it? Note: I know that Ryan already posted some linux/mac terminal code to clean-up images (thus forcing them to recreate), but I can't fucking find it.
  8. The thing is, that if it's stated as this: id != 5467|4567|9870 It should be rewritten as this: id != (5467 OR 4567 OR 9870) which in turn translates to id != 5467 AND id != 4567 AND id != 9870 I think this is correct way in mathematical logic, although I have no proof at hand right now, so I might be mistaken so the problem isn't in PW per se, rather then in translation from complex query to chain of simple queries. But, regardless whether it is correct logic or not, common sense tells you how it should act, which in turn you already implemented in new commit. Thanks. Edit: I actually found evidence: id != 5467 | 6574 understood the same as !(id = 5467 || id = 6574) which, rewritten is id != 5467 && id != 6574 evidence !(x = 5467 || x = 6574) on wolfram|alpha So, actually, there is mathematical bug in negative queries – OR should be understood as AND
  9. Hi all (or possibly only Ryan ), assuming 5 children in the /parent/, reserved is checkbox, which was just added, so is unchecked everywhere I have following query : <?php $query = $pages->find('parent=/parent/, id=5780|5800, reserved=0'); echo count($query); It correctly selects 2 pages and echoes 2. But this: <?php $query = $pages->find('parent=/parent/, id!=5780|5800, reserved=0'); echo count($query); doesn't return 3, it returns 5. Isn't this implemented, is it bug or do I fuck something up? edit: correction: I previously stated it returns no children, but realized it returns all children. I also added other thing into query, because it's in an original query, to be closer to the real one edit 2: upon more inspection, follwoing too doesn't work: <?php $query = $pages->find('parent=/parent/, !id=5780|5800, reserved=0'); echo count($query); But this seems to work: <?php $query = $pages->find('parent=/parent/, reserved=0')->not('id=5780|5800'); echo count($query);
  10. Antti: Yes Boys, thank you, but this looks like problem with Transmit – I deleted it via Web2FTP with no problems.
  11. No files in there, and that is why I'm surprised. I can move/rename any of the folders, I just can't delete it.
  12. Hi all, I have this strange problem with my server: I can't delete old /site/ directory (when I'm uploading new one), becuse two directories halt it: /site/assets/sessions/ and /site/assets/cache/Page. I have set whole tree (every directory up to & including site to 777 and I stil can't delete it. I can rename it, I can move it, but I can't delete it. Do you have any idea what to do with this? Note: It's the latest PW2.0. I did a lot of programming already, but nothing system-wise, so I couldn't have changed permissions or anything like this.
  13. I hate it when my propositions go unnoticed and two months later, it seems like great idea when somebody else needs it. fuck
  14. I haven't written it yet. This is one horrible fucking day.
  15. I'll write you an email, because we don't understand each other right now.,
  16. It does make sense, thanks. I still have to find time to play with PW. There is no time to find out this stuff if you're rushing to get the work done.
  17. ...except YOU programmed it that way ($this->page->process), here: http://processwire.com/talk/index.php/topic,255.0.html I don't really care that much if it works I implemented that if/ loading you adviced on the on that thread... But PW was blazing fast before, so I have no data to compare... Only... it still is on fire ;D
  18. Okay, if it was on me, I would create like 5-10 logical groups (admin, textformatter, frontend, backend) and allowed developers to add this as integer index. But that's only my first idea, there is no time to conceptualize that right now
  19. This idea already exists, but currently isn't planned, I believe. Create more fields.
  20. <?php $lang = $session->language; //or any other way you save your language preferences if($page->numChildren) { echo "<ul class='nav'>"; foreach($page->children as $child) { echo "<li><p><a href='{$child->url}'>".$child->{'title_'.$language}."</a><br /><span class='summary'>".$page->{'body_'.$language}."</span></p></li>"; } echo "</ul>"; Or, you could also do this: <?php foreach(..){ $t = $child->{'title_'.$language}; $b = $child->{'body_'.$language}; echo "...$b...$t"; }
  21. Both are in pipe for new versions: – multilinguality is planned for 2.2 – different page types, which may have use for table view (not the page tree view) may be shown with 'custom views' concept, which being created right now I believe Adam
  22. But then again: If I'm in module public function, $this->process returns ProcessPageView and $this->page->process return ProcessPageEdit. Which relates to what? (I suspect that the first relates to adminpage you currently 'view', and the second one relates to it's page field, or the page you're trying to edit, hence 'ProcessPageEdit') Amiright?
  23. In my previous module, I checked $this->processPage against 'ProcessPageEdit'. Right now, admin->edit page returns processPage of value 'ProcessPageView'. Has this been changed recently-ish, or am I confused and I did stumble on different ProcessPage type?
  24. I feel that the fact, that Modules are grouped via first word (if camel case is used) should be stated in the API; It's very important to have this convention, so the organisation of the modules makes any sense; But how can developers follow this convention if it's nowhere stated?
  25. Sorry to confuse you, I don't know why I always try to obfuscate what I'm workin' on a little what do you mean, two queries? as in something: <?php $places = $pages->get( /*places query nonreserved*/ ); $shops = $pages->get( /* shops query */); $emptyPlaces = filterarrays ($places, $shops); ? Can I do something like this: $places = $pages->get($non-reserved-places); foreach( array of filtered IDS as $emptyID ){ $empties = $places->get($emptyID); //THIS IS WHAT IM CURIOUS ABOUT } I mean, can I query API result? Thank you Ryan, you're awarded the nicest guy on the internet, always so helpful.
×
×
  • Create New...