Steph

1

votes
0

answer
41

views

Gitblit federation with duplicate branches

I have a gitblit for my projects, and another backup server with federation setup each 5 minutes. Now I setup a distinct server and another federation server with the same kind of setup. All works the same, except for one strange difference: On my newly installed pair of servers, a repository with b...
Steph
1

votes
1

answer
42

views

Remove .php extension / .htaccess / Apache2.conf - What should be modified to make it work? [duplicate]

This question already has an answer here: Remove .php extension with .htaccess 13 answers I would like to remove the .php extension from my website. I have this structure: /var/www/site/ FYI, in folder site, I have a lot of subfolders. In site folder, I create .htaccess file. I inputed these line...
Steph
1

votes
1

answer
65

views

Filling the gap between PDE and Tycho

I used to package my various Eclipse RCP products with PDE, for years. With my latest upgrade attempt to Eclipse Oxygen, I got some new strange resolution errors which I could not solve, and I decided it really was time to give Tycho a try. I followed the excellent article about Tycho by Lars Vogel,...
Steph
1

votes
1

answer
34

views

SPSS Selecting some cases while excluding others

I am trying to select multiple cases and exclude some in my data in SPSS. I have different department numbers and I want to exclude dept 0133 and 0083 all while only selecting that course level equal 100 and 200 level courses. Is this possible to do in one selection? (Note: dept is a string variable...
Steph
1

votes
1

answer
336

views

missing required option :name

I am trying to set up AWS, and carrierwave to upload pictures from my website. I keep getting the error 'missing required option :name' when I try to upload/update the posts though. I have followed tutorials to set up my S3 account and to get carrierwave.rb set up. Please let me know if you have any...
Steph Simpson
1

votes
0

answer
90

views

Unable to find DOM Element

So I was writing some automated tests(C# and Selenium Webdriver) and came across a weird scenario. The XPath Selector works fine(using an element id) when trying to identify an element in the Dev Tools DOM explorator, but when using the same id to find the element through jQuery selector or plain JS...
Steph
1

votes
3

answer
377

views

Is it possible to suppress console.log's in Jasmine tests?

I am running some jasmine tests on a function that is logging something. Each time I run the tests I see that log in the output of the tests. I have quite a few logs in my functions that I am testing and didn't see a way to suppress the logs in the jasmine output. My actual tests are spying to make...
Steph M
1

votes
1

answer
529

views

Connecting Sequelize to Google Cloud SQL

does anyone know how to connect to Google Cloud SQL from Sequelize? sequelize = new Sequelize(process.env.TEST_DB || 'postgres', 'blah', null, { dialect: 'postgres', operatorsAliases: Sequelize.Op, host: process.env.DB_HOST || 'localhost', define: { underscored: true }, }); connected = true;
steph
1

votes
0

answer
35

views

from XYZ import * — pyCharm not seeing it (python 2.7)

This code executes fine from within the client's test framework: from XYZ import * However, when trying to setup a pyCharm project to navigate the code, it only sees module XYZ if init.py files are stored at every level from the sources folder*** to the module folder. ***< sources folder >/path/to/...
Steph
1

votes
0

answer
57

views

is it possible to run angularJS unit tests with angular-cli `ng test`?

I work on an angularJS 1.6.X ES6 application. I use Mocha and Sinon to write and run unit tests on it. I started to hybrid/upgrade this application with ngUpgrade in order to write the new components in angular. So now, i got some angularJS modules and some angular modules. I use @angular-builders/...
Steph
1

votes
2

answer
27

views

Getting highest score from mySQL database

I have a database set up: and the resulting table: I am trying to retrieve data from the database so that the output displays the players according to who has the highest score in descending order. However, I get the following output: Pollywinkle Anderson has a high score of 600 recorded in the data...
Steph
1

votes
1

answer
53

views

How to get Value of a custom field task in CSOM Project Server

I am working on a console application for project server. Atm I can read the name and work percent of each task assined to the project. Each task has a custom field with an unique id. It looks like this. How do I get the value of the unique id? e.g. the 84 Here is my code to list the task name and w...
T.Steph
1

votes
1

answer
41

views

How do you mock lodash debounce.cancel with jest?

Looking for some recommendations on how to mock the .cancel method in a debounce from lodash. I have a function that is calling debounce and then later utilizing the returned debounce value to call debouncedThing.cancel(). I am able to mock debounce just fine in my tests except for when my function...
Steph M
1

votes
1

answer
476

views

OpenGL pixel doubling on an NSOpenGLView

I have a 480x320 NSOpenGLView that I'd like to scale up to 960x640, but in a way that pixels appear as twice the size (and sharp). If I call [myglview setFrame:CGRectMake(0,0,960,640)]; the view scales up to the desired size, but the pixels rendered by OpenGL calls are still at the native resolutio...
Steph Thirion
1

votes
3

answer
10.9k

views

Inserting an email address into a table field

// write student record $query = 'INSERT INTO Student (SLastName, SFirstName, SeMail, SGrade, SPhone, SCell, SLunch)'. ' VALUES ($LastName, $FirstName, $email, $grade, $phone, $cell, $lunch)'; echo $query . ''; $result = mysql_query($query); if (!$result) die('Error inserting Student record: '. mysq...
Steph
1

votes
1

answer
222

views

500.0 Rewrite server error when form posts

Windows 2008 R2 server running PHP 5.3. I have URL Rewrite for IIS working for our website. The rewrite is: All of the pages (domain.com/contact) work just fine. But when posting a form, I get a 500.0 server error...which MSFT says has to do with rewrite or module errors. I installed Fiddler and the...
Steph Rose
1

votes
2

answer
3.9k

views

Changing the text colour in Iframe

I would like to include an Iframe in my blog, The problem is that my background is black and so is the text color in the iframe. Anyway i can change the color of the iframe text without having access to the original content?
Steph
1

votes
1

answer
616

views

SQL Subquery Select Table based on Outer Query

I have a general query that looks like this: SELECT DISTINCT pb.id, pb.last, pb.first, pb.middle, pb.sex, pb.phone, pb.type, specialties = substring( SELECT ('|' + cs.specialty ) FROM CertSpecialty AS cs INNER JOIN CertSpecialtyIndex AS csi on cs.specialty = csi.specialty WHERE cs.id = pb.id ORDER...
Steph Rose
1

votes
1

answer
3.1k

views

Casting a Geography type in PostGIS

I have the following table defined, which uses PostGIS geography. CREATE TABLE test_geog ( id SERIAL PRIMARY KEY, boundary GEOGRAPHY(Polygon) ); I added the following test polygon to the table: INSERT INTO test_geog VALUES (ST_GeographyFromText('SRID=4326;POLYGON((0 0, 0 5, 5 5, 5 0, 0 0))')); I am...
Steph
1

votes
1

answer
448

views

Set a flexible container to the width and height of the image within without JavaScript

I have a fluid layout with a central band of content consistning of a jQuery powered scroller from www.smoothdivscroll.com (similar to basic example here http://www.smoothdivscroll.com/basicDemo.htm). Each box within the scroller consists of an image and text. The client wants each image to fill as...
Steph
1

votes
1

answer
396

views

How do I initialize an instance of this gem (artii)?

I’m using this gem, Artii: http://rubydoc.info/gems/artii/1.0.2/frames I’m trying to initialize with Artii.new , but I’m getting an undefined method error. Is this the right way to initialize an instance of the Artii class? Any answers appreciated
Steph_1001
1

votes
1

answer
1.4k

views

update [created by] column in sharepoint 2010 list

I accidentally deleted a time tracking site yesterday in sharepoint 2010 and unfortunately it did not go into the recycle bin. I was unable to find it either by the site collection administrators view of the recycle bin, my own view, or via powershell get-spdeletedsite cmd. In the end I restored a...
Steph Locke
1

votes
1

answer
48

views

Building a scalable xml bridge processing platform

I'm building middleware that receives a request from the Internet, connects to a locally available search platform and gets some XML back. It then changes this XML, pruning it, and changing into some other format (probably JSON) and sends it back to the calling application. I'm thinking of using th...
Steph
1

votes
3

answer
434

views

How do I NOT send an empty form field via email with a PHP form

I have an HTML order form with approx 100 possible entries. The form posts to a PHP file. The PHP file send an email with the order quantities and $totals per item. The problem is that it sends the info when the quantity = 0 - which, of course, makes the resulting email quite cumbersome. SO, my qu...
Steph
1

votes
1

answer
63

views

devtools test() returning 'Loading [package] Testing [package] NULL'

I'm relatively new to R and am trying to develop an example package which has documentation, unit testing etc baked in to enable myself and others in the company to reference it for best practices. With that in mind, I have an R function saved into the R folder of the package structure (created by R...
Steph Locke
1

votes
1

answer
370

views

Find coordinate of eye corner using difference in color

I am using opencv 2.4.2 and c++. I have a face image. From left of the picture, I want, with the least complexity, to determine the coordinate of one corner of the eye. My program will be as follows: Face image input Scan image from top until it encounters a kind of difference between the skin color...
Steph
1

votes
1

answer
94

views

R - what to use as interface for web service in c#?

I'm writing R code that processes XML, and my dev guy needs to be able to send the R server code and some XML and get some new XML back as a response within his c# application. We've been looking at Rserve with the RServeCLI integration however it's looking like the XML package functionality won't w...
Steph Locke
1

votes
1

answer
74

views

knitr: echo chunk does not work when using a seperate boilerplate / setup file

I have identified an issue with knitr where the use of a central file to hold setup stuff like \documentclass{article} \usepackage[T1]{fontenc} and defined styles, margins etc will cause errors when a knitr chunk has echo=TRUE set. I've produced a MWE on github as it requires at least two files....
Steph Locke
1

votes
1

answer
1.2k

views

Compiling with gulp/node/libsass is taking 30+ seconds

I'm using Gulp with node-sass to compile my sass. I am also using node-neat and node-bourbon. However, when I compile, it takes 30-50 seconds! What am I doing wrong? I'm not really sure how libsass plays into gulp-sass and node-sass, or what the difference between gulp-sass and node-sass is. In my g...
Steph
1

votes
1

answer
3.3k

views

Quartz.net Configure several jobs in XML

How to configure correctly the XML for several jobs in Quartz.Net? Is there any tutorials on that? I found tutorials for one job in the XML. It is working. But I am not sure for several jobs how to configure the quartz_jobs.xml.
Steph
1

votes
2

answer
1.5k

views

Generic Foreign Keys in Django Admin

Is it possible to filter by GenericForeignKey object titles in the Django admin? I want to filter by program name, either NonSupportedProgram.title or SupportedProgram.title (list_filter = (SOME FIELD HERE)), but can't figure out how? models.py class FullCitation(models.Model): # the software to whi...
steph
1

votes
4

answer
569

views

Multiple Settings File in Django 1.7

I'm trying to change my django 1.7 project to contain a settings folder with multiple settings files rather than just a single settings.py file. I don't know how to configure the location of the static files correctly. What am I missing? My site is no longer working correctly. dev_settings.py from u...
steph
1

votes
1

answer
980

views

Formset within a Form Using django crispy-forms

I'm trying to follow the answer given by @qris in a previous question (django crispy forms: Nesting a formset within a form) but I get a KeyError at formset = context[self.formset_name_in_context] in the render function. I don't quite understand what's going on. Where is the context coming from? How...
steph
1

votes
1

answer
1.1k

views

iterate over result pages using selenium and python: StaleElementReferenceException

I think for people who understood the selenium tool will now laugh but maybe you can share you're knowledge because really want to laugh now, too. My code is this: def getZooverLinks(country): global countries countries = country zooverWeb = 'http://www.zoover.nl/' url = zooverWeb + country driver =...
steph
1

votes
2

answer
31

views

Accessing Object Values

Sorry if this is a particularly stupid question but it's late and I'm going slightly round the bend on this. I have an object returned from an API which echo '';print_r($r);echo ''; gives as: stdClass Object ( [id] => 49 [submitdate] => 2015-11-05 14:33:16 [lastpage] => 4 [startlanguage] => en [Qu1[...
Essex Steph
1

votes
1

answer
134

views

Authentication for API Based on Django App

I currently have a Django web app, and am now creating an iOS app that needs to hook into the same database. So, I am creating an python API from my Django app. I don't know how to handle authentication from the iOS app to this Python API...? I want to just put Django's @login_required decorator on...
steph
1

votes
1

answer
246

views

How to pass a function through props in React to a function in a different component?

I am using this React radio group component to create radio groups. The radios are created by passing in a function to the RadioGroup component that will pass on the props to a new Radio component. For example (JSFiddle): {Radio => ( )} Now, I am trying to take iterate through an array of objects co...
Steph
1

votes
2

answer
649

views

Removing breakpoints from Bootstrap 3

I have inherited a web app that's using Bootstrap 3 as its framework with some basic customisation applied via the recommended _custom-variables.scss method. The official SASS port is added as a dependency and included in the app.scss file using @import 'bootstrap'; after _custom-variables.scss and...
Steph
1

votes
1

answer
84

views

How does local Javascript code flows through its execution?

I'm developping a local (no server, no ajax) piece of code that does 'heavy' computing and visual representations. My ever growing problem is thus : pieces of code will constantly be executed before preceding lines of code have finished! This is killing me and I've read, read and read about callback...
Steph
1

votes
3

answer
1.5k

views

Getting “Entity already exists” error writing aggregates to Azure Table Storage (with Azure Function)

In an Azure Function, I'm trying to aggregate some data and write the aggregations into a Table. I have a query that summarises data: var query = recs .GroupBy(r => new { r.Category, r.Account, r.Record }) .Select(r => new ts_webhitaggregate_account { PartitionKey = partition, // Constant RowKey =...
Steph Locke

View additional