Posts

asp.net mvc - how we can Get specfic User from Active Directory after creating new user in c# -

i creating new user in active directory after creating when retrieving created user fo llowing error coming " operations error occurred " following code private static directoryentry getuser(string username) { var de = utility.getdirectoryobject(); var desearch = new directorysearcher { searchroot = de, filter = "(&(objectclass=user)(samaccountname=" + username + "))", searchscope = searchscope.subtree }; var results = desearch.findone(); if (results != null) { de = new directoryentry(results.path, utility.aduser, utility.adpassword, authenticationtypes.secure); return de; } return null; } try : var desearch = new directorysearcher { searchroot = de, filter = $"(&(objectclass=person)(samaccountname={username}))", searchscope = searchscope.subtree }; ...

Function does not change passed pointer C++ -

i have function , filling targetbubble there, not filled after calling function, know filled in function because have there output code. bool clickonbubble(sf::vector2i & mousepos, std::vector<bubble *> bubbles, bubble * targetbubble) { targetbubble = bubbles[i]; } and passing pointer this bubble * targetbubble = null; clickonbubble(mousepos, bubbles, targetbubble); why not working please? thanks because passing copy of pointer. change pointer need this: void foo(int **ptr) //pointer pointer { *ptr = new int[10]; //just example, use raii in real world } or void bar(int *& ptr) //reference pointer (a bit confusing look) { ptr = new int[10]; } wiki

.net - Updating to ASP.NET Core 2.0 - Packages are not compatible with netcoreapp2.0 -

Image
i'm trying update net core 2.0 i'm getting these errors on packages installed reference the problem, maybe: i'm getting reference netcoreapp1.0 in output the microsoft.entityframeworkcore.tools.dotnet 2.0.0 package not compatible netcoreapp1.0 (.netcoreapp, version = v1.0). microsoft.entityframeworkcore.tools.dotnet 2.0.0 package supports: netcoreapp2.0 (.netcoreapp, version = v2.0) 1 or more packages not compatible .netcoreapp, version = v1.0. detection of detected package: microsoft.applicationinsights.aspnetcore 2.1.1 2.0.0   microsoft.aspnetcore.all (> = 2.0.0) -> microsoft.aspnetcore.applicationinsights.hostingstartup (> = 2.0.0) -> microsoft.applicationinsights.aspnetcore (> = 2.1. 1)   application (> = 1.0.0) -> microsoft.applicationinsights.aspnetcore (> = 2.0.0) after that, message components: the microsoft.aspnetcore.anypackage 2.0.0 package not compatible netcoreapp2.0 (.netcoreapp, version = v2.0). microsoft....

amazon web services - ECS with ALB, web and application Server -

i have application load balancer setup internet facing , ecs container service setup auto scaling group 2 private subnets in aws. install nexus nginx. best strategy can utilize these services? i assume want deploy nginx reverse proxy in front of nexus. if following reference architecture aws should help: https://github.com/awslabs/ecs-nginx-reverse-proxy/tree/master/reverse-proxy it shows how create task definition has 2 tasks linked each other, such nginx reverse proxy container can sit in front of application , send traffic it. wiki

Calling Applicationcontext.xml from Spring boot -

i have existing application using spring application , .properties files place holders in xml file. now, planning use spring boot application import spring applicationcontext.xml out disturbing existing business logic. below changes 1. main service class: @springbootapplication(scanbasepackages = "com.config") @restcontroller @enableconfigurationproperties(servicesproperties.class) public class servicesapplication extends springbootservletinitializer{ @override protected springapplicationbuilder configure(springapplicationbuilder application) { return application.sources(servicesapplication.class); } public static void main(string[] args) { springapplication.run(servicesapplication.class, args); } @requestmapping("/") string home() { return "this first program in fixedservices!"; } } 2. in configuration class giving below @configuration @componentscan @importresource("classpat...

r - Getting auth sign message when connecting cloud server using opencpu -

i trying expose sample r model api created r package. in local machine , able output using command : curl http://local host/5656/ocpu/library/mypackage/r/tv/json -f "input=@test.csv" but when trying same in aws linux cloud server on centos , not getting output. tried command : curl 13.228.109.233:8787/p/5656/ocpu/library/mypackage/r/tv/json -f "input=@test.csv" and output http:&#x2f;&#x2f;13.228.109.233:8787&#x2f;auth-sign-in?appur‌​i=%2fp%2f5656%2focpu‌​%2flibrary%2fmypacka‌​ge%2fr%2ftv%2fjson . the r package loaded r studio server , trying access using putty. installed open cpu using command : yum install opencpu-server it looks asking authentication not able means. missing here? thanks if 1 visits url browser, 1 sees rstudio-server login screen. , indeed, connecting port 8787, default port rstudio server. try urls below http://13.228.109.233/ocpu/ instead. wiki

c++ - How can i use Opencv build in one Linux PC to the other? -

i trying create c++ application opencv , share application other user donot have opencv installed on pc. how can that? i tried : i copied header files, source files , libraries in /home/myfolder path. i created application , link files stored in /home/myfolder. set environment variable ld_library_path point /home/myfolder in .bashrc file application can find libraries during run time. i able compile on pc, when share folder other pc , link libraries, undefined reference error opencv. thanks the answer static linking. if don't care executable size , target machine doesn't have required libraries, supply them inside executable. please @ this question reference. wiki