Jess

1

votes
0

answer
191

views

Docker Compose file to Docker Stack

I have found an awesome repo that uses docker-compose however I would like to use it Docker Cloud Stacks (I am a newbie). What would I have to do to be able to swap it over? docker-compose: version: '2' services: mariadb: image: wodby/mariadb:10.2-3.0.2 php: # 1. Images with vanilla WordPress – wo...
Jess McKenzie
1

votes
1

answer
75

views

Wordpress Permalinks Overriding .htaccess https and force slash

I am wanting to use the following .htaccess however it works to a point but for me to access the sub pages I have to reset my permalinks and there for this section gets reset. It seems in Wordpress currently there is only plugins to do one or another - not both of my goals. Goals: To force HTTP:// t...
Jess McKenzie
1

votes
2

answer
48

views

Doubly linked list no longer linked in both directions

I'm having some issues with a section of code I'm writing and was hoping someone may be able to help me see where I've gone wrong and explain why so I can better understand it. I'm being told that my doubly linked list is no longer linked in both directions but I'm failing to see where I've gone wro...
Jess-Tayler
1

votes
0

answer
58

views

Android studio firebase - retrieving data

I keep getting errors and I am a crap coder. I am trying to retrieve posts which are called projects from Firebase Real-time database in android and I am using fragments since it's part of my navigation method. I understand the error : java.lang.NullPointerException: Attempt to invoke virtual metho...
Jess
1

votes
1

answer
307

views

Error: measure variables not found (data.table::melt)

I am following the documentation here: https://cran.r-project.org/web/packages/data.table/vignettes/datatable-reshape.html to use the updated functionality (under 3. Enhanced (new) functionality) which allows for melting multiple columns at the same time. I have followed the example, which seems pre...
Jess
1

votes
1

answer
72

views

Serial port can't send the response - Python3 and PySerial

I have two python scripts that are communicating with each other: script 1 (running on port 0) sends out a list of transmit messages, print them in first terminal, and script 2 (running on port 1) prints the transmit messages sent to it and should send back responses to the transmit messages. Almo...
Jess
1

votes
1

answer
103

views

How can i minimize the blurriness after i resize my images?

