w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
PsExec: Win7-to-Win7 Access Denied (psexesvc remains)
Bit late, I know, but I've just been trying to solve this too. Turns out it has to do with security levels / user access levels. I was trying to run psexec from a command prompt on a local PC and had started the command prompt by right clicking and choosing "Run as administrator". Then I'd run the psexec command targetting a remote server and specify a domain admin account for the -u parameter. However, my local account only had administrative privileges on the local machine, not the remote one and choosing "run as administrator" doesn't actually mean "run as domain administrator"! (Obviously, duh!). So, in effect, what was happening was that it was trying to run my main command as a domain admin on the remote but the psexec part was being run as my (non-admin) domain user account - whi

Categories : Misc

Adding private chat functionality to simple twisted chat server
Actually I figured it out by changing the for loop in handle_CHAT. As I want the program to send the message to the specific user, a "talkwith" string can be added to the class and this string can hold that specific user's name. Then this change turns the program from public to private chatting. msg = "<%s> %s" % (self.name,msg) for name,protocol in self.users.iteritems(): if name == self.talkwith: protocol.sendLine(msg)

Categories : Python

Swing chat window creates extra chat windows
Just remove the static keyword from private static UDPCS1 chat = new UDPCS1(); and no more chat windows will be there... Hoping it helped... Helped in my case i was doing something too,...

Categories : Java

PHP AJAX chat - Chat commands logic?
You need to define a syntax for your commands yourself. For example /ban <username> for a ban. First you check whether the message begins with a slash. If so it is a command. Now search for the first space, everything after the slash and in front of the space is the command name. Pass everything after the first space to the command. In this case the username. The command handles the parameters on it's own. It could look like this: $message = '/ban TimWolla'; if (substr($message, 0, 1) === '/') { // $message is a command $firstSpace = strpos($message, ' '); $command = substr($message, 1, $firstSpace); $parameters = substr($message, $firstSpace + 1); if (!hasPermission($command)) error('Permission denied'); switch ($command) { case 'ban':

Categories : PHP

which is faster, saving chat history in a text file and display it or using mysql db to save chat history
For a real-world implementation, I wouldn't consider either one of these a good option, but it definitely could be fun to play with. Using files isn't going to scale as well as the db,well... as easily. But really, I'd look into just setting up a jabber server and play with that. Or maybe look into node.js.

Categories : PHP

Pop up chat box on new chat message
Web sockets tends to be the way to go for chat applications, in your case it sounds like server sent events could be perfect (as from what it sounds you're only receiving events, for two way communication you'll be good using web sockets), both lack support in older browser. So if you need to support older browsers you can go with long polling which out of your choices has the least load on the server as it's one request for every response. See this post: What are Long-Polling, Websockets, Server-Sent Events (SSE) and Comet? for more info on the specific technologies

Categories : PHP

DWM in Win7/8 + GDI
Here's a couple of general GDI-related pointers regarding your code: When you call InvalidateRect API it may not immediately dispatch WM_PAINT notification, so calling InvalidateRect two times in a row like you did in your TForm1.FormMouseMove method is most certainly causing this visual effect. The first redrawing is not yet processed when you call it the second time. I'm not sure what Canvas.Rectangle exactly does "on the inside" or which APIs it calls. I'm assuming it is using DrawFocusRect, in which case you have to be aware that its drawing is XORed, so doing it twice over the same rectangle will erase it. OK, so here's what I'd do if I were drawing that selection box: Call InvalidateRect API only once. For that you will have to calculate the bounding rectangle that will include

Categories : Misc

IoC is not initialized on Win7/XP
Well i ran your code on my XP machine and had a problem with your last update, the one where you used the MessageBox class and it caused you issues on your windows 8 machine, but the previous code where you create a new container and register the ShellViewModel which you said caused problems on your win 7/xp machine did not cause me any problems (it compiled and ran OK). Now i was wondering why using the MessageBox.Show() method inside the Configure method is causing that exception and i kind of figured out the reason for that and it boils down to this: Caliburn.Micro's (CM from here after) Bootstrapper<TRootModel> constructor is calling Start() Start() is calling StartRuntime() StartRuntime() is calling and in this particular order: Configure() then IoC.Get = GetInstance and t

