Spartan

1

votes
2

answer
1.9k

views

Take HTML area map and convert to d

I have an area map using rect coordinates to highlight tables of a floor plan that are occupied. Occupied tables will, when you hover over them, display the name of the company. Easy enough. What I want to do is take those coordinates and, using a div class for each table's coordinate, have a dark...
Angry Spartan
1

votes
1

answer
28

views

Unable to locate an element through Selenium and WebDriver

i am trying to click the save button. but i am not able to click it because before the button it has '::before'. i tried locating using cssSelector and xpath. but i am not able to locate it. can any one help me?
Spartan
1

votes
1

answer
60

views

Vuejs Variables Not Displaying on Modal

I have a script that needs to output the results of an answer on a modal window. But currently it isn't rendering. The results output correctly outside of the modal HTML; even inspecting the modal source when it is visible shows the data isn't rendering; i.e. the results aren't hidden from view, the...
Angry Spartan
1

votes
0

answer
34

views

Do docker and podman iptables rules conflict?

I've installed both Docker and Podman on the same machine. Is that my first problem? Maybe. But my goal is run both and I'd like to continue anyway. My problem is this: there seems to be an iptables conflict between Docker's rules and Podman's rules, and my working solution doesn't make any sense to...
The Spartan
0

votes
0

answer
7

views

Prawn: How to iterate from a table inside an iteration in the header?

I pass 3 @course ID's to courses.pdf. Then Prawn generates a PDF of 3 pages - one course pr page. The problem: currently it prints all @participants from all 3 courses in all 3 pages. It should only print the @participants for the current course in a table. I have spend several hours trying differe...
Digital Spartan
1

votes
1

answer
458

views

Datestamp trigger for pgAdmin written in C

We have postgres 8 installed on a linux box, and I'm copying over data and triggers from our windows version to this new one. However, plpgsql isn't installed by default, so copying my trigger source is failing. I only have C or Internal languages to choose from; barring asking the DBA to install p...
Angry Spartan
1

votes
1

answer
488

views

Array de-serialization in a Java GUI problems

now I need some help with Serializing my arraylist. Now I have managed to get the serializing aspect working (I think at least), now my problem lays with de-serializing the object. I am making a small address book program. I have a comboBox that stores the addresses with three textboxes above whe...
Spartan
1

votes
1

answer
3.8k

views

SAML - Generating Metadata File for Service Provider

I have a handful of code blocks but am unsure of how to use it all coherently. Our office (IdP) is going to be using box.com (SP) using simplesamlphp, and we are supposed to provide them a metadata file for SSO handshaking. They provide us with this example file: view here Looking at it, I am unsure...
Angry Spartan
1

votes
2

answer
1.7k

views

500 Error on Timthumb

Here's the image that was uploaded: http://proppedupcreations.com/uploads/portfolio/fullsize/p036.jpg You can view the image in the gallery here; top left: http://www.proppedupcreations.com/index.php?page=portfolio&categorylink=photoshoot I am getting this error when clicking it in the gallery: Imag...
Angry Spartan
1

votes
2

answer
236

views

SED command matches regex but does not substitute

I am working on building a .sed file to start scripting the setup of multiple apache servers. I am trying to get sed to match the default webmaster email addresses in the .conf file which works great with this egrep. However when I use sed to try and so a substitute search and replace i get no error...
Spartan-196
1

votes
2

answer
751

views

MySQL get only the row with the highest ID of a query

Hello Stackoverflow community, This is my first post here, so I apologize for my bad English! :) If you don't want to read everything, the Questions are marked like this. The title is a little misleading, but I didn't know how to explain it in a better way, but the detailed explanation should let yo...
Spartan-117
1

votes
1

answer
2k

views

HTTP POST converting to HTTPS GET on redirect by proxy server

I have a weblogic cluster domain which has following configuration: 2 managed servers, 1 admin server, and a proxy server.My webapp is deployed in 2 managed servers. The SSL ports on both managed servers are enabled and I have added User data constraint as confidential in web.xml, so that SSL ports...
spartan
1

votes
1

answer
3.7k

views

Adding Custom Attributes to SimpleSAMLPhp

I'm using this page as a reference guide: core:PHP It reads as applying to attributes that already exist in my LDAP, but what if I wanted to add a new attribute entirely? I added the following two new ones; the first is being renamed to something new, and the second one is static: saml20-idp-hosted....
Angry Spartan
1

votes
2

answer
335

views

Get URL automatically on Google+ Interactive Post

