Curtis

0

votes
0

answer
5

views

Update in DynamoDB not working with AWS Lambda

I've managed to write a complete script in NodeJS in AWS Lambda, although I'm falling at the final hurdle when it comes to an update query, here's my code: var update_params = { TableName:'matches', Key: { 'match_id': match.id }, UpdateExpression: 'SET #status = :status, updated_at = :modified', Exp...
Curtis
1

votes
2

answer
76

views

Auto Updating Text Labels?

I'm currently trying to get show screen coordinates on my little thing I made.. but I am having issues refreshing the text to the new X, Y values. int x = Cursor.Position.X; int y = Cursor.Position.Y; textBox1.Text = 'X: ' + x + ' Y: ' + y + ''; textBox1.Refresh(); That's what I have, but I don't un...
Jack Curtis
1

votes
1

answer
1.5k

views

firebase is not defined in Angular app (after Firebase migration)

Hi I'm trying to retrieve information from my database on Firebase in angular. However, I get an error 'firebase is not defined' var config = { databaseURL: 'https://console.firebase.google.com/project/face-find-31e52/database/data/', }; firebase.initializeApp(config); fir...
Curtis Chong
1

votes
2

answer
314

views

Count Correct Answers

I'm trying to create a spreadsheet to automatically grade test answers. Column A has question numbers (from paper sheet), column B has the correct answers, and columns C,D,E... have student answers. # | Answer | Student A | Student B | Student C | Student D ---------------------------------------...
Curtis Mattoon
1

votes
1

answer
34

views

Pause a video with firstChild?

Super new to Javascript, and I'm having trouble finding any solutions to this anywhere. I'm not sure if the issue is with firstChild, or with .pause() The 'tabcontent[i].firstChild.pause()' line breaks the entire function... Here's a JSFiddle with the effected code, but no image/videos because they...
Zach Curtis
1

votes
3

answer
249

views

Vertical to Horizontal Table with Month Grouping

Long time lurker - first time poster. I'm new to Access and have a data table I'm trying to manipulate via a query. Current View: ID | $Value | Month 1 | 184 | 10/1/2012 1 | 186 | 11/1/2012 1 | 176 | 12/1/2012 1 | 183 | 1/1/2013 1 | 192 | 2/1/2013...
Curtis MacD
1

votes
3

answer
35

views

Using if statements to terminate a for loop

I wasn't entirely sure how to word this question, so I'll stick with explaining my specific goal. I'm trying to implement an 'eat' option to a user_input function for a text adventure. I want it to check if the verb is 'eat', check if the item is in the player's inventory, check if the item is consu...
Allie Curtis
1

votes
1

answer
28

views

Adding to XML file using PHP with SimpleXML error

I am using a simple simplexml php file to add to my XML file. For some reason it is not placing the record into the XML file and my logs are showing PHP Fatal error: Call to a member function addChild() Wondering can someone help me out? Might be something really simple. I am attaching the PHP code...
Curtis Boylan
1

votes
2

answer
172

views

JES2 SPOOL volume waiting for jobs, but $DJ shows no jobs

I’m trying to drain a JES2 SPOOL volume. It says it’s waiting for jobs: $DSPL $HASP893 VOLUME(SPLZ00) 852 $HASP893 VOLUME(SPLZ00) STATUS=DRAINING,AWAITING(JOBS), $HASP893 PERCENT=2 $HASP893 VOLUME(SPLZ01) STATUS=ACTIVE,PERCENT=38 $HASP893 VOLUME(SPLZ02) STATUS=ACTIVE,PERCENT=3...
Curtis Pew
1

votes
1

answer
644

views

Three js how to add triangle to BufferGeometry manually

I've been trying to find the fastest way to change a mesh's vertices with three.js. I found that if I change parts of mesh.geometry.attributes.position.array, then set mesh.geometry.attributes.position.needsUpdate=true, it works well and doesn't have to rebuild arrays or recreate opengl buffers. I f...
Curtis
1

votes
4

answer
109

views

Cannot Set Variable in Bash

I'm trying to set a variable in bash: b=$(p | cut -d',' -f4) echo $b However, I keep ending up with: p: command not found I've tried every combination of brackets, curly brackets, and dollar signs but still can't get b to equal $p | cut -d',' -f4. To my understanding, the dollar signs will extract t...
Curtis Chong
1

votes
1

answer
64

views

Why am I getting a big spike in audio at the start of each sample in LabView?

Everything else seems to be fine but at the start of each recording (1 second each) there's a big amplitude spike, I'm wondering what is causing it and how to fix it. -I'm using the correct mic (it is recording audio properly) -2 Channel -16 bit resolution -Duration of 1 second -Sample Rate 48000Hz...
Curtis
1

votes
1

answer
614