Categories : C#

JVM 32 bit installed in the Win7 64 bit Os, but it is not recognized
Make sure that the environment variable JAVA_HOME leads to your JDM installation directory and that $JAVA_HOMEin has been added to your PATH env variable This should fix the problem

Categories : Java

Install Qwt on Win7 64bit
Your problem is you installed the 64 bit Qt then you are trying to build Qwt in 32 bit mode. Make sure you have a 64 bit compiler. Visual Studio 2010 Express does not come with a 64 bit compiler. The following should help with that: How to compile a 64-bit application using Visual C++ 2010 Express? After you get a 64 bit compiler I believe you should run configure and nmake from a Visual Studio x64 command prompt to get the compiler to build 64 bit applications. If you really do not need 64 bit applications a much easier approach is to install the 32 bit Qt SDK for Visual Studio 2010. Here is the link for that: http://download.qt-project.org/official_releases/qt/5.1/5.1.1/qt-windows-opensource-5.1.1-msvc2010_opengl-x86-offline.exe Remember that you can develop and execute 32 bit appl

Categories : Windows

anyone knows about pow alternative in ubuntu or win7
A Linux fork for pow is there which you can use here Hoof is another alternative. I found Phusion Passenger interesting too.

Categories : Ruby On Rails

Cannot install Cython on win7
I don't think your troubles have anything to do with the fact that you're installing the TA-lib wrapper, so here are a few suggestions : First, retry to install Cython using Python 2.7.X (I suspect some incompatibilities between some Python versions and Cython versions : at least, the kind of errors you mentioned remind me something...). If this doesn't help, rebuild Cython as follows : Install MinGW (with options gcc/g++) from here. Tell disutils to use gcc... Create file C:Python27Libdistutilsdistutils.cfg and write this inside : [build] compiler = mingw32 If needed, remove all instances of -mno-cygwin gcc option from file C:Python27Libdistutilscygwinccompiler.py : # self.set_executables(compiler='gcc -mno-cygwin -O -Wall', # compiler_so='gcc -mno-cygwin -md

Categories : Python

Best way to add icon to delphi 2007 app (win7)
The Delphi 2007 IDE cannot handle large Vista icons, which use PNG compression. And neither can the brcc32 resource compiler that ships with Delphi 2007. My solution, when I was still using legacy Delphi versions, was to make a .rc file containing the icons, and compile using the MS resource compiler, rc. The MS resource compiler does support such icons, and is readily available, for example with the Windows SDK.

Categories : Delphi

Issue installing npm on my Win7 Machine
There are several things you can do to find out the problem: do an nslookup of registry.npmjs.org to find out if the address can be resolved check your network settings to find out if there is a proxy configured If so, configure npm to use the proxy. This is how you can do this: npm config set proxy http://proxy.company.com:8080 npm config set https-proxy http://proxy.company.com:8080 Credits go to http://stackoverflow.com/a/12832637/52568.

Categories : Node Js

SQL Query PHP website from Win7 to MAMP
I finally resolved this issue. Stupidly I had introduced a space character at the beginning of my username field. So when the stored database username was compared with the user submitted username - they did not match.

Categories : PHP

VideoWriter not working on Win7-64Bit VM
Once I faced a similar problem where opencv couldn't read a video. There was no warning at all. The reason was that an automated string maker resulted in "opencv_mmpeg.dll" which was missing from the system. So, I debugged up to cap_ffmpeg.cpp and found this: #if defined WIN32 || defined _WIN32 const char* module_name = "opencv_ffmpeg" CVAUX_STR(CV_MAJOR_VERSION) CVAUX_STR(CV_MINOR_VERSION) CVAUX_STR(CV_SUBMINOR_VERSION) #if (defined _MSC_VER && defined _M_X64) || (defined __GNUC__ && defined __x86_64__) "_64" #endif ".dll"; So, copy opencv_ffmpeg_64.dll to your folder and you might have some results. Else, you need to debug deeply. Start by inserting into your project the file opencv/modules/highgui/src/cap.cpp (and the headers needed

Categories : C++

