-
Posts
2,920 -
Joined
-
Last visited
-
Days Won
17
Everything posted by szabesz
-
Free non commercial license - MySQL Compare from Redgate
szabesz replied to FrancisChung's topic in Dev Talk
I had to realize that "sharing" my Mac's webserver over the network the above mentioned way is for accessing the local websites, whereas connecting directly to MySQL from the Parallels Windows machine is a different matter... However, I just could not figure out how to do it, so if you succeed, please share. -
Free non commercial license - MySQL Compare from Redgate
szabesz replied to FrancisChung's topic in Dev Talk
Thanks for the info! I will take a look. I'm also a Parallels user which I normally use for IE/Edge testing purposes only. For those interested, I succesfully use SquidMan to connect to my MAMP Pro's server on my Mac from the Parallels virtual machine and/or from other (mobile) devices on my network (actually, all requests will be routed through SquidMan): Set up a permanent local IP for your local dev computer, for instance 192.168.1.10 or take a note of the one assigned to it by DHCP. Open SquidMan and access the application preferences: - In the "General" tab under "HTTP port" enter "8080" - Next, in the "Clients" tab enter a range of allowed devices. - example: 192.168.1.0/24 and/or 192.168.0.0/24 etc... - In the "Template" tab, comment out "http_access deny to_localhost", like this: # protect web apps running on the proxy host from external users # http_access deny to_localhost - Save changes. Launch your web server and SquidMan.app. Your local web sites are now open to visitors. On a Mac you'll need to adjust your network settings to use this proxy for HTTP traffic: - Open the System Preferences panel, click the Network icon. - Create a new 'Location' that uses the Squid proxy. - Set the HTTP proxy to be "localhost", port "8080" and turn on "Web proxy (HTTP)" on the "Proxies" tab. - Next click on "Apply Now". On your Parallels virtual machine / remote (mobile) device connected to your local network you also need to use the proxy: - Go to your network settings. - Optionally, if it is possible to use profiles: create a new Profile that uses the Squid proxy. - Set the HTTP proxy to be your local dev machine's IP with port "8080". For the Parallels virtual machine set networking to "Bridged Network". -
Thanks Adrien, "Undefined index: HTTP_MOD_REWRITE" is gone with even in "CGI mode". About CGI mode with MAMP Pro: in v3.3.2 I used to get: non CGI mode: mod_rewrite: 1, mod_security: CGI mode: "Undefined index: HTTP_MOD_REWRITE"... now in v3.3.3: non CGI mode: mod_rewrite: 1, mod_security: *confirmed off CGI mode: mod_rewrite: , mod_security So it does detect them properly when not in CGI mode, but just as you have noted they cannot be confirmed otherwise. It might be a good idea to use a short phrase, something like "probably not installed". What do you think? Also, the status of mod_rewrite seems to be uncertain too. BTW, is it possible to have the Inputfield Fieldsets be closed by default? I keep getting lost when all of them are open, and they are always open even after saving the settings.
-
Hi @adrian, I've an issue to report: Error: ProcesswireInfoPanel exception 'ErrorException' with message 'Undefined index: HTTP_MOD_REWRITE' in .../site/assets/cache/FileCompiler/site/modules/TracyDebugger/ProcesswireInfoPanel.inc:467 Stack trace: #0 .../site/assets/cache/FileCompiler/site/modules/TracyDebugger/ProcesswireInfoPanel.inc(467): Tracy\Bar->Tracy\{closure}(8, 'Undefined index...', '...', 467, Array) #1 .../site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-master/src/Tracy/Bar.php(127): ProcesswireInfoPanel->getPanel() #2 .../site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-master/src/Tracy/Bar.php(81): Tracy\Bar->renderPanels() #3 .../site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-master/src/Tracy/Debugger.php(266): Tracy\Bar->render() #4 [internal function]: Tracy\Debugger::shutdownHandler() #5 {main} I get this when my MAMP Pro's PHP mode is set to "CGI Mode" and the "Versions List" is turned on. I have not found too much on this so called "CGI mode", only this: http://documentation.mamp.info/en/MAMP-PRO-Mac/Servers-and-Services/Apache/ As far as I can see, this mode means the cgi_module is used, so I get the error, but when MAMP Pro's "module mode" is used instead, all is fine. According to PHP Info REDIRECT_HTTP_MOD_REWRITE is on, so it seems to be a strange issue to me.
-
You can use @adrian's Tracy Debugger module to inspect it: It is in the ProcessWire Info panel. If "Versions List" is enabled in the module's settings, then you get a "Versions List" listing in the panel, where "mod_security: 1" should show up if it is enabled or "mod_security: " if ti is not:
-
Great! You might want to update the post of the (this way almost) complete example as well.
-
I prefer "locked down" names to IDs, because as a developer I might choose to delete the page in question for whatever reason (e.g. for testing purposes, etc...) so identifying by names makes it easy to substitute the page just in case... EDIT: One more thing against IDs: it is hard to look for its appearances in the codebase, whereas looking for somewhat unique names (I prefer being verbose in this case too) is easy with a decent code editor, even in multiple files.
-
@SamC Hi, You might find the solution in this thread: Especially @gebeer's solution might be the one you are looking for, if I'm not mistaken.
-
Thumbs up Adrian! Is it already Christmas?
-
Oh, I "love" man pages
-
Thanks in advance Teppo! I am more than happy to help you by testing if you think I can be of any help this way. I'm also busy-busy-busy too, but I can postpone a few things just to spare some time for this. Since I'm sloooowly moving form WP to PW, I'm looking for ways to keep my useful habits As for the "output" part of the RSS, here is a screenshot of the WP plugin (called Simple History) to give you an idea what it can look like in an RSS reader (notice the login/logout noticies too, useful to keep track of users of sites with not too many users/logins):
-
Hi, I do not think Ryan will have time to support the module (and this is not the right topic for that anyway), however you can take a look at the code to learn form it. I can also recommend the following as staring points to implement forms based on the PW form API:
-
Thanks for the quick reply! I also noticed that sql dumps are not born to be equal, but I have not yet dived into the subject matter other than realizing that a simple text diff tool in just no enough I'm not planning to compare online to local, but local to local and/or online to online, and only before and after installing modules, or upgrading modules/system. The idea is that one can quickly spot changes without examining any source code, and if I happen to find something to pay attention to, I might want to spend the time to take a closer look at code level. I also found Toad and sqlyog, but they are running on Windows so not the kind I'm longing for. Nevertheless, can any of them be used to quickly see both schema an data changes? A far as camcima/php-mysql-diff is concerned, do not be scared away by Composer. As long as you do not want to create your own projects, there is not too much to learn, just "use it"
-
Hi @pwired Are you still using the technique of comparing two 2 (my)sql files? I have just turned my attention to it and spent half an hour googlin around on the topic. I found a few commercial GUI Windows applications that advertise themselves of being able to compare both schema and data, but I'm on a Mac and do not necessarily want to spend money on it. So this is the most promising solution I could find so far: https://github.com/camcima/php-mysql-diff I have not yet tested it, 'cos I wanted to save some time by asking first if there is anyone on the Forum who can recommend something else. I will surely try this one out too, but any alternatives are welcome. Note, that I'm not looking for a tool to actually migrate anything. What I need is a quick way to find differences if any and preferably between 2 sql files, and not by connecting to two databases. So, anyone? Thanks in advance...
-
I especially like this idea!
-
Hi Teppo, I've been planning to use this module but have not yet spent the time to check it out. Seeing that you are currently working on it, I thought it is hight time to install it Looks cool so far, but may I suggest a new feature? I use a similar WP plugin which can generate an RSS feed accessible via a URL with a long, "random" hashed string in it, so it is a relatively secure way to get the change info via my RSS reader every 5 minute. Is a simple but powerful tool to get informed of failed login attempts (hackers...) and also to keep an eye on clients in almost "real time" (my reader refreshes the feeds very 5 minute). A new addition the the above mentioned WP plugin is that it also looks for updates (system, theme, plugins), which is really handy too. This WP plugin relies on WP's lazy cron, but that is generally good enough, I think. What do you think?
-
I see, however I'm farm from being a full time PHP developer but someone who builds PW and WP sites and not afraid to dive into coding I've already tinkered with Composer and also with frameworks that heavily rely on them but I do not use any of them. I keep an open eye on Composer though, that is why I started this discussion in the first place. My framework of choice is ProcessWire, so as @LostKobrakai pointed out: but let's see what the future holds...
-
To tell the truth, I've just copied it over from Ryan's blog post without thinking too much... Probably that is why the "Composer method" of installing is not yet "promoted". I'm not a Composer user, but it would be interesting to see what the recommended way of setting up a site and using Composer at the same time is. A tutorial for Composer newbies like me would be nice.
-
Thanks again for all the goodies to all involved! One thing I've noticed: composer require processwire/processwire has not yet been added neither to /docs/install/new/ nor to /download/ page. I mean the possibility to install it is not mentioned on those pages
-
+1, and maybe not just for the eyes but for the whitespace around them too. However, I also like the clean look.
-
Thanks for the showcase! Just one little quirk I noticed: I resized the window to see what the mobile version looks like, after that I opened the menu by clicking on the "hamburger", with the menu still open I resized the viewport to make it wide again. The site cannot handle this and the layout gets into a mixed up state with mobile and desktop viewports being tangled up somehow.
-
3 options of accessing API variables from wired class
szabesz replied to valan's topic in General Support
Here you go, @LostKobrakai to the rescue:- 1 reply
-
- 3
-
I see, sure, there is no need to copy over too much stuff from PHPInfo, maybe just the most important things to get a quick general overview. (memory/file size related stuff, and other things that we sometimes trip over)
-
This is really useful again Adrian, thanks! However, be careful. If you show us what can be achieved, we might demand more and more and even more Just to show you what I mean, here is the WooCommerce "System Status" report (certain parts are deleted, such as the list of plugins): Similar to the above is the diagnostics info of another WP plugin: I copied over these just to give you some ideas should you find the time to improve this new feature. It would help forum support as well in some cases.
-
Not to mention that most users (be it PC or Mac) do not know where and how drag-and-drop can be used.