views

Convert SVG semi-circle arc to full-circle arc using Path

I'm trying to convert this semi-circle arc into a full circle, or at least an almost full circle with small disconnected notch at the bottom. I've tried changing the 180 to 360. I have also tried changing the 0, 0, 1 ,parameters to change the rotation of the arc, but that seems to have a rotation /...
Craig O. Curtis
1

votes
1

answer
72

views

Math exchange rates

Currently I've got a database of exchange rates from USD > Currency +----------+---------+ | Currency | USDRate | +----------+---------+ | USD | 1.00 | | GBP | 0.7418 | | SEK | 8.29 | +----------+---------+ Simple math which I've been doing is converting the USD to another curr...
Curtis
1

votes
1

answer
327

views

Unit testing __main__.py

I have a Python package (Python 3.6, if it makes a difference) that I've designed to run as 'python -m package arguments' and I'd like to write unit tests for the __main__.py module. I specifically want to verify that it sets the exit code correctly. Is it possible to use runpy.run_module to execute...
Curtis Pew
1

votes
1

answer
222

views

How do I use columns I just created to create another column in Impala?

I'm trying to figure out how to create a column based on other columns I just created. This is what I'm trying: CREATE TABLE test AS (SELECT 1 as column_1, 2 as column_2, column_1 + column_2 as column_3 ) But I get this error, AnalysisException: Could not resolve column/field reference: 'column...
Jacob Curtis
1

votes
1

answer
380

views

Integrating jupyter notebook (ipython) into org-mode notebook

Is there a way I can link in jupyter notebooks (ipython) into the org-mode notebook? The same way other files (images) can be brought in? If it is possible will the outputs are also seen in the note (and inputs are runnable?), or only code itself? A dummy's guide would be a lot more appreciated as I...
Curtis
1

votes
1

answer
21

views

Ignore optional parameter in Laravel?

