jmq

1

votes
1

answer
35

views

producing a full adjacency matrix from partial information

I have a matrix that contains all the info necessary to construct 5x5 adjacency matrices. Each row represents one matrix: [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 1 1 1 1 1 1 1 0 1 0 [2,] 0 0 0 1 1 1 1 0 1 0 ... I want to c...
JMQ
1

votes
3

answer
1.8k

views

Intellij/Bugzilla Integration

Does IntelliJ-Idea have a plugin for interacting with bugzilla, like the mylyn plugin for eclipse (task management)? If it does, what is the name of the plugin? If it does not, do you have any suggested solutions for using bugzilla with Intellij-Idea. Thanks.
jmq
1

votes
2

answer
3.7k

views

R - using a for loop to modify a column in a data frame (and using factor levels)

I'm trying to convert a factor of dates to a character vector that can be referenced by a for loop. The for loop should replace NA values in the 'Day' column of a data frame (ex. shown below) with values that correspond to the date. Date Time Axis1 Day Sum.A1.Daily 1 6/12/10 5:00:00 20 NA...
JMQ
1

votes
1

answer
103

views

converting edgelist to two-mode network matrix

HAVE is an edge-list for an odd two mode network. People in actor are major award-winning actors; people in supporter are other actors who performed in one or more films as a supporting role. Note: actor includes some members of supporter but not all, which is why I am treating this as two-mode data...
JMQ
1

votes
1

answer
26

views

fixing nodes when plotting networks

mynet is a network object with the 93 vertices and three vertex attributes: sex, indegree, and outdegree. Another network object, simnet, is simulated version of the network. The nodes and degree distributions are the same, but some edges have been rewired. I plot them side by side... par(mfrow=c(1,...
JMQ
1

votes
2

answer
64

views

Creating variables that count the “levels” of other variables

I have a dataset analogous to the simplified table below (let's call it 'DS_have'): SurveyID Participant FavoriteColor FavoriteFood SurveyMonth S101 G92 Blue Pizza Jan S102 B34 Blue Cake Feb S103 Z28 Gree...
JMQ
1

votes
2

answer
55

views

change all strings in dataframe to one of several different values r (NOT a duplicate)

(see 'IMPORTANT' note below - question is not solved by the answers to a similar post; it's not a duplicate) I have a bunch of dataframes with a ton of vectors containing the same two likert scales that I need to recode from strings (currently as factors) to numeric values (1 to 5). Here are the sca...
JMQ
1

votes
1

answer
83

views

create flag based on row values in grep()

I have a 10-row data frame of tweets about potatoes and need to flag them based on the punctuation each tweet contains (questions marks or exclamation points). The grep function will return row numbers where these characters appear: grep('\\?', potatoes$tweet) grep('!', potatoes$tweet) I've tried to...
JMQ
1

votes
1

answer
165

views

Tkinter/ttk - treeview does not take up the full frame

I'm trying out my first application in Tkinter/ttk. I'm running into a minor formatting problem that I am unable to resolve. I'm creating a tree view of a list of stock symbols in a frame. When I run the application only the first 10 symbols are displayed in the table although the frame is large...
jmq
1

votes
1

answer
39

views

using igraph to plot asymmetric ties

HAVE is a two-mode adjacency matrix of lead actors (ids in the 1st column) and supporting actors (ids in the column names). f1 f2 f3 f4 f5 f6 f7 f1 0 1 0 2 5 0 6 f2 0 0 3 0 0 6 0 f3 9 4 0 1 0 0 0 The numbers in the matrix are film counts. The matrix is a...
JMQ
18

votes
2

answer
2.8k

views

What is RxJS's place in the JS ecosystem and evolution?

To be clear, I'm hoping for factual information to be presented about RxJS and how it relates to JavaScript's evolution, not a matter of opinion on how good RxJS is, etc. My question is: is RxJS ( https://github.com/Reactive-Extensions/RxJS ) somewhat of a forward-looking polyfill because of Object....
jmq
6

votes
3

answer
3.8k

views

XML Parser for Ruby

Looking for something similar to xerces for parsing an xml file in ruby. I saw the native processor REXML and another called hpricot (though I can't find any documentation on hpricot, the links all appear to be dead). I'm looking for something that would parse an xml document via SAX2 in ruby. TIA...
jmq
5

votes
4

answer
2.6k

views

Python String “Modifiers”

What are these 'modifiers' called on the front of a python string? I don't understand what these are used for. Also, since I don't know what they are called, I don't know what to search for to learn about them (or the others that may be available if any). In this example what does the 'u' represen...
jmq
1

votes
2

answer
162

views

Subsetting an integer vector based on a vector of corresponding dates

Elementary question: I'm trying to subset a vector of a data frame based on a vector of dates that correspond with the vector that I wish to subset. Consider the following data frame as an example: Date Time Axis1 Day Sum.A1.Daily 1 6/12/10 5:00:00 20 1 NA 2 6/12/10 5:01:00 40...
JMQ
22

votes
5

answer
7.6k

views

RelaxNG vs XML Schema

I have a project where I'm using RelaxNG (jing) to validate xml. I like the syntax for RelaxNG, but most of the tools that I have work with XML schema (actually, I don't think I have a tool that does, other than jing). Am I making a design and future support mistake by using RelaxNG when most of t...
jmq
2

votes
1

answer
68

views

Google Places API and R — calling 2nd column in a data frame returns six separate columns

I'm trying to store the results of a data frame I retrieved from a list via the Google Places API. My call to the API... library(googleway) HAVE_PLACES
JMQ
6

votes
5

answer
11.6k

views

Intellij Insert File Template Header

When you create a new java class in Intellij a file header is automatically inserted (based on 'File Templates' options). Is there a way to insert that same template into an existing java source file? I was hoping there was a way to use my template definition on existing code without doing a cut/p...
jmq
6

votes
1

answer
1.5k

views

Orgmode Table Formatting of Cells

I have an Emacs org mode table that looks like this: |--------------------------------+------------------------------------------------------| | | | | How do you alter your password | The command to alter your password in or...
jmq
2

votes
2

answer
1.7k

views

Groovy Operator Overloading Increment/Decrement Error

I have the following Groovy code snippet that is attempting to use operator overloading for increment, decrement and equals. All this does is create two instances, perform the increment and a decrement one one of the instances and then compare the two instances using the overloaded methods equals....
jmq
4

votes
3

answer
219

views

Setting *most* variables to missing, while preserving the contents of a select few

I have a dataset like this (but with several hundred vars): id q1 g7 q3 b2 zz gl az tre 1 1 2 1 1 1 2 1 1 2 2 3 3 2 2 2 1 1 3 1 2 3 3 2 1 3 3 4 3 1 2 2 3 2 1 1 5 2 1 2 2 1 2 3 3 6 3 1 1 2 2 1 3 3...
JMQ
30

votes
0

answer
2.4k

views

Comparison of Restangular vs. JSData (formerly Angular-data) [closed]

One of the things about Angular that's both a feature and a point of complexity, is that it's not very opinionated about how to interact with a RESTful API. I know about $resource, Restangular, and various ideas you can find on rolling your own. In a complex application that's got a large number of...
jmq
1

votes
2

answer
2.1k

views

Creating Global Groovy Closure

I'm trying to learn how to create a global closure in groovy (like the println closure). I have the following code: a.groovy def header = Tools.&header header 'groovy script a' b.groovy def header = Tools.&header header 'groovy script b' tools.groovy class Tools { def static header(String str) { pr...
jmq
2

votes
1

answer
1.1k

views

Fixing A Gradle dependsOn Deprecation Warning

I upgraded my build environment to the most recent version of gradle (1.0-rc3). I'm receiving the following deprecation warning: 'The Project.dependsOn(String path) method has been deprecated' I fixed all of my task dependsOn references to use the object references, but I do not know how to fix the...
jmq
1

votes
3

answer
9.2k

views

Number Wildcard in Where Clause

I'm trying to add a number wildcard to a query to look for a number in a specific position. The query looks something like this: SELECT SUBMITTER FROM BASE_ELEMENT WHERE SUBMITTER LIKE 'm_%'; The problem with this query is that it picks up everything that starts with 'm' and has a character in the...
jmq
13

votes
3

answer
4.9k

views

Gradle vs. Gant

I'm working on a Linux/Apache/MySQL/Grails application and have the choice of build tools. I'm looking at Gradle or Gant. They look very similar to me, so I'm not sure what differentiates them. What are the major differences between Gradle and Gant that would make me pick one over the other?
jmq
3

votes
1

answer
345

views

Maven Security Concerns

Are there security concerns with using Maven? I use Ant today for my main project, but I do use Maven for my 'samples' project where I write program spikes. I do like some parts of Maven, but have a concern with downloading my jars through the tool. Is this an unfounded concern? How secure is 'h...
jmq
1

votes
2

answer
280

views

List Item Evaluation

I'm learning lisp and have a question about a simple list: (setq stuff '(one two three (+ 2 2))) stuff ; prints 'one two three (+ 2 2)' (setq stuff (list `one `two `three (+ 2 2))) stuff ; prints 'one two three 4' The first setq creates a list 'one two three (+ 2 2)'. The second list creates 'one t...
jmq
3

votes
2

answer
2.2k

views

C# Project Standard Directory Layout

The java build tool 'maven' has a standard directory layout for projects. What is the equivalent type of directory layout for a C# project? I'm just learning C# and .NET and it seems that the IDE just dumps everything into one directory, heh. Does C#/.NET follow a convention for the directory str...
jmq
2

votes
4

answer
103

views

Look up and replace values from a separate table in SAS

Dataset HAVE includes two variables with misspelled names in them: names and friends. Name Age Friend Jon 11 Ann Jon 11 Tom Jimb 12 Egg Joe 11 Egg Joe 11 Anne Joe 11 Tom Jed 10 Ann I have a small dataset CORRECTIONS that includes wrong_names and resolved_...
JMQ
5

votes
1

answer
290

views

Fabric.js Efficiency of Clipped Sprite vs. Individual Images

I intend to have a FabricJS canvas that will display potentially dozens of different graphics, which could either be served up as individual image files or a sprite. For each graphic, it's possible that particular graphic would be displayed on the canvas 0 to dozens of times. I know that FabricJS ha...
jmq
1

votes
1

answer
24

views

coloring nodes in iGraph

HAVE is a data frame with musical Artists, their Friends, and the Genre of the Artists: Artist Friend ArtistGenre 2 Chainz Boy Wonder HIPHOP 2 Chainz Chris Brown HIPHOP 2 Chainz Drake HIPHOP Billy Joel Cindi Lauper ROCK Blake Shelton Gwen Stefani COUNTR...
JMQ
6

votes
2

answer
3.8k

views

Groovy CliBuilder: only last LongOpt is taken in account

I'm trying to use the groovy CliBuilder to parse command line options. I'm trying to use multiple long options without a short option. I have the following processor: def cli = new CliBuilder(usage: 'Generate.groovy [options]') cli.with { h longOpt: 'help', 'Usage information' r longOpt: 'root', ar...
jmq
53

votes
7

answer
90.9k

views

Reset IntelliJ UI to Default

I'm evaluating the IntelliJ IDE. I changed some of the display/font setting (among other things) and would like to reset the UI back to default. Is there a simple way to reset the display UI back to its default settings?
jmq
1

votes
2

answer
55

views

Flattening a file while preserving duplicate contents

I want to flatten a file to consolidate the variable contents for any occurrence of an ID into one record. Consider the example below... I have: ID Date Color Letter 1012 01/23 Red X 1012 10/17 Blu F 1012 07/28 Red N 1012 04/09 Ylw G 1392 04/12 Ylw P 1392 03/11 Blu A 1001...
JMQ
66

votes
9

answer
47.8k

views

Hibernate or JDBC

I have a thick client, java swing application with a schema of 25 tables and ~15 JInternalFrames (data entry forms for the tables). I need to make a design choice of straight JDBC or ORM (hibernate with spring framework in this case) for DBMS interaction. Build out of the application will occur in...
jmq
2

votes
1

answer
30

views

How do I configure JSData with cookie-based sessions and CSRF headers?

I need to set up my JSData configuration to pass along info for cookie-based session authentication, as well as CSRF headers.
jmq
2

votes
1

answer
26

views

string as function argument in R

Dataframe chocolates lists types of candy and a set of ratings for each: ID sweetness filling crash snickers 0.67 0.55 0.40 milky_way 0.81 0.53 0.56 ... I'm writing a function that takes an argument for the filename, the ID for a particular type of candy, an...
JMQ
2

votes
1

answer
35

views

Sum variable by group and append result

Dataset HAVE is a tibble edgelist of phone call data from the characters of Recess: Student Friend nCalls TJ Spinelli 3 TJ Gretchen 7 TJ Gus 6 TJ Vince 8 TJ King Bob 1 TJ Mikey 2 Spinel...
JMQ
89

votes
2

answer
19.5k

views

IntelliJ Split Window Navigation

If I split the editor window (horizontal or vertical) into N tab groups, how do I switch/toggle from one tab group to another via the keyboard? If all of the tabs are in the same group you can switch from each tab easily (CTRL + right/left arrow), but when they're in separate tab groups I can't. I...
jmq
91

votes
5

answer
39.4k

views

Is Java Regex Thread Safe?

I have a function that uses Pattern#compile and a Matcher to search a list of strings for a pattern. This function is used in multiple threads. Each thread will have a unique pattern passed to the Pattern#compile when the thread is created. The number of threads and patterns are dynamic, meaning...
jmq

View additional