Win7: Get microphone mute status
Use CoreAudioApi. You can find dll here. Find your microphones with this function: private List<MMDevice> gMicrophoneDevices = new List<MMDevice>();//global variable private bool findMicrophones() { MMDeviceEnumerator DevEnum = new MMDeviceEnumerator(); MMDeviceCollection devices = DevEnum.EnumerateAudioEndPoints(EDataFlow.eCapture, EDeviceState.DEVICE_STATE_ACTIVE); for (int i = 0; i < devices.Count; i++) { MMDevice deviceAt = devices[i]; if (deviceAt.FriendlyName.ToLower() == "microphone" || deviceAt.FriendlyName.ToLower() == "микрофон")//you can add more languages here gMicrophoneDevices.Add(deviceAt); } if (gMicr

Categories : Windows

How PHP5.2.17 get service status on Win7
WIN32_ERROR_ACCESS_DENIED error is "The handle to the SCM database does not have the appropriate access rights" mentioned on php.net. check current user permission to folder that may be help ..

Categories : PHP

running a 32 bit debug build dll in a win7 64 bit using C#
Did you try searching for the error online? Here is the first hit I got for an MSDN blog with a workaround. http://blogs.msdn.com/b/keithmg/archive/2012/03/20/strong-name-validation-failed-exception-from-hresult-0x8013141a.aspx You may want to ask the third party to provide a fully signed DLL.

Categories : C#

Run with elevated rights fails on WIN7
Most likely explanation is that this is a 32 bit vs 64 bit issue. The DLL is 64 bit, and you are running the 32 bit regsvr32. Or vice versa. Or the file system redirector is confounding you. You put the DLL in system32, but the redirector turns that into SysWow64. The obvious way to debug it is to remove the silent switch and let regsvr32 tell you what went wrong. As an aside, as you have discovered, you cannot use the return value of ShellExecuteEx to determine whether or not the server registration succeeded. The return value of ShellExecuteEx merely tells you whether or not the process started.

Categories : Delphi

