Alexei

1

votes
3

answer
106

views

Perl extract group with lookbehind from different line

I've tried web search and have read several answers on stackexchange, still cannot grasp why command does not extract anything. At the end I want to extract group with lookbehind from different line, e.g. from Code>TEST1besttest2false
Alexei Martianov
1

votes
1

answer
45

views

Perl optional group in arbitrary place

I need to capture sereral groups and some of them are optional. I've read about optional in https://www.regular-expressions.info/optional.html but ? does not work for me. Example file: Code>123(.*?)(.*?)(.*?)(.*?)(.*?)(.*?)(.*?)(.*?)(.*?)
Alexei Martianov
1

votes
2

answer
3k

views

Android. @RunWith(AndroidJUnit4.class) - cannot resolve in package “androidTest”

Android Studion 2.2.3 Install Android Support Repository - ver. 44.0.0 I setup all as in official site for Espresso: https://google.github.io/android-testing-support-library/docs/espresso/setup/index.html I try to write instrumentation test (Espresso) in package androidTest. So I create StringUtilAn...
Alexei
1

votes
2

answer
607

views

How create android emulator without android studio?

Android Studio 3.2. I create 2 emulators by Android Studio. Nice. But the question is: Is it possible to create android emulator WITHOUT Android Studio? Our QA need to use emulators for test our applications. But it not need Android Studio. How QA can create android emulator without Android Studio?
Alexei
1

votes
1

answer
122

views

Google Analytics API began to issue an error 403 insufficient Permissions (PHP)

