jon jon

1

votes
1

answer
4.6k

views

websphere jms queue access from remote client

Background I am php & frontend web developer developing an application in Java using Netbeans to read from a websphere (V8.5 I think) JMS queue and then issue commands to appropriate scripts/servers. This is my first major run in with Java for about 10 years so please bear with me. My initial test...
Jon Holland
1

votes
1

answer
2.2k

views

Allowing for a variable number of return values in method declaration

I have a function that solves the problem of Go not allowing for the setting of default values in method declarations. I want to make it just a little bit better by allowing for a variable number of return variables. I understand that I can allow for an array of interfaces as a return type and then...
Jon Stevens
1

votes
4

answer
1k

views

Laravel is sending mail using my old email configuration

I've changed my e-mail configuration in the .env file but when I'm trying to send a mail, it's using my old configuration. I've tried some commands: php artisan clear-compiled, php artisan cache:clear, and php artisan config:clear but it still sending using my old email. I also tried to change the...
don_jon
1

votes
2

answer
127

views

Python: call function with default arguments that come before positional arguments

For example, I'd like to do something like: greet(,'hola'), where greet is: def greet(person='stranger', greeting='hello') This would help greatly for testing while writing code
Jon Wilcox
-1

votes
0

answer
14

views

I want to make my game ball bounce in swift

I am wanting to make a game where the ball bounces upon the user touching the "ball". at the moment I only have the ball bouncing. when the user taps the ball I want it to jump up. here is my code so far... I have just started but not used to spritekit. I'm used to using single view applications and...
jon wilson
0

votes
0

answer
6

views

Google Sheets Query Giving Error “Unable to parse query string for Function QUERY parameter 2: NO_COLUMN: Al”

