FAQ Database Discussion Community


Execute Multiple Command Using Batch File and install MySQL using batch file

mysql,batch-file,cmd,window
I'm trying it write a window batch file to perform several tasks in series, However, it always stops after tie first command in the script. I am use this this batch file code: start cmd /k cd %CD%mysql\bin && mysqld --install I want to use this batch file command and...

How to detect when a specific window is closed in java

java,events,window,action,windowlistener
I'm pretty new to Java and I've tried looking this up but couldn't really find any thing that helped. I'm wondering how I could detect when a specific window is closed? I've been using windowClosing() but this applies to any window that is closed, and so the event that I...

Changing the global scope in JS

javascript,iframe,window
Say i have an Iframe running inside of a parent window. I have a single script loaded inside the Iframe and I want that script to have access to the variables inside of its parent. Rather than saying window.parent.X all the time, is it possible to just declare: window= window.parent;...

Status window that's always on top with AppleScript

osx,window,applescript,apple
I have a script that automates interaction with another program with a window that takes up the whole screen. I need to create a window that is always on top that I can print lines of text to so that my script can continuously give me status updates. A window...

Regex to find mp3 html file

c++,c,regex,visual-studio-2012,window
I am trying to match all the mp3s links in the html expected output http://mp3cofe.com/ariana-grande-weeknd-love-me-harder-andreevskiy-remix.mp3 http://mp3cofe.com/listen/52d-remix.mp3 getting output http://mp3cofe.com/ariana-grande-weeknd-love-me-harder-andreevskiy-remix.mp3" rel="nofollow" target="_blank" style="color:green;">Download</a</div><a href="http://mp3cofe.com/listen/52d-remix.mp3" code #include <iostream> #include <string> #include <regex> int main(){ std::string subject("<a...

$(window).scroll function doesnt fire

jquery,scroll,window,positioning
I am trying to implement this tutorial technique into my current project: http://www.webgeekly.com/tutorials/jquery/a-simple-guide-to-making-a-div-static-as-you-scroll-past-it/ (specifically the relative/fix social media tool bar on the left side) doesnt start to be 'fixed' until a certain scroll value. stops being 'fixed' before the footer (as to not overlap it) I have been following along,...

AngularJS's `$location.path()` is not changed when I click BACK button of browser?

