Joe Joe Joe

12304 questions
1

votes
1

answer
59

views

python cookielib error:403 Forbidden

I am learning python networking. I had learnt socket and now I want to learn python HTTP to connect to HTTPServer, extract cookies etc. I am facing this problem with cookie extraction. Tried google but didn't found a solution, here is the code: import cookielib import urllib import urllib2 ID_USERNA...
joe
1

votes
1

answer
152

views

order list of data depending on newest date or older date in ioni2 angular2?

I have json format data : [{date: 2017-10-18T03:00:00+03:00 , name : 'A'}, {date: 2017-11-18T03:00:00+03:00 , name : 'B'}] so how to display these data from the newest date to the oldest date. the result will be : B A because B is newest
Joe Sleiman
1

votes
2

answer
53

views

Excel VBA to Remove Opt-Outs

I am a military recruiter and am trying to use autofilter to filter out a range from another range. I got this from another stackoverflow page but can not figure out how to change that string strSearch to a range like [email protected], [email protected], [email protected], etc. We get lists of leads but I'd like to keep t...
Joe
1

votes
0

answer
172

views

TypeError when installing jupyter in windows10 OS

When I installing Jupyter notebook in my Windows10 OS, but I catched TypeError, and I don't have Anaconda, I just install it via pip in my cmd window, the description following, Exception: Traceback (most recent call last): File 'c:\program files\python36\lib\site-packages\pip\basecommand.py', line...
Joe Young
1

votes
0

answer
89

views

Matrix operations on labeled arrays

I have a system with a linearised set of equations, such that the time-update operation can be performed by a matrix multiplication, y' = Ay, but I would also like to be able to index y using the names of the state variables, e.g. y['vel']. Is there a way to index in this way without losing the abil...
Joe H
1

votes
1

answer
507

views

Is it possible “disable-web-security” on Chrome for only selected web sites?

When you hit the bloody pre-flight error ( at those XHR requests during your development), the recommended solution is this: open -a Google\ Chrome --args --disable-web-security --user-data-dir Well, I do not want that do this cause Chrome is my default browser for browsing the Net and my developmen...
Average Joe
1

votes
0

answer
41

views

What's most elegant/secure/recommended way to solve “Response to preflight request ” issue

I've done a research on SO on this, but to my surprise, lots of SO answers on this recommending a quick and dirty solution which is to turn off chrome's security! I cannot believe we've got this as recommend solution. There must be a better way. The error is this: Response to preflight request d...
Average Joe
1

votes
0

answer
130

views

Missing Git menu on right click

For some reason I dont know why I couldn't see this menu when I make a right click: Git Add all files now Git Commit Tool Git History Git Gui Git Branch Git Bash What I have right now : What I am looking for (inside the red rectangle) : The softwares that I installed : Git-2.15.1.2-64-bit.exe Tortoi...
Joe
1

votes
1

answer
26

views

How do I pause execution in Matlab, but allow Copy\Paste via the keyboard

My question is similar to this: Wait for gui to finish - matlab But, the uiwait(f) doesn't work - when the user hits Ctrl-C it closes the app rather than doing a copy. Here's the situation: We're compiling MATLAB, and running WPF on top to provide the UI. However, we need to block the MATLAB executi...
Joe
1

votes
0

answer
76

views

Created firebase app with wrong bundle id, how can I move the data to the correct bundle id?

I've looked on SO and it seems that there is no way to move data to a different bundle ID with firebase. This is an issue since I have analytics data for the app going to the incorrect bundle id which causes issues with push messaging. Is there any way I can change the bundle id or export the data...
Joe Scotto
1

votes
0

answer
372

views

python telnet and put the message in a particular log file

hi I am coding the python script to login telnet and it has to write log file to op.txt the absolute path is /netperf/mntpt/array1/home/prg_use/op.txt the python code ptlog.py import getpass import sys import telnetlib import time host ='12.12.1.123' user ='user_name' passwd ='telnet_password' tn =...
joe
1

votes
1

answer
58

views

How do I get values from CIRowAverage filter?

I'm trying to use Apple's CIRowAverage Core Image filter to compute the average value per row of an image. When I run the filter and try to read out the values, I don't get the average at all: from what I can tell where ever a row has a value, it returns 255 and where ever a row has no values (i.e.,...
Joe
1

votes
1

answer
81

views

Difficulties with displaying success message after form is sent [duplicate]

This question already has an answer here: AJAX form not displaying succes or error message 3 answers I'm still learning the code languages that I used to create my form with. So I can't seem to figure out what seems to be the problem. Here's my code: HTML:   --Onderwerp-- * Kennismakingsgesprek Me...
Joe
1

