css - transform select option to link
Vote count: 0 Is it possible to display every option of a select as labels / spans? I need to display like that, but to avoid conflicts with existing other solutions, I don't want to change the html. Example: div select item 1 item 2 Expected result div item 1 | item 2 | item 3 asked 4 mins agoThiag...
Nginx: redirect regardless of the url structure
Vote count: 0 I recently moved a subdomain to my main domain but I also changed the url structure. Previously I had pages like http://sub.domain.com/companies/my-company-id/year/2012/charts When moving to the main domain, I removed all the complicated urls to juts get: http://www.domain.com/companie...
interaction and first differences in zelig
Vote count: 0 I have a dataset with this structure: # libraries library(Zelig) # 5.0-12 library(datatable) # create data time <- factor(rep(-12:12, 50)) treatment <- rbinom(length(time), 1, .75) outcome <- orm(length(time), 1, 3) + 3 * b dat <- data.table(outcome, time, treatment) dat outcome time t...
Invoke-SQLCMD fails on SQL Cluster
Vote count: 0 I am trying to use the invoke-sqlcmd on a SQL Server Cluster but it fails to execute and produces the following error: invoke-sqlcmd : A network-related or instance-specific error occurred while establishing a co ection to SQL Server. The server was not found or was not accessible. Ver...
regression line with a factor variable
Vote count: 0 I'm using R to do an analysis of the mtcars data set and I was surprised when I couldn't add a regression line for a factor variable with ggplot2. Specifically the following code takes the automatic transmission column am and creates an additional column of type, factor. library(ggplot...
user if exists isn't working
Vote count: 0 I'm trying to do if user exists function but it isn't working.My other validation works fine. addnewuser.php <?php include ('dbco .php'); include('users.php'); include('general.php'); $newuser = $_POST['use ameinput']; $password = md5($_POST['passwordinput']); if (empty($errors) === tr...
Python Plot: How to denote ticks on the axes as powers?
Vote count: 0 I work on a plot in python using the matplot library. The numbers which I have to generate are very big, so also the ticks on the axes are a large numbers and take a lot of space. I was trying to present them as a powers (for example instead having a tick 100000000 I want to have 10^8)...
Gitignore Asterisk Tilde
Vote count: 0 I have a .gitignore file for an open source project that contains the following line: *~ What does this line - an asterisk followed by a tilde - mean in the context of a .gitignore file? I have tried Googling but to no avail. asked 4 mins agoentpnerd Let's block ads! (Why?)
Elasticsearch CORS HTTPD and AngularJs Communication Issue
Vote count: 0 I am using Elasticsearch to store and query logs. I am creating a front end UI that will display the queried information from Elasticsearch to a webpage using AngularJs. The webpage is ru ing on CentOS 6 Apache HTTPD on port 80. Elasticsearch is ru ing on port 9200. When I query Elasti...
SendMessageTimeout returns FALSE in VB.NET
Vote count: 0 I am trying to find out if a process is not frozen by sending a message to its handler and see if it reaches it. I ca ot use Process.Responding because it looks like the monitored application needs to have a window. This has to work for processes that run without a window. I use this m...
Maven deploy is throwing error
Vote count: 0 **I have a very simple / basic Web app. When I run mvn deploy -e I am seeing the following error in the console.** [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project TestWebApp: Deployment failed: repository element was no...
Why export env within tmux fails
Vote count: 0 Command like the following: ssh hostname 'tmux new -d "export A=whatever && echo $A && while true; do date; sleep 1; done"' After executing this command, ssh to hostname and attach to the tmux session, you'll see that $A is empty. asked 46 secs agoMin Lin Let's block ads! (Why?)
Spawn certain type from string
Vote count: 0 Class World is designed to spawn Actors.Actors can be different types: it's can be Cat, can be Dog, can be Tree, everything, the only similar thing is that they all derived from Actor.And there is also command line, it gives World a string where written next things:what_to_do string_le...
p:inputText values not coming in managed bean
Vote count: 0 I have p:treeTable in which i am having columns which contains all the text fields now after submitting form i want values inside p:inputText in managed bean which is not coming TreeTable: <h:form id="myform"> <p:dialog header="" widgetVar="dlg1" height="200" width="200" dynamic="true"...
div with float right breaking children
Vote count: 0 I have been looking everywhere for help on this issue with Css layout width I have been ru ing into. Whenever I float a div to the right its width won't automatically adjust to the total width of its children. I have observed this effect on all common browsers (Firefox, Chrome and IE11...
binding instead of connecting to IP
Vote count: 0 I have this python code that works only when the TCP_IP is localhost. If I change it to some other server IP for e.g. 23.21.167.61 then it fails to send the file even if the other server is listening. https://github.com/shantanuo/socket/blob/master/server2.py I get an error while bindi...