My code to resize images is : from PIL import Image ratio = 0.2 img = Image.open('/home/user/Desktop/test_pic/1-0.png') hsize = int((float(img.size[1])*float(ratio))) wsize = int((float(img.size[0])*float(ratio))) img = img.resize((wsize,hsize), Image.ANTIALIAS) img.save('/home/user/Desktop/test_pic...
Jess
1

votes
2

answer
89

views

username and password validation through node.js and sqlite3

I have a table with usernames and passwords that I want to be authenticated when someone enters them on the webpage. If the username and password match, it redirects to a certain page and if they don't then it redirects to a different one. What I am doing is using the Select statement to only select...
Jess_Rose88
1

votes
0

answer
58

views

jQuery not working in Firefox and Safari

I'm currently using the following jquery (along with the mousewheel plugin) to allow for vertical and horizontal scrolling on the same web page (diagram also shown below) scrollVert(); var scrollLeft=0; function scrollVert() { $('html, body, *').off('mousewheel').mousewheel(function(e, delta) { this...
Jess Cauchi
1

votes
2

answer
224

views

Firebase List Adapter: error “null object reference”

I am trying to learn to use firebase, but when trying to load data in a listView the application returns the error: java.lang.RuntimeException: Unable to start activity ComponentInfo {my activity} java.lang.NullPointerException: Attempt to invoke virtual method 'void com.firebase.ui.database.Firebas...
Jess
1

votes
1

answer
35

views

How to save input in an array then add to saved input

I am creating a form with two text boxes: Task and Description. What I want to do is be able to console.log in both boxes and save the input through a submit button. i.e: task: do laundry Description: do a buttload of laundry(idk lol) Alright, I got that down(I think). But what I want to do after i...
Jess Y.
1

votes
2

answer
651

views

Spring boot, how to read particular object from json file, what annotation do I need?

I'm studying Spring Boot and I know how to read JSON file from resources directory but I want to get particular data, not whole data. like localhost:8080/user returns user name. below is my current code package com.example; import org.springframework.beans.factory.annotation.Value; import org.spri...
JESS YANG
1

votes
1

answer
94

views

Passing values from webservice called by another application to asp.net website

Asp.net page is opening java web start application.This application is calling .asmx web service.I want to send parameter from this web service back to asp.net web page.
Jess Joseph
1

votes
1

answer
47

views

Why is minimize_scalar not minimizing correctly?

I am a new Python user, so bear with me if this question is obvious. I am trying to find the value of lmbda that minimizes the following function, given a fixed vector Z and scalar sigma: def sure_sft(z,lmbda, sigma): indicator = np.abs(z)
Jess
1

votes
3

answer
99

views

How to do multithreading on a folder with several files?

I would like to iterate through a folder of image files in python and do some work on it. So it starts like this: for image in os.listdir(imagePath): if image.endswith('.jpg'): I have a lot of images in that folder and would like to speed it up using multithreading. Each image will have a separate t...
Jess
1

votes
1

answer
40

views

Slicing numpy array of dictionaries on key

I am working on a machine learning project that has the data sorted into numpy arrays. The first column is the label, and the second is a dictionary of features and their values, since as a full matrix it would be very sparse and there are a significant number of features and examples. I've found th...
Jess
1

votes
1

answer
93

views

How to get snekfetch results into an object?

I'm writing a discord.js bot and trying to call a weather API using Node.js / snekfetch. The issue is I can't figure out how to just put the data returned from the API into a javascript object. I want to do something like this: let [country, ...city] = args; let url = `http://api.openweathermap.org/...
Jess STJ
1

votes
3

answer
52

views

Angular conditional form validator

I know there is a lot of topics about the same subject on the web but I can't manage to find the solution that works for me. I have a form make with the formBuilder of angular, it's a profile form in which we can change the password, so we have three password input: the old one, the new one, and a c...
Jess
1

votes
1

answer
64

views

python check for update script

As the title said, I would like that some of my python scripts have 'check for update'. I was reading and there a way creating a .txt file with the program version, but I would not like create a .txt file, I think that there another way for do that. I was thinking in read the content with the python...
Jess Jss
1

votes
0

answer
42

views

Average Marginal Effects in R with complex interaction terms

I am using R to compute the linear regression on the following model, as well as find the marginal effects of age on pizza at specific points (20,30,40,50,55). mod6.22c summary(margins(mod6.22c, at = list(age= c(20,30,40,50,55)), variables = 'income')) Error in names(classes) head(piz4) pizza fe...
Jess
1

votes
0

answer
19

views

Spring boot soap ws error while deploying as war

I am new to spring boot. Tried a simple example for spring boot soap ws. Works fine when packaged as jar but when packaged as war and deployed in application server (wildly-16.0.0 Betal) not getting deployed. Getting error handler not found.Debugged a lot but unable to find solution. All main classe...
Jess
1

votes
1

answer
28

views

Subsetting data based off of dates from multiple rows

I have data on patients who have readmitted to a hospital within 30 days of a previous admission at that hospital. Many patients will readmit several times, however we only are coding it as a readmission if it is within 30 days of a prior admission. Here is an example: name stay at hospital...
Jess C
1

votes
2

answer
95

views

Form with Hidden Tags to cybercart- bring it up on the same page?

what I want to do is basically this: On ONE page, my customers can click a VIEW CART link and the contents of their cart shows below on that same page. here is my basic link form: i can't figure out how to wrap javascript around it to make it work. Any help is greatly appreciated!
Jess
1

votes
4

answer
2.2k

views

MissingSourceFile when I run “cucumber features”

I had cucumber 0.6.1 working quite fine... but I ran the gem update cucumber command, and things went smoothly. Then when I decided to run the cucumber features command, I received this error: Using the default profile... no such file to load -- cucumber/webrat/element_locator (MissingSourceFile) /...
Jess
1

votes
3

answer
555

views

MySQL calling in Username to show instead of ID?

I have a users table, books table and authors table. An author can have many books, while a user can also have many books. (This is how my DB is currently setup). As I'm pretty new to So far my setup is like bookview.php?book_id=23 from accessing authors page, then seeing all books for the author. T...
Jess
1

votes
1

answer
336

views

Problem with computed column with NDBUnit

I am loading data for tests in tables using xml and ndbunit.But,for a table having computed column,I am having problem.I get this error The column 'xyz' cannot be modified because it is either a computed column or is the result of a UNION operator. I have modified the INSERT and UPDATE commands(remo...
jess
1

votes
1

answer
58

views

How to handle this exception related to Excel

In our application,user can export some data to an excel file.When he clicks export, we pop-up windows file dialog where he chooses an existing excel file to overwrite,or give a new name.But,when he overwrites an existing file,he is asked by windows 'does he want to replace',and if he clicks no,an e...
jess
1

votes
1

answer
643

views

Django - How can I save users ipaddress in admin log?

I am using django auth module.Now,when user logs in I want to record users ipaddress in the admin_log table.How can I do this? thanks
jess
1

votes
1

answer
989

views

Multiple messages in one BeginReceive

If a client sends multiple messages to a server over the same socket, will the EndReceive on the server side keep the messages seperated, or is it possible for the the server to receive partial messages from two seperate sends in a single BeginReceive?
Jess
1

votes
2

answer
492

views

.htaccess redirect or PHP change

The main navigation of my site is coded like this: '.$value.''.'\n'; But I would like the URL of the links to look like domain.co.nz/pagename, not domain.co.nz/index.php?pageId=pagename How would you recommend I accomplish this?
Jess McKenzie
1

votes
4

answer
3.7k

views

Java swing checkboxes

In Java, is there an easy way I can only allow 3 out of 10 check-boxes at a time to be checked?? Then store the values that are checked into an array. Thanks
jess
1

votes
1

answer
1.1k

views

Pure CSS Sub Dropdown Menu

I am trying to create a menu that has 3 sub menus and I have successfully created the first 2. My issue is with the 3rd drop-down menu, It is only showing one when there is multiple available. CSS /*Reset */ html, body, h1, h2, h3, h4, h5, h6, form, input, ul, ol, p, fieldset, header, footer, sec...
Jess McKenzie
1

votes
1

answer
744

views

Measurement Studio controls not visible in VS2010

I am trying to get started with the NI Measurement Studio. After intalling the software, the controls don't show up in my Toolbox. I get the text 'Controls in this category are unavailable for the .Net Framework 4 Client Profile. To change this setting, open the Project Propeties window.'
Jess
1

votes
1

answer
1.2k

views

Cufon Not Showing

I cannot understand why my Cufon is not working, All .js files load fine: Company Name !window.jQuery && document.write(unescape('%3Cscript src='includes/js/jquery-1.6.min.js'%3E%3C/script%3E')) window.addEvent('domready',function() { Cufon.replace('header h1'); }); Company Home
Jess McKenzie
1

votes
3

answer
462

views

onchange carry selected text and hidden value how?

I have a dynamically populated PHP dropdown menu that gathers the following information from the database: echo ''.$image['description'].''; I then have a javascript function that shows the selected text - description in an input box for editing and then on submit update back into the database. Ques...
Jess McKenzie
1

votes
1

answer
435

views

Align Vertical and Horizontal Align

I am trying to align a box VxH Center but I seem to be getting it just a bit off: HTML: Logo Here CSS: ![#wrapper{ width:955px; margin:auto; } html body{ background:#F1FF29; } #logoWrapper{ width:429px; height:179px; position:absolute; left:50%; top:50%; margin-left:-100px; margin-top:-50px; } .log...
Jess McKenzie
1

votes
1

answer
7.6k

views

Google Merchant Product Feed with multiple items per XML file?

The Question Is it possible to submit more than 1 item in an XML Product Feed to Google Merchant? What I have so far I have found an example in the Google Docs of a single 'Data Item': Wool sweater [...] What I'm after I was expecting something like; [...] [...] Especially since XML is not meant to...
Jess Telford
1

votes
1

answer
8.1k

views

Select Box Alignment

How could I align the select box so its inline with the others? I am also trying to do this with the 3 option input boxes. CSS: #newwebsiteSection, #websiteredevelopmentSection, #otherSection{ display:none; } #newwebsiteForm form{ padding:10px; margin:10px 0; width:480px; position: relative; } #new...
Jess McKenzie
1

votes
4

answer
3.7k

views

Form Alignment CSS

This is one thing that I really hate within development is forms. Below is my code and what I am trying to do is align the inputs with the labels Name: input. Is there a rule that you use to help remember when coding forms? CSS: #newwebsiteForm form{ padding:10px; margin:10px 0; width:480px; posit...
Jess McKenzie
1

votes
1

answer
135

views

CSS Layout Improvements

I have the following layout and I would like to know the following: When I have more data how can I make the gray background repeat down the page more? With my portfolio I have margin-left:25px the wrapper but how can I make sure it stops at the end of the content background? CSS: html{ height:100%;...
Jess McKenzie

View additional