votes
1

answer
132

views

how to unwrap PostgreSQL connection from the IBM WSJdbc41Connection

I have been trying to unwrap PostgreSQL connection from the IBM JNDI (WebSphere liberty ) and have had no luck please any help with that : Context ctx = new InitialContext(); DataSource dataSource = (DataSource) ctx.lookup('jdbc/indi'); Connection cnx = dataSource.getConnection(); I get this excepti...
Joe Kel
1

votes
2

answer
71

views

Dynamically change top position on resize

I'm trying on resize the window to change the position top of the image so the image to be fit in the box, because it's changing on resize and the image is going too much outside. I'm not sure do I need the height of the box and the image and then to do something with position top. $(window).resize(...
jOE
1

votes
0

answer
185

views

Embedded images sent via sp_send_dbmail are not working in gmail or Outlook 2013 for OSX

I'm having a problem where emails sent through Sql Server are not properly being embedded in some mail clients - notably gmail and Outlook 2013 on OSX. (Outlook 2013 on PC is fine) Here's a sample call that will demonstrate the problem in my environment: declare @body varchar(4000) set @body = ' Emb...
Joe Zack
1

votes
1

answer
63

views

Missing customer name/address information in SquareUp Console using Square.Connect.Api

We are creating a Square 2.0 transaction but when we login to our Square account, the customer name/address information is missing. We are creating a customer address object and populating the properties but they are not showing up in the Square console. Here is our code: using Square.Connect.Api;...
Joe Murray
1

votes
0

answer
76

views

Is there a way to make a firebase auth token for development?

Background I am building a react native app that posts data to a node server that then posts data to a firebase via the admin firebase library. To post data I am bypassing the app entirely and using postman for speed. Problem My routes are now using an authentication header that should contain a fi...
Joe Lloyd
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
2

answer
351

views

SFML Can't Load Image

I am trying to load an image with SFML, here is my code. // Get the background texture Texture bg; if (!bg.loadFromFile('background.jpg')) { return EXIT_FAILURE; } Sprite background; background.setTexture(bg); background.setPosition(width / 2, height / 2); and in the main loop: window.draw(backgroun...
Joe G
1

votes
1

answer
805

views

Cannot Extend GPU Quota on Google Cloud

I am using Google Cloud for development and training of deep neural networks. I've reached the limits of what I can do with CPUs and now need to create and instance with one or more GPUs. I've followed the instructions from multiple sources. As the instance was being created I received a notificat...
Joe
1

votes
1

answer
104

views

How to get the contents of a UIView even if it is being rendered with gl or metal

