Dynamic filtering, sorting and paging on generic list with Entity Framework

I am using jQuery datatable (http://www.datatables.net) in my MVC4 app and as you may know this table allows server side processing. I am going to use the table in multiple views tied to multiple...

Android how to pass an Activity.class as an argument for a function

I recently moved to Android from Python and am stuck here. This is my class declaration to create a common function for an Alert Dialog which accepts necessary parameters: public static...

How to pass a variable from Activity to Fragment, and pass it back?

I am currently making an android app, and I want to pass a date between activity and fragment. My activity has a button, which opens the fragment: DatePickerFragment. In my activity I show a date,...

Passing parameters to i18n model within XML view

How can we pass parameters to the i18n model from within a XML view? Without parameters <Label text="{i18n>myKey}"/> works but how can we pass a parameter in that expression? The only piece of...

how to pass null value as a datetime to sql server (DAL Layer)

i have got a column (nullable but it is Datetime)in sql server .. if user is not selected any date i need to pass the null value for this field for that purpose I have done like this below ...

Jboss 4.2.1 GA java.lang.OutOfMemoryError: PermGen space

I am using Jboss 4.2.1 GA in my windows7 system. When I run my application I am getting the following error. 2015-03-10 10:33:22,413 ERROR [STDERR] Exception in thread "Thread-30" 2015-03-10...

AWS api gateway - http proxy should take status code from origin

I am currently trying to setup AWS Api Gateway, to proxy to another api, that has fully functional methods, response content, status codes etc. This is fairly simple to setup, but I have noticed...

Absolute Distinct Numbers

I am writing an exercises on codility via c++. Here the question: A non-empty zero-indexed array A consisting of N numbers is given. The array is sorted in non-decreasing order. The absolute...

What is the best way to pass AWS credentials to a Docker container?

I am running docker-container on Amazon EC2. Currently I have added AWS Credentials to Dockerfile. Could you please let me know the best way to do this?

passing multiple params in route angular 4

Hello I want to pass some params with routing in angular 4 app-routing.module.ts import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import {...

Is it legal to pass a null program argument vector to execve()?

Consider following C code (x86_64) #include <unistd.h> int main() { execve("/bin/ls", 0, 0); } I compiled as gcc a.c and executed; I got a SIGABRT with error A NULL argv[0] was passed...

Possible way to add headers in a window.open request

This answer here says I can't pass headers while using window.open. Although I couldn't find any documentation stating this. Is it really not possible to do so. Are there any possible hacks ? My...

Conditionally inline style a react component based on prop

I need to set the background color of a div based on a prop passed into my react component. Inline styling of React components I am pretty clear on, but I don't know how to correctly apply the...

How to pass arguments to a jshell script?

Question I am willing to pass arguments to a jshell script. For instance, I would have liked something like this: jshell myscript.jsh "some text" and then to have the string "some text"...

How can I set polymer property attribute value and passing attribute value into another polymer component property?

I have below piece of code which I am using to call http request using iron ajax with polymer so passing the value of body and last-response using polymer properties.as we can see here we have...

LINQ string contain any element of a list of string (ASP net core MVC)

In the Dat Access Layer of an ASP.NET Core MVC project, I need to get a list of "news" matching with any tags passed as parameter, something like: public List<News> GetNewsByTags(List<String>...

Arduino IDE can't find ESP8266WiFi.h file

I am trying to use NOD MCU ESP8266WiFi with Arduino IDE When I run this code: #include <ESP8266WiFi.h> #include <BlynkSimpleEsp8266.h> char auth[] = "YourAuthToken"; char ssid[] =...

How to apply default value to python dataclass field when None was passed?

EDIT: for the sake of clarity, I need a class that will accept a number of parameters, I know that all parameters will be provided but some maybe passed as None in which case my class will have to...

How to open and access multiple (nearly 50) tabs in Chrome using ChromeDriver and Selenium through Python

I'm trying to gather some information from certain webpages using selenium and python.I have a working code for a single tab. But now i have a situation where i need to open 50 tabs in chrome at...

How to pass two different ID's in a route laravel?

I have a simple app, I need to pass two different ID's id and code_id in a route, here is my solution I have tried so far view <a href="{{ route('settings.code', $settings->id, ...

React useCallback with Parameter

Using React's useCallback hook is essentially just a wrapper around useMemo specialized for functions to avoid constantly creating new function instances within components' props. My question...

implicitly convert string to string_view

void Foo1(string_view view) { ... } string str = "one two three"; Foo1("one two three"); // Implicitly convert char* to string_view Foo1(str); I wonder which constructor converts char* to...

python/pandas equivalent to dplyr 1.0.0 summarize(across())

In R, I find the following very useful when dealing with many variables: library(dplyr) dat <- group_by(mtcars, cyl) summarize(dat, across(c('mpg','disp'), sum), across(c('drat','wt','qsec'),...

Can't send bluetooth from Kivy App on Android

I put together a Kivy App that gets the coordinates from a user touch and sends them over bluetooth to an arduino I am following the steps on how to handle bluetooth on android listed in the link...

Cloudinary\Error: Missing required parameter - file - Express and Postman

first time trying to upload images to Cloudinary and I have come across an issue when using Express via Postman. Using form-data on setting 'file' to upload an image to Cloudinary As of now, when...

Blazor azure AD retrieve email from graph API

I have implemented azure ad authentication successfully. I am able to login, and display the user's name. I now need to call the graph api to access the user's email address. I have my token...

testing fetch data query into component react

I'm trying to use jest to write tests for when i use fetch to get and post data from a react page. the current test is something like this - I'm confused about how to make sure the correct data is...

Why reactstrap carousel code snippet on document is not working?

I have tried to reactstrap carousel. I copied some codes below it, and tried to use it in my codebase. Carousel tag begin with UncontrolledCarousel working well. But I dont know why this code...

Unable to load the "PHP Email Form" Library

Hi guys for some reason my PHP Form doesnt work, when someone press send message button this error pop out "Unable to load the "PHP Email Form" Library". I dont know whats the problem. Can you...

How to take an XHTML string and render it on a webpage using javascript

So, I'm starting with a variable string of HTML that is a UI template created by my users in a RichText editor (saved to an XML file on disk). It will always be valid XHTML. The XML could be as...