VSB

1

votes
1

answer
41

views

Modelsim log progress to output file

I'm running Modelsim to do a long simulation. I want to have an ouput like this for my progress report to be logged in a file: Mon Oct 29 21:05:57 IRST 2018 Section 1 Mon Oct 29 21:05:57 IRST 2018 Section 2 Mon Oct 29 21:05:57 IRST 2018 Section 3 ... I want to have a tcl script to create thi...
VSB
1

votes
1

answer
39

views

Execution failed for task ':app: lintVitalRelease' due to `Could not find multidex-instrumentation.aar`

When I try to sync my app module inside android studio it prompts error: ERROR: Failed to resolve: multidex-instrumentation Affected Modules: app When I try to run gradlew assemble Execution failed for task ':app:lintVitalRelease'. Could not resolve all artifacts for configuration ':app:debugAndroid...
VSB
1

votes
1

answer
2.1k

views

Thermal Printers with bundled android SDK?

I'm looking for a receipt printer which can be controlled by android devices over WiFi or Bluetooth. I have found some printers from Bixolon and Epson which have such capability. I want to if anyone knows other vendors which have receipt printers which support for Android Devices or not? If yes, I w...
VSB
1

votes
1

answer
905

views

prestashop: Display method results in JSON

I'm going to develop a method inside my Prestashop module to fetch list of products and return the result as JSON. I have no problem to get list of products however I don't know to use which hooks and how to return JSON result instead of returning back to a Prestashop page.
VSB
1

votes
1

answer
107

views

SQL Server: hierarchy implementation for records in the same table

I've created a table named sections. Its structure is as below: CREATE TABLE [dbo].[sections] ( [_id] [int] IDENTITY(1,1) NOT NULL, [title] [nvarchar](250) NULL, [section_level] [int] NOT NULL, [parent_section] [int] NOT NULL, [order_in_parent_section] [int] NOT NULL, CONSTRAINT [PK_sections] PRIMA...
VSB
1

votes
1

answer
820

views

Minimum Required Framework for MVC 5.2.3

What is the minimum required version of .NET Framework to run ASP.NET MVC 5.2.3? In https://blogs.msdn.microsoft.com/dotnet/2015/07/20/announcing-net-framework-4-6/ Microsoft noticed their updates for MVC 5.2.3. Besides, I see these properties in my VS2013 IDE: Is the Runtime Version, is the requir...
VSB
1

votes
2

answer
1.8k

views

Android 6.0 backward compatibility

Today I was testing one of my application over Android M (6.0). I understood that permission granting in this version is changed and I need to make some changes to make my application compatible with Android 6.0 (here is the details). As I understood, for example If I want to grant access to write s...
VSB
1

votes
1

answer
474

views

Telegram webhook: Is ssl mandatory?

I want to know if SSL certificate and URL starting with https:// is mandatory for webhook of a Telegram bot? As it noticed in https://core.telegram.org/bots/api#setwebhook it seems it is necessary, but I'm not sure about this.
VSB
1

votes
1

answer
158

views

Android: Alarm is not triggered sometimes

I have an application which schedule some activities using AlarmManager service. It works most of times, however sometimes it does not send broadcast and so broadcast receiver does not receive anything (even when the app is up and running and is front activity). I read the alarm time from a TimePic...
VSB
1

votes
1

answer
3.3k

views

Android: URI for file on external storage using FileProvider

I've ported my application to android API 24. My application downloads file to a folder called test in external storage, and after download it will open the download file. As an example consider file with address /storage/emulated/0/test/video.mp4. Its address is created usign this syntax: File fil...
VSB
1

votes
1

answer
142

views

Android: Retrive payment information from receipt page of my website

I'm going to extend my website and develop an android application for it. I used payment gateway of a local bank for shopping inside my site and The flow of bank payment in simple word is as follows: Step 1- I call bank payment page with required fields like merchant id, amount of payment and some o...
VSB
1

votes
2

answer
51

views

Android: How persistence is kept while app is killed?

Android app guide suggest that use models separated from views to have persistence and explains: Persistence is ideal for the following reasons: Your users don't lose data if the Android OS destroys your app to free up resources. Your app continues to work in cases when a network connection is fl...
VSB
1

votes
1

answer
0

views

C# Linq-to-SQL: find childrens up to three levels

I have a shop with categories stored in database like below: Categories are nested in each other using ParentCategoryId and root parent ID is 0. I want to know how can I retrieve list of categories at most up to 3 levels not more than that? Note: A thing that is important for me is that the number...
VSB
1

