Posts

c# - How to launch and run a UWP app in the background -

i developing uwp app want run in background , launch hidden exception of perhaps notification tray icon. i'm not sure start first venture uwp , cannot seem change entry point in manner want. with background tasks app can work in background , wake after conditions for needs can run background task on timer

asp.net mvc - Serilog MVC integration -

i have project utilizes 3rd party software uses serilog. purpose added following startup method in startup.cs file. log.logger = new loggerconfiguration() .minimumlevel.verbose() .readfrom.configurationsection(configuration.getsection("logging:serilog")) .createlogger(); on separate project, have service layer uses logging mechanism based on microsoft.extensions.logging.ilogger. now adding ui initial project , injecting microsoft.extensions.logging.ilogger controller classes through service collection; use (inside controllers) create service layer objects. the challange is; inject existing serilog logger these controllers. couldn't find neat way of adding service collection controllers can fetch through di. suggestions? the solution register instance of already-existing logger object in dependency injection container. single instance passed constructor of controller, instead of new instance being created each time. t...

Creating a form builder, how to implement the backend PHP Laravel MYSQL -

i'm trying create system users able create questionnaires, ways envision cumbersome create , don't seems efficient. when user specifics: one txt field. one multiple choose ( string, string, string ) etc how save data database in efficient way. there tutorials on this? thanks time. this laravel 5 example should best choice. create questionnaire app based on example should easy.

asp.net ImageButton CommandArgument -

so have object playerlist of type list , doing foreach fill table. want add id of each player commandargument when click on imagebutton, know id of player need work with. reason not working. commandargument returning empty string yet collection has id when debug , each player. <% foreach (var player in playerlist) { %> <tr> <td><asp:imagebutton width="32px" height="32px" commandargument='<%#eval("player.id")%>' id="editrecord" imageurl="../images/edit.png" oncommand="editrecord_click" runat="server" /></td> <td><%=player.firstname %></td> <td><%=player.lastname %></td> <td width="15%"><%=player.address %></td> <td><%=player.dob %></td> <td><%=player.parent1 %></td> <td><%=player.parent1phone %></td> <td><...

Meaning of << operator in C -

this question has answer here: c - syntax about? << 6 answers i wondering know meaning of operator << in #define x (10 * (1<<12)); it's bitshift operator . << shift left , >> shift right . 1 << 12 means shift value (the int '1') 12 bits left. '1' 00000000 00000000 00000000 00000001 in binary, if it's 32 bit integer. shift left 12 places, changes to: 00000000 00000000 00010000 00000000 if shift 5 << 8 , '5' 101 in binary, it'll shift: 00000000 00000000 00000000 00000101 into: 00000000 00000000 00000101 00000000 see this question details on other bitwise operators.

How to alias this route in Spring Cloud? -

the code @ this github link defines 3 interconnected spring boot apps using spring cloud , spring oauth2. there ui app loads default @ localhost:8080 , , there authserver authentication app runs on localhost:9999 . when user tries login ui app on localhost:8080 , redirected localhost:9999/uaa/login . this run on apache, ui app @ mydomain.com . imagine create virtualhost mydomain.com/login , map authorization app url pattern. want spring cloud manage urls. what specific changes need make code in these sample apps login page render @ localhost:8080/login instead of localhost:9999/uaa/login ? i tried changing zuul route definition in the ui app's application.yml following, clicking login link ui app still redirects localhost:9999/uaa/login : zuul: routes: resource: path: /resource/** url: http://localhost:9000/resource user: path: /user/** url: http://localhost:9999/uaa/user login: path: /login** url: http:...

android - Skew custom layout -

Image
i've got custom layout , skew this: @override protected void ondraw(canvas canvas) { canvas.skew(0f, 0.2f); super.ondraw(canvas); } and achieve although, want skew other side (i want right higher left) decided flip horizontally this @override protected void ondraw(canvas canvas) { canvas.scale(-1f, 1f, super.getwidth() * 0.5f, super.getheight() * 0.5f); canvas.skew(0f, 0.2f); super.ondraw(canvas); } but button, can see below, flips too. can suggest me how flip layout not children inside?