Balachandran

1

votes
2

answer
204

views

United states City coordinates to plot using plotly

I need the coordiantes(lat/long) details for all the cities in US. Is there any package/function? There is map_data()from gglpot2 package for states and counties. For states there is map_data('state') and for counties there is map_data('county') that has all the required coordiantes details. Similar...
1

votes
0

answer
48

views

Printing data.tree in Shiny app without wrapping

When I try to print a data.tree object in a Shiny app, the text wraps around. This causes the tree to be distorted. I have recreated this below with the GNI2014 data and printing some of the columns again. Server Code: output$text
1

votes
1

answer
647

views

Authlogic root url based on authenticated state

I'd like to be able to set the root url in routes.rb based on the logged in/out state of Authlogic. Here is an example of what I need to do: root :to => 'users#index', :constraints => lambda { |request| # ??? } root :to => 'welcome#index' get '/' => 'users#index', :as => 'user_root' This would e...
Jey Balachandran
1

votes
1

answer
4.6k

views

Display the score in unity

I am completely new to unity. I am making a simple 2d platformer game using unity. Can somebody help me to display the score on the game. I am storing the value on a int variable. Below is the c# code i used for the distance covered. using UnityEngine; using System.Collections; public class distanc...
1

votes
1

answer
1.6k

views

prestashop 1.4 to 1.6 image missing issue

I've upgraded a Prestashop site manually from 1.4 to 1.6.I can get the category images to appear but not the product images. My product path on the old 1.4 site takes the following route .../img/p/11-638-home.jpg but version 1.6 is asking for Original image is missing or empty (/.../.../../img/p/1/1...
Balachandran
1

votes
8

answer
2.3k

views

React js form validation

Is there any simple form validation plugin available for react js?? What is the simplest way to do form validation using react js? Kindly answer me Since I am new to reactjs, I can't able to figure out the form validation technique.
Balachandran V
1

votes
1

answer
23

views

How to modify this URL in .htaccess?

I want to modify URL with a check. If there exists experiment as second folder, then do this {site}.com/dashboard/experiment/closed/.../ to {site}.com/experiment/closed/.../ If no experiment found in path, then don't do anything. For eg {site}.com/dashboard/ex-view/closed/.../ How do I achive this...
Kailaash Balachandran
1

votes
2

answer
1.1k

views

Getting NULL value for barcode decoding

I have added the Zxing.Net from NuGet Package Manager in VS 2015. I tried the following code for decoding a CODE_128 barcode. But its giving null as result. The same image is getting decoded successfully in almost all the online barcode reading websites including Zxing Online Decoder. using System;...
1

votes
2

answer
978

views

Is it possible to pass event to an OnBegin function of an Ajax form?

I have an Ajax form in my application.I want to pass the event to OnBegin function and then use event.preventdefault() which will stop the form from submitting and then on checking some conditions I'm trying to submit the form manually.But it's not working and I'm not able to make out why. Ajax.Begi...
Jibin Balachandran
1

votes
1

answer
1.1k

views

How to handle notifications in React-Redux depending on state?

