Posts

What is the difference between OnChanges and DoCheck in Angular 2? -

difference between them seems confusing me. difference between them , when called ngonchanges() ( onchanges ) called when value bound input has changed can run custom code when input has changed. ngdocheck() ( docheck ) called when change detection runs can implement custom change detection action.

how to pull employees of company from a linkedin API using PHP? -

i trying pull employees of company using api php. please suggest approaches. i have tried below search in linkedin https://www.linkedin.com/vsearch/p?f_cc=17599&trk=extra_biz_employees_deg_connected by using linkedin apis can search. developer url https://developer.linkedin.com/ api docs https://developer.linkedin.com/docs

How to remove this line from visual studio? -

Image
how hide ruler in visual studio 2013? i tried disable productivity power tools (column guides option) it's still there. thank you. it visual assist option. so uncheck on : vassistx > visual assist x options > advanced > display indicator after column.

php - Header function not redirecting? -

please have php code(below) creates , inserts user database after validating user inputs. storing users input in array. problem creates user , inserts database not redirect. here's code $validation = new validate(); if($validation->passed()) { //if success, insert(create) user try { $user = new user(); $salt = crypt::salt(32); $user->insert(array( 'username' => accept::get('username'), 'password' => crypt::make(accept::get('password'), $salt), 'salt' => $salt, 'name' => accept::get('name') )); //after creation, redirect user header('location : index.php'); exit(); } catch(exception $e) { //otherwise display errors die("error : can not register user ".$e->getmessage()); } this code creates user in database, not redirect. don't understand why. 1) make sure not echo/output before header() function not blank space 2) write t...

regex - How to get youtube video id from URL with java -

i try id of youtube video url. here's example of such url: https://www.youtube.com/watch?v=iz6ar-watyy how can id of video? this video_adapter public class videoadapter extends recyclerview.adapter<videoadapter.myviewholder> { private list<video> videolist; private context context; string videourl; intent intent; public class myviewholder extends recyclerview.viewholder { public textview title; public imageview image, videonextarrowimage; public textview desc; public textview videourl; public myviewholder(view view) { super(view); title = (textview) view.findviewbyid(r.id.video_title); image = (imageview) view.findviewbyid(r.id.video_imageview); desc = (textview) view.findviewbyid(r.id.video_desc); videourl = (textview) view.findviewbyid(r.id.video_url); videonextarrowimage = (imageview) view.findviewbyid(r.id.video_nextarrow); view.setonclicklistener(new view.onclicklistener() {...

c - PRINTF in Keil uvision5 -

i working first time stm32 nucleo l476rg board x-nucleo idb05a1 expansion board developing bluetooth low energy applications. develop keil uvision5. in uvision5 succesfully built sensordemo example stm32cubeexpansion package, loaded code flash memory of board , started debug session/run code. in code example lot of printf statements used. can see output of those? i tried things here or here but didn't work. can me out or has easier solution? or there easier or better environment developping stm32 bluetooth low energy boards? thanks in adavance!

asp.net - How to create a global variable in C#? -

i need use global variable in .net project. however, cannot handle between 2 methods.. my code: string str; protected void page_load(object sender, eventargs e) { if (!page.ispostback) { str = "i string"; showstring(); } } void showstring() { asplabel.text = str; //error } question update: i not consider use showstring(str) because variable used many methods.. example, have click event need use it. protected void btn_click(object sender, eventargs e) { exporttoexcel(str); } therefore, need create in global! the answer don't global variables (you can't). closest global having in class static , has static member - think wrong approach of cases. static classes/members make code more coupled , reduces testability pick when decide so. do instead: (pass parameter) protected void page_load(object sender, eventargs e) { if (!page.ispostback) { string str = "i string"; showstring(str...