Sandwich

1

votes
1

answer
694

views

What is the most proper way to format Biblical quotes and/or Biblical references in HTML?

I've been using , , and for formatting scripture quotes and references, but I'm wondering if there's a more proper way. There are 3 typical kinds of Biblical references I've run into: block quotes, inline quotes, and references (aka 'chapter & verse' references). Here's how I've been formatting eac...
Sandwich
1

votes
1

answer
58

views

TKinter grid causes program not to run

I'm new to python and TKinter. I'm trying to write a program with a basic gui. I wanted basic control over the layout and tried to implement grid. For some reason when I run the code using grid, no window comes up, if I comment that line out, it works fine, but things aren't where I want them. Could...
A_Sandwich
1

votes
1

answer
84

views

Shortcode API parameters rejected like logic in the Congressional Branch

I have looked over this more times than I can possibly count, but cannot for the life of me figure out what I am doing wrong. I have written shortcode functions many times in the past, also, more times than I can count. For whatever reason, this one refuses to work correctly. After an hour of trying...
Sandwich
1

votes
1

answer
291

views

How do I construct typed constants for the OneNote COM API in python?

I want to use the UpdatePageContent COM method documentation via the python win32com module. Things I can do so far include getting the hierarchy, getting page contents, etc. I can even validly manipulate the XML to prepare changes (tested using the MATLAB COM interface). This is a minimal example o...
Captain Sandwich
1

votes
1

answer
351

views

Log4j2.xml configuration file not parsing mapMessage properties

I'm trying to pass in a messageMap of variables to log, but when I do so I cannot access them via the %k{key} syntax. However the map is coming through, but as a plain message object. If I print %msg into the console all the vars along with their values are printed. In the console message I would ex...
A_Sandwich
1

votes
1

answer
58

views

WPF Snap window to left edge of screen leaves gap

I need to 'snap' a WPF window to the left edge of my screen. I've tried setting the Left value to zero, but this leaves a small gap, of about 8 pixels. Does anyone know why/what this is?
Sandwich
1

votes
1

answer
0

views

Odd, nondescript error [an error occurred while processing this directive]

I have been migrating a client's website from a Bluehost account to my own cPanel/WHM setup. I used the cPanel 'Backup Wizard' to create the export .tar (composed of home directory and mysql files, amoung some other things...) I suppose it's possible this is the problem, except that I didn't use the...
Sandwich
1

votes
1

answer
1.3k

views

Troubleshooting dynamic dropdowns in SugarCRM 6.5

I had asked a question here a while back about setting up database populated dropdowns for SugarCRM. I received a really good answer and, after more php studies and a dev instance running, I decided to give it a shot. The instructions I followed can be found here. After I run the repair and rebuild,...
Sandwich Heat
1

votes
1

answer
22

views

Can't switch columns in select of output

**I'm working on some problems on an open course-ware website that uses SQLite. I have the following query and I am receiving the correct output, except when I try to switch select all(maxi-mini) as spread, movieTitle to select movieTitle, all(maxi-mini) as spread I receive a failed to execute erro...
amol_Dee_sandwich
1

votes
1

answer
78

views

Regex positive lookbehind in Google Sheets

I have a Google Sheet with a list of transactions. I need to isolate up to three words or numbers in the column E that come after the word 'end' in the column D. The proper regex function should be the positive lookbehind, but it is not supported in RE2 (source: Using positive-lookahead (?=regex) wi...
knuckle_sandwich
1

votes
1

answer
445

views

How to properly use sentinel nodes?

There will be multiple (closely) related questions instead of a single one. For our comfort, I will number them accordingly. Based on this Wikipedia article, this question and lectures, I think I already understand the idea behind sentinel nodes and their usage in linked lists. However, a few things...
Sandwich
0

votes
0

answer
4

views

typscript compiler (tsc) throws error, but only when used in yarn script, otherwise works fine

So if I execute: tsc Everything compiles, no issues. Picks up patterns in tsconfig.json # inside package.json scripts: { 'build' : 'tsc' } $ yarn build Throws error. error TS6307: File '***' is not in project file list. Projects must list all files or use an 'include' pattern. error Command faile...
Sandwich
1

votes
2

answer
415

views

Should sidebars be inside <main>?

I'm unsure about the element's relation to a site's sidebar, and would appreciate some guidance, or at least communal majority consensus. ;) Given the following page elements: Logo and stuff Main Nav ... Copyright blah How should the element and a sidebar element be arranged, if replacing the ...?...
Sandwich
1

votes
1

answer
122

views

Get Featured Image from different Model

I have 2 model objects, Business & BusinessImage as so, listed with views and index.html. I am trying to list the business's featured image, but it's not happening. I am getting the following error: 'QuerySet' object has no attribute 'businessimage_set' How can I get the business featured image for...
ham-sandwich
3

votes
1

answer
845

views

OSX Status Bar Image Sizing - Cocoa

So i'm having a problem with the image of a NSStatusBar item, it seems like the image is pushing away from the rest of the menu items as you can see in this picture. But when the menubar is inactive (as in i'm on my other monitor or not in the app) the problem doesn't happen as you can see in this p...
Bolt Sandwich
2