I have a support form that delivers success message from an API after submit. In the form component class, I got mapStateToProps() that gets value from the reducer. function mapStateToProps(state) { return { contact_form: state.contact_form.all} } and to show the notification to user, I do if(this....
1

votes
1

answer
265

views

Display Buffering/Loading message in Shiny Dashboard

I have done Shiny dashboard with 4 different tabs in the Side panel. It's all working perfectly fine. The only thing is, the fourth tab is a plotly output. When I click the tab, it should display the entire US county map. It takes nearly 30 seconds to load the map after the tab button is clicked. U...
1

votes
1

answer
727

views

can anyone explain pathfinder algorithm used in Fpga routing?

How does the pathfinder algorithm work in fpga routing? I have an oral exam on this topic next week... so Can anyone explain the two iterations clearly with an example may be ...thanks in advance
1

votes
2

answer
189

views

Different levels on unity game

I am planning to make a android game using unity game engine. I would like to include different levels as we see in angry birds and some other games. My question is whether I have to build different scenes for each levels. I am completely new to this platform.
Kiran Balachandran
1

votes
1

answer
2k

views

Why I can not login to magento 2 backend using google chrome

I am using magento community edition 2. I am not able to login to back end of magento. I know this problem can be because of chrome not accepting cookies. In previous versions(Magento 1.9.1,1.9.0, & so on) I normally go to app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file and comment th...
Balachandran
1

votes
1

answer
30

views

How to use LIKE and OR together in a Query

The following is my code for altering a procedure which will search for a book name or book author: ALTER PROCEDURE [dbo].[SearchBook] @Search_Var varchar(50) AS BEGIN SELECT * FROM Book WHERE BookName LIKE '%@Search_Var%' OR BookAuthor LIKE '%@Search_Var%' END I want it to display books by mat...
Jibin Balachandran
1

votes
1

answer
36

views

Append unit to a XML column value in SQL Server

I have a table with a XML column for storing the file details. Now I want to update the size node in the XML column with KB or MB according to the value. Sample data: PV_1_PV_4126_C-482N-25457-005_V1.pdf 02/21/2017 02/21/2017 2120 02/21/2017 755 Expected result: PV_1_PV_4126_C-482N-25457-005_V1.pdf...
Jibin Balachandran
1

votes
1

answer
83

views

How to use Ninject's Named bindings in Simple Injector?

I have an MVC application using Ninject for DI and I'm planning to migrate the same to Simple Injector. But I couldn't find any alternatives for replacing the named binding of Ninject with Simple Injector. Binding: kernel.Bind().To().Named('Senior'); kernel.Bind().To().Named('Junior'); kernel.Bind()...
1

votes
1

answer
1.3k

views

Can I change the sender name for sending email in MVC .net Application?

I have the following code.Now I don't want to display my email address as sender address instead I need a friendly name. Is there any way to achieve this? MailMessage mail = new MailMessage(); SmtpClient smtpServer = new SmtpClient('smtp.gmail.com'); smtpServer.Credentials = new System.Net.NetworkCr...
Jibin Balachandran
1

votes
1

answer
5.1k

views

How to crop and save a jpeg image file in c#

I'm trying to crop a jpeg file using the (x,y) coordinates,width and height and save the output in the same location(i.e replace). I tried the below code but its not working. public void CropImage(int x, int y, int width, int height) { string image_path = @'C:\Users\Admin\Desktop\test.jpg'; var img...
1

votes
3

answer
3.5k

views

How to set Filepicker in java swing to select only specific file ? eg . only files with .mo as extension

The file needs to be the input file for the tool to process it further. I'm new to java.. would aprreciate any help. Here's my current code I have for the filepicker. private void browseButton1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO a...
4

votes
2

answer
1k

views

iOS 8 UICollectionViewLayout Switching Mysterious Crash in Swift

I am new working with UICollectionView. I am trying to switch UICollectionViewLayout from grid to list and vice versa using the below code: @IBAction func switchLayout(sender: AnyObject) { isGridLayout = !isGridLayout collectionView?.reloadData() if isGridLayout { collectionView?.perform...
22

votes
4

answer
12.8k

views

Delete unused webpack chunked files

I'm looking for information on how to delete old webpack chunked files. Here is my current webpack configuration: var path = require('path'); var webpack = require('webpack'); module.exports = { debug: false, outputPathinfo: true, displayErrorDetails: true, context: __dirname, entry: { common: ['./s...
1

votes
3

answer
1.3k

views

How to create a disabled textbox in MVC razor view

I want to create text area which will be disabled or invisible at starting. There's a dropdown list, on selection of last option i.e other, it should enable or make the text area visible and take the value and pass to controller on submission.
Jibin Balachandran
2

votes
2

answer
636

views

ASP.NET Find an IP Address

I Want to get an ip address or domain name. i have a website like www.abc.com in my site i use generic handler. i have one client website www.cde.com. my client use http request to get some details from my site or my server. the client request is get in generic handler and perform some task and th...
Balachandran M.k.
3

votes
2

answer
181

views

Neo4j Spatial Index Deletion

How can I delete a spatial index and all it's data? I have nodes I added to this index, but now I have added it to another spatial index. I no longer need the old index.
2

votes
3

answer
5.8k

views

Get Domain Name using asp.net in Generic handler page

I want to get domain name not for remote ip. i have two domain(website). example www.a1.com and www.a2.com. in a2 domain send a request to a1 domain's page like GetRequest.ashx the example of http request is http://www.a1.com/GetRequest.ashx?username=bala&password=123456 in my GetRequest.ashx page e...
Balachandran Kumar
29

votes
5

answer
16.6k

views

File upload with Backbone

I'm using Backbone.js in a Rails app and I need to do file uploads as part of one of the Backbone models. I don't believe Backbone allows for multi-part file upload out of the box. Has anyone managed to get it working via some plugin or with another external lib? How can I extend Backbone.js to supp...
1

votes
2

answer
44

views

Update of column values on condition

I wanted to update the column values on satisfying condition. I wanted the values to 1,2,3,4,5,... I tried this query but its behaving in a strange way. I'm getting the values starting from 2 i.e 2,3,4,5,.. declare @id int; set @id = 0; UPDATE table SET id = @id + 1, @id = @id + 1 WHERE col4 = 100...
3

votes
2

answer
885

views

How to get Table View to scroll above Image View?

I'm using a table and image in my program. I placed the image on top and table just below that. Now I need to keep the Image static and On scrolling I want the table to go above the image according to the scroll height.
Jibin Balachandran
4

votes
1

answer
5.4k

views

How to create Custom Navigation Bar like the following image in swift?

I am working on a project where i need the exact same configuration in the navigation bar.Since the height of navigation bar is fixed I am not able to create one like in the given image.I am using a UITableViewController embedded inside a Navigation controller. Does anyone know how to do this? Thank...
Ajit Balachandran
1

votes
4

answer
83

views

Can we use a CASE in BETWEEN

I know that we can use BETWEEN inside a CASE. But I have a situation where I want to do the other way round. I know that we can't return more than one value from case statement.But how to achieve the below situation?? select * from #Results where Num Between case when @StartIndex>0 then ((@StartIn...
Jibin Balachandran
3

votes
4

answer
2.6k

views

How to get event name in vb.net?

Here there are two handlers in a particular procedure then how to get which event handler has performed. for example Private Sub TextBox1_Events(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged, TextBox1.GotFocus End Sub how to get which event has occured.
Balachandran
3

votes
2

answer
2.2k

views

Sunspot Solr specify offset and limit

I am aware of how to paginate a solr search via the sunspot gem. But I would like to specify the exact start row and maximum rows to fetch. For example, something like: Post.search do rows(:offset => 2, :limit => 23) end How can I do this?
Jey Balachandran
3

votes
2

answer
472

views

awk - Print last column value with default value if null

I am using awk command to print the values. For the last column, if no value is found, I need it to print 'NA'. Ex., in the below code, when $3 is NULL, I need to print as 'NA'. Is there anyway i could include a 'if'/'isnull' condition or something. Please help. awk -F' ' '{ print $1,'|', $2, '...
3

votes
1

answer
395

views

plotly visualisation is too slow for United states county map

My data set has about 90K rows with follwing columns state_name, county_name, county_lat, count_long, value_x A similar direct example just for California counties here Although it works fine for one sate, when I do for all the states in US, the plot is slow when i try to zoom in and out and also ho...
2

votes
2

answer
732

views

PHP Curl downloads empty file(.gz) from a https URL

I'm trying to download a .xml.gz file from a https URL with authentication. Here is my current code. $remote_file = 'https://path/filename.xml.gz'; $local_file = 'test.xml.gz'; $username ='21'; $password ='qwerty'; $ch = curl_init($remote_file); $headers = array('Content-type: application/x-gzip',...
Kailaash Balachandran
1

votes
6

answer
1k

views

Which is the right database for the job?

I am working on a feature and could use opinions on which database I should use to solve this problem. We have a Rails application using MySQL. We have no issues with MySQL and it runs great. But for a new feature, we are deciding whether to stay MySQL or not. To simplify the problem, let's assume t...
Jey Balachandran
2

votes
0

answer
558

views

ipv6 static routing is not working

wondering ipv6 static route default route nothing working, only can ping the directly connected interface, but sh run command gave the static routes which I created to other networks, but on the sh run output I saw the autoconfig static route which I created to obtain global unicast addresses and on...
39

votes
7

answer
33.8k

views

Suppress Ruby warnings when running specs

I'm looking for a way to suppress Ruby warnings when I run my specs. spec spec/models/account_spec.rb I receive warnings such as: DEPRECATION WARNING: ActiveSupport::Dependencies.load_paths is deprecated, ... warning: already initialized constant SOME_CONSTANT_NAME Removing the ActiveSupport warnin...
Jey Balachandran
2

votes
1

answer
558

views

Can Laravel 5.1 application run without .htaccess rewrite?

So my university's webmaster says the server space they allotted me does not support htaccess rewrite rules. But from my understanding of Laravel, .htaccess must be enabled. Are there any workaround for this? My .htaccess code goes like this Options -MultiViews RewriteEngine On # Redirect Trailing S...

View additional