Code_Worm

1

votes
0

answer
31

views

Content in card layout does not shrink in mobile view

I just got started with Tailwind CSS. And I am trying to make some card layout( with VG icons and text on each ) responsive with flexbox. When I resize the screen it does shrink well until it hits the sm screen. Then only circa 60% of the card height is visible. I am not sure if I should make the c...
Code Worm
1

votes
0

answer
19

views

Accessing elements in a multidimensional array by position

I have the following multidimensional array. And in the following two functions I want to set the first ('file/1349/powerpoint-examples/') and the second element ('file/1350/powerpoint-examples/') in the first array. The way I am currently doing it does not work. For exampleInput, I get both: 'file/...
Code Worm
0

votes
0

answer
2

views

How to insert into a table based on an Eloquent relationship an array of foreign keys

I have two models TeamMember and ProjectRequest. A TeamMember can have one ProjectRequest, that is why I created the following Eloquent relationship on TeamMember: class TeamMember extends Model { // protected $table = 'team_members'; protected $fillable = ['project_request_id']; // Relations public...
Code Worm
1

votes
1

answer
141

views

Android Image Slider using Viewpageindicator and UniversalImageLoader

I'm trying to create an Image Slider that Images list come from api. I wanna use viewpagerindicator to navigate between pages and UniversalImageLoading for lazy loading. I've tried viewpagerindicator official examples which are made to show text ('this is a test') in the views but not image I can re...
Code_Worm
1

votes
1

answer
221

views

SqlConnection.ClearPool() impact on webserver(IIS) performance

I recently monitored my sql database activity I found about 400 processes in activity monitoring.Later I figured that the problem is with my connection string object which would not be cleared physically even though I completely closed and disposed it, so once I suspend my IIS all the processes from...
Code_Worm
1

votes
1

answer
249

views

Web Api Clients Authentication (not user authentication) Best Practice

I'm adding some web api to my project (using mvc web api) for our mobile clients.I'm using OWIN and Bearer Token (password grant type) for user authentication, as far as I'm concerned it's best practice for user authentication and resource authorization, but my issue is that how I can authenticate m...
Code_Worm
1

votes
2

answer
37

views

Service endpoints chaining with Angular

I have the following DataService, which should call the following APIs in a chain, so I am able to pass the response from the previous one to the next one. This is how I started so far, however I am getting the following error when I try to access one of the properties of the response object: Why d...
Code Worm
1

votes
1

answer
57

views

Error in promise

I get the following error on (this.data.getFacility(person.val1): Argument of type '{ 'val3': 3; 'val4': 4; }' is not assignable to parameter of type 'SubscribableOrPromise'. Type '{ 'val3': 3; 'val4': 4; }' is not assignable to type 'PromiseLike'. Property 'then' is missing in type '{ 'val3': 3; '...
Code Worm
1

votes
1

answer
236

views

Term query on nested fields returns no result in Elasticsearch

I have a nested type field in my mapping. When I use Term search query on my nested field no result is returned from Elasticsearch whereas when I change Term to Match query, it works fine and Elasticsearch returns expected result here is my mapping, imagine I have only one nested field in my type ma...
Code_Worm
1

votes
1

answer
94

views

keep previously loaded fragment instance when tab changes instead of creating new one in android

I have a tab swiped layout which includes four tabs each of which have their own layout and fragment, in my main activity layout a viewpager takes part for changing tabs. specific view(tab) loads when app starts up and the others will be loaded when the tab changes. my problem is when I nevigate to...
Code_Worm
1

votes
1

answer
35

views

How to host more then one static websites, S3 buckets under one aws domain?

I have one registered domain in AWS, for example www.example.com I am wondering if it is possible to connect more then one S3 buckets to it through Route 53. My domain www.example.com is created as a CNAME record with the value example.com in Route53. And I already have a Load Balancer with the name...
Code Worm
1

votes
2

answer
2.2k

views

display multi page tiff in browser

I'd like to know if there is any way so that I can display a multi-paged tif image in browser using client-side coding (not server-side) in a way that user can navigate between the pages like common jquery photo libraries. I found Tiff.js from https://github.com/seikichi/tiff.js, but this library on...
Code_Worm
2

votes
0

answer
191

views

multichoice ListView with checkboxes and MarkAll button like contacts app (check boxes are only shown in selection mode)

I need a ListView which items can be selected by checkbox near them and check boxes not showing in default mode but they must be shown in selection mode (when hoding touch on one of the items) and a MarkAll button in action bar exactly like default contacts app (see picture below). I've found someth...
Code_Worm
2

votes
0

answer
136

views

XDocument object serialization to JSON issue using Jil in c# (stackoverflow exception)

I have an XDocument object that comes from business layer, it includes a document property which repeats itself infinitely (God knows why!) with the same values in every repeat and it becomes problematic when I want to serialize this object to JSON using Jil. Since the document property repeats itse...
Code_Worm
2

votes
0

answer
736

views

Request.Browser.IsMobileDevice equivalent in ASP.Net Core (2.0)

In legacy asp.net and asp.net MVC, we could easily check if the request is from mobile device by using IsMobileDevice property of the request (System.Web.HttpContext.Current.Request.Browser.IsMobileDevice) but in asp.net core due to huge structural and architectural changes in Request class (Microso...
Code_Worm
2

votes
1

answer
620

views

iis 404 error when removing hash tag from url angularjs app

I'm developing a single page app using angularJS(client) and mvc web api (server). I have two physical page first Login.html and second Index.html when user successfully log in redirects to Index.html and other parts of my app load dynamically into div signed with ng-view inside Index.html page and...
Code_Worm
15

votes
2

answer
21k

views

Security Exception (The application attempted to perform an operation not allowed by the security policy) )

we're having as issue with the following security exception when we attempt to open our admin login page. Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your syste...
Code_Worm