Santanu

1

votes
0

answer
678

views

_firebase2.default.database.ref is not a function

I'm new to React Native and doing a project following some online tutorials. In given step, I have created a Firebase database (also added some dummy data and set a standard rule). In my React Native project, to fetch data after user being authenticated from Firebase, I'm doing following action : im...
Santanu Karar
1

votes
0

answer
191

views

Cache-Control not working in Angular cli

I want to use Cache-Control in my Angular-cli application so that when i will reload the browser,all files should not come from cache. I used in index.html.But not worked. After that i used .htaccess file.Below is the content of my .htaccess file. # One minute for html,css and js Header set Cache-C...
Santanu
1

votes
4

answer
33

views

How to get result properly from MySQL table

This is my product table and I want to get all product where product_sizes in (Xl, M) I am trying into this code SELECT `id`,`name`,`sell_price`,`product_sizes`,`product_colors` FROM `view_product_listing` WHERE `product_sizes` in ('XL', 'M') return to me productId 15 and 16 but I want to productId...
Santanu Adak
1

votes
0

answer
128

views

Kendo spreadsheet is not binding first time using json

I have a kendo spread sheet which is not loading first time in browser after refreshing it will works. I already searched lots of in google but unable to find any solutions.Please help me how to fixed that issue. I am using asp.net mvc. my spread sheet code is below var customVal = $('#customInput')...
Santanu
1

votes
1

answer
24

views

Using styles' border property consumes more memory when rendering?

This maybe more like a general question than technical - Is using border properties through styles are more memory stressful (in situations) than creating a border by backgroundColor property? Please, consider this following two codes which I wants to bring into the comparison - and situation is hav...
Santanu Karar
1

votes
1

answer
124

views

File not found: index.android.js in any of the project roots - React Native Navigation production packaging

My app runs on React Native Navigation v1.0 and react-native v0.56.0. This runs pretty well on Android simulator without any trouble. Recently, I was planning to make a production build following the steps as described at ReactNative page. At the time of generating the release APK with ./gradlew as...
Santanu Karar
1

votes
0

answer
114

views

How to find country code from phone number in angular?

I want to find country code when user enter his/her phone number to login in the app. User just insert his/her phone number and automatically show his/her country code.
santanu Dhabal
1

votes
1

answer
542

views

“npm uninstall” Vs “npm uninstall --save”

'npm uninstall packageName' removes the package and also updates the package.json file. But from the npm doc - To remove a package from the dependencies in package.json, use the --save flag. Include the scope if the package is scoped. Can somebody clarify what --save flag actually does?
santanu bera
1

votes
1

answer
34

views

Cannot find module 'lodash.isequal'

When I add module here folder in my project I got an error Cannot find module 'lodash.isequal' in compile time. I'm install lodash but got the same error.
santanu Dhabal
1

votes
4

answer
833

views

SQL Statement to order rows by so children follow each parent

I have a category table with id,name,parentid. id------name------parentid 1 a 0 2 b 0 3 c 1 4 d 1 5 e 2 6 f 2 7 g 2 8 h 2 9 i 0 I want a single qu...
Santanu
1

votes
1

answer
3.7k

views

Parse Error while installing the higher version apk

In my application I have a functionality to download the higher version apk have to install the new apk automatically. I am downloading the application from the server and storing it in a folder.Then trying to install it . But getting Parse Error. Some days before it was was working fine , but now g...
Santanu
1

votes
1

answer
285

views

Unit testing custom input and output format

I have been trying to figure out if one can develop unit tests for custom input and output format implementations. I have found this example with MRunit :https://cwiki.apache.org/confluence/display/MRUNIT/MRUnit+Tutorial. It looks like MRUnit is good for testing mapper and reducer only. I also saw t...
Santanu C
1

votes
1

answer
312

views

get the url to connect to marathon app via jdbc

I have a marathon app running which runs postgres. [viz. db-instance] I also have another application running on marathon which needs to connect to the first app using a database URL in the jdbc properties file. [viz app-instance] Both of them are dockarized. When marathon spins out the 'db-instanc...
Santanu
1

votes
1

answer
26

views

Remove a commit from github remote with commit number

I have a 2 days old commit. How can I remove a particular git commit from remote permanently? So that it can not be visible from browser with that commit number.
Santanu
1

votes
1

answer
110

views

How date is stored internally by boost::gregorian::date?