and thanks in advance. I have tried multiple solutions on here, but none seem to work for what I need to accomplish. I have a website with multiple articles, new ones created regularly. Our site implements the Google+ Interactive Post feature on each article. By adding the following code manually, a...
John Spartan
1

votes
1

answer
384

views

how to avoid casting when implementing generic interface

I'm doing some graph implementation and I think the code smells quite bad. So I made an interface Graph: interface Graph which for example have a method like this: public void addVertex(K key, V value); or public boolean remove (K key); The implementations will hold key value pair based vertices. T...
Spartan
1

votes
1

answer
808

views

Eclipse won't autocomplete bean methods in EL when I use javax.annotation.ManagedBean

I created an application using JSF and Spring and I used the annotations @repository, @service @component and @autowired but when I am coding the Facelet file the beans cannot show up, can any one help me faces-config.xml: org.springframework.web.jsf.el.SpringBeanFacesELResolver org.primefaces.appli...
Spartan
1

votes
1

answer
131

views

How to load Validation error dynamically in Angular/HTML

I've a form control where user has to enter Id. I've validated submit button to enable only when field is filled with value(only numbers). But I want to notify user dynamically when he tries to enter alphabets like 'You should only enter Numbers' because user may not know the reason why Submit butt...
Vino Spartan
1

votes
1

answer
680

views

Method 'setProviders' is marked deprecated in Spring Security 3.2.7

I am using Spring Security 3.2.7 and I got this warning in my spring configuration Multiple annotations found at this line: - Method 'setProviders' is marked deprecated security-config.xml:
Spartan
1

votes
1

answer
348

views

can't enable logging of spring framework

I want to configure the logging in Spring framework and Spring Security, and followed this http://docs.spring.io/spring/docs/3.2.x/spring-framework-reference/html/overview.html#overview-not-using-commons-logging but when I load the Tomcat I got this problem: GRAVE: A child container failed during st...
Spartan
1

votes
1

answer
438

views

auto-optimize data in apache solr 5.4.1

I am indexing over than 1500000 of items from Mysql with Apache Solr 5.4.1, and when I enter to the Solr Admin Page everyday, I found that there is over than 5000 deleted items that they should be optimized, then I click to Optimze and all will be okay. Is there a simple url to put it in the Crontab...
Spartan
1

votes
1

answer
53

views

getting the number of clients connected

How do I get the number of clients that are currently connected to my server running MongoDB using PHP? or is it even possible because when the query is executed and when it ends the connection closes and so the connection is open only for a few moments?
Abhishek Spartan
1

votes
1

answer
306

views

partition ordering aggregateByKey Spark

So if i have a transformation before : myRDD = someRDD.map() mySecondRDD = myRDD.aggregateByKey(initValue)(CombOp , MergeOp) In this point myRDD doesn't have a partitioner, but mySecondRDD has one hashPartitioner. Firstly i want to ask: 1)Do i have to designate a partitioner in myRDD? And If i do h...
Spartan
1

votes
1

answer
410

views

AggregateByKey Partitioning?

I have : A_RDD = anRDD.map() B_RDD = A_RDD.aggregateByKey() Alright, my Question is : If i put partitionBy(new HashPartitioner) after A_RDD like : A_RDD = anRDD.map().partitionBy(new HashPartitioner(2)) B_RDD = A_RDD.aggregateByKey() 1)Will this be the same efficient as if i leave it as it is, in th...
Spartan
1

votes
1

answer
150

views

How to access SOAP message elements?

So i am trying to replace the values of username and password in the XML file containing a SOAP message. Here are the elements: Basically, i want to take the username and password values from my config file, and place them in the username and password fields within the XML file containing the soap m...
Spartan 117
1

votes
2

answer
1.8k

views

Order By a date field not working in Spring Data JPA