votes
1

answer
464

views

How do I convert a sprite image into JSON for a Starbound mod?

In a game that I play called Starbound I'm trying to create a modded item. In the game, the item code is based on JSON strings. An example of a string on an item that I created uses the following JSON to distinguish a drawable item in game: [{ 'image':'/particles/ash/3.png?setcolor=090909', 'positio...
Sandwich
3

votes
3

answer
747

views

How does one properly handle keypresses and repainting of a JComponent in the context of moving a ball around a screen?

I thought I would try and write a program that would paint a ball, and when the arrow keys are pressed, would move the ball around the screen in the direction pressed. First I started off to try and make a program that would just do 'UP' arrow key motion. I've looked around for a solution, and just...
T Sandwich
2

votes
2

answer
1.1k

views

Prevent paragraph from increasing the width of a floated parent

I often find myself using code blocks for inline article images like the following: ...article text. Potentially long image caption More article text... Or, the more succinct HTML5 version: ...article text. Potentially long image caption More article text... Since I use a CMS that processes images o...
Sandwich
4

votes
3

answer
64

views

How to use an exist property in object [duplicate]

This question already has an answer here: Self-references in object literals / initializers 21 answers I'm trying this var a = { 'a' : 'Hey', 'b' : this.a + '!' }; console.log(a.b); ==>'undefined!' but if I use this it works fine. var a = {}; a.a = 'haha'; a.b = a.a + '!'; console.log(a.b); ==>'hah...
Hero Sandwich
1

votes
1

answer
293

views

(PostGIS) Merge two tables based on multlinestring geometry

I'm completely new to PostGIS (and databases in general), so apologies if I use terms incorrectly. I have two tables with multilinestring geometries, and I want to copy one field from one table to the other based on geometries. The geometries don't overlap, so I want to find the closest geometry. I'...
Sandwich
4

votes
3

answer
1.7k

views

Ansible with Github: Permission denied (Publickey)

I'm trying to understand the GitHub ssh configuration with Ansible (I'm working on the Ansible: Up & Running book). I'm running into two issues. Permission denied (publickey) - When I first ran the ansible-playbook mezzanine.yml playbook, I got a permission denied: failed: [web] => {'cmd': '/usr/bin...
Sandwich Heat
1

votes
2

answer
56

views

Remove all escape sequences in specific code block

I have an HTML snippet which looks like the following: \n object.__getattribute__\n \n and\n \n super.__getattribute__\n \n peek\nin the\n \n __dict__\n \n of classes on the MRO for a class when looking for\nan attribute. This PEP adds an optional\n \n __g...
ham-sandwich
1

votes
2

answer
1.8k

views

What's the specific permission to allow an AWS IAM group access to change an S3 object's metadata?

I want to grant an AWS IAM group permission to upload, view, modify, and delete objects in a single bucket, through the Management Console. I've got most of it down, but I'm getting reports that users in that group are unable to modify object metadata - they're getting the 'Sorry! You were denied ac...
Sandwich
3

votes
3

answer
4.6k

views

Fibonacci Algorithm in Java

I'm trying to solve a homework problem for an algorithms class and I keep getting an out of bounds index array for the code I've written below. I've been trying to play around with it in Python since I'm pretty comfortable with that, but I seem to be getting a similar exception. Can anyone give me a...
Sandwich Heat
2

votes
2

answer
386

views

Stop pure CSS tabs from scrolling to top of page on selection

I have a tabbed information box in CSS/HTML which works perfectly, apart from the tab row scrolling to the top of the web page whenever the tab is changed. It appears that this is a feature of # targets. I have searched for ways to supress this and the consensus appears to be that it can only be...
Sandwich
2

votes
3

answer
519

views

window.open force new JavaScript thread

Does anyone know if there is a way to force a new JavaScript thread for a new window? I have an ExtJs application whose render steps are slaughtering user interaction. I can't toss the whole Ext application right now, so I've devised a way to make use of localStorage to manage passing events between...
Sandwich
3

votes
1

answer
2.6k

views

pip install mod_wsgi fails in virtualenv

I'm trying to install mod_wsgi using pip in python 2.7.10 on mac os 10.12 inside a virtualenv. I intend to use it in a a Django 1.10.3. When I run 'pip install mod_wsgi' I get the following output: Collecting mod_wsgi Using cached mod_wsgi-4.5.7.tar.gz Complete output from command python setup.py eg...
A_Sandwich
2

