Posts

Featured post

android - can not access to progress bar in an other activity -

i have objects in layout video view,text view , on comes this: <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.cardview android:id="@+id/cardview_mypost" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginbottom="@dimen/activity_vertical_margin" app:cardcornerradius="@dimen/activity_vertical_margin" app:cardelevation="@dimen/activity_vertical_margin" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@color/web_withe_color" android:animatelayoutchanges="@anim/anim_list" android:padding="8dp" > <!-- thu

angular - Changing route back and forth and subscription callbacks -

i working on angular2 beta 17 version. have found out, when have longer request server (2-3s), , switch routes couple of time (back , forth), callback gets executed number of times route has changed. solved adding .unsubscribe() in ngondestroy . however, shouldn't done default on http calls when changing router? has been fixed in latest rc?

php - Cannot send mail with no "From" header Codeigniter -

i have library in codeigniter autoloads <?php if ( ! defined('basepath')) exit('no direct script access allowed'); class send_email { private $ci; public $from_email; public $from_name; public $reply_to; public $to_email; public $subject; public $message; public function __construct() { $this->ci =& get_instance(); $this->ci->load->library('email'); } public function send_email($f_email,$f_name,$t_email,$rep_to,$sub,$msg){ $this->from_email = $f_email; $this->from_name = $f_name; $this->to_email = $t_email; $this->reply_to = $rep_to; $this->subject = $sub; $this->message = $msg; $this->ci->email->from($this->from_email, $this->from_name); $this->ci->email->to($this->to_email); $this->ci->email->reply_to($this->reply_to); $this->ci->email-&g

java - Vaadin 7 Pass Data Between Views -

i have 2 vaadin views , want make search process these 2 views. first view contains textfield search parameter , button seach process. want is, once user click search button, want send search parameter second view , call search method dao classes here display search result. vaadin newbie , dont have idea how appreciated. the classic approach pass data view via parameters of view (this allows bookmark search). see view interface: void enter(viewchangelistener.viewchangeevent event) this view navigated to. method called before view shown on screen. event.getparameters() may contain parameters relevant view. you can send parameters originating view via navigator. e.g. navigator.navigateto("search/searchterm") // `search` view name, `searchterm` passed param see example in handling uri fragment path of book of vaadin

c++ - Linker error with a xbox 360 controller function -

i'm getting undefined reference xinputgetstate , have no idea why. headers i'm using : xinput.h , windows.h . firstplayer constant 0 . xinput_state state; zeromemory( &state, sizeof(xinput_state) ); // state of controller xinput. dwresult = xinputgetstate( firstplayer, &state ); any advice nice. i'm using codeblocks ide mingw compiler. okay figured out. missing line : #pragma comment(lib, "xinput.lib") is there better work around this? feel strange!

oracle - PL/SQL Source (Line Number) in query on v$sql / v$sqlarea table -

i use oracle enterprise manager monitor current load on db. if there high-load sql can see details, there "statistics" tab. in "general" section can see: module: jdbc thin client action: (empty) parsing schema: schema1 pl/sql source (line number): schema1.package_abc (1457) sql profile: n/a sql plan baseline n/a also, have simple query can run on database see going on: select q.sql_id, q.parsing_schema_name, q.address, q.sql_text, q.last_active_time v$sqlarea q q.last_active_time > sysdate - 1 order last_active_time desc question is: there way add result of query column pl/sql source (line number) present same info oracle enterprise manager? you can lot of information v$session. preferred approach instrument pl/sql code calls like: dbms_application_info.set_action('doing xxx in yyy); when want know are. can found in v$session.action also see following columns may of interest: plsql_entry_object_id plsql_entry_subprogram

r - Plotting a cluster with [1*n] matrix variable -

i beginner when comes r. trying plot clusters (after estimating them, of course) of data set (2 variables). used kmeans(x, centers, iter.max = 10, nstart = 1, algorithm = c("hartigan-wong", "lloyd", "forgy", "macqueen"), trace=false) ## s3 method class 'kmeans' fitted(object, method = c("centers", "classes"), ...) cluster vector and got point, quite unsure how should proceed in order graph showing 1 variable on x , other on y axis clusters indicated. how should go it? thanks! ok think should do: result<-kmeans(x,centers,...) plot(data$x,data$y, col=result$cluster) that plot data , color respective observation depending cluster is. can add center of clusters points(result$clusters, col=1:2, pch=18,cex=2) the last 2 commands pch , cex center points like.