Boost documentation says the following : 'Internally boost::gregorian::date is stored as a 32 bit integer type.' . I found this from the link : http://www.boost.org/doc/libs/1_56_0/doc/html/date_time/gregorian.html . How this 32 bit integer is computed? Is it the number of days since epoch (like the...
Santanu C
1

votes
1

answer
61

views

can we use >,<,>=,<=,like in update query for cassandra db

I can use only = and IN in the update query for Cassandra Data Base.When i am using or like,it is giving error.But for select statements,it is working.can any one tell ,how to use those operator in update query..
Santanu
1

votes
1

answer
67

views

codeigniter check id available in different table in same

working in a project which need to check del id is in likedtable or not. b.deal_available_city, b.shippingType,b.priceType,b.dealId,b.dealUrl,b.dealTitle,b.slug,b.dealDetails,b.extraDetails,b.isHomeScreenBigDeal,b.deal_available_city, b.aditionalDetails,b.status,b.dateAdded,b.categoryId,b.siteId,b....
santanu
1

votes
1

answer
70

views

Shared element transition activity

I am using shared element transition between two activity. In the new activity i am setting values of the shared view using shared preferences. But for the first time the values are not showing up while using animation. From the second time onward the values are showing up. Without animation everyth...
Santanu Sur
1

votes
1

answer
51

views

Want ScreentShot of each View of recyclerView separately