Taskbar window minimenu Win7
In Introducing The Taskbar APIs on the MSDN magazine, it describes about how to use the Thumbnail Toolbars. The managed equivalent does not currently appear in the Windows API Code Pack, but it is planned to appear in a future release. In the meantime, you can use the Windows 7 taskbar Interop Sample Library. It contains the ThumbButtonManager class with the corresponding CreateThumbButton and AddThumbButtons methods for controlling the thumbnail toolbar, and also the ThumbButton class for modifying the thumbnail button state at runtime. To receive notifications, you register for the ThumbButton.Clicked event and override your window procedure to dispatch the messages to the ThumbButtonManager class, which does the dispatching magic for you. (For more details, see the

Categories : C#

Use Shell32.dll on mix of XP, Vista, Win7 via XCOPY deploy
I switched to DotNetZip. Add Project Reference to the Ionic.Zip.Reduced.dll. Imports Ionic.Zip This code is expecting .kmz files downloaded from ESRI REST services but should work with .zip files as well. Function Unzip(FilePathofZip As String, DestinationFolder As String) As Boolean ' extract .kmz files downloaded from ESRI REST services Try Dim sFile As String = FilePathofZip If IO.Directory.Exists(DestinationFolder) Then IO.Directory.Delete(DestinationFolder, True) Application.DoEvents() IO.Directory.CreateDirectory(DestinationFolder) If FilePathofZip.EndsWith(".kmz") Then sFile = FilePathofZip & ".zip" IO.File.Move(FilePathofZip, sFile) Application.DoEvents() End If Try

Categories : Vb.Net

Unable to compile with Android Studio 0.2.4 on Win7 x64
Nevermind, I just found that you must configure Android Studio's path. It seems ItelliJ IDEA doesn't support network locations such as my user home: adjust the following paths so that they point to local directories

Categories : Windows

cygwin on win7, ctrl-d doesn't have effect
I don't know if you're stuck with Cygwin for some reason. Since it seems that you are just learning C, maybe you could use a compiler that has native support for Windows, instead of relying on an intermediate layer as Cygwin. See this link for how to get up and running with TDM-GCC on Windows (a port of GCC). BTW, on Windows CTRL-Z is the correct way to insert an EOF (signaling end of input) in a console.

Categories : C

Why I can't install my grails plugin after reinstalling win7?
Try removing everything from application.properties except the following lines: app.grails.version=2.1.1 app.name=connectwebapp plugins.tomcat=2.1.1 plugins.hibernate=2.1.1 Then, run grails clean Then, revert your application.properties and run grails run-app Hope that helps!!!

Categories : Java

win32gui findwindow doesn't work win7
There's a couple of things that could be. But I think it's about ANSI and UNICODE. Try using: hwn = win32gui.FindWindow(None, u"Prompt dei comandi - python demo.py") Or maybe using ctypes: from ctypes import windll FindWindowW = windll.user32.FindWindowW FindWindowA = windll.user32.FindWindowA print FindWindowW(0, u"Prompt dei comandi - python demo.py") print FindWindowA(0, "Prompt dei comandi - python demo.py") Hope it helps.

Categories : Python

QT5.0.2 on Win7 -- Update widgets independently and simultaneously
for(int i=0; i<2; i++){ Create ImageLoop instance connect(instance, SIGNAL(listfull()), instance, SLOT(playList())); instance->FillList(arrayOfImageFileNames); } You are expecting this pseudo-code to asynchronously call playList() on both imageLoop instances. What's happening instead is Qt is connecting listFull to playList directly, making this pseudo-code equivalent to: for(int i=0; i<2; i++){ Create ImageLoop instance instance->FillList(arrayOfImageFileNames); instance->playList(); } My guess is playList is also synchronous, which means it will finish, and only then will the for loop continue to the second ImageLoop instance. Qt doesn't allow you to have multiple GUI threads, nor can you update the GUI from multiple threads, so you need to show and image then

Categories : Qt

Python winreg missing subkey on Win7
Once I figured out this problem is related to 64/32 bit windows redirection is was pretty easy to get around. I had to use the following to get registry values from 64 bit hosts. key = winreg.OpenKey(aReg, subkey, 0, (winreg.KEY_WOW64_64KEY + winreg.KEY_READ)) (www.stackoverflow.com/ questions/ 8506646/ change-64bit-registry-from-32bit-python) This site has pretty simple explanation what's happening: python.6.x6.nabble.com/ Seven-64bits-and-system32-syswow64-paths-td4540789.html "On a 64-bit system all of the 64-bit commands and DLLs live under windowssystem32 and all of the 32-bit commands and DLLs live under windowsSysWOW64. 64 bit process gets to see both of those directories as they are but for 32-bit process the operating system rewrites paths and when referring to windowssyste

Categories : Python

moving from win7 to mac, eclipse missing Sun import
The sun packages are internal to a particular VM implementation and should not be used. Additionally, the class names are a good hint that they are Windows-specific on top of that and will definitely not be in an OSX JVM.

Categories : Java

I have some trouble with golang syscall when calling dll in win7-64
For example, package main import ( "fmt" "syscall" "unicode/utf16" "unsafe" ) var ( WinSCard, _ = syscall.LoadLibrary(`C:windowssystem32WinSCard.dll`) procSCardEstablishContext, _ = syscall.GetProcAddress(WinSCard, "SCardEstablishContext") procSCardReleaseContext, _ = syscall.GetProcAddress(WinSCard, "SCardReleaseContext") procSCardListReaders, _ = syscall.GetProcAddress(WinSCard, "SCardListReadersW") ) const ( SCARD_SCOPE_USER = 0 SCARD_SCOPE_SYSTEM = 2 SCARD_ALL_READERS = "SCard$AllReaders" SCARD_DEFAULT_READERS = "SCard$DefaultReaders" ) func SCardListReaders(hContext syscall.Handle, mszGroups *uint16, mszReaders *uint16, pcchReaders *uint32) (retval error) { r0, _, _ := syscall.Syscall6( uin

Categories : Go

A bug in win7 about ASP.Net Download file to client browser?
Usually when you make a page for downloading a file you better use a handler, or at least if its aspx page disable the session. The reason is because the session is lock the user until is finish, and when you download a file you usually take long time, or if you stop it can be stack until understand that the network is closed. So disabling the session for this aspx page can solve your issue. relative: Web app blocked while processing another web app on sharing same session What perfmon counters are useful for identifying ASP.NET bottlenecks? Replacing ASP.Net's session entirely Trying to make Web Method Asynchronous

Categories : Asp Net

Getting std::thread/mutex to work under Win7 with mingw and g++ 4.7.2
These MinGW-w64 builds support C++11 threads,atomic operations etc. MinGW-builds are now integrated into the MinGW-w64 project MinGW-builds (project is old and will not be updated, see point above) MinGW-w64 rubenvb 64-bit and 32-bit builds Note that MinGW-w64 is not 64-bit only, but does support it, unlike the old MinGW(.org) which is missing quite a lot of the new Vista+ APIs, and of course 64-bit support.

Categories : C++

In IE10+Win7 a ASP.NET ImageButton only works in Compatibility Mode
I would do a few things to see why it doesn't work. First thing I would do would be use the "F12 Developer Tools" and use that to see what may be happening. Sometimes it might be showing that something is being blocked. This way you can see if it is being fired or not. If you are unable to find anything useful in that, try resetting your Internet Explorer. You would do this by selecting internet options, click the advance key, and reset. I have run into issues where IE was just messed up from me constantly debugging. I would also check to see if it works on Firefox and Chrome. As for you code, the image button looks fine. To me, this is going to be a issue with your actual browser and not your code. You could also try uninstalling IE 10 and see if it works without compatibility mode in IE

Categories : C#

Win7/64bit: Notepad++ XML Tools Plugin does not load
You have a 32-bit notepad++, but you downloaded the x86_64 extensions. You need to either install the 64-bit notepad++, or install the 32-bit xml tools. (app and libraries' bitness needs to match)

Categories : Xml

how to run 2 mysql servivce on 1 machine of win7 Operating system?
Chances are you missed a setting and both instances are trying to access the same data files. Please use this manual page as a checklist.

Categories : Mysql

"BOOST_DIR NOT FOUND" of shark3.0 using boost1.54.0 with cmake under win7 x64 os
the key point is in the following sentence: "CMake Error at G:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:644 (file): file STRINGS file "D:/library_file/boost_1_54_0/*boost/boost/*version.hpp" ", when i use cmake-gui to configure and generate the sln version of shark! "D:/library_file/boost_1_54_0/boost/" is the folder where all .hpp header files are included especially "version.hpp". so, if i want to generate sln of shark, i have to put a new file folder "boost" in "D:/library_file/boost_1_54_0/boost/" and copy "version.hpp" into the new "boost" folder. done well!

Categories : C++

Refresh Desktop in C# on Win7 like 'F5' would have been pressed to apply explorer settings
OK, I don't really understand your code, in fact you have to find the exact window to send the F5 keypress to it so that it will refresh the desktop. Here is the c# code (tested and worked like a charm:) [DllImport("user32")] private static extern int PostMessage(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam); [DllImport("user32")] private static extern IntPtr FindWindow(string className, string caption); [DllImport("user32")] private static extern IntPtr FindWindowEx(IntPtr parent, IntPtr startChild, string className, string caption); public void RefreshDesktop(){ IntPtr d = FindWindow("Progman", "Program Manager"); d = FindWindowEx(d, IntPtr.Zero, "SHELLDLL_DefView", null); d = FindWindowEx(d, IntPtr.Zero, "SysListView32", null); PostMessage(d, 0x100, new IntPtr

Categories : C#

TortoiseSVN access denied wile preparing for commit(Win7)
The problem was not with server side permissions, but with local permissions. I'd moved some files from one folder to another and TortoiseSVN didn't change it's svn path for some reason. Finally solution was the following: Upload this file manually to SVN. Fresh checkout to another folder Substitute old .svn folder with new one

Categories : Svn

Flags Windows 7 window always on top INCLUDING the Win7 taskbar (Custom error)
These things work: HWND hWnd = reinterpret_cast(this->winId()); SetWindowPos(hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); But it turns out that exactly the same as the flag of the subject. : ( Explanation of what exactly is the problem: http://youtu.be/k5TCtr1hPKY

Categories : C++

Running powershell via Start-Proces with elevated credentials hangs for several minutes on Win7 64bit when on network
Well, this is not a PowerShell issue. It is to do with home directory access. Can you try this registry change? Add a REG_DWORD value named StartRunNoHOMEPATH in the following registry key: HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer

Categories : Powershell



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.