minimize

Find the combination that minimizes a cost function

ぃ、小莉子 提交于 2020-01-06 08:45:08
问题 I am facing a problem and I would be grateful to anyone that could help. The problem is the following: Consider that we have a vector D = [D1;D2;D3;...;DN] and a set of time instances TI = {t1,t2,t3,...,tM} . Each element of vector D , Di , corresponds to a subset of TI . For example D1 could correspond to time instances {t1,t2,t3} and D2 to {t2,t4,t5} . I would like to find the combination of elements of D that corresponds to all elements of TI , without any of these being taken into account

“Jacobian is required for Newton-CG method” issue still exists for trust-ncg

二次信任 提交于 2020-01-05 08:39:47
问题 I am referering to the problem mentioned in "Jacobian is required for Newton-CG method" when doing a approximation to a Jacobian not being used when jac=False?. I have ran into same problem (asking for jacobian for trust-ncg algorithm), but did not get the code to run. I tried '2-point' , and False but non of them worked. 来源: https://stackoverflow.com/questions/51369984/jacobian-is-required-for-newton-cg-method-issue-still-exists-for-trust-ncg

How to get the screenshot of a minimized application programmatically?

久未见 提交于 2020-01-04 04:54:08
问题 I'm trying to get the screenshot of a minimized application, any ideas of how to it under windows ? I'm using C# tks in advance, Jose 回答1: Restore, take the screenshot, minimize back... If it is not on screen, I don't see how you can make a copy of the image... 回答2: On Vista and later, this should be possible with the Desktop Window Manager. Explorer also displays (animated) screenshots of minimized windows when hovering over a taskbar entry with DWM enabled, so the DWM APIs should be the way

Xlib: Create window in mimized or maximized state

非 Y 不嫁゛ 提交于 2020-01-04 03:03:23
问题 Is it possible to create a Window in maximized or minimized state with Xlib? If so, how would I go about doing that? 回答1: Something like this; XEvent xev; Atom wm_state = XInternAtom(dpy, "_NET_WM_STATE", False); Atom max_horz = XInternAtom(dpy, "_NET_WM_STATE_MAXIMIZED_HORZ", False); Atom max_vert = XInternAtom(dpy, "_NET_WM_STATE_MAXIMIZED_VERT", False); memset(&xev, 0, sizeof(xev)); xev.type = ClientMessage; xev.xclient.window = win; xev.xclient.message_type = wm_state; xev.xclient.format

Cmd start command ignores /min switch

最后都变了- 提交于 2020-01-03 02:51:06
问题 I'm running windows 2012 and whenever I type this in console: start /min calc.exe It opens the application but, it's not minimized to taskbar. On Windonws 8.1 it actually does minimize it. Any ideas why? Edit: I want to be specific about this question as it is getting confused. calc.exe above was just an example to demonstrate that /min switch is not working. My real goal is to launch python and chrome minimized in Win 2012 R2 via command line. Both of them do launch minimized in 8.1 when

Optimize loading of remote plist

£可爱£侵袭症+ 提交于 2020-01-01 19:30:06
问题 I have written an application which loads information from a plist which lies on my server (I hope this is OK with Apple :-)). The application runs smooth on WiFi but when using it on 3G the load times are a little too long. Therefore I would like to optimize the loading of my plist. I imagine that I could store a copy of the plist on the device and only check if the remote plist has changed and if so, download it. I am not sure if this will be less data and therefore minimize the load time

C# WPF) how to minimize a parent window after child modal window is showed by showdialog()?

試著忘記壹切 提交于 2019-12-31 05:32:12
问题 I've searched some posts on stackoverflow and some discussion concluded as there's no way to do this as it's standard behavior of WPF modal Window. Isn't there really a solution to minimize(control) the parent Window from a modal child Window? Anybody who hacked or knows a roundtrip ? Your excellent ideas will be highly appreciated always. Thank you ! 回答1: You can get the reference of your Window via application window collection. This is an example of minimizing the MainWindow which is in my

Letting a Batch file Minimize a DOS window?

纵然是瞬间 提交于 2019-12-31 01:26:10
问题 So i'm kinda into MS-DOS and such again, but i came to ask myself, How can i minimize a DOS window? Any kind would be ok, minimalize, shrink to a tiny blue block. I just can't seem to find a way to let it work on my Windows XP computer, is realy evrything excluded in XP?! 回答1: One thing you could do is create a windows program that will find the title of the cmd window you are running in and in that program minimize it. In Win32 you would use the FindWindow command to get a window handle,

Letting a Batch file Minimize a DOS window?

ε祈祈猫儿з 提交于 2019-12-31 01:25:07
问题 So i'm kinda into MS-DOS and such again, but i came to ask myself, How can i minimize a DOS window? Any kind would be ok, minimalize, shrink to a tiny blue block. I just can't seem to find a way to let it work on my Windows XP computer, is realy evrything excluded in XP?! 回答1: One thing you could do is create a windows program that will find the title of the cmd window you are running in and in that program minimize it. In Win32 you would use the FindWindow command to get a window handle,

How to make an undecorated window movable / draggable in JavaFX?

北城余情 提交于 2019-12-28 12:34:07
问题 I have to create an application in which minimize and maximize button will be disabled. I have used "StageStyle.UNDECORATED" with which the application will not be movable or draggable anymore, so I am searching for any other alternative to make my application. Do anyone having solution for this? 回答1: To achieve the window to be undecorated but still movable/dragable you have to handle the appropriate MouseEvent on any node of your choice. Example: import javafx.application.Application;