votes
1

answer
0

views

matlab: extend matrices after union of their related time stamp

I have to matrices, A(n,2) and B(m,2). Both of them show voltage of a signal on defined moment of time. In both of these matrices, first column shows time and 2nd column shows voltage on that moment of time. For ease of demonstration I showed them in horizontal form in below picture: I'm going to c...
VSB
1

votes
1

answer
1.1k

views

Android rotation: Why fragment not restored by TAG?

I have an activity called MainActivity with a fragment inside called 'HomeFragment'. I want to restore fragment after screen rotation, however something seems missing. I followed below process: save fragment by using getSupportFragmentManager().putFragment(...) during onSaveInstanceState try to rest...
VSB
1

votes
2

answer
265

views

Gitlab: copy project to other git lab repository

I want to copy a gitlab project to other repository which be completely independent from original project. For this reason I tried forking original project into another project. But inside original project, maintainer still can see list of forks and knows where is other forks are maintained. I want...
VSB
4

votes
2

answer
117

views

Fragment does not respond to UI updates and eventbus events after resume

I have a SearchFragment class which extends a class called BaseFragment in which onResume and onStop are overridden as below: @Override public void onResume() { checkEventBusRegistration(); super.onResume(); } @Override public void onStop() { EventBus.getDefault().unregister(this); super.onStop(); }...
VSB
1

votes
1

answer
713

views

ASP.NET MVC: seperatation of concern for normal/admin user

I'm going to separate admin and normal user section of my ASP.NET MVC 5.2 project. My admin area and normal user area have much things shared, however privileges and details for each of them is different. Right now I don't know how to separate admin area and normal user area. I don't know if I shoul...
VSB
1

votes
4

answer
1k

views

receiving a response of a request which may take long time

I'm going to develop an android application which send some requests to server. These request may take long time to be processed in server-side; May be 10 seconds, 1 minute or even longer. I send my requests using HTTP methods to server (such as get or post). I want to know how can I be informed lat...
VSB
1

votes
2

answer
73

views

(SemanticUI + React) Changing HTML elements based on screen size best approach?

