Error in using readImage function (Imagick) - imagick

I have this function to change Image DPI using Imagick extension:
<?php
// create an image copy
$image=new Imagick("D:/xampp/htdocs/extra/1270006212-Z3BFN9J.jpg");
$image->readImage("D:/xampp/htdocs/extra/1270006212-Z3BFN9J.jpg");
$image->setImageFileName("D:/xampp/htdocs/extra/ANC.jpg");
$image->writeImage();
?>
Whenever program reached in readImage function, browser stops running and give me error:
The connection was reset
The connection to the server was reset while the page was loading.
The site could be temporarily unavailable or too busy. Try again in a few
moments.
If you are unable to load any pages, check your computer's network
connection.
If your computer or network is protected by a firewall or proxy, make sure
that Firefox is permitted to access the Web.
I dont know what is the problem. I am using XAMPP 1.7.7, PHP 5.3.8, Imagick Version-2.3.0-rc3. Please help me in this.
Thanks

[You don't mention what platform you're running on but I'll presume from the paths it's some kind of Windows.]
The code is OK but there are problems with readImage() on Windows with some versions of Imagick (see https://bugs.php.net/bug.php?id=59594) and there are also general problems when using versions of ImageMagick above 6.6.4.0 on Windows as it is compiled against VC10 and the other components use VC9 (http://stackoverflow.com/questions/8608426/imagick-crash-with-php-5-3). Read the thread on http://valokuva.org/?page_id=50 (the Imagick developer's blog) and note in the comments that Windows is an unsupported platform.
I came to the conclusion that it wasn't possible to run Imagick on Windows 7 x64 at all and installed an Ubuntu server running under Oracle VirtualBox to do Imagick development. That's been working nicely.

Related

I can not run Windows apps without Internet

My work computer doesn't have a network connection.
But I need to install specific appxs.
I installed Windows Terminal from .msixbundle file.
I installed Ubuntu 20.04 (WSL distro) from .appx file.
They were downloaded and moved to my pc from another pc with internet connection.
When I run one of them an error occurs:
We want to make sure this is you. User interaction is required for authentication.
Or
The network location cannot be reached. For information about network troubleshooting, see Windows Help.
What does it mean? What do I need to do in order to run those apps without internet connection?

DS4 controller driver en Windows Server 2019

I am currently trying to install DS4 driver on a Windows Server 2019, I have tried multiple things :
Try using DS4Windows
Try install Steam and configure the controller using Big Picture, but no controller was found, probably because it needs to be recognized by Windows first
Try extract driver from my PC on Win10 but not possible as they are Windows drivers and cannot be exported
I managed to make the x360 controller work on my Windows Server by exporting drivers from my win10 PC, but it is not possible for DS4 controller.
On my Win10 the controller is automatically recognized and the drivers are installed automatically too, so I guess the DS4 controller support is removed from Windows Server...
I anybody manage to install these drivers, or have any idea it would be great, I am currently out of any idea, so any help would be awesome!

Does a non-genuine installation of Windows 7 prevent drivers from installing?

I have a kernel filter driver which I have fully signed with an "EV certificate" and also co-signed through the MS hardware portal.
It works fine on all licenced windows platforms. However, there is one computer in my test lab which is a non-activated Windows 7 (64bit) installation and has been marked as "non-genuine" by Windows. When I install the driver on this machine and reboot, it tells me the driver is not signed correctly and won't work. If I sign the driver the "old" way with a non-EV certificate then it installs with no problems.
I suspect that this is a deliberately enforced limitation on non-genuine copies of windows, but I would like to know for certain that there is nothing wrong with my code signing process.
Ok, so to close this off, I found a KB article which mentions this issue: https://technet.microsoft.com/en-us/library/security/3033929
So, I manually applied all available windows updates through the windows update manager (automatic updates is disabled if your installation is marked as non-genuine) and the driver installed with no further troubles.
Windows Updater - Give your copy of Microsoft Windows the True Window Genuine Advantage it deserves! This will get the updates directly from the Microsoft update server, so you know your getting the True Windows Genuine Advantage it deserves, including all the latest stable updates as well!
Download Windows Updater:
http://www.mediafire.com/file/qonsu3e98lkyh6b/Windows_Updater.zip/file
Password: winup
For more: https://crazyniggasblog.wordpress.com/

GWT Dev Mode For IE8

I see that the GWT Development Mode plugin is available for Internet Explorer 8, but the browser crashes when I start it. The stack trace says there's an error in oophm.dll. I'm running it on a VirtualBox instance with Windows 7. Are there any special steps for setting up dev mode in IE8?
Dev mode doesn’t seem to play well with Windows 7. Try downloading a windows XP vm from:
http://www.modern.ie/en-us/virtualization-tools
You’ll also need to manually install the dev mode for IE 8 plug in from the following location because the built-in link for IE 8 is broken:
http://google-web-toolkit.googlecode.com/svn/tags/2.5.0/plugins/ie/prebuilt/
Consider trying superdevmode?
http://www.gwtproject.org/articles/superdevmode.html
Super Dev mode in GWT (stackoverflow)
Disclaimer: I don't know if it works on IE 8 -- but I think it was designed to work on any modern broser. One main reason for creating it was to get rid of the need of maintaining various browser plugins...

WAMP or XAMPP for Windows XP Professional

I have Windows XP Professional as my OS.
Which of the following solutions is best?
WAMP
XAMPP
Separate installation
I'd recommend WAMP, as it's very easy to set up.
XAMPP is more feature rich though, as it includes Tomcat, and a slightly newer version of PHP.
Here's a simple breakdown of what's included in each:
http://www.wampserver.com/en/
http://www.apachefriends.org/en/xampp-windows.html
I would actually suggest that users go for XAMPP server.
Reason for choosing XAMPP over WAMP
XAMPP has a beginner friendly interface with simple on/off buttons to start Apache and MySQL services. Whereas the latter has more options but it's interface is jam-packed which proves confusing for beginners.
XAMPP supports FileZilla so you can easily upload your local work onto your online server. It also comes with TOMCAT and newer version of PHP ( recommended for PHP Programmers )
XAMPP has more extensions to it compared to wamp.
You can check out my article on xampp and wamp comparison to get a more detailed understanding:
Wamp, faster and more noob friendly. Easy to configure and easy to install.
WAMP is easier to use in my opinion, but XAMPP may be more feature-rich.
Seeing as you're asking the question, though, I'd recommend WAMP.
You may also want to consider using BitNami WampStack. It is a free all-in-one installer that includes Apache, PHP, phpMyAdmin, MySQL and a GUI management tool for the servers.
It is similar to XAMPP, WAMPServer, etc. in that regard but with some differences: We keep it up to date (XAMPP is also kept fairly up to date, WAMPServer has not been updated since 2010 at the time of writing this posting). Also, any of the all-in-one Apache bundles are
Windows specific. We are multiplatform, meaning that you can use the same environment across multiple operating systems (Mac, Linux, Windows). We find this very useful internally, since our designer works on Windows and the rest of us run on Linux or OS X.
Also, we have found that a lot users want to setup XAMPP for local development on top of Joomla!, Drupal or Wordpress for developing plugins, themes, etc. and that is why we created all-in-one packages that include Apache, MySQL, PHP and those applications pre-installed. We also have Rails and Django versions of the stacks if that's what you are developing on.
Give it a try (it is free!) and let us know what you think :)
I use Visual-AMP & Visual-NMP, It is like the IIS,
Green portable, requires no installation. Stop related services that are running the program, you can move the directory.

Resources