While instaling squirrelmail on ubuntu 14.04, php thread-safety change from enabled to disabled (I look in info.php). Because of that, I can't use pthreads which requires thread-safety to be enabled.
Any help?
Related
I have been trying to run my macOS UI tests on a remote machine(VM), and it does not work. On a local machine, it works after giving the permissions related to accessibility. After digging through, I realised that you need to have SIP disabled and add the relevant permission.
So, how can I disable SIP on a headless machine in a CI/CD?
Unfortunately, it is not possible to disable SIP on a remote machine. You have to boot in safe mode and disable it from the terminal. And that requires direct access to the machine.
You can ask your provider if they can disable SIP for a specific machine for you, or you can look for providers that do.
There are a few out there, with Codemagic being one of them.
We released SIP disabled macOS images with the latest and beta Xcode versions so you can run macOS UI tests without any extra configuration.
It was frustrating not being able to test the UI of a Mac app, but I’m happy with what we managed to release.
I also wrote a blog post if you are interested in getting started with macOS UI testing.
Full disclosure - I’m a DevRel at Codemagic CI/CD, focusing on helping the community build for Apple platforms.
According to Apple it is necessary to reboot macOS when loading (or updating the KEXT). I have already disabled SIP. However, it is still cumbersome to do a reboot, especially for development. I know that KEXTs are deprecated and that the KEXT cache has to be rebuilt. However, is there some (undocumented) possibility to load/update the KEXT without having to reboot?
I did some research and tried some boot-args options without success.
No, from Big Sur onwards, all loadable kexts are linked into a single pre-linked kernel image, and it's not possible to mark kernel pages as executable after a certain stage has been reached during boot.
Attempting to load a kext which is not in that image adds it to the list to be included in the prelinked image. The reboot then causes the new pre-linked kernel to be loaded.
Yes, it's annoying, but no, there's no workaround, other than using 10.15/Catalina for debugging/testing when you're not specifically dealing with 11.0/Big Sur issues.
We recently upgraded our macmini from MacOS High Sierra to MacOS Catalina in order to compile with the latest Xcode. The macmini is a buildslave for continuous integration.
After upgrading to Catalina I noticed the machine became very slow during git checkout of thousand of files due to the apples built-in anti-malware service "XProtectService".
We don't need the anti-malware service for CI as it slows down the compile process
and no user will use the machine to download harmful files.
How can the XProtectService disabled?
As said in the comments, you can disable XProtectService by rebooting in Recovery mode (cmd-R during boot) and running:
csrutil disable
but beware that this will disable the whole System Integrity Protection. Here is an Apple article: Disabling and Enabling System Integrity Protection, describing this procedure and providing the following warning:
Warning
Disable SIP only temporarily to perform necessary tasks, and reenable it as soon as possible. Failure to reenable SIP when you are done testing leaves your computer vulnerable to malicious code.
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.
All,
In a webserver if gcc and g++ are not provided by the hosting service to the user.Can we download it and compile through it in RHEL5 OS.
If so please provide the suitable link to download it.
Thanks......
A web hosting provider is unlikely to give you compilers on the hosting box for your use. They will expect you to do your development on your own box and copy the executables to theirs.
That's if they even allow arbitrary code running on their machines at all - they may if you get your own VM but, if you're sharing resources with any of their other customers, I'll guarantee you'll be restricted in what you're allowed to put on their machine (and, unless you're in your own little VM, it's rightly still their machine - all you do is pay for the ability to use their server infrastructure).
If you have terminal access
su -
yum groupinstall "Development Tools"
You cannot download RHEL; it is not gratis. You can however download and use CentOS free of charge.