javascript,jquery,angularjs,window,video.js
I was using videoJS to load video dynamically, and want to destroy the video player when route or location changes, I tried to wrap it in a directive like this (Coffeescript code): angular.module('myModule') .directive('myDirective', ($location)-> return { restrict: 'A' scope: {rawUrl: '='} link: (scope, element, attrs) -> attrs.type = 'application/x-mpegURL'...

How can I create a dockable window in WPF (C#)?

c#,wpf,xaml,user-controls,window
Let's say you have a view (userControl) with its own XAML code, and another window (window) also with its own XAML code. Is there any way to be able to dock this window into the view (the view will rearrange the UI to accomodate the docked window), but also get...

Have a pop up window when clicking on an image

javascript,jquery,popup,window,edit
Sometime in websites you see that when you click on an edit image, a pop up window appears. In this pop up window, there may be for example, a check box list, or you can attach a file,... and then there is and OK or Return button. How can I...

Adding a class to an element on window resizing

javascript,jquery,window,window-resize
Depending on the user's screen width, if the image is less than 220px, I want the class of mobile to be added to the h3. It works fine by itself but I also want it to work well with window resizing. So if I resize my browser window, it would...

Retrieve StorageFile with the help of path from Local Folder

window,windows-phone-8.1,win-universal-app
I am making Windows 8.1 Universal App and want to retrieve file, (local -> folder -> sub Folder -> file) which is stored in Local Folder. One way is open Local Folder, then open folder, then open sub folder, then file. But If I know the path, can I simply...

Xcode Cocoa App. Big image resizing window

xcode,image,cocoa,window
Good afternoon. I set pins (alignment constrains) are 0 from all sides to Image View and when app is loaded, window becomes larger. Window's size is equal image's size. But i want image's size decreases to window's size. How can i do it? Thanks.

MATLAB rectangular window

matlab,window
How can I plot a stem of rectangular window with a length of 25 in the range of 0≤n≤24 ? I did it as follows: w = rectwin(25) stem(w) Is this correct since the first sample (i.e. n=0) is not showing as part of the window. Also, when using rectwin()...

Making a Simple RPG- Creating a new JFrame

java,swing,user-interface,jframe,window
I am making a 4-class RPG. It has Player class which allows us to move the player. It has Board class which is for the map in the game. There is a Battle class which is for the battle phase. RPG is the main class responsible for running the game....

Close window of another application

.net,window,close
I would like to close a window of an extern application, but only a window, not the whole application. For example, I have the following application (Resource-Manager) with two open windows: Now I would like to close the window "Generate vb-code", but let Resource-Manager open and the application running. Is...

VirtualBox open few windows for 1 virtual machine

window,virtual-machine,virtualbox
When I start a virtual machine, the 3 windows of this virtual machine appear. It begins after changes normal, scale and full window mode. As I found out - this windows represent one virtual machine - I can move terminal from window1 to window 2. I have 2 monitors and...

Javascript to read local file works on windows but not on linux

javascript,linux,window
I have a small Javascript, which is supposed to read the content of a local text file and display it on the browsers screen. It works on windows 7 with a current firefox, but it does not work on fedroa 20 with a current firefox or chrome. Here is the...

Win32: Add black borders to fullscreen window

c++,winapi,window,fullscreen
I am trying to preserve content aspect ratio in fullscreen mode in Windows. I'd like to hide the rest of the desktop behind black borders if the display aspect ratio differs from the content aspect ratio. Is it possible to create fullscreen window with centered content and black borders with...

How to make JOptionPane on top of a Fullscreen Window? [duplicate]

java,window,jpanel,fullscreen,joptionpane
This question already has an answer here: AWT Frame in full-screen exclusive mode gets minimized on windows dialog popup 2 answers I couldn't find any spesific solution for Fullscreen Window so I want to ask. How to make a JOptionPane on the top of a Fullscreen Window? In here...

WPF change window modal state

c#,wpf,dialog,window
Is it possible in WPF, to change a window from modal to non modal? That means, i open the window with ...ShowDialog();, but later want to switch the state (like opening the window ...Show();.

Saving mySQL file with DATE using cmd

php,mysql,linux,cmd,window
I am trying to save mysql backups to a folder with the date included in the filename. I can save the files fine without including %date% but when I add it and run it returns "Errcode:2 - No such file or directory" the cmd line i have is: mysqldump -uroot...

Cannot set text to TextView in PopupWindow

android,html,popup,textview,window
I created a popup window to show a disclaimer in my app but I can't figure out why i cannot set text to TextView. It is an HTML string so I did this: private void showPopup(final Activity context) { final PopupWindow pwindo; Button btnClosePopup; try { LayoutInflater inflater = (LayoutInflater)...

Netezza SQL: Specify an offset in a window frame

sql,window,netezza,partition
When making the "frame" for a windowed analytic function, one can specify a literal number of rows to "look back" over. E.g., the following will get the trailing 26 weeks weekly sales for a households. ,sum(sales) over (partition by household_id order by week_id rows 26 preceding) as x26 But... what...

Is it possible to set window transparency in codelite, for example for the output or workspace view? [solved]

linux,window,transparency,x11,codelite
Is there a fast option to hardcode this since this feature seems to e missing and how platform dependent would that be? I use xubuntu.

How to recursively remove all empty folders in PowerShell?

powershell,window
I need to recursively remove all empty folders for a specific folder in PowerShell (checing folder and sub-folder at any level). At the moment I am using this script with no success. Could you please tell me how to fix it? $tdc='C:\a\c\d\' $a = Get-ChildItem $tdc -recurse | Where-Object {$_.PSIsContainer...

TypeError: in method 'new_Frame', expected argument 2 of type 'int'

python,user-interface,window,wxpython,frame
import wx class MainWindow(wx.Frame): def _init_ (self, parent, title): wx.Frame. __init__(self, parent, title=title, size=(200, 100)) self.control = wx.TextCtrl(self, style=wx.TE_MULTILINE) self.CreateStatusBar() #setting up the menu filemenu = wx.Menu() menuAbout = filemenu.Append(wx.ID_ABOUT, "About", "information about the use of this program") menuExit = filemenu.Append(wx.ID_EXIT, "Exit", "Exit this program") menuBar = wx.MenuBar() menuBar.Append(filemenu,"File") self.SetMenuBar(menuBar)...

Make sliding window (size MxN) without nfilter function to do local and adaptive operation like local thresholding?

matlab,image-processing,window
I need a matlab code to make MxN sliding window without nfilter() function to do adaptive and local operation like adaptive threshold. For example, I want to implement OTSU's thresholding method graythresh() in each rectangle (MxN window) not pixel to pixel. I wrote this code but it has some problem:...

Access Default Window Color Cocoa

cocoa,window,nscolor
I have a SKView with a picture of a keyboard in a window as shown below. I would like the background color of the SKScene it's presenting to be the same color as the window behind it, so that it would appear as if the keyboard was just in the...

Continuously resizing windows in Vim

vim,window
I know I can use CTRL-w -/CTRL-w + to Incrementally decrease/increase the windows. However, I would like to do exactly the same thing continuously. e.g. without having to click everytime CTRL-w and then Shift = (to get +) (I know I have do something like CTRL-w 5+ but I would...

Is it possible to use Maintenance Windows when deploying an application to USER collections in SCCM 2012?

collections,window,user,maintenance,sccm
I am trying to see if there is a way to deploy an application to a user collection where the application only installs during the night or out of office hours. It's only this one application that requires this. I believe that you can do it to device collections using...

Remove minimise and maximise Button

python,tkinter,window
I have problem in my Tkinter application. The code is the following: def help_stats(self): self.help_about = tkinter.Toplevel(relief=tkinter.GROOVE) self.help_about.title('Statistika') self.help_about.config(width="350", height="300") self.help_about.resizable(width=tkinter.FALSE, height=tkinter.FALSE) self.help_about_label = tkinter.Label(self.help_about, text="Something") self.help_about_label.pack(side=tkinter.TOP, expand=1, fill=tkinter.BOTH, padx=20, pady=10) If I click on something in my menu, this function is called, and a new window...

jquery detect when mouse over tab before closing

jquery,tabs,hover,window,close
I want to display an image on my webpage when the user hovers over the tab top section to close the window. i.e. wait we have special promotion. example can be seen here: http://www.twoj-priz.com/cgi-bin/wingame.pl I tried searching on my own but could'nt find how to do it. Can you kindly...

JS - Call function by name (in object notation)

javascript,window,eval,object-notation
I want to clean up some old code and optimize it, which often uses the same code. (with only different names of functions to call) I make a easier example and no, I don't write on a game. But this example looks more comprehensible to explaination of my issue. character.sleep(1);...

SDL UpdateWindowSurface() returns -1 if called from a class (in separate file)

c++,class,window,header-files,sdl-2
Today I started a C++/SDL2 Snake clone, and I've been looking for ways to make my code neater, -particularly with classes. I tried to put all the SDL code used for the window/display in a class. When I run the code, the window closes instantly. From the error tests I...

C# application not showing window handles in telnet

c#,process,window,telnet,handle
I have a very strange problem with one of my C# applications: Its general purpose is to send commands per [user32.dll] SendMessage. This works without problems on a regular machine or when started from a batch file or command line window. If I am executing my application from Telnet,...

Oracle query using Window function

oracle,function,window
Please suppose I have an Oracle table called MYDATA, with the following content: NAME, D1, D2 A, 01/01/2010, 02/03/2010 B, 03/03/2010, 20/03/2010 C, 10/03/2010, 20/09/2010 D, 10/12/2010, 31/12/2010 Insert into MYDATA (NAME, D1, D2) Values ('A', TO_DATE('01/01/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('03/02/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS')); Insert into MYDATA (NAME, D1, D2)...

Emacsclient crashes when evaluating window functions

emacs,window,eval
To not bore anyone here with specifics, whenever I evaluate an expression similar to this one: emacsclient -t -e '(set-buffer *scratch*)' the client will flash up on the terminal and crash. This seems to be happening with all window-changing functions. Is the client not supposed to work like that? Running...

Obtain non-maximized window position/size when window is maximized

c#,forms,winforms,window,maximize
When users resize and adjust the location of my program's window (Winforms), they expect to see the window in that same position, even after closing and reopening the program. What I do is store the form's Width, Height, Location.X and Location.Y properties, and set these back when the program is...

Can the appFabric replace the window services ?

service,window,appfabric
Can the appFabric replace the window services ? Actually what is the difference of the appFabric and the window services ?Any references or examples are welcome which sight the differences

Qt: Two buttons in one, a dice in another window

c++,qt,button,window,paint
In Qt I'm programming a "game" that shows you a drawn dice with random numbers. It's actually really simple but quite a task for me as newcomer. So far I've implemented the following widgets, functions and so on: 1) A Button that refers to a slot that picks a random...

C++: C1083: 'afxwin.h': No such file or directory - VS2010 with VC6 daffodil

c++,visual-studio-2010,window
Problem: If I include afxwin.h or atlbase.h, I get a C1083 ( no such file or directory) Language: c++ Tools in use: Building in VS2010 Professional using daffondil to use the VS6 Toolchain/buildchain having installed VC6 Professional ...

Window is closing immediately after I run program in PyQt 4 (anaconda) [PyCharm 4.5]

python,window,pyqt4,pycharm
So, I am trying to run a very simple program (a window) in Pycharm that is running anaconda 2.7 & PyQt4. Whenever I click the Run button it opens my program but closes the window too fast for me to even see it. May anyone, please help? Thank you! P.S....

How do I scale the graphics of a game?

c#,matrix,xna,window,scale
I'm making a game in C# and XNA 4.0. It's pretty much finished, but now I want to add settings so that players can change the window size if they want to. The current setup goes like this: void Initialize() { //The window size is initally 800x480 graphics.PreferredBackBufferWidth = 800;...

passing an Image array from one window to another and displaying the images in the new window in javascript

javascript,html,arrays,image,window
I am stuck in a peculiar problem. I have to pass an image array from one HTML window to another on click of a button. The name of the array that I am passing is compareImageArray which I have declared as a global variable in mainPage.html. I am passing this...

Allow_grow and allow_shrink in GWindow.widnow method in LablGtk2

window,gtk,ocaml
I made a window using GWindow.window method in LablGtk2. After compiling, I ran the program. Then, I got warnings. GLib-GObject-WARNING **: The property GtkWindow:allow-grow is deprecated and shouldn't be used anymore. It will be removed in a future version. GLib-GObject-WARNING **: The property GtkWindow:allow-shrink is deprecated and shouldn't be used...

Execute net user command from C#

c#,asp.net,cmd,window,window-server
I want to execute net user command from C#. Below is my code:- ProcessStartInfo procStartInfo = new ProcessStartInfo("cmd.exe"); procStartInfo.UseShellExecute = true; procStartInfo.CreateNoWindow = true; procStartInfo.Verb = "runas"; procStartInfo.Arguments = "/env /user:" + "Administrator" + "cmd /K \"net user ABC Admin123# /add\\\""; ///command contains the command to be executed in cmd...

how to run a program under different user's accounts

user-controls,window
my program (C:\Program Files\MyApp\Myprog) starts with windows startup; at device insertion Myprog.exe invokes another program (C:\Windows\comp.exe). this process works fine in the admin account in which I install the program but Myprog.exe is unable to invoke comp.exe when users account is changed. I want (C:\Windows\comp.exe) to be invoke in each...

How can I create a child window in VST 2.4?

c++,audio,window,sdl,vst
I create ExampleEditor.h and ExampleEditor.cpp ExampleEditor::ExampleEditor(AudioEffect *effect) { effect->setEditor(this); }; bool ExampleEditor::open(void *ptr) { //This is it? return true; }; VST plugin file constructor i write VstPlugin::VstPlugin(audioMasterCallback audioMaster) : AudioEffectX(audioMaster, 1, 1) { editor = new ExampleEditor(this); } In what point do I need to create a window? The main...

Clearing Graphics from a Window in Python

python,text,graphics,window,draw
So I'm trying to make a timed loop where different text commands appear on the screen and users have to press the key that corresponds with the text command. The problem is since the text is centered it just draws over itself until the commands are unreadable. Is there a...

creating a pop-up(or is it a pop-over?) window for a webpage

javascript,html,window
I do apologize for the title if it is inaccurate. (feel free to offer me suggestions on the proper wording if needed.) My question is for my web page, I would like to do something where you click on a link (or image), and instead of opening a new tab...

Dynamic window creation at runtime using ncurses

dynamic,window,ncurses,creation
Not sure if this is even possible with ncurses. All documentation and examples show that the creation of multiple windows is known at compile time. I would like to do something like this. #include <ncurses.h> WINDOW *create_newwin(int height, int width, int starty, int startx); void star(int x,int y,int r); void...

Splitting a multi-line environment variable into lines

batch-file,jenkins,cmd,window
I have the following problem: I execute a windows batch file on a Jenkins server and have to split a multi-line environment variable (set vía a Jenkins parameter) into single lines. Each line is part of a parameter list for another program: Jenkins textbox parameter: -foo 224 -bar "Some parameter...

jQuery to position menu according to window width

jquery,menu,window,width
I'm trying to use a little bit of jQuery to move my menu depending on the width of the screen. The problem is that it's fine above a certain window width (1140px) but, part of the menu is obscured at other widths. I have a media query that displays the...

How to change window style/theme in c++

c++,user-interface,styles,window,themes
I need an approach how to customize the window style like Steam or Spotify. I don't want to have the boring Windows (or any other OS) look. Can that be done with Qt or the WinApi? Do I need DirectX or OpenGL for doing that? Best Regards...

How to use ShowWindow to show already hidden windows?

c#,process,window
I am writing a C# program where I use ShowWindow to show or hide the windows of other processes. My problem is that I am not able to use my program to show or hide windows of processes if the window was already hidden before the program is run. For...

JavaFX window setTitle

javafx,window,title
I have a main class which is the following: public class Window extends Application { @Override public void start(Stage foablak) throws Exception { Parent root = FXMLLoader.load(getClass().getResource("Foablak.fxml")); Scene scene = new Scene(root); foablak.setScene(scene); foablak.setWidth(900); foablak.setHeight(700); foablak.setResizable(false); foablak.setTitle("Window"); foablak.show(); } public static void main(String[] args) { launch(args); } } How can...

Send Ctrl+C to previous active window

c#,wpf,window
I'm trying to write a small application that's sits in the system tray. I've registered a hotkey. When the hotkey is fired and the application is activated I want to send Ctrl+C to the last active window so I can get the highlighted text into the clipboard. This is what...

How to give a child window bounds to not go outside the MainWindow in WPF

c#,wpf,window
I have a simple question really but I can't seem to find it. I am using WPF and I am creating a child window (Class Window) which displays a simple view. Now I can move the window around however what I would want is that it cannot move OUTSIDE the...

JQuery Add/remove class dynamically based on scroll position AND window width

jquery,scroll,window,width
I want to add/remove a class based on scroll position AND window width. The class should be added when the user scrolls vertically past X AND the window width is larger than Y. If BOTH conditions are not met, the class should be removed. If the user scrolls back to...

Window.open not working, boolean is not a function [closed]

javascript,facebook,window
I know there is a lot of question about this but I check all of them, nothing with the same error (I might have missed one or two post).. So, I get this jsFiddle to know how to open a facebook share window inside the current window in order to...

Clarification on WPF Window.Show() and Window.Close() and how they work with Multiple Windows

c#,wpf,navigation,window
The issue I am having and looks like many people have had in the past when dealing with WPF is I want to either hide or close the MainWindow of the application when a new Window is open. The reason I want to do this is because making tabs for...

WPF maximize main window with center for application

c#,wpf,window
i have WPF application and i want to maximize main window. i tried the below code but the issue is that the window is maximized but not centered. i want the window to be maximized as i maximize window with mouse click. my code is: mainWindow.Height = SystemParameters.MaximizedPrimaryScreenHeight; mainWindow.Width =...

Window location dynamic on “session”

c#,wpf,window,position,location
I've an application that "popup" a window with a ShowDialog. The ShowDialog can be called many times in the app life cycle. So, I wonder if that possible (simply) to set the Window location to "CenterOwner" by default (like now). But if the user change the position of the window,...

Why isn't the selected object equal to window with this extension?

jquery,object,plugins,window
Learning to write jQuery plugins and came across this issue that I can't find the cause of, even by googling. When applying the new method to $(window) and checking inside the extension which object was selected, the object itself does not seem to match $(window) : http://codepen.io/anon/pen/ZGYLOB?editors=001 $(window).on('load', function() {...

Animate.Scroll html,body after page hits offset - Very close (see Fiddle)

jquery,html,scroll,window,jquery-animate
I'm trying to trigger the window to scroll to a new location after the page has been scrolled down a certain amount. I've got the code working but now I can't scroll back up. Here's a fiddle of the code $(window).scroll(function() { var y_scroll_pos = window.pageYOffset; var scroll_pos_test = 50;...

Dismissing the dialog by outside touch event is not working

android,dialog,window,android-alertdialog
I have an utils class which vll return a dialog to the activity in my application. In that i need to provide the user to dismiss the dialog on outside click.So here i used like this lDialog.setCancelable( true ); lDialog.setCanceledOnTouchOutside( true ); I refereed some of these links Here &...

C#, WPF, Having trouble opening a new window

c#,wpf,window
I've looked through the list of similar questions for this topic and couldn't find any examples which deal with my particular problem. I'd like to start with the disclaimer that I'm not far off an absolute beginner. Opening up a window in WPF is quite easy, I've done it before...

JavaFX - Make any other stages close when the main stage is closed, yet allow them to be hidden behind the main stage

java,javafx,window
Let us say I have the following code for a second window I'm creating: stage.initModality(Modality.NONE); stage.initOwner(coreController.getStage()); If I do this, it will close when my main window closes. If I comment out stage.initOwner(coreController.getStage());, then it will be able to be hidden behind the main panel, but it will not close....

Append Text with batch file

batch-file,window
I use the following code to write a 5 times to hi.txt using batch file. The problem is tht it automatically appends newline to the end. Output: a a a a a I want: aaaaa ...

how to fit content in browse height

jquery,html,css,window,height
i want make contentarea height browser window hight but minus top and bottom div height also so then i will be fit in properly. i already did some via jquery but i am always 15px extra height. any idea how i can fix that. may be can direct put px...

Hide DirectX9 game window on ShellExecute or CreateProcess

visual-c++,window,hide,directx-9
I have been trying both ShellExecute and CreateProcess to Launch a game - My goal is to hide the game window. The game is built using DirectX9. For some reason I am struggling on this issue. I am using the following codes independently but without success SHELLEXECUTEINFO ShExecInfo = {0};...

Python: Imported Tkinter program runs itself?

python,import,tkinter,window,runtime
So I'm writing a program for my final year project, and this thing in particular has just been bugging the hell out of me. I've been at it so long and I can't figure it out, so I'm hoping somebody fresh will be able to shed some light on it!...

Laravel Homestead automatically destroys VM

php,laravel,window,homestead
I followed all the instructions on how to setup laravel homestead. I am using windows 7 and am trying to install laravel homestead on my system. I have install virtualbox and vagrant. Every thing seems to go very well however when i run vagrant up homestead VM boots up but...

Windows Qt Invoke batch file and exit the App

c++,qt,batch-file,window
I am developing an application in Windows8 using Qt, where I need to create an updater for it. I have Already wrote the update downloader part, and an update script to replace all the previous content with newly downloaded data. Now I need to execute the bat file from the...

Wrap pygtk Window after destroying widgets

resize,widget,window,pygtk,wrap
I'm creating an app using pygtk with different mode: mode "normal" which use a PathBrowse and a ComboBox mode "append" which destroy the PathBrowse and the combo in the Window and add others like CheckBox and Labels But in append mode, the fact of destroying widgets bigger than the new...

javascript click button after be shure that page has completely loaded

javascript,button,window,document,onload
I have the website example.com and on this website is a button with the id "button1" and by clicking on this button, it opens an unknown url "example.com/unknownUrl" with the known button "buttonOnUnknownPage" on it. How can i be sure that the unknown page has finished loading and i can...

Change window size of browser for test purpose

javascript,html,css,firefox,window
In order to test a website's (responsive) appearance with different screen resolutions I want to programmatically start browsers with a certain window size to simulate these screen sizes. The best thing would be to change the window size while the browser is already running, although I read that the window.resizeTo()...