I would like to get the contents of a UIView. The UIView is offscreen and another library is rendering content to the view. I believe the library is actually rendering to an underlying GL or metal surface. When I try renderincontext i only get the UI elements within the view (like sliders, butto...
Pineapple Joe
1

votes
2

answer
201

views

How to handle member padding in C struct when reading cffi.buffer with numpy.frombuffer?

I have to read an array of C structs returned from a dll and convert it to a Numpy array. The code uses Python's cffi module. The code works so far but I don't know how to handle the member padding in the struct that np.frombuffer complains about: ValueError: buffer size must be a multiple of elemen...
Joe
1

votes
1

answer
51

views

Cannot Create File in a Google Cloud Bucket

On Google Cloud I have 4 buckets and I have two VMs running, one Ubuntu 14 and the other 16. On both machines, I can mount (gcsfuse) all four buckets. However, I'm having a problem with one (and only one) bucket (project-x-logs). On the machine running Ubuntu 14 I can create a file: [email protected]
Joe
0

votes
0

answer
8

views

Neural Network model doesn't run

for some reason, my model is not running. I created a model matrix to run a simple model with the package neuralnet. I know it might be challenging to debug other people code especially without the data but in case you think you could assist me here is the code: library(tidyverse) library(neuralnet)...
Joe Black
1

votes
0

answer
8

views

How to access Wordpress authentication token

We are trying to link our website to Wordpresses API using OAuth 2.0. Hoping that a client can authenticate and post to WordPress from our site. We need to receive an access token to do this. We have successfully connected with Wordpress to receive our access code. We've followed the Wordpress api,...
Joe Benebenek
1

votes
2

answer
52

views

Slideshow created using Jquery stops working after rotating for 4 times

I'm using this jquery code to cycle through some power bi slides on a loop. Now we had a request to create a image slideshow as well. The logic behind the code is that the powerbi slides will run, then 3 images will be selected randomnly and this process will go on and on, on a continous loop. I've...
Joe Miranda
1

votes
0

answer
190

views

EntityNotFoundException unable to find entity with id X after using MappedSuperclass

Environment: javaee 7 java 8 jpa 2 I got the error EntityNotFoundException when I make a query of Moviment and automatically tries to load the associated Espai after I have modifed Espai class to separate id and version in a separate class with the annotation @MappedSuperclass. I can suspect that it...
Joe
1

votes
1

answer
81

views

Using LINQ Expressions to Multiple Left Join and use ISNULL Functionality

I'm building a Step Tracking web app at work. I'm working with the latest EF Core. There are three tables I'm interacting with: wg: WellnessGroup (WellnessGroupId, Name) wgu: WellnessGroupUser (Look up table: WellnessGroupId, EmployeeId) wsl: WellnessStepsLog (EmployeeId, StepCount) What I want is...
Joe
1

votes
0

answer
63

views

Scale up the size of my of all points in scatter plot while still having the points anchored to a `size` variable

Is it possible to scale up the size of my of points in geom_jitter or geom_point and still have the points anchored to a size variable (in my case n)? Essentially I'd like to control all the points being smaller or larger. I've tried increasing the values of the n variable by scaling that variable b...
Joe
1

votes
0

answer
289

views

Rephrasing a sentence using SpaCy

Is there a function or a library in SpaCy or NLTK to rephrase a sentence/query. I tried a brute force approach of generating synonyms using WordNet and loading the combinations for a query. Any suggestions on speeding up the process?
Joe
1

votes
0

answer
113

views

Why does complete() create duplicate rows in my data?

When I use the complete() function to fill in rows in my data that have no cases I find it is creating many duplicate rows as well. These can be removed with the unique() function, but I want to understand how I can avoid generating all these extra rows in the first place. library(dplyr) library(ti...
Joe
1

votes
1

answer
3.9k

views

Change tab by click on a button angular material 5

I have a problem since Angular 5.X with a form-wizard (mat-tab-group). Everything woks fine by using clicks on tabs, it switchs between tabs but I can't use a 'nextStep' or 'previousStep' buttons to switch between tabs. Here my code : component.html content... Cancel Next componen...
Joe Allen
1

votes
1

answer
56

views

Using Python loops to generate text based on user input

The following script asks a user for information, stores the information as variables, and then creates a file that inserts the variables into various places within the text. The created file is an html web page that can then be run on my web server. The example shows 4 sets of variables and works w...
Joe_0855
1

votes
2

answer
64

views

Saving Data Across Rotation by override onSaveInstanceState

I have created a simple app. When the next button is clicked, the question will be changed. If the screen is rotated, I want the question still remain the same. I have override the Activity method by below code protected void onSaveInstanceState(Bundle outState) but nothing seems to work. public cla...
John Joe
1

votes
0

answer
96

views

Linkedin WhereHows - Docker Backend not able to connect to MySQL

When I try to connect WhereHows backend to MySQL DB in Docker environment I am getting following error message (I checked IP, Username and Password and all 3 are good): 1) Error in custom provider, Configuration error: Configuration error[Cannot connect to database [wherehows]] At the same time, Whe...
Joe
1

votes
0

answer
66

views

AWS Web console not refreshing state during EC2 reboot

We were relying on monitoring (and refreshing) AWS Web console to see the current state of EC2 instance and every time we issue 'reboot' of EC2 instance, we could clearly see color change for 'Instance state' from Green to Yellow and other changes visually. Started recently, when we hit reboot - the...
Joe
1

votes
1

answer
89

views

Handling blank lines when White Space is important in ANTLR4

This may be a newbee question, since I don't have a lot of ANTLR experience, but I've done a lot of research and troubleshooting and have not found a solution so resorting to asking. I am trying to write a parser for a very odd format file (PCGEN open source role playing game character editor) that...
Joe Bryant
1

votes
0

answer
49

views

Java Core API Vs Cypher for Neo

My question is regarding scaling, speed and what is the best way to use Neo4j Backend with Java. There are currently 2 options which I have used myself and both seem good enough but I do not know how much would it scale. Java OGM connected to Neo4j Database using Spring. Here I write Cypher querie...
joe
1

votes
1

answer
254

views

PSCP command using a batch variable

I need to transfer the latest file in a folder to aws server using a simple batch script. I am getting a date-stamped filename so ideally the largest file name should be the latest The code used is as follows @echo off SET longfile ='' for %%a in (c:\Users\Admin\Desktop\batch\*) do ( if %%a GTR %l...
Joe

View additional