B. S

1

votes
1

answer
43

views

Am stuck in parsing Push Notifications

I want to fetch value of description from the below response. In body few more key-value pairs are there. I have tried, unfortunately am failing to crack. My code is in Objective C. And My code for Parsing as below NSData *jsonData = [NSJSONSerialization dataWithJSONObject:notification.request.conte...
Pavan padmashali B S
1

votes
0

answer
18

views

HighChart Drilldown axis automatically show the differences instead of actual label

http://jsfiddle.net/sohxow92/ The y-axis after clicking on drilldown automatically show the short label, try 1-2h, and take a look at y-axis you will see, starting from 68, it shows 8, 12 and so on. What config of highchart do I need to modify to make this show the original label? Following is part...
B.S.
1

votes
3

answer
40

views

Self Join Table To Produce The Output MSSQL

Could you please help produce the output table from the below input table(screenshots are provided.Basically I would need to get the pcn from the cn based on the pid in each row.I used a case when statement but the data is huge and it's not a sustainable way,hence the self join would be fine.But I a...
Sulfikkar B S
1

votes
1

answer
141

views

How to run a command before browsersync to reload

I'm using browser-sync to reload my page after some change. But now I need to run browserify before the page reload. I'm using this command to start server: browser-sync start --server --files '*.js' And I'm using this command do build a file: browserify main.js -o bundle.js Is there something like...
ailton.b.s.j
1

votes
1

answer
439

views

Angular Translate implementation

Please suggest me an implementation for translation of angular app to different languages. I have used ngx-translate also. But wan to translate entire app at once?
Supreeth B S
1

votes
2

answer
32

views

Tkinter Key Binding in Different Regions of Window

I am trying to make a Tic Tac Toe program for 2 players, and so I need to be able to have mouse clicks in certain areas of the window do different things. How do I do that? This is what I have so far. from tkinter import * # Creates Window tk = Tk() canvas = Canvas(tk, width=600, height=600) tk.tit...
B S
1

votes
0

answer
37

views

CMD script incorrect return code for end-of-line regex findstr command

In a CMD script, I am trying to determine if a string has a '/' as the last character or not, using a regular expression with the findstr command. However, in both cases, I am getting a return code of 1. @echo off SETLOCAL enabledelayedexpansion SET Project=/Folder1 ECHO.%Project% | findstr /R /C:'/...
B S
0

votes
0

answer
3

views

Unable to format json output to nested-json in powershell

I have a powershell json output in this format. { 'Name': 'web-app', 'BuildingBlock': 'create-web-app', 'TemplateName': 'qa-bb-create-web-app-V1.1.1', 'TemplateID': 1809 }, { 'Name': 'web-app', 'BuildingBlock': 'destroy-web-app', 'TemplateName': 'qa-bb-destroy-web-app-V1.1.1', 'TemplateID':...
B S
1

votes
1

answer
748

views

Is there quick way to check user access using ALAssetsLibrary?

I think this is a really bad way to check user access to the resources. Is there better way to get user access? ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init]; // create library ALAssetsLibraryAssetForURLResultBlock resultblock = ^(ALAsset *myasset) { accessGiven = YES; return ; }...
B.S.
1

votes
2

answer
3.4k

views

How to enable horizontal scroll bar in WebView

I am loading a string of text and an image to the Webview. Upon zooming i want to make both the vertical and horizontal bars to appear. i am using android:layout_width='fill_parent' android:layout_height='wrap_content' and wvEditorial = (WebView) findViewById(R.id.wvEditorial); wvEditorial.setVert...
Bimal Bose B S
1

votes
1

answer
1.3k

views

ALAssetsGroup, how to check if exists?

I have my ALAssetsGroup object. For example: ALAssetsGroup *_someGroup. But user can send the application to background and delete this album. Is there any check if assetsGroup is proper? [_someGroup numberOfAssets] returns the *old number of photos* even when the group doesn't exist [_someGroup e...
B.S.
1

votes
1

answer
2k

views

Command line loop through directories

I'm trying to write a batch file that will be run on a parent directory and will loop through subdirectories removing all but the newest 3 files from each subdirectory. What I have now recurses through the subdirectories but only skips the 3 newest files that it comes across, not the three newest fi...
B_S
1

votes
1

answer
354

views

Set ivar value from category

I use a specific API, which has some class, for example ClassA. ClassA has a property importantProperty, ivar = _importantProperty, setter = setImportantProperty What I need is actually to handle in debug when is property is changed, and what values are set to this property and print the stacktrac...
B.S.
1

votes
2

answer
590

views

Image not showing up in img tag

I am working on using the OMDB API and I get the url of the poster of a movie. For example: https://ia.media-imdb.com/images/M/[email protected]_V1_SX300.jpg When you view that image in the browser by clicking on the link, it is perfectly visible. But when I use it in...
B_s
1

votes
2

answer
1.3k

views

Twython getting tweets from user

I am using Twython to get a stream of tweets. I used this tutorial, expect that I am not using GPIO. My code is the following: import time from twython import TwythonStreamer TERMS='#stackoverflow' APP_KEY='MY APP KEY' APP_SECRET='MY APP SECRET' OAUTH_TOKEN='MY OATH TOKEN' OAUTH_TOKEN_SECRET='MY OAT...
B_s
1

votes
1

answer
34

views

CSS Button overlaps box on mobile

I add a blog sign up form to the sidebar of our blog page and styled it with CSS. It looks fine on desktop view, but when you open the page on a mobile phone then the button overlaps the bottom of the page; https://screentimelabs.com/parenting-hacks/ enter image description here Here's the code that...
Oliver B-S
1

votes
2

answer
82

views

MATLAB execute function for multiple variables in loop

To process data in MATLAB I have to execute a certain function, let's call it function(). Since there is much data to be processed, like large array Time or Voltage (but many more) I execute those one by one like this: TimeNew = function(Time); VoltageNew = function(Voltage); ... etc So this is done...
B_s
1

votes
1

answer
566

views

Appium, Instruments crashed on startup

When I updated Xcode from 6.4 to 7.2 my Appium UI Automation stopped working, with instruments crashing. Appium: 1.4.13 Xcode: 7.2 Here are the error logs: info: Launching instruments info: [debug] Attempting to run app on iPhone 6 (8.4) info: [debug] Spawning instruments with command: /Applications...
B.S.
1

votes
1

answer
1.9k

views

The system cannot find the file C:\ProgramData\Oracle\Java\javapath\java.exe

I have installed Java 8 on my PC and programs are getting compiled. When i try to execute it using cmd prompt it is showing me the following error: 'The system cannot find the file C:\ProgramData\Oracle\Java\javapath\java.exe.' Please help me.
B S
1

votes
1

answer
372

views

Java spring MVC - Student database. Not able to edit the student document

I have created a java spring MVC web application for student management, Iam able to add the student . But when i click on edit student it shows HTTP 400 - The request sent by the client was syntactically incorrect. Controller : package com.akhil.controller; import java.util.Map; import org.springfr...
Akhil B S
1

votes
1

answer
654

views

Packaging Java SE application with weld into executable Jar

I Got the following exception while trying to run JAVA SE executable jar from command line: Exception in thread 'main' org.jboss.weld.exceptions.DeploymentException: java.lang.Internand at org.jboss.weld.executor.AbstractExecutorServices.checkForExceptions(AbstractExec at org.jboss.weld.executor.Abs...
Géraud Willing B-S
1

votes
1

answer
526

views

npm package for merging html files

I've a requirement where in I need to merge multiple HTML files into one. I need to remove the HTML tags and the HEAD tag and merge the two HTML files to have one HTML tag and HEAD tag. Are there any nodejs packages which already do this. Because I do not want to reinvent the wheels. Thank you
Shashank B S
1

votes
1

answer
578

views

Unable to run Docker command

I have installed Docker for Windows, and trying the run a simple command, but I am getting the below error: error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.29/containers/json: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configurati...
Jagadisha B S
1

votes
3

answer
211

views

How to install apache in ubuntu-16.04?

Earlier I had installed apache without issues. But after formatting my laptop, I am facing this problem. According to the error messages I search the solution codes and go through those codes. But it is not working.
S.B.S.Kaushalya
1

votes
1

answer
43

views

recycle view not showing

I'm not able to see the recycle view, not sure where It has gone wrong. It would be great if you can help me. Fragment public class CallDurationFragment extends Fragment { final FirebaseDatabase database = FirebaseDatabase.getInstance(); ArrayList callList = new ArrayList(); ArrayList callListTemp =...
Anitha B S
1

votes
1

answer
75

views

Convert millisecond to 24 hours format?

The below code will convert it to 12 hours format. How do I get a 24 hours format? String time = cursorInbox.getString(indexDateInbox); Long timestamp = Long.parseLong(time); Calendar calendar = Calendar.getInstance(); calendar.setTimeInMillis(timestamp); DateFormat formatter = new SimpleDateFormat(...
Anitha B S
1

votes
1

answer
1k

views

vue pwa in docker - cannot find module 'chalk'

this is my first question on stackoverflow. Thank you all for this absolute fantastic forum! I try to get a vue pwa in docker running. I used the vue-cli to setup the pwa application. Installing and running local is no problem. Then i tried to dockerize the project. I tried with following docker co...
B.S.
1

votes
0

answer
62

views

How to use Predicate<String>?

I was analyzing some .exe file to covert it into source code, I was not able to understand the lines which had 9__0. What does it mean? Why we use Predicate? Could anyone help or it is a junk code generate by .Net Reflector? Console.WriteLine('Processing log file for failed case...' + str4); while (...
Anitha B S
1

votes
1

answer
46

views

Why my program working only with pos or neg numbers?

I need to write a dividing program which take 2 decimal numbers( they can be positive or negative) and show answer in binary code. Program is working but only with pos or neg numbers. When I comment neg (under NeNegSum, I marked it) it works with neg numbers and with pos when it not commented. What...
B.S.
1

votes
1

answer
0

views

Is there quick way to know what cell is out of device screen in UITableView?

I have tableView with a lot of cells. I need to remove cells, which user passes while scrolling the tableView. cellForRowAtIndexPath is called when user scroll to this cell to perform its content and the question is there similar method to know what cells are out of the screen while scrolling?
B.S.
1

votes
1

answer
1.9k

views

reading custom headers in servlets

I have a requirement to set custom headers in http response and read them whenever required. I use the following code to read the header. servlet1: protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.addHeader('cust-header',...
Dilip B S
1

votes
1

answer
146

views

Does libpng allow to read not the whole image to the memory

I know that libJPEG can read not the whole image, using jpeg_read_scanlines . Does libPNG have such opportunity? I see only png_read_png method.
B.S.
1

votes
1

answer
287

views

Is it possible that I can upload adobe brackets to cloud and use it as our own cloud code editor?

Well it might sound wired but is there a a chance as the brackets is all HTML CSS JS code editor. I tried to look at the core but there is too much going on. So if someone had already found out. Please share. Thanks in advance
1

votes
2

answer
906

views

NSPredicate format

I want to filter NSArray with using NSPredicate predicateWithFormat: method. I have some variable, which I want to use several times in this format. I do not want to write it several times. Here is an example: NSString *someText = @'some text'; NSString *str = [NSString stringWithFormat: @'(field1 C...
B.S.
1

votes
3

answer
1.5k

views

Flexible width constraint

I got stuck with resolving constraints, perhaps someone can help: Here is the case: I need myView to have flexible width according to superview width. If superview has more width than 500 -> myView should have 500. If superview has less width then 500 -> myView should take all superView width. [NS...
B.S.
1

votes
1

answer
2.1k

views

Joomla search in specific category

For my website I have a category which contains articles related to FAQ items. The standard search function searches the whole site and offers no personalization. I need to search only in one specific category with a search module in Joomla , what would the easiest way to do that? I have tried Smar...
B_s
1

votes
1

answer
227

views

jQuery cloning of table row breaks button

I have a html table (Bootstrap 3) which has a button in its last td of each row. This button has a class btn-add-row. In my Javascript I use (from this question): $('.btn-add-row').click(function() { var $tr = $(this).closest('tr'); var $clone = $tr.clone(); $clone.find('input').val(''); $tr.after($...
B_s
1

votes
1

answer
562

views

npm ref could not locate the bindings file error

I'm using the package ref in my nodejs project that makes use of electron. But the problem is when I use ref in my JS code, it throws an error that it could not locate the bindings file. Here's the error Error: Could not locate the bindings file. Tried: → C:...\EMVModule.asar\node_modules\ref\bui...
Shashank B S
1

votes
2

answer
2.9k

views

Python tkinter canvas transparent

I am looking to make the background of the tkinter canvas transparent, but still have Mouse events of the canvas, here is my code, I am on Windows 10, Python 3.6: from tkinter import * import time WIDTH = 500 HEIGHT = 500 LINEWIDTH = 1 TRANSCOLOUR = 'gray' global old old = () tk = Tk() tk.title('Vir...
B. S
1

votes
1

answer
77

views

Is it possible to display segment of the UIImage?

Have have UIImage with some rounded shape. Is it possible to display somehow some sector of this UIImage. For example only the region from 0 degrees to 45 degrees? Help me please.
B.S.

View additional