votes
0

answer
218

views

Passing a SparkR dataframe into a user-defined function

I know that to apply a user-defined function to a SparkR dataframe, one can use dapply/gapply. I wonder if it's a good practice to pass a SparkR dataframe directly into a UDF? e.g., first create a dataframe df
sandwich
3

votes
1

answer
75

views

Why does the label element have a form attribute?

In the HTML standard, why does the HTML label element have a form attribute defined for it when it already has the for attribute? What purpose does it have? If I have a label element where either the child contents are an input type or the for attribute is used what purpose does the form attribute h...
5

votes
2

answer
996

views

Difference between fitting algorithms in scipy

I have a question about the fit algorithms used in scipy. In my program, I have a set of x and y data points with y errors only, and want to fit a function f(x) = (a[0] - a[1])/(1+np.exp(x-a[2])/a[3]) + a[1] to it. The problem is that I get absurdly high errors on the parameters and also different v...
3

votes
0

answer
1.5k

views

Webstorm 10 mongoose unresolved function with mongoose-DefinitelyTyped installed

I recently reinstalled my MEAN stack development environment. I cannot for the life of me get mongoose functions to resolve in Webstorm 10. I have mongoose-DefinitelyTyped and mongodb-DefinitelyTyped installed and checked. My node.js application runs fine and is usable. I'm using mongoose to do my...
Sandwich
3

votes
3

answer
1.6k

views

Favorite IDE/Code Editor for Mac OS X? [duplicate]

Possible Duplicate: Mac text/code editor What's your favorite Code Editor or IDE for Mac OS X? Note: An associate and myself found a newer Code Editor, WYSIWIG style, about a month ago, and cannot recollect it's name or find it anywhere on the net. It was referred to in several articles as the 'Dr...
Sandwich
6

votes
1

answer
3.9k

views

C++/CLI Inheriting from a native C++ class with abstract methods and exposing it to C#

I've been googling around in circles trying to find an fully fledged example to this but to no avail. I have a C++ API that presents a number of classes that contain pure virtual methods for the developer to extend from. What I'm attempting to do is provide this interface to C# via the C++/CLI. I'v...
2

votes
0

answer
109

views

PHP_CSV_Utilities Cannot find CSV_Reader Class

Does anyone have experience with the PHP CSV Utilities library ( http://code.google.com/p/php-csv-utils/wiki/Documentation )? I've tried to install it on my Mac--I'm running XAMPP and editing with Aptana 3. I followed the instructions and copied the CSV folder over to my project file so the organiza...
Sandwich Heat
8

votes
3

answer
19.2k

views

Django/Python Runtime Error: Maximum recursion depth exceeded

I am trying to add a blog app to my Django project. When I put everything together, I can see my blog posts page, but something with the blogapp/urls.py file is causing me to get a maximum recursion error somewhere and I'm having a hard time finding it. First, here is the error message in full: Runt...
Sandwich Heat
2

votes
1

answer
83

views

Inverse of JavaScript Object.assign

I have a flat JavaScript object called dictionary that I want to update based on other flat objects. Sometimes I want to add every property of an object to dictionary and sometimes I want to delete every key in dictionary that exists in another object. I'll be using the values of those properties la...
crass_sandwich
2

votes
2

answer
65

views

Trouble changing control visibility from control

In my application, I've got a stackpanel I'd like to keep hidden (or collapsed, whatever keeps it out of sight until it's needed) and it is to be made visible when the user clicks a button. The issue I've run into, using my rudimentary knowledge of the MVVM technique, is to have the stackpanel's vis...
Sandwich
2

votes
1

answer
715

views

QTableView / QTableWidget: Stretch Last Column using Qt Designer

I am trying to stretch the last header of my QTableView / QTableWidget in PyQt. Multiple questions have been asked about this topic already by hard coding the value into the file such as: Qt table last column not stretching to fill in parent How to stretch QTableView last column header But how can t...
ham-sandwich
1

votes
2

answer
87.1k

views

Excel: if cell 1 contains X or Y or Z, then cell 2 should equal W

As from the title, I need Excel to auto-populate the B row cells based on the corresponding A row cells content. So if cell A1 contains X or Y or Z, then cell B1 should equal W, or if A1 contains G or H or J, cell B1 should equal W.
knuckle_sandwich
15

votes
2

answer
37.1k

views

Useradd using crypt password generation

I am working on what I thought was a very simple script to dynamically create an FTP user using 'useradd' There are several parts of this process I am unfamiliar with, and an entire day's research has not gotten me too far. Here is what I have: password='pass' pass=$(perl -e 'print crypt($ARGV[0], '...
Sandwich

View additional