I'm trying to reorder my columns in sheets and am getting an error stated in the title. I've made sure that column AI does exist in both data source and the formula =QUERY(NumberFix!A1:BL999,"SELECT B, C, D, E, F, BF, G, H, I, K, M, J, L, N, O, Q, S, P, R, T, U, V, W, X, BG, Y, AA, AC, Z, AB, AD, AE...
Jon W
1

votes
2

answer
883

views

Fail an Xcode build on Jenkins if there are Xcode warnings

We've got a Swift iOS project building on Jenkins, using the Xcode plugin. In the project we're using SwiftLint to validate our code syntax, which produces Xcode warnings or errors if code syntax is incorrect (e.g. if you write something like let num :CGFloat =1). SwiftLint runs a script after the p...
Jon Cox
1

votes
1

answer
430

views

Creating an Dynamic Template in Mail gun and express js

is there a way to create an html file and it will dynamically change the variables inside of this html using this two(mailgun and expressjs) like sending an reset password email? i am new to this so i don't know where to start
Jon Dennis Ayson
1

votes
0

answer
10

views

WordPress Gutenberg Block Editor Register Styles, Scripts & Blocks

I have created some custom blocks for the editor, the blocks are working but I am having an issue with the CSS. blocks.editor.build.css loads in the editor and the frontend, it should only load in the editor. blocks.style.build.css should load in both spots but doesn't load anywhere. Also, is ther...
Jon
1

votes
2

answer
195

views

sudo ignores SIGTERM sent from same script

I'm trying to figure out why this doesn't work: #!/bin/bash sudo sleep 60 & sudo_pid=$! sudo kill $sudo_pid I'd expect that after the kill, the sudo command and its child sleep process would be terminated, but they aren't, as shown by this script: #!/bin/bash sudo sleep 60 & sudo_pid=$! sudo kill $s...
Jon
1

votes
2

answer
792

views

max value of a list filled with named tuples

I create a list filled with named tuples: from collections import namedtuple Point = namedtuple('Point', 'x y') a = Point(5,4) b = Point(8,3) tab = [a,b] print tab >>[Point(x=5, y=4), Point(x=8, y=3)] I would like to have the max of the x values in the list 'tab' max(tab.x) >> 8
Jon
1

votes
4

answer
6.1k

views

Get Contact Form 7 Form ID In PHP

I'm using contact form 7 to load two different forms into a page and then, in addition to sending the email, dynamically adding that information to a database. Unfortunately, because of the plugin, I can't simply just create all inputs with different names to avoid needing a filter. So, essentially...
Jon Hendershot
1

votes
3

answer
1.9k

views

Listbox for MVC 6 EF 7 Property not Populating

I've been trying for a while now to get a list box to populate and I can't seem to figure it out. I've studied entity framework 7 documentation pretty extensively but I'm still new to it. There aren't a lot of tutorials out there for MVC6/EF7 yet so its been hard to know what the best practice is fo...
Jon
1

votes
2

answer
455

views

Best way to read BIG text files with crlf line delimiter

I have a very large comma delimited text file. Each field is, as stated, delimited by a comma and surrounded by quotes (all strings). The problem is that some of the fields contain a CR for multiple lines within that field. So when I do a ReadLine it stops at that CR. It would be nice if I can...
Jon Glazer
0

votes
0

answer
5

views

Will Deleting An FCM Token Also Unsubscribe It From An FCM Topic?

When I generate an FCM token in the browser I also send it to my server, which subscribes it to a topic with the firebase admin module like so: messaging.subscribeToTopic(token, 'all') I'm wondering if I delete the token in the browser using the messaging.deleteToken(currentToken) method do I also n...
Jon Lamb
1

votes
1

answer
881

views

Set reactive screen width with vuejs

Is it possible to have a reactive window width where a variable or data property tracks a window resize e.g computed:{ smallScreen(){ if(window.innerWidth < 720){ this.$set(this.screen_size, "width", window.innerWidth) return true } return false }
Jon Awoyele
1

votes
2

answer
69

views

django debug toolbar showing SQL as None

We use the django-debug-toolbar on two replated apps, one serving our legacy django app and the other serving our newer API. Recently, the debug-toolbar on the API has been showing SQL queries as None (see screen shot) The other app is working as expected. The debugsqlshell which ships with the deb...
Jon Kiparsky
1

votes
1

answer
58

views

Delete Azure Blobs in subfolder in C# - without deleting the subfolder

I have an Azure container 'MyContainer' then 'under' it, I have 'subfolders' called ProcessingFiles. So the 'structure' looks like this MyContainer\ProcessingFiles\SampleFile.xml I want to delete 'SampleFile.xml' - but when I run the following code the 'ProcessingFiles' folder is also deleted. //co...
Jon
1

votes
1

answer
34

views

Obtain Kafka 'writeahead' messages with JVM consumer

We have a streams app which makes use of exactly-once semantics, where one topic-partition has stalled. We notice that offsets are going up in increments of two, and understand that the odd-numbered messages are part of the 2-phase commit of Kafka transactions. We have written a Consumer(using kafk...
Jon Bates
1

votes
1

answer
48

views

Problem after finding tag contents, cannot sum

I'm attempting to pull the tag contents from an html page and sum the contents (which are strings), here's my code so far import urllib.request, urllib.parse, urllib.error from bs4 import BeautifulSoup url = input('Enter- ') html = urllib.request.urlopen(url).read() soup = BeautifulSoup(html, 'html....
Jon
1

votes
1

answer
26

views

XML extracting parsing with ElementTree

I am trying to parse some XML data from this url: http://py4e-data.dr-chuck.net/comments_42.xml , return the Count value and sum the extracted values. import urllib as ur import xml.etree.ElementTree as ET url = input(('Enter location: ')) print'Retrieving:', url data = ur.urlopen(url).read() tree...
Jon
3

votes
2

answer
33

views

bash scripting - using sed or awk to split and extract data

I'm having trouble with a specific situation. If I have a file filled with entries like: my.site.example.com somelinewithnodot some.line .with.a.weird.space..this.is this.one.has , and.stuff*.all.I &&&83%23^&4,I;dont,even.need.2see Using bash, how can I use like awk or sed or something to split the...
Jon Red
1

votes
1

answer
3k

views

Cannot Change Navigation Bar Tint Color iOS7 with MapView

Has anyone found that if you change the navigation bar tint color on a view with a MKMapView that you cannot change it? For example, let's say you set the following code in your AppDelegate to change the color to green: [[UINavigationBar appearance] setBarTintColor:[UIColor greenColor]]; Any ui...
Jon
1

votes
3

answer
103

views

Text file isn't updating

I have this code: Chipperyman573 Top: Bottom: Time (MS): I have already made the text pages, and when I try to use this form the pages don't change. What am I doing wrong? I'm incredibly new to html/php so I'm sure it's something stupid.
Jon
1

votes
2

answer
5k

views

how to force unclosed Jsch ssh connections to close

I'm using Jsch and expectit to connect to network devices and update configs, change passwords, etc... I am having a problem where loopback connections remain open which prevents more ssh sessions from being created. I read that this is a problem with certain versions of OpenSSH and that the solutio...
Jon A
4

votes
4

answer
88

views

What is state in React?

I know that state allows us to create components that are dynamic and interactive but I want to deep in state. Can someone help me to understand state in React using a real life example?
Jon
1

votes
1

answer
805

views

How to actually separate access log from error log in Node.js Express?

I've seen this question: Logging in express js to a output file? But after reading documentation on logger middleware, still not sure how you can actually separate access log from error log, so that access log contains only url access data, and error log contains only errors. Is there a way to do th...
Jon Derring
1

votes
2

answer
1.7k

views

pagination issue wordpress on static front page

hi have a problem where i can't get pagination to work on a static front page, looked at wordpress codex and done what it says built but still no joy, any help greatly appreciated
jon w
1

votes
1

answer
957

views

Google App Engine Datastore / NoSQL example with ancestor queries

I'm very used to SQL, and not the NoSQL paradigm of App Engine Datastore, so I had to write a piece of example code to understand how to do ancestor queries correctly. Thought I'd share it with you here; maybe it's interesting to someone.
Jon Ramvi
1

votes
2

answer
1k

views

Animating a single point of a WPF path

I have a path, that is basically a triangle: I want to have a data trigger(bound to a bool) that will start an animation that will collapse this triangle when the bool is true, and restore it when it's false. I have yet to be able to figure out how to do this. Specifically, collapse along this direc...
Jon Dosmann
1

votes
1

answer
1.7k

views

iOS driving directions in iOS6

I have been searching all around about how to integrate driving directions into MKMapView within my application. Is the only way to open the Apple Maps program and go from there, or is their a way of integrating within your own app. If not, I will probably go with google maps as soon as I can get an...
Jon Erickson
1

votes
3

answer
549

views

System.Convert.ChangeType for binding commas

I have this line of code: System.Convert.ChangeType(input, destinationType, CultureString); If called with a culture of de-DE and input is 4,50 and destinationType is double it returns 4.50. If I call the same with en-GB it converts it to 450.00. Is there a way to make it return 4.50 or throw an exc...
Jon
1

votes
2

answer
337

views

Socket.io fails with an internal error

I recently ran and npm install, which updated all my packages. For some reason, this broke my webserver (whenever I try to load a page it only loads part way and dies with this error). I tried rolling back versions of socket.io, redis, and nodetime, which are the packages that show up in the stacktr...
Jon Chu
1

votes
1

answer
5.1k

views

AlertDialog.Builder.setSingleChoiceItems results in a multiple choice list

I've created an AlertDialog with the AlertDialog.Builder using setSingleChoiceItems to set the ListAdapter to a custom class that derives from CursorAdapter: AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); builder.setTitle("Title") .setSingleChoiceItems(mAdapter, -1, new Dialog...
Jon
1

votes
1

answer
828

views

C# method, automatically filling in the parameter list with the default passing [closed]

I just thought of a feature for Visual studio that would be so cool, that I'm wondering if it already exists. It would be something like hitting Ctrl+tab when you do an open parenthesis after a method, to automatically fill in the passing arguments with whatever they were called in the method... ass...
Jon Dosmann
1

votes
1

answer
4.2k

views

Login to wordpress using only a username - no password

What's the best way to allow all wordpress users (except for the admin) to login using ONLY their username and no password. My goal is to hide the password field all together both for registration and login. I fully understand the security risk involved - but this is the functionality I am looking...
Jon
1

votes
2

answer
5.6k

views

Having a div move as user resizes window

HTML: Welcome History The Value Contact When clothed, one's image, apart from his hands and face, is completely self-defined. That means that everyone has a style. It's upon this idea that Carnaby Custom works. Operating from our showroom in Midtown Manhattan, my father and I provide the most valu...
Jon
1

votes
2

answer
2k

views

Using underscore.js to increment a value based on number of times item seen in array

I am trying to learn JS better. I have the below code which I am trying to put into underscore.js but am failing. I'm hoping you can point out where I'm going wrong. I'm trying to take a loop that I know works and then use underscores capabilites to refine it. The top test shows the loops, the secon...
Jon
1

votes
1

answer
2.1k

views

Proper way to create an untextured, colored cube in XNA?

I'm currently trying to convert this code to C# XNA, however I'm having an issue with converting the CreateCube method - the resources on creating vertex lists in XNA seem to be outdated, dead, or just don't work. Can anyone give me some help? I just want to create a colored, untextured cube by manu...
Jon
1

votes
2

answer
553

views

Windows 8 Store Application Support for x:TypeArguments

I'd like to know the same thing as this: Silverlight 4 Support for x:TypeArguments ... but for Windows 8 Store Apps. Why is x:TypeArguments available if it doesnt work? Or am I missing something? The MainPage.i.g.cs file is auto-generated with a non-generic base class even though x:TypeArguments is...
Jon Rea

View additional