Currently within my routes file I've got the following Route defined: Route::get('{country}/{county}/{city?}/{id}', '[email protected]')->name('show')->where('id', '[0-9]+'); And within the AdsController I've got the following function: public function show($country, $region, $city = null, $id) { i...
Curtis
1

votes
1

answer
49

views

R ggplot2 - Add a ribbon for only part of the x axis

Say I have two datasets. One that contains two months of data: units_sold
Jacob Curtis
1

votes
1

answer
27

views

How do I get back to the non-aggregated data after filtering out groups in dplyr within R?

Say I have data like this: id = c(1,1,2,2,3,3) date = as.Date(c('2018-01-02', '2018-01-03', '2017-07-01', '2018-01-02', '2017-08-02', '2017-08-03')) df % group_by(id) %>% summarise(min_date = min(date)) %>% filter(min_date
Jacob Curtis
1

votes
1

answer
56

views

Passing in data to class in ES7 without a constructor function

I'm trying to use the new ES7 syntax to pass in properties to a class without using a constructor. I know we can pass in this with a constructor: class MyClass { constructor(pacman) { this.pacman = pacman; } } ... const myInstance = new MyClass({food:'........'}); But how we do this with a 'construc...
Craig O. Curtis
1

votes
2

answer
88

views

How to use If statements with Boolean and to read user input

I did a post yesterday about this problem but was completely wrong with how i wrote so ive spent the night and this morning trying again and still cant get my head around how to do it. What i'm trying to do is test my IsInRoom method by getting the user to input two coordinates i cant figure out ho...
Curtis B
1

votes
1

answer
36

views

How do I ensure that whichever thread that passes over a given breakpoint doesn't skip?

Using ASP.NET and Entity Framework Core I can't break the execution of the method in my controller that is not properly responding to the client application. I set a breakpoint for a method in my controller but I'm worried that because the method is possibly being executed by a thread which I believ...
1

votes
2

answer
2.6k

views

How to programmatically make a Query in MS Access default to landscape when printed

How can I programmatically make a query in MS Access default to landscape when printed, specifically when viewing it as a PivotChart? I'm currently attempting this in MS Access 2003, but would like to see a solution for any version.
Curtis Inderwiesche
1

votes
3

answer
2k

views

In VBA, how can one use the Tools --> Office Links --> Analyze it with Microsoft Office Excel

I am attempting to export a query from MS Access into MS Excel in a way that does not carry over the Sorting and Grouping. I have noticed this functionality is simply available by opening a query and clicking: Tools --> Office Links --> Analyze it with Microsoft Office Excel However, I don't know ho...
1

votes
4

answer
314

views

Caching for poll?

I'm building a poll widget using ASP.NET controls and Linq-to-Sql for a high traffic site. The widget is, actually, already built. But, it does not use caching yet. This poll can work in a multi-poll mode which means that each page load the control will hit the database to find any polls that the cu...
Curtis White
1

votes
1

answer
1.4k

views

PHP LDAP search/list filter problem - logical NOT

I'm running an ldap_list with this filter: '(&(givenname=*)(objectClass=User)(!department=Executive))' and I get zero results and this warning in the PHP log: ldap_get_entries(): supplied argument is not a valid ldap result resource... If I remove the NOT operator for department and run it: '(&(give...
Curtis
1

votes
3

answer
685

views

Contentplaceholder for replacing attributes?

The code below works but confuses Visual Studio. Are there alternative/better ways to accomplish this?
Curtis White
1

votes
2

answer
452

views

How to reduce the font size in jQuery UI tab panel header?

I'm using the jQuery UI tabs but am not sure how to reduce the font size to, say, 75% of what it is currently? Nunc tincidunt Proin dolor Aenean lacinia In other words, in the example below, I want the three header labels above to be about 75% of their current size: $(function() { $( '#tabs' ).tabs(...
Paul Curtis
1

votes
1

answer
2.1k

views

Dynamic checkboxes on classic asp page

I am having some trouble dynamically creating checkboxes on a .asp page. I am using the following code indside of a cell on a table (note - rsMaint is a recordset): This works find to create my checkboxes and I can view source and see that they have the id's cb1, cb2, cb3 etc. I get an object does...
Curtis
1

votes
2

answer
1.7k

views

CakePHP: Filter Index() with session's user ID

I have a small cakePHP app that allows for user's to login and be provided a session to give their status on an assigned project. I am replacing the baked view portion of the add() function that asks which user to create a new status report for under with this line of code in the controller: $this->...
Curtis Steckel
1

votes
3

answer
2.3k

views

Interop DLL returning member not found

OK, this is a shot in the dark as I'm at my wits end. I have two third-party DLLs that work great in VB6, but not so much in VB.NET or C#. In VB6, the below works just fine: Dim oApplication As Object Dim oSession As Object Dim vRetCode As Variant Set oApplication = CreateObject('OAPPLICA.OAPPLICA'...
Curtis
1

votes
2

answer
1.9k

views

Updating existing custom properties word doc

I am trying to update existing custom properties programatically on a word .doc (word 97 - 2003). I initially solved with Aspose but due to limited licenses I can't use it for this project. This code is taken wholesale from here with minor modifications for word instead of excel Accessing Excel Cust...
Curtis
1

votes
3

answer
1.4k

views

Bing Maps v7 writing words on map

I'm working on a product that will show information about individual counties in Wisconsin. Is it possible to programmatically write the county's name on the map? The only option I've seen to do this is by creating a tile layer.
Kevin Curtis
1

votes
2

answer
28

views

how do i get results that are currently in alert pop-up, to be entered in an input in html

How do I get results that are currently in an alert pop-up, to be entered in an in HTML? Here is my current code: const Callprice = parseInt(S.value) + parseInt(SP.value); alert(Callprice); How can I have Callprice entered in an HTML input?
Curtis Overbey
0

votes
2

answer
21

views

label not inline bootstrap 4

I'm trying to show a bootstrap 4 label for a dropdown href alongside some text, here's the current HTML that I've put together: Adam Schwartz Free I also have the following CSS that's being applied: .header .navbar-nav>li .dropdown-toggle .label, .header .navbar-nav>li>a .label { position: absolut...
Curtis
1

votes
1

answer
45

views

Is there a way to use Twilio python lookup api print output and use the caller name found as variable?

I am using twilio api for lookup with python. How can I use the caller-name returned by twilio as a variable to update the phone number owner name field in the database or is there any other way to achieve it? I tried to use 'stdout' to create an instance of print(phone_number.caller_name) twilio l...
Curtis Banks
1

votes
2

answer
1.1k

views

Struts 2 Convention Plugin Define Multiple Parent Packages

I'm working on Struts 2 web application, using the Convention Plugin to configure everything via annotations. I'm hitting a snag with some of my action classes, where I'd like to use multiple parent packages. I did find a means of doing it on Apache's site - but that appears to be deprecated. It do...
Curtis Snowden
1

votes
3

answer
2k

views

How do I disable suppressing a warning for one solution in a TFS build

I'm using TFS 2010 and have a TFS build setup to build our software. Everything is working just fine. But, we are getting the following warning: CSC: Assembly generation -- Referenced assembly 'mscorlib.dll' targets a different processor This is because some of our code is marked as x86 only, and i...
Curtis
1

votes
2

answer
98

views

Sliding Issues With Jquery

I have had a look around but I can not seem to find any one else with the same issue as me. I want to be able to slide a box, which will hold my menu links, up and down on a users click. My code below sort of works, as it does slide down when clicked, then slides back up when clicked again. However...
Glenn Curtis

View additional