For example lets say I want to remove images when display size falls below 600px width. What would be the cleanest, fastest and most maintainable method to do that? Kristy Joined in 2013 Kristy is an art director living in New York. 22 Friends jQuery method EDIT: Definitely not using jQuery (it work...
VSB
1

votes
2

answer
59

views

gitlab: history of commits are available after merge request

I have forked a project and doing some changes on it during several commits. I want to know if I submit a merge request, history of all commits are available to maintainer or not? I'm looking for a solution which all commits are aggregated as one commit and I don't know if it does happen during merg...
VSB
1

votes
1

answer
543

views

Google Map API: How to manage different “address_components” in gecoding results?

Consider below JSON response of google map gecoding response. It consists of an array of address_components with five elements. Usually developer use its first item (item with index 0) to find address elements such ac route and locality and formatted address. But this is not the best alternative. F...
VSB
1

votes
2

answer
1.8k

views

List of deleting rows in datagridview

I got a DataGridView which just allows user to delete rows (with no direct editing or adding on DataGridView). I will update my database information whenever user deletes rows on DataGridView (there is no binding among DB and gridview). I have no problem to have deleting row when user is deleting on...
VSB
1

votes
1

answer
327

views

ASP.Net MVC Models: MinLength Limit only in StringLength validation

I'm going to create a property for my Model which got minLength = 6 but no limit for its maximum. Using below syntax, Visual Studio says there are no overloads for below syntax and I should put MaxmimumLength as first parameter. So are there any MAX_LENGTH constants or such thing to put as first pa...
VSB
4

votes
1

answer
1.1k

views

Pop back stack without onresume called

I got activity a. then I put b in backsatck and display it; I want to call c such that a not called again however I want to pop B from BackStack such that return back from C I want it returns to A. Here is the scenario: A->B C Called: A->C C closed onback pressed: return back to A However When I po...
VSB
14

votes
1

answer
8.1k

views

Android: Subscribe to Firebase Cloud Messaging(FCM) Topic

According to Firebase cloud messaging documentation, for subscribing a user to a topic I need to call FirebaseMessaging.getInstance().subscribeToTopic('news'); In my application, I need all users to be subscribed to my cloud messaging topic. Since return value is void, the question is how can I unde...
VSB
2

votes
2

answer
45

views

Kotlin coding conventions: Horizontal whitespace

In coding convention of Kotlin, in white spaces sections it is noticed that: As a general rule, avoid horizontal alignment of any kind. Renaming an identifier to a name with a different length should not affect the formatting of either the declaration or any of the usages. What does this mean? Rena...
VSB
4

votes
2

answer
1.6k

views

Dipaly farsi text in android webview (for phones not supporting farsi)

In farsi letters are attach together to form writing scripts. However when I save HTML pages using 'UTF-8' or 'Windows-1256' encdoings, and try to display them using webview in android, letters are diplayed seperately and in left-to-right direction (instead of RTL). I should notice that this case is...
VSB
5

votes
2

answer
6.2k

views

How to select all fields plus some new fields in LINQ?

I got an RDLC report Date Format stored in SQL DB is Georgian. I want to Display date in report as Persian. Using Linq i want to select all fields of DB in addition some new field to be used as Persian Date Fields. I used below syntax: var invoices = from invoice in dbContext.eve_Invoices select new...
VSB
2

votes
0

answer
459

views

Android SeekBar popups and LabelFor Property

I want display text popup above android SeekBar, like picture below (snapshot from Goole Play Books app). I have a look in SeekBar properties in XML Layouts and found a LabelFor property. I'm wondering if it helps about my problem or not? Anyway my main concern is how to display such popups?
VSB
2

votes
2

answer
582

views

ASP.NET MVC5 Identity: Avoid changing logged-in user after registration

I want to change the default Register Action of MVC5 ASP.NET Application.My Scenario is such that authorized users (such as admin) will login and they can create new users. However using below snippet, after creating user, current logged-in user will change to registered user. How can I change belo...
VSB
2

votes
2

answer
2.8k

views

qt development on linux using eclipse?

In Linux, How can I create QT applications in Eclipse? I've seen some integration plugins in eclipse.org however it seems they are discontinued and not supported anymore. Since I'm going to develop a project which it may be developed for some years from now, I want to find a suitable solution for th...
VSB
12

votes
3

answer
13.8k

views

Android ViewPager: Update off-screen but cached fragments in ViewPager

I have a ViewPager which contains several TextViews inside its fragment which they have different font sizes. In addition, I got buttons for increase/decreasing font size which calculate font size of each textView by adding its default size plus a value called STEP (which changes by inc/dec font siz...
VSB
6

votes
1

answer
1.1k

views

Android Firebase Cloud Messaging(FCM): Will subscribeToTopic do automatic retries?

To Subscribe to a topic in an android client we should call: FirebaseMessaging.getInstance().subscribeToTopic('news'); I want to know what happens if the internet connection is not available at moment that this instruction is executed? Will google services automatically retry to do subscription when...
VSB
4

votes
3

answer
90

views

Why are some Kotlin classes highlighted with different colors in Android Studio?

I did notice some classes are highlighted in blue in my project structure. What is the reason?
VSB
1

votes
5

answer
251

views

What is the best way to include 100s of words inside the code?

I am writing a program that will access several hundred words frequently, so instead of storing them all in a .txt file and having to use cpu and hard drive to access, process and store in a vector I want to include them inside the program. What is the best way to go about doing that? (while keeping...
VSB
7

votes
0

answer
2.5k

views

Android Studio 3.1: Could not find gradle-core.jar (gradle-core-3.1.0.jar)

I've just installed Android Studio 3.1 over previous version of android. When I try to create new project, during project build it stops and prompts below error. I've used many solution but it did not help. Here is the error message: Error:Could not find gradle-core.jar (com.android.tools.build:gr...
VSB
4

votes
1

answer
6.7k

views

Asset font is not loaded in android webView

I'm developing an android activity which is loading an HTML file into a webview. However this acitivty is not loading fonts in some phones e.g. HTC Desire or Sony Xperia Z with 4.4 or 4.1 androids. I want to know if i have missed something or it is only depends on phone which i'm testing my app. p...
VSB
2

votes
1

answer
1.8k

views

ASP.NET MVC: Check database connectivity on application startup

1- Sometimes my SQL Server is down for maintenance, so when I try to run my ASP.NET MVC application i face the yellow error screen with error network-related or instance-specific error occurred while establishing a connection to SQL Server. Since I don't know the sequence of events in ASP.NET MVC I...
VSB
4

votes
1

answer
1.9k

views

NoSuchMethodError on calling MenuItem.collapseActionView

Using android support library I implemented ActionBar (android.support.v7.app.ActionBar). Meanwhile I was trying to interact with SearchView and tried to collapse SearchItem using below method: searchItem.collapseActionView(); seachItem is of type MenuItem. This lead to below exception: java.lang.N...
VSB

View additional