[Solved] click listview item go->new activity?

ListView listview=(ListView)findViewById(R.id.listder); listview.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) { if (position == 0) { Intent int0 = new Intent(getApplicationContext(), gnrl.class); startActivity(int0); } else if (position == 1) { Intent int1 = new Intent(getApplicationContext(), asf.class); startActivity(int1); } else if (position == 2) { Intent int2 = new Intent(getApplicationContext(), … Read more

[Solved] undefined index errors PHP

Accessing a variable or index that does not exists triggers a notice in PHP, and when your error reporting is on E_ALL, that notice is visible. The problem with putting your input-variables (in this case POST) in another variable is that you are never sure they exist, because they depend on user input. The solution … Read more

[Solved] how to do a column split and dcast in r [duplicate]

Here is a tidyverse possibility library(tidyverse) df %>% separate_rows(Weather) %>% group_by(Date) %>% mutate(n = 1) %>% spread(Weather, n, fill = 0) ## A tibble: 6 x 4 ## Groups: Date [6] # Date Fog Rain Thunderstorm # <fct> <dbl> <dbl> <dbl> #1 2018-01-01 1. 1. 0. #2 2018-01-02 1. 1. 0. #3 2018-01-03 0. 1. … Read more

[Solved] sql server select statement for 3 tables using join [closed]

how about this query : select top 3 Package_Title, DurationInDays,Package_Image_1, Adult_Price , STUFF((Select themes.theme + ‘,’ From package_theme inner join themes on themeid = package_theme.theme Where package_theme.package = packages.Package_ID FOR XML PATH(”)),1,1,”) As theme from packages inner join rates on rates.package = packages.Package_ID 5 solved sql server select statement for 3 tables using join [closed]

[Solved] How to use php_CURL to acess a website [closed]

function get_web_page( $url ) { $options = array( CURLOPT_RETURNTRANSFER => true, CURLOPT_HEADER => false, CURLOPT_FOLLOWLOCATION => true, ); $ch = curl_init( $url ); curl_setopt_array( $ch, $options ); $content = curl_exec( $ch ); curl_close( $ch ); return $content; } echo get_web_page(“http://www.emirates.com/account/english/miles-calculator/miles-calculator.aspx?org=BOM&dest=JFK&trvc=0&h=7b1dc440b5eecbda143bd8e7b9ef53a27e364b”); 1 solved How to use php_CURL to acess a website [closed]

[Solved] how to use rewrite, if first rewrite doesn’t yield a result (search in different locations)

What no one has pointed out to you is that, as per the docs, RewriteConds accept backreferences to the matched pattern in the RewriteRule. So where you are currently testing that the request is not a regular file you would instead check your preferred substitution is a file. Repeat this for your fallback substitution. Edit: … Read more

[Solved] How to prevent website download, so someone can’t download my full website [duplicate]

The Users will be able to download only the views that you populate via php. CodeIgniter is a MVC (Model-View-Controller) framework for a reason, it encapsulates the business logic from what can be accessed by users. http://www.codeigniter.com/user_guide/overview/mvc.html solved How to prevent website download, so someone can’t download my full website [duplicate]

[Solved] Java – interface -instsnceof

JLS 15.20.2 states: If a cast of the RelationalExpression to the ReferenceType would be rejected as a compile-time error (ยง15.16), then the instanceof relational expression likewise produces a compile-time error. In such a situation, the result of the instanceof expression could never be true. In this case (Intf) obj is not a compile time error … Read more