Posts

Overlap the layout in the android ExpandableListView -

in following template , @ above new vhd text, overlap row , want fix problem .i tried change height of main file no used.i increase text size 14 15 px in template ,size increased in main template programmatically, problem occur. attached code question see commented section in xml file.please suggest me solution if any.i new android .not familiar android.i attached image below.thank you. //main file <?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" //changed height not work android:background="#ffffff"> <linearlayout ...

php - Laravel 5 Sending email to owner after a user register -

i'm using default login , registration system of laravel. want whenever new user registered email sent 1 of email address input, sending email me notify me new user register. how this? you can overwrite register method in authcontroller . put , send super simple email registered user: public function register(request $request) { // original script, not touch $validator = $this->validator($request->all()); if ($validator->fails()) { $this->throwvalidationexception( $request, $validator ); } \auth::guard($this->getguard())->login($this->create($request->all())); // custom script \mail::raw('welcome ' . $request->input('name') . '!', function ($m) use ($request) { $m->to($request->input('email'))->subject('registration successful!'); }); return redirect($this->redirectpath()); } to learn more mailing, should re...

ios - Is it possible to block execution of my code until UIAlertController is dismissed? -

is there anyway wait user press button dismiss alertcontroller in swift 3, using dispatchqueue or else? you mean this? alertcontroller.displayandwaituntildismissed() // line reached after alert controller dismissed print("alert controller dismissed.") theoretically, yes, use dispatch semaphore block until alert dismissed. it’s bad idea – can’t think of scenario acceptable. accept have deal asynchronously, executing desired code in alert controller action.

java - ArrayList Index Error -

i trying finish project uses graphical user interface search through data base of geysers in us. keep getting error 1 of array lists. include data program is 10,000 entries long. appreciated. being done in bluej error : java.lang.indexoutofboundsexception: index: 0, size: 0 database code: import java.io.fileinputstream; import java.io.filenotfoundexception; import java.io.*; import java.util.arraylist; import java.util.scanner; public class geyserdatabase { private arraylist < geyser > geysers; private arraylist < eruption > eruptions; public geyserdatabase() { geysers = new arraylist < geyser >(); eruptions = new arraylist < eruption >(); } public void readgeyserdata(string filename){ try{ file f = new file(filename); scanner sc = new scanner(f); string text; // keep reading long there more data while(sc.hasnext()) { text = sc.nextline(); eruption e = new eruption(...

entity framework 6 - EF OData MySql Unknown column 'Project3.x' in 'where clause' -

i'm using odata v4, ef6 , mysql 5.6/5.7 below models , tables. result of application resource fine call odata/applications error when expand on roles, follows odata/applications?$expand=roles. error: error occurred while executing command definition. see inner exception details. unknown column 'project3.applicationid' in 'where clause' i know it's mapping, can't see what. public class role { public int id { get; set; } public string name { get; set; } public int applicationid { get; set; } //public virtual application application { get; set; } } public class application { public int id { get; set; } public string name { get; set; } public bool isdeleted { get; set; } public virtual icollection<role> roles { get; set; } public application() { roles = new list<role>(); } } public class applicationview { public int id { get; set; } public string name { get; set; } ...

scala - SPARK SQL: Implement AND condition inside a CASE statement -

i aware of how implement simple case-when-then clause in spark sql using scala. using version 1.6.2. but, need specify , condition on multiple columns inside case-when clause. how achieve in spark using scala ? thanks in advance time , help! here's sql query have: select sd.standardizationid, case when sd.numberofshares = 0 , isnull(sd.derivatives,0) = 0 , sd.holdingtypeid not in (3,10) 8 else holdingtypeid end holdingtypeid sd; an alternative option, if it's wanted avoid using full string expression, following: import org.apache.spark.sql.column import org.apache.spark.sql.functions._ val sd = sqlcontext.table("sd") val conditionedcolumn: column = when( (sd("numberofshares") === 0) , (coalesce(sd("derivatives"), lit(0)) === 0) , (!sd("holdingtypeid").isin(seq(3,10): _*)), 8 ).otherwise(sd("holdingtypeid")).as(...

How do I add a list to a table in Clojure? -

this model of list. [ [name age salary] [name age salary] [name age salary] ] let's have def named "description_list" contains list. how iterate through description_list , put table. tried doing this: (print-table [:name :age :salary] description_list) and prints out 3 empty rows of table me. need contain information list. how can accomplish this? this expected behaviour. see doc print-table . prints collection of maps in textual table. so need turn descr_list list of maps. e.g. user=> (let [h [:a :b] d [[1 2][3 4]]] (clojure.pprint/print-table h (map (partial zipmap h) d))) | :a | :b | |----+----| | 1 | 2 | | 3 | 4 |