Questions tagged [window]

1

votes
2

answer
1.2k

Views

Hamming Window, python 2.7

Hi I have a FFT which is quite noisy. How to apply to my code Hamming window to make it less noisy. Look at my code: plt.subplot(212) plt.title('Fast Fourier Transform') plt.ylabel('Power [a.u.]') plt.xlabel('Frequency Hz') fft1 = (Bx[51:-14]) fft2 = (By[1:-14]) for dataset in [fft1]: dataset = np.a...
Hiddenguy
1

votes
1

answer
811

Views

Computing the difference between first and last values in a rolling window

I am using the Pandas rolling window tool on a one-column dataframe whose index is in datetime form. I would like to compute, for each window, the difference between the first value and the last value of said window. How do I refer to the relative index when giving a lambda function? (in the bracket...
Pandora
0

votes
4

answer
15

Views

auto increment field in select query statement

I have a table with 2 columns, name and id with these following values Name Student_ID jack 231 dave 425 mike 001 lily 128 liam 358 I would like to add a new column to this result with auto incremented sequence values. I have tried using the below query. But i g...
1

votes
1

answer
312

Views

Uncaught DOMException: Failed to execute 'postMessage' on 'Window'

I'm getting error content-script.js:24 Uncaught (in promise) DOMException: Failed to execute 'postMessage' on 'Window': An object could not be cloned. at Object.t.messageJumpContext (chrome-extension://elgalmkoelokbchhkhacckoklkejnhcd/build/content-script.js:24:9921) at chrome-extension://elgalmkoe...
Neenu
1

votes
0

answer
10

Views

Opening external application in iframe not working in Safari

I have a site embedded in an iframe from where I want to launch a mobile app. The following is bound to an onClick action on my button, and works in both Chrome and Firefox on my Android: window.location = 'scheme://app.com/?action=xxxxx' However, when trying on Safari on iOS, nothing happens at all...
Boxiom
1

votes
0

answer
41

Views

html5Loader, center animation

I use HTML5Loader in order to preload pictures before displaying the website interface. This script displays a centered circular loader in the meantime. The problem is that the loader is centered alright but doesn't adapt if the window browser is stretched vertically or horizontally during the loadi...
Bachir Messaouri
1

votes
0

answer
226

Views

Parent Qt to non-qt window with PyQt

I am trying to parent a QMainWindow to a non-qt application (the application may change). Any ideas on how to do this? The qt window opens fine and i can interact with the python API in the applications however the qt window goes behind the application window if i click on the application. I could u...
Mafster
1

votes
0

answer
68

Views

Calculate depart flights from sorted data using Spark

I've a dataset of flights in the form of +----------------+----------+-------------+ |flightID |depart_ts |arrival_ts | +----------------+----------+-------------+ |1 |1451603468| 1451603468| |2 |1451603468| 1451603468| |3 |1451603468| 1451603...
Assem
1

votes
2

answer
410

Views

window.open _self not working in background.js - chrome extension

Good morning Masters ^^ Firstly, i just have a small problem what i cant solve o.o I have a google chrome extension program which made those : - If mouse event happening then open one other page (itself detectionclicks.js) - If until 5 minutes not happening mouse event open back the before page (its...
Jedi the padavann
1

votes
1

answer
70

Views

Python matplotlib - Large Window on Linux

Simple Question, how do I set matplotlib to display a fullscreen window? Here is the code for doing it on Windows... mng = plt.get_current_fig_manager() mng.window.state('zoomed') Which works fantastic... on Windows. I'm using Linux, and it does not work there, only allowing the following window.sta...
Conrad Selig
1

votes
1

answer
64

Views

Why does my SDL app have an abnormal window border on Mac?

I've noticed my simple SDL application has an abnormal window border on Mac. There's no gradient and the color is dark gray instead of light gray. It just looks wrong. I've noticed that LÖVE also has this on mac, and it uses SDL as well, leading me to believe this is indeed SDL-related... Meanwhile...
Accumulator
1

votes
1

answer
32

Views

Regex: Remove particular repetead-words from tags in several html pages

I have this text with many   under the tag An Extension of Java for Event Correlation. 571 geographical/logical coordinates, or sources. Henceforth, we will use the term events to refer to both the incidents underlying such events as well as to their incarnations and notifications I want to...
Rob Rob
1

votes
1

answer
979

Views

Apply window function in Spark with non constant frame size

My Problem I am currently facing difficulties with Spark window functions. I am using Spark (through pyspark) version 1.6.3 (associated Python version 2.6.6). I run a pyspark shell instance that automatically initializes HiveContext as my sqlContext. I want to do a rolling sum with window function....
linog
1

votes
0

answer
35

Views

Popups are not suppressed if the delay <= 1000 ms

I've tested on various browsers executing code snippet below and they have all get blocked by default. setTimeout(() => window.open('https://google.com'), 1001); But if the delay is
theJian
1

votes
2

answer
1.9k

Views

Using window.opener in IE11

I have a little problem at my work. Here is my code. parent window child = window.open(url, 'pop', 'width=790,height=890,scrollbars=yes'); $('#module').attr('action', 'https://~~~').attr('async', false).attr('method', 'GET').attr('target', 'pop').attr('acceptCharset', 'UTF-8').submit().focus(); chil...
Markurs Park
1

votes
2

answer
581

Views

how to make overlay window touchable

i'm making a feature in my app that display an overlay window with text on the screen, when it appears then i try to touch that window it actually touches behind that window i need to make that window touchable , which params should i use ? here is my code windowManager = (WindowManager) getSystemS...
Sherif Salem
1

votes
1

answer
128

Views

Resizing Window in Kivy Android App on softkeyboard with SDL2

I am currently working on an Android App using the Python and the Kivy Framework. The majority of the screen's real estate is used by a text_input widget. I would like to resize this text_input when the android soft keyboard pops ups so that the text_input ends right at the top of the keyboard. To...
Just-Joe
1

votes
0

answer
233

Views

Perform Explode animation without window transition

setting the window transition with getWindow().setEnterTransition(new Explode()); getWindow().setExitTransition(new Explode()); but the result is weird, the window items are entering from a side of the window. It's like Explode() animation combined with Slide() How to do simple explode transition?
MJahongir
1

votes
2

answer
381

Views

Distinct count on a rolling time window

I want to count the number of distinct catalog numbers that have appeared within the last X minutes. This is usually called a rolling time window. For instance, if I have: row startime orderNumber catalogNumb 1 2007-09-24-15.50 o1 21 2 2007-0...
alejo
1

votes
0

answer
87

Views

window.location disconnecting websockets

I want to open a download link without opening a blank page (then, I won't be using window.open). Then I'm using window.location.href or window.location.assign. But the problem is that both methods disconnects my websockets connection. How can I workaround this? Just to be clearer, no error messages...
João Paulo
1

votes
0

answer
32

Views

install sass on windows getting error

I have installed Ruby on windows and now trying to install sass but it is showing following error. Tried every possible solution but of no use C:\Ruby25>ruby -v ruby 2.5.0p0 (2017-12-25 revision 61468) [i386-mingw32] C:\Ruby25>gem -v 2.6.8 C:\Ruby25>gem install sass ERROR: While executing gem ... (...
Manisha Chavan
1

votes
0

answer
67

Views

TCP window size in Linux with kernel 2.4 or 2.6

Can anybody tell me why according to this site - Passive OS identification, TCP window size in Linux with kernels 2.4 or 2.6 is 5840? I mean, is there any official documentation where i can read about it? Thank you!
wizzardm
1

votes
0

answer
260

Views

Greasemonkey Window.open.onload not working

I am writing a greasemonkey script which looks like the following // ==UserScript== // @name Button // @namespace http://test.com // @include * // @version 1 // ==/UserScript== //Creating the button input starts var input=document.createElement('input'); input.type='button'; input.v...
Sarthak Batra
1

votes
1

answer
41

Views

How to get the title of the current Aquamacs window using applescript

I'm trying to programmatically retrieve the major mode of aquamacs. I had a few ideas: get the menubar items, get the window title and parse it using regexes. I've tried both, and ran into a problem, both the menubar and window arrays are empty, which makes it impossible to do this: on test() try...
Petrosyan Alexander
1

votes
0

answer
381

Views

Open link in a new window in electron

I am using the below code to open a link in a new electron window: $('body').on('click', '.openlink', function () { var url = 'https://www.google.com' + this.id; window.open(url,'_blank','height=650,width=1000,frame=true,show=true'); }); However, when I click the button again, the other page opens i...
Mr. Blockchain
1

votes
2

answer
228

Views

SVM with rolling window

I have a code which predict the change in the sign of future returns. library(quantmod) library(PerformanceAnalytics) library(forecast) library(e1071) library(caret) library(kernlab) library(dplyr) library(roll) # get data yahoo finance getSymbols('^GSPC', from = '1990-01-01', to = '2017-12-01') #...
Tony K
1

votes
0

answer
140

Views

“Caffe2 building failed”

When I execute the instructions 'build_windows.bat' for building Caffe2, there is a huge problem. 'D:\caffe2\caffe2\build\ALL_BUILD.vcxproj' (default target) (1) -> 'D:\caffe2\caffe2\build\caffe2\caffe2.vcxproj' (default target) (5) -> (ClCompile target) -> D:\caffe2\caffe2\caffe2\operators\mod_op.c...
Bruce Jia
1

votes
0

answer
151

Views

Retrieving active window from Mutter on Gnome/Wayland session

I'm trying to write an application that sends different dBus signals to different applications depending on what application is active. The idea is to pair it with Libinput-gestures, and allow per application gesture response. Problem is, it's impossible to tell which application is active on the cl...
Petrosyan Alexander
1

votes
0

answer
18

Views

For-in with window object

The next code must return array of objects name with custom property. But it doesnt work and i dont know why. var test = { pr: true } alert(getObjName('pr')) function getObjName(key) { var arr = []; for (var obj in window) { if (window[obj][key]) arr.push(obj) } return arr }
John Brown
1

votes
2

answer
226

Views

getWindowHandles() not working in firefox 58.The focus remains on parent tab and does not transfer to next tab

I am starting to learn how to handle multiple tabs in a browser using Selenium with Java. looks like my code below is not working. import java.util.ArrayList; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium...
Shiv
1

votes
1

answer
151

Views

Docker on windows error related to daemon

I am trying to install Docker Tools on Windows 7 laptop, installed Docker using Windows Docker Tools. When I run docker run hello-world I get the below error. I have already removed the VM, and recreated it. Also, I am using a VPN. Please let me know what steps should I try next. C:\Program Files\Do...
khi
1

votes
2

answer
713

Views

Can't destroy AWS Cognito session from within React application

I'm trying to log out of my application that's using AWS Cognito by calling their logout endpoint. I'm not using the AWS SDK because as far as I can tell, it does not yet cover oauth app integrations and sign in using external federated identity providers (please correct me if I'm wrong about that)....
Scott Letkeman
1

votes
0

answer
46

Views

Tkinter: calling destroy() during resize resets the window to original shape

In a Tkinter GUI, during window resizing at runtime, I've noticed that the removal of a widget or a frame, using my_widget.destroy(), resets the window size to the original shape (the one it had at the start of the resizing). I've found an identical question HERE, with no solution. Couldn't find any...
Andrea Pattarini
1

votes
1

answer
39

Views

How to communicate with popup after reload

My page opens a popup and communicates with it using window.postMessage. To know when it is ready, one of the first things in the popup-script is: window.opener.postMessage('initialize') and then I reply and give the data and so on. However if I have two instances of the same page open I'm running i...
MrMamen
1

votes
1

answer
352

Views

Why does chrome allow window.open() to work when executed in the console but not in the code file itself?

I have a web page which i have set to block popups from displaying: If i execute the following code on page load, the browser blocks the tab from being opened: window.open('http://www.google.com','test','scrollbars=yes, width=' + 100 + ', height=' + 100 + ', top=' + 100 + ', left=' + 100) However if...
Notaras
1

votes
0

answer
114

Views

Javascript HTA - Click Submit in Window

I have created a HTA with some Javascript code in it. The user fills in the information in the HTA and clicks 'Submit'. This then opens a link and populates the page with the data input in the HTA. I then want to be able to automate clicking Submit at the bottom of the website. I've got the below to...
6TTW014
1

votes
1

answer
978

Views

How to change default Window Manager for XRDP

I don't know if this question makes any sense, but here it's the problem: I have a virtual Debian machine that I only use terminal. Most of the time, I'm using it via ssh. I installed gparted to manage some disk, so I had to install xorg, lightdm and fluxbox. It was working great with rdp from Windo...
Rafael
1

votes
0

answer
150

Views

Spark window functions: how to implement complex logic with good performance and without looping

I have a data set that lends itself to window functions, 3M+ rows that once ranked can be partitioned into groups of ~20 or less rows. Here is a simplified example: id date1 date2 type rank 171 20090601 20090601 attempt 1 171 20090701 20100331 trial_fail 2 171 20090...
Uncle Long Hair
1

votes
1

answer
23

Views

msiexec throws “already exist” and exiting

I am trying to install Splunk using msiexec. Below is the command: msiexec /I splunk.msi /qb INSTALLDIR=C:\splunk But it throws this message: This version of Splunk Enterprise has already been install on this computer An option would be to use /fa argument which will reinstall the app replacing all...
Jay Joshi
1

votes
0

answer
140

Views

Solving Gaps and Islands for Time-Series data with additional Constraints (PostgreSQL)

I think this is a Gaps and Islands problem however my gaps are actually defined by logic and constraints rather than missing data. I am also working with time-series style data rather than integer IDs so many of the examples I've found don't seem to apply - or I don't know how. I am using PostgreSQL...
Alex

View additional questions