windows

PHP Windows extensions won´t load

自古美人都是妖i 提交于 2021-02-11 16:46:43
问题 I'm working on a windows server 2008 R2 machine. I have installed apache 2.2 with php 5.4.25 While trying to enable ldap support for the apache server i found out that the server does not load the extensions. I ran php_info() and this was the result Configuration File (php.ini) Path C:\Windows Loaded configuration file: "C:\php\php.ini extension_dir C:\php\ext I have changed the php.ini to load the extensions, but they are not loaded and they are not visible in the php_info dump. I tried to

PHP Windows extensions won´t load

蹲街弑〆低调 提交于 2021-02-11 16:45:14
问题 I'm working on a windows server 2008 R2 machine. I have installed apache 2.2 with php 5.4.25 While trying to enable ldap support for the apache server i found out that the server does not load the extensions. I ran php_info() and this was the result Configuration File (php.ini) Path C:\Windows Loaded configuration file: "C:\php\php.ini extension_dir C:\php\ext I have changed the php.ini to load the extensions, but they are not loaded and they are not visible in the php_info dump. I tried to

Running python script in Service account by using windows task scheduler

微笑、不失礼 提交于 2021-02-11 16:43:38
问题 NOTE 1- All files are running using cmd in my profile and fetching correct results.But not with the windows task scheduler. **> NOTE 2- I finally got a lead that glob.glob and os.listdir is not working in the windows task scheduler in my python script in which I am making a connection to a remote server, but it is working in my local using cmd and pycharm.** ** print("before for loop::", os.path.join(file_path, '*')) print(glob.glob( os.path.join(file_path, '*') )) for filename in glob.glob(

C# Dns.GetHostEntry() - exception: No such host is known

和自甴很熟 提交于 2021-02-11 16:41:02
问题 From documentation Dns.GetHostEntry() Resolves a host name or IP address to an IPHostEntry instance . Could anyone help me undestand why this function doesn't work for some external IP address (it works for internal IP address) and the ping command works normally? My code is: using System; using System.Net; namespace ConsoleApplication1 { class Program { static int Main(string[] args) { if (args.Length == 0) { Console.WriteLine("Please enter a host name or IP address"); Console.WriteLine(

Python save as/open

。_饼干妹妹 提交于 2021-02-11 15:44:10
问题 hello there i am making a text editor in Tkinter (python) and so i made a menu and wanted to know how i can call a function that will display the windows Save-as or open boxes that every program uses. For example in notepad you can click file-save and then it opens the windows save box. I already have the menu but how can i open the save box. Thanks a lot. 回答1: Here is an example from http://www.daniweb.com/forums/thread39327.html: import tkFileDialog def open_it(): filename = tkFileDialog

IE Crashing when exposing Methods for JS

…衆ロ難τιáo~ 提交于 2021-02-11 15:34:21
问题 I am developing a BHO for IE in C#. The issue I am stuck in is that IE crashes by saying that "Internet Explorer has stopped working" then "A problem with the webpage caused Internet Explorer to close and open the tab again" This behavior is observed on Windows 10 Pro 2016 and IE 11. However same BHO is working fine on other versions of Windows like Windows 8.1 - IE 11, Windows 10 2019,2020 - IE 11. This usually occurs on navigating to a link in the already opened tab or on refreshing the

IE Crashing when exposing Methods for JS

假装没事ソ 提交于 2021-02-11 15:33:21
问题 I am developing a BHO for IE in C#. The issue I am stuck in is that IE crashes by saying that "Internet Explorer has stopped working" then "A problem with the webpage caused Internet Explorer to close and open the tab again" This behavior is observed on Windows 10 Pro 2016 and IE 11. However same BHO is working fine on other versions of Windows like Windows 8.1 - IE 11, Windows 10 2019,2020 - IE 11. This usually occurs on navigating to a link in the already opened tab or on refreshing the

Current memory usage display is always ~14MB more than task manager

耗尽温柔 提交于 2021-02-11 15:21:16
问题 I'm currently using the code in this answer, with some slight modifications as suggested in the comments. However, no matter how many objects I allocate in memory, the listed memory usage is always ~14MB more than what task manager lists. Why could this be? std::stringstream ss; PROCESS_MEMORY_COUNTERS_EX pmc; GetProcessMemoryInfo(GetCurrentProcess(), (PROCESS_MEMORY_COUNTERS*)&pmc, sizeof(pmc)); SIZE_T physMemUsedByMe = pmc.WorkingSetSize; ss << "\nMEM: " << (physMemUsedByMe / 1024 / 1024) <

Windows Firewall - Laravel Artisan Serve - Allow Port in Inbound Rule (not working)

限于喜欢 提交于 2021-02-11 15:19:15
问题 I'm using Laravel..And i develop a website... And I want try to access the site from other devices.... . . I run php artisan serve --port=4042 --host=0.0.0.0 in my computer (windows 10).. And I allow port 4042 by create new Inbound Rules in Windows Firewall (as in picture below): But when I access from my mobile phone, it shows error as in picture below: But I can access the web if I turn off the whole Firewall.... But I dont want disable the whole Firewall, I just want to allow port 4042

Windows Firewall - Laravel Artisan Serve - Allow Port in Inbound Rule (not working)

前提是你 提交于 2021-02-11 15:16:39
问题 I'm using Laravel..And i develop a website... And I want try to access the site from other devices.... . . I run php artisan serve --port=4042 --host=0.0.0.0 in my computer (windows 10).. And I allow port 4042 by create new Inbound Rules in Windows Firewall (as in picture below): But when I access from my mobile phone, it shows error as in picture below: But I can access the web if I turn off the whole Firewall.... But I dont want disable the whole Firewall, I just want to allow port 4042