OnBind of recyclervIEW:- @Override public void onBindViewHolder(final ItemViewHolder holder, final int position) { holder. tv_bill_no.setText(context.getString(R.string.bill_no_display , String.valueOf(12)) ); holder.tv_total_amt_label.setBackground(context.getResources().getDrawable(R.drawable.t...
Santanu Sur
1

votes
2

answer
86

views

Bring application to front by its path

How can I bring an application to front by its path? i.e. Assume /Applications/MyApp.app have already started; At a time I want to bring that MyApp.app window to front by passing its path to AppleScript: myApplScript.scpt /Applications/MyApp.app. I tried by this script, but this did not worked for...
Santanu Karar
1

votes
2

answer
555

views

How create Android widget available for all screen

I want to develop an android application widget, that will be available for all application screen not only for Home screen and Lock screen. Suppose User is using an application like navigation. At the same time he wants to control the music application through music widget. I have created the widge...
Santanu
1

votes
2

answer
476

views

Memory efficient way to modify XML in Java

I need to modify a single information in XML file . XML file is about 100 lines . For modifying a single element in whole XML file what would be the most memory efficient way in JAVA ? JAXB is better ? Simple SAX parser ? or any other way .....Kindly suggest .....
Santanu Guha
1

votes
3

answer
1.7k

views

How to get the grand total in main form from subform

This is the screenshot of how the final output should look. However, in the screenshot you will find that purchase total (calculated text label) is the sum total of the first order description Total (calculated at form level): Final Form view section display The above screenshot result is the outpu...
santanu chatterjee
2

votes
0

answer
9

views

Explain the implementation of Euler's Totient Implementation

I have seen this code in a coding platform to efficiently calculate the euler's totient for different values. I am not being able to understand this implementation. I really want to learn this. Could anyone please help me explain this? for(int i = 1; i < Maxn; i++) { // phi[1....n] in n * log(n) phi...
Santanu
1

votes
3

answer
379

views

Regex - How two characters matching (MySql)

Please find my query below. SELECT * FROM demoTable WHERE C_APPLICATION_REF_NO REGEXP '[A-Z]{1}[0-9]{0,14}'; why i am getting result which having two character whereas i am matching only one character and others are numbers. how to modify my regex expression so that i can only fetch one character an...
Santanu Sahoo
1

votes
1

answer
998

views

Value of type 'CGRect' has no member 'makeIntegralInPlace'

I had this working prior to Swift 3 (where frame is CGRect): extraLightBlurView.frame.makeIntegralInPlace() But it's returning error Value of type 'CGRect' has no member 'makeIntegralInPlace' in Swift 3. How to fix this?
Santanu Karar
1

votes
1

answer
77

views

Multiple rows in to single row in SQL Server if each column has only one value per employee

How to do this please help. I have the following data. This is a data sample for week. I want single row per EmployeeName / CrewID (unless there are 2 values for a Employee in a single date). If ORIGINAL DATA is like this : 2018-08-05 2018-08-06 2018-08-07 2018-08-08 2018-08-09 2018-08-1...
Santanu Maulik
1

votes
2

answer
380

views

Need Design & Implementation inputs on Cassandra based use case

I am planning to store high-volume order transaction records from a commerce website to a repository (Have to use cassandra here, that is our DB). Let us call this component commerceOrderRecorderService. Second part of the problem is - I want to process these orders and push to other downstream syst...
Santanu Dey
1

votes
2

answer
255

views

Subtraction Operation Returning Wrong Result

SELECT TOB.SchoolID, SUM (TOB.Rice)- SUM(TDMD.Rice) FROM tblOpeningBalance TOB JOIN tblDailyMidDayDetails TDMD ON TOB.SchoolID = TDMD.SchoolID WHERE TOB.Date
Santanu Maulik
1

votes
1

answer
48

views

Conditional check between tuples

I'm trying to check between tuples values but failed with error as: Binary operator '==' can not be applied to operands of type (@value String!, @value String!) and (String!, String!) Is it possible to do binary checks between two tuples? var guest: (String!, String!) { return ('guest', '1234') } if...
Santanu Karar
1

votes
3

answer
2.6k

views

Copy PHAsset from Gallery to other directory in iOS 9

I came through the following link which demonstrated how to copy file from Gallery to application or other directory (in right answer): How to copy an image file from iOS Photo Library (ALAssetsLibrary) to the local directory of an App? But with ALAssetsLibrary class documentation Apple said its now...
Santanu Karar
1

votes
1

answer
2.4k

views

Assertion failure in -[UIApplication _runWithMainScene:transitionContext:completion:]

This is my actual error: Assertion failure in -[UIApplication _runWithMainScene:transitionContext:completion:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3512.30.14/UIApplication.m:3315. Previously the code was working fine even in IOS 8.4. With IOS 9 plus this error is showing whe...
Santanu Das
4

votes
4

answer
17.3k

views

Regular expression to find “src” attribute of HTML “img” element in PHP

I have a string, inside of that I have an image: '' I could not fetch the image URL with my regular expression. My code is: preg_match_all('/src=([^\\s]+)/', $questArr_str, $images); This code stops its execution when it encounters the space in the image name. It only returns 'http://yahoo.com/test...
Santanu
1

votes
2

answer
8.9k

views

“BufferedReader.ready” vs. “while(BufferedReader.readLine()!=null)”

I am a novice when it comes to java. I wanted to read the stdout from a process started in java. I got the following code upon a google search: Runtime rt = Runtime.getRuntime(); Process proc = rt.exec(args); BufferedReader br = new BufferedReader( new InputStreamReader(proc.getInputStream())); whil...
Santanu
5

votes
1

answer
1.9k

views

What is the purpose of data provenance in Apache NiFi Processors

For every processor there is a way to configure the processor and there is a context menu to view data provenance. Is there a good explanation of what is data provenance?
Santanu Dey
1

votes
4

answer
675

views

Multi-level aggregation from a table

I have a table metrics which has the following columns : stage name --------------------- new member new member old member new visitor old visitor Now I can find out how many new or old members are there by running a query like this : select stage, count(*) from metrics where name =...
Santanu C
4

votes
1

answer
75

views

RegEx: Extract substring from a string which may contain several number of '{' and '}'

` DailyHoroscope.com {if $contact['timezone']} {assign var=local_tz value=$contact['timezone']} {else} {assign var=local_tz value='America/New_York'} {/if} {assign var=tracking_params value='utm_medium={$medium}&utm_source={$source}&utm_campaign={$campaign}'} ` In this code I need to get substr...
Santanu Nandi
4

votes
1

answer
377

views

Analyzing deadlock using Jconsole

I am running a simple program which causes deadlock. final String resource1 = 'santanu'; final String resource2 = 'sahoo'; System.out.println(Integer.toHexString(resource1.hashCode()) ); System.out.println(Integer.toHexString(resource2.hashCode()) ); Thread t1 = new Thread(){ public void run() {...
Santanu Sahoo
11

votes
3

answer
821

views

Thread Synchronization on Integer instance variable

public class Main{ public static void main(String[] args) throws Exception { // Creating objects for class Check(2 different objects) Check c = new Check('s1'); Check c1 = new Check('s2'); c.start();c1.start(); } } class Check extends Thread{ Check(String name){super(name);} private Integer ab = 2;...
Santanu
2

votes
3

answer
507

views

How to stop evaluating lisp form when passed as function parameter?

I am learning Lisp. Now I am trying to create a function that takes some valid Lisp form as argument and returns a function that executes the Lisp forms when called. For example: (defun fn (name action) (setf (symbol-function name) #'(lambda () action))) When I am passing say (+ 4 5 6) the function...
Santanu

View additional