It worked fine till January 10th but then have broken. Nobody hasn't change any permissions. I don't know the reason and can't find the answer. If anybody could help me, please, don't be shy ) Server answer: {'error':{'errors':[{'domain':'global','reason':'insufficientPermissions','message':'User do...
Alexei Isaenko
1

votes
1

answer
275

views

Autofill doesn't work for Firefox

I faced with the problem: Autocomplete doesn't work for some form fields in Firefox (v.58.0.1 + Win10). Everything works fine in Chrome, but in FF it works for fields with default basic name attributes only. For example, here autocomplete works fine: And when I customize name attribute, it doesn't...
Alexei
1

votes
2

answer
1k

views

Integrate Angular 4+ application with ASP.NET Core SignalR

I am trying to integrate Angular 4 + SPA with ASP.NET Core SignalR starting from this tutorial. I have managed to integrate using a simple web app (jquery + signalR client) with ASP.NET Core App, so server-side configuration seems ok. ASP.NET Core Microsoft.AspNetCore.SignalR version 1.0.0-alpha2-fi...
Alexei
1

votes
0

answer
163

views

Seeding sqlite db from EF6 with new data

I'm trying migrations with https://github.com/bubibubi/sqliteef6migrations library. It's working OK with his main example: internal sealed class ContextMigrationConfiguration : DbMigrationsConfiguration { public ContextMigrationConfiguration() { AutomaticMigrationsEnabled = true; AutomaticMigrationD...
1

votes
0

answer
117

views

Android. Espresso: android.content.res.Resources$NotFoundException: String resource ID

Android Studio 3.1. , Java 1.8. , Gradle 4.4. Here my Espresso test: @RunWith(AndroidJUnit4.class) public class SignInActivityTest { private Context context; @Rule public ActivityTestRule mActivityRule = new ActivityTestRule(SignInActivity.class, true, false); private MockWebServer server; @Before p...
Alexei
1

votes
1

answer
697

views

Android: Add new buildType - Unable to find a matching configuration of project

Android Studio 3.1, Gradle 4.4 My project hierarchy -app -common build.gradle common is a android lib for my project. As result in settings.gradle: include ':app', ':common' Here my app/build.gradle buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt...
Alexei
1

votes
0

answer
179

views

Google map: android.os.DeadObjectException - crash application

Android Studio 3.1, Android 6.0 When I try to open tab with map in my application I get error: 06-26 19:22:24.541 D/audio_hw_primary( 199): enable_audio_route: apply and update mixer path: audio-record 06-26 19:22:24.626 I/MicroDetectionWorker(16985): onReady 06-26 19:22:24.887 W/WindowAnimator( 7...
Alexei
1

votes
0

answer
43

views

Splitting linq code into smaller methods: type definition noise

I make extensive use of linq for my calculation code (accounting-related). Because of common 'rule' that method body should not exceed 1 screen, I decided to split my lengthy linq-based method into chunks of smaller methods. After refactoring, my methods look similar to this one: private static IEnu...
Alexei S
1

votes
0

answer
60

views

EventBus: Two subscribers: No subscribers registered for event class org.greenrobot.eventbus.NoSubscriberEvent

AndroidStudio 3.1.2, Gradle 4.5, In my app/build.gradle: implementation 'org.greenrobot:eventbus:3.0.0' Here my MainActivity: public class MainActivity extends AppCompatActivity { @Override public void onStart() { super.onStart(); EventBus.getDefault().register(this); } @Override public void onStop...
Alexei
0

votes
0

answer
3

views

Why test not fail when swipeRight on RecyclerView?

Here my xml with RecyclerView when swipe left on list's item than show sub items (Resume, Stop) . Smt like this: The sub items show only when swipe left. When swipe right nothing happens. Here Espresso's test that check that swipeLeft is work @Test fun scroll_itemList_swipeLeft() { // scroll onView(...
Alexei
1

votes
0

answer
12

views

Can't init list in Realm

Android 3.2, java 1.7. Realm 4.1.0 Here code: public class LocalizedString extends RealmObject { private RealmList translations; public void cascadeUpdate(Realm realm, LocalizedString that) { if (!EqualsUtil.areEqualContentLists(this.translations, that.translations)) { if (that.translations == null)...
Alexei
1

votes
0

answer
48

views

Insert multiple rows - SQL Error: near “,”: syntax error

In my SQLite I want to insert 2 rows. INSERT INTO notification_invoice (amount,currencyISOCode) VALUES (1.1,'498'), (34.2,'980'); But I get error: 30-Nov-18 12:21:21: SQL Error: near ',': syntax error INSERT INTO notification_invoice (amount,currencyISOCode) VALUES (1.1,'498'), (34.2,'980'); >
Alexei
1

votes
1

answer
38

views

Why not exclude gradlew files in android project in .gitignore?

In my android project I want to ignore gradlew files. So in my project folder in file .gitignore *.iml .DS_Store .externalNativeBuild .gradle /.idea/** /.idea/caches/build_file_checksums.ser /.idea/libraries /.idea/misc.xml /.idea/modules.xml /.idea/workspace.xml /build /captures /gradle/** /local.p...
Alexei
1

votes
0

answer
19

views

Android: Why not see classes from sub module?

Android Studio 3.2.1 My main app has module 'binding' In this module in dir has jar: /libs/androidbinding.jar (gueei.binding.*) Nice. The module 'binding' success build. Now in main app in app/build.gradle: apply plugin: 'com.android.application' android { compileSdkVersion 28 defaultConfig { applic...
Alexei
1

votes
0

answer
54

views

Where to put external config files in a Kotlin Gradle project?

I use a standard Maven/Gradle project structure putting source code under src/main/kotlin and automatically collected resources under src/main/resources: \myapp -\src -\main -\kotlin -\com -\projectname -\MyApp.kt -\resources - som_file.txt This works fine to package my distribution with the distZip...
Alexei
1

votes
1

answer
67

views

Can't change background color on MaterialButton without change colorAccent

Android Studio 3.2.1 Here my layout: to change MaterialButton's background I change colorAccent in styles.xml @color/colorAccent Nice. It's work. But the problem is: I do not want to change colorAccent. I want to use background's color for MaterialButton's different from colorAccent Attribute: andr...
Alexei
1

votes
0

answer
35

views

vaadin.productionMode=true -> Failed to find the bundle manifest file 'sub_folder_name://vaadin-flow-bundle-manifest.json'

Vaadin 12.0.4. Gradle 5.1. In my build gradle: plugins { kotlin('jvm') version '1.3.20' id ('com.github.johnrengelman.shadow') version '4.0.3' id ('com.devsoap.vaadin-flow') version '1.0' id ('org.gretty') version '2.3.1' } val kotlinVersion = '1.3.20' val jettyVersion = '9.4.14.v20181114' val vaadi...
Alexei
1

votes
1

answer
22

views

How can I make default a checkmark in the line “Don't create a Start Menu folder” -Inno Setup-

I use Inno Setup as extractor for my Portable software (Windows). I want in the line 'Do not create a Start Menu folder' to be checked by default, so that if the user wants a folder in the start menu he must uncheck the check box. Thanks for your time and help, Alexei
Alexei
1

votes
0

answer
62

views

Kotlin, Retrofit 2: lang.IllegalArgumentException: Parameter type must not include a type variable or wildcard: java.util.Map<java.lang.String, ?>

In my Kotlin, Retrofit 2 project: class TransportService { // static analog companion object { @JvmStatic fun checkoutSessions(bodyMap: Map, callback: Callback) { val stripeMonitorRestClient = RestClientFactory.createRestClient(StripeRestClient::class.java!!) val headerMap = mutableMapOf() headerMap...
Alexei
1

votes
0

answer
77

views

Unresolved reference: compileKotlin in build.gradle.kts

Kotlin project success build by build.gradle: compileKotlin { kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8 } compileTestKotlin { kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8 } Nice. But I need to change to build.gradle.kts: plugins { kotlin('jvm') version '1.2.10' id('application') } group...
Alexei
1

votes
0

answer
17

views

java.lang.IllegalStateException: #init was called twice in a row. Make sure to call #release after every #init

I need to init two activities for my tests. I do smt like this: @RunWith(AndroidJUnit4::class) @SmallTest class AddTraderActivityTest { @get:Rule var addTraderActivity: IntentsTestRule = IntentsTestRule(AddTraderActivity::class.java) @get:Rule var traderActivity: IntentsTestRule = IntentsTestRule(Tr...
Alexei
1

votes
0

answer
25

views

Android: Espresso: I can't find method to check is keyboard is hide

In my android project I has screen with 2 EditFields and one button. When press button the 2 things happened: I hide soft keyboard Start http request I need to write Espresso test that check when I press button that soft keyboard was hide. I'm not find any Espresso's methods for this.
Alexei
1

votes
2

answer
110

views

Does using gzip encoding make sense for communications within same server?

I have an xml feed supplied by one system which is used by another system and both of them (at the moment at least) are located on the same physical server. In this case would using gzip to encode (large) xml responses slow things down or speed it up, or maybe wont make any difference.
Alexei Tenitski
1

votes
1

answer
3.6k

views

Using @PostConstruct annotation in Spring 3.0.0.RC1

I am using @PostConstruct annotation (to mark init method in a bean) in Spring version 3.0.0.RC1. I start this web application in Jetty and get the following exception: java.lang.NoSuchMethodError: org.springframework.core.OrderComparator.sort(Ljava/util/List;)V at org.springframework.context.suppor...
alexei.vidmich
0

votes
0

answer
4

views

Android: Espresso: press back button - NoActivityResumedException

Android Studio 3.2 I want to test press back button. So here my Espresso's test: @RunWith(AndroidJUnit4::class) class AddTraderActivityTest { @get:Rule var addTraderActivity: IntentsTestRule = IntentsTestRule(AddTraderActivity::class.java) @Test fun backButton_press() { try { pressBack() fail('Shoul...
Alexei
1

votes
5

answer
1.1k

views

Is there a FAST way to export and install an app on my phone, while signing it with my own keystore?

So, I've downloaded my own application from the market and installed it on my phone. Now, I am trying to install a temporary new version from Eclipse, but here is the message I get: Re-installation failed due to different application signatures. You must perform a full uninstall of the application....
Alexei Andreev
1

votes
1

answer
760

views

BlogEngine.NET multiple blogs at virtual directories - error 404

BlogEngine.NET 2.5 supports multiple blogs, as you can see in this post, and it really does, i tested this feature with subdomains - works fine. But i can't get it work with virtual directories. in the post you can read this: ...you do not need to create physical directories named blog1 and blog2....
Alexei
1

votes
2

answer
1.1k

views

Implementing IMAP server

I need to write an IMAP wrapper around some messaging system. With all the complexity of IMAP protocol i'd rather use some existing library to do the heavy lifting for me. Are there any IMAP servers / libraries / frameworks available in PHP or Python? Alternatively, is there such IMAP server which w...
Alexei Tenitski
1

votes
2

answer
1.4k

views

Deserialization error when deserializing a generic list

I have a generic list of objects that I am trying to serialize/desearilize. The objects' class itself has a property of a generic list of another class, class Exercise { public int Duration { get; set; }; public string Name { get; set; }; } class Session { public DateTime Date { get; set; } public L...
Abramov Alexei
1

votes
2

answer
716

views

RSpec Error while making RoR tutorial

I got an error while testing code from RoR tutorial, pls help with these issue, listing is below. May be wrong version of spec in Gemfile. Failures: 1) PagesController GET 'home' should have the right title Failure/Error: response.should have_selector('title', :content => 'Home') NoMethodError: und...
1

votes
1

answer
1.4k

views

Entity Framework search expression

I have to make search through field EmployeeId. I also have parameter empId which can be something like this: '123' In my database there's next values: '0123' - what I need '10123' '1234' and so on. My target - take a record which ends on empId and has no or one and more leading 0. I tried to write...
1

votes
2

answer
186

views

Shutdown Hook in Dart?

I need make some action (dump statistical data) before the Dart program ends. The program continues after the method main ends (there are other isolates), so I cannot determine exactly the moment when the program finishes. In Java, I can use java.lang.Runtime.addShutdownHook. Does similar feature ex...
1

votes
1

answer
40

views

Running some Rails code when the database is updated

What is the cleanest way of running some Rails code when a certain database table is updated (not necessarily by my program)? The event hook doesn't have to be written in Ruby, but It'd be nice to reuse some of my Rails code.
1

votes
1

answer
122

views

DB normalization fails with first_or_create or faulty assignments

This question is apparently trivial, but I am a newbie in Rails and I can't figure out where I get it wrong. I am populating associated models from an old spreadsheet. Below is a rake import task snippet. Somehow when location (Washington) is the same and already exists in the database for the Smith...
Alexei Danchenkov
1

votes
1

answer
348

views

How to create a single-dimensional, non-zero-based array in F#

I tried to create a single-dimensional, non-zero-based array in F#. I need such arrays for interoperability with code written in another programming language. Array2D.createBased function is intended to create a two-dimentional, non-zero-based array, but the F# language lacks Array.createBased func...
Alexei Odeychuk
1

votes
1

answer
773

views

Get BaseType properties with Reflection in C#

I need to list all properties for containing class, I have a lot of them, so I don't know the type in the code, but I can get it trough prop.BastType.FullName, but I can't cast it, and I don't want to change all my classes to crate 'Cast' methods everywere. To avoid printing Property Properties suc...
Alexei

View additional