I am trying to get data sorted by date with DESC, but always I am getting it with ASC, I tried 2 ways but there is no good result: I have this repository : @Repository public interface CollectRepository extends JpaRepository 1st way, I used the sorting in @query: @Query('SELECT c FROM Collect c LE...
Spartan
1

votes
1

answer
134

views

How to send elements from a Source/Flow to 2 or more Sinks according to a condition?

I have a Source like: Source[String, NotUsed] and a Flow[String, Int] And I want to send the elements to 2 different Sinks according to a condition. Is it better to do it like: source ~> flow flow.filter(cond) ~> sink1 flow.filter(!cond) ~> sink2 Or Use a Broadcaster like: source ~> flow ~> broadc...
Spartan
1

votes
1

answer
328

views

How can I capture the exit code of a job's “Execute shell” build step for use later in a pipeline?

I have a pipeline script that executes a build as one of its steps. Let's say it looks like this: pipeline{ stages { stage('Build'){ steps{ node('master'){ build job: 'my_build' } } } (other stages.........) } } Occasionally, that step ('Build') fails. I have a shell script in the 'Build' job (an 'E...
The Spartan
1

votes
1

answer
195

views

elastic search multi-fields matching problem

I have a query for elastic search. I am writing a query like this. $params = [ 'index' => config('elasticsearch.index'), 'type' => $this->type, 'body' => [ 'query' => [ 'multi_match' => [ 'query' => 'newyork john', 'type'=>'cross_fields', 'fields'=>['user','surname','location'], 'tie_breaker'=>'0.3'...
Spartan Troy
1

votes
3

answer
35

views

Error rendering variable in @click function call

I'm trying to pass an object property into a click event. I know you cannot pass curly brackets into html attributes since I have the title property output correctly. But how to do the same when trying to render a click event? {{ range.title }} invalid expression: expected property name, got '{' in...
Angry Spartan
1

votes
1

answer
73

views

How to download and constrtuct a graph in osmnx?

I try the following code: G = ox.graph_from_place('Greater London, UK', network_type='walk') But it keeps giving the following error: ConnectionError: HTTPSConnectionPool(host='nominatim.openstreetmap.org', port=443): Max retries exceeded with url: /search?format=json&limit=1&dedupe=0&polygon_geojso...
Spartan
1

votes
2

answer
0

views

Get file count from external website

Is there any type of javascript, coldfusion, php, etc that can recursively get all the public files of an external website for display/count?
Angry Spartan
1

votes
1

answer
0

views

Form output using bean

Getting my feet wet with JSP/bean action. I'm getting An exception occurred processing JSP page /foo/output.jsp at line 14 on my output page. The java file compiles ok. input.jsp First Number: Second Number: Action: + - * / output.jsp Untitled Document The result: DerInput.Java package stuff;...
Angry Spartan
1

votes
2

answer
2.2k

views

Passed value being treated as empty in CFQUERYPARAM

This is baffling me greatly as I have done this a hundred times, but now it fails me. I am doing a basic query update using CF params, and the primary key for the table is passing an empty value in, resulting in a critical failure. Even if I enter a hardcoded number into the #form.id placeholder#,...
Angry Spartan
1

votes
1

answer
216

views

Managing Certificates In CF Administrator

I'm using keytool for importing and managing certificates. However, when validating a datasource I'm using that requires an x.509 certificate that I need to test the error message isn't helpful: org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and t...
Angry Spartan
1

votes
1

answer
73

views

Retrieving distinct record from inner join

I need to retrieve the first image from portfolio_images, and my following query isn't doing that. It's returning all images for each portfolio record found (this works with DISTINCT), when I only need the first portfolio_images.fullsize record it finds. portfolio id | project_name | location_id | p...
Angry Spartan
0

votes
0

answer
3

views

How to make Ajax work with form_tag in Rails?

I tried multiple Youtube tutorials and StackOverflow questions but my Ajax still doesn't work with form_tag. How can I make it work? Basically I want the td of the course to be removed after selecting the checkbox and clicking the submit button. Here is the code:
Digital Spartan
1

votes
2

answer
1.9k

views

How to read all mp3 files in my computer in java?

My aim is to get list of all mp3 files in my computer(below code in c: directory). But when I run this code, I am getting NullPointerException. But works well for other directory like(e:). public class music { public static void main(String args[]){ extract('c:\\'); } public static void extract(Str...
Spartan
1

votes
2

answer
547

views

Error with multiple PDF Generation in CF

I'm getting an error when producing a multi-page PDF. The pages attribute is not specified for the MERGE action in the cfpdf tag. The line that is causing the issue is: I tried looking in Adobe's documentation bug cannot find an attribute pages for the merge action. Thoughts?
Angry Spartan
1

votes
2

answer
195

views

Java timer speeds up with repaint

I'm currently doing some basic graphics with timer in a JPanel, but I cant figure out, why the timer goes up exponentially. Here's my code: public class panel extends JPanel implements ActionListener { int r = 20; Timer forgo; public panel(){ setSize(400,400); } public void paintComponent(Graphics g...
Spartan
1

votes
3

answer
1.9k

views

CQ5 Library Component Duplicating, Not Overwriting in Apps folder

When you clone a default component in the libs folder to your apps one, it's supposed to override the former, but for me it's duplicating the component's options in the sidekick. I made a duplicate of libs/foundation/components/parsys/ and moved it to apps/-site-/components/content so that I could a...
Angry Spartan

View additional