Posts

Showing posts from June, 2011

css - Can using line-height < 1 cause problems? -

Image
i'm using specific font (font-size: 16px). when use line-height:1 , character's baseline not positioned @ bottom. there 2px gap: if reduce line-height 0.75 better results. can align text in more precise way other elements. can implement spacings defined in graphic mockups without doing calculations. using padding-bottom can control line spacing. does setting line-height < 1 have side-effects should aware of? supported today's browsers in concise way? i not call "bad practice" though can cause ugly results when text wraps on multiple lines. using "alignment-hacks" said should no problem @ all. edit: maybe answer promised much. careful line-height property beacause mentioned may cause ugly results on multi-line text. if want keep website responsive margins on paragraphs (positive or negative) better solution.

android - CoordinatorLayout in combination with CollapsingToolbarLayout, RecyclerView and Fragments issue -

in application have 1 mainactivity witch contains container fragments, 1 fragment - coordinatorfragment cordinatoirlayout+recycleview , collapsingtoolbarlayout , second - simplefragment 1 textview. on create mainactivity add first fragment @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); fragmenttransaction transaction = getfragmentmanager().begintransaction(); fragment fragment = new coordinatorfragment(); transaction.replace(r.id.fragmentcontainer,fragment); transaction.commit(); } coordinatorfragnet's layout: <android.support.design.widget.coordinatorlayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <android.support.design.widget.appbarlayout android:id="@+id/main_appbar" android:layout_width="match_parent...

c# - Binding DataTemplateSelector with treeview item programmatically in WPF -

i not able bind data template selector tree view item programmatically. here have created parameterized data template selector , can not bound tree view in xaml. here code data template selector public class mytemplate : datatemplateselector { private ivm_manytoonemapping _viewmodel; public mytemplate(ivm_manytoonemapping viewmodel) { _viewmodel = viewmodel; } } tried approach : mytemplate obj= new mytemplate(viewmodel) treeviewlist.itemtemplateselector = obj; it not working. this not how datatemplateselector works: here example : public class templateselector : datatemplateselector { //you override function select data template based in given item public override system.windows.datatemplate selecttemplate(object item, system.windows.dependencyobject container) { if(item myviewmodel1) return datatemplate1; if(item myviewmodel2) return ...

php - Laravel (5.1) query builder does not properly add bindings to a raw select statement -

i'm using laravel 5.1 , have following simple query: $searchterm = 'random word'; $subquery = db::table('userprofile')->selectraw(" user_id, match(first_name, last_name) against('?*' in boolean mode) search_score ") ->addbinding($searchterm) ->get(); this returns nothing , when directly replace quotation mark with ... against('$searchterm*' in boolean mode) ... then results correct. however, if do db::getquerylog(); i get "query" => "select `user_id`, match(first_name, last_name) against('?*' in boolean mode) search_score `userprofile`" "bindings" => array:1 [ 0 => "random word" ] so it's if bindings should added, they're not. have tried variations of select, selectraw, ->setbindings, ->addbinding($searchterm, ['select']) etc. have been suggested elsewhere. how can make these bindings work? did try replacing whole ...

Update docker container when new image is getting released -

except watchtower other tools have in order update containers when new image getting released? watchtower seems t not support yet private registry other docker hub, ie use gitlab registry. this discussed in watchover issue 3 , reference pr 13 allows pulling private images (on docker hub though). you need apply pr 26 in order fix support private docker registry authentication. latest effort support private images being developed, there no other alternative project find.

javascript - jQuery UI datepicker within jquery-confirm dialog -

i'm using jquery-confirm script link below. has capability include form field within dialog box. can see clicking on "act prompt" blue button @ link below. i've got form (a single field) set up, want input datepicker, , don't know should put javascript make happen since form doesn't exist until dialog generated. https://craftpip.github.io/jquery-confirm/ my dialog javascript: $('.deal_edit').on('click', function () { var id = $(this).attr('data-id'); $.confirm({ title: 'change end date', content: 'url:form.txt', confirm: function () { var input = this.$b.find('input#new_end_date').val(); var errortext = this.$b.find('.text-danger'); if (input.val() == '') { errortext.show(); return false; ...

linux - Which ANSI code should I use to make text muted (dark gray)? -

when use code 1;30m produces different results: xshell 5: gray , bold phpstorm terminal: bold windows console: gray the goal make part of text muted, if possible, should display in terminal clients. anyway don't understand how "bold" flag can change foreground color. doing wrong? ansi didn't specify that. ansi listed black , red , etc., , mentions bold . how particular terminal displays bold+black implementation-defined (no standard applies). "ansi" refers x3.64, withdrawn many years ago, replaced ecma-48 (aka iso 6429). for amusement: ecma-48: control functions coded character sets aren't bright colors same bold? (xterm faq) how color vt100? (ncurses faq)

c# - Cut characters out of dataset before insert -

i running sql query stores results in dataset , if dataset has rows run query insert table. problem data coming out string , saved 001234 whereas want data stored in table 1234 sitting primary key. have thought tried each row in dataset , substring getting error saying:- given value of type string data source cannot converted type int of specified target column. trying store int in database table. //runs rollid query , stores in dataset , datatable public dataset getdataset(string sqlcommand, string connectionstring) { string connectionstring = (configurationmanager.connectionstrings["datconnectionstring"].connectionstring); dataset ds = new dataset(); using (sqlcommand cmd = new sqlcommand( sqlcommand, new sqlconnection(connectionstring))) { cmd.connection.open(); datatable rolltable = new datatable(); rolltable.load(cmd.executereader()); ds.tables.add(rollt...

R Looping through list of follower to get ego network using twitteR package -

i trying network data on follows based on closed list of twitter accounts followed given user. is, given user a , i'd retrieve friends list , learn of friends follows each other. the first issue had rate limit set twitter api, seemed solve using sys.sleep() function. although slow, used function shown below , worked fine first time. however, trying same info other users' friends list , keeps on giving me errors of type: error in curl::curl_fetch_memory(url, handle = handle) : timeout reached error http 503 , other errors. far i've tried 3 times in 3 different laptops , got different error each time. idea why may happening? thanks lot in advance! friendsnet <- function(tuser) { require(twitter) # if rate limit hit, wait 15 minutes limit <- getcurratelimitinfo()[53,3] print(paste("look limit", limit)) if (limit == 0) { print("sleeping fifteen minutes") sys.sleep(900) } # find user tuser <- getuser(tuser) ...

obfuscation - How to properly obfuscate javascript code with javascript2img? -

i tried obfuscating js code using javascript2img. gave me obfuscated code. state, "copy code , paste js or html file. that's all!". keep getting error. "uncaught syntaxerror: unexpected identifier game.js:1" un-obfuscated code works fine. example: following doesnt work obfuscated without obfuscation. var game = new phaser.game(400, 490, phaser.auto, "gamediv"); var mainstate = { preload: function() { if(!game.device.desktop) { game.scale.scalemode = phaser.scalemanager.show_all; game.scale.setminmax(game.width/2, game.height/2, game.width, game.height); } game.scale.pagealignhorizontally = true; game.scale.pagealignvertically = true; game.stage.backgroundcolor = '#71c5cf'; game.load.image('bird', 'assets/bird.png'); game.load.image('pipe', 'assets/pipe.png'); // load jump soun...

ios - React Native: Bundle Identifier does not exist -

i have project in react native has 2 different build schemes , uses cocoapods. compile run: react-native run-ios --scheme="rnproject-(scheme_name)" the resulting apps example: ./build/build/products/debug/iphonesimulator/rnproject-customer1.app ./build/build/products/debug/iphonesimulator/rnproject-customer2.app using command builds 1 of build schemes, not other xcode builds project both build schemes furthermore, build/build/products/debug-iphonesimulator/rnproject-customer1.app/info.plist exists in path , file contains valid cfbundleidentifier (it matches general > identity > bundle identifier each of 2 build schemes) project settings seem correct both schemes (after checking ios/rnproject.xcodeproj/project.pbxproj ) schema-specific settings located in ios/pods/target support files/pods-rnproject-customer1 , ios/pods/target support files/pods-rnproject-customer2 i tried different ways solve it: running sudo react-native restarting rn packag...

c# - How can i enumerate methods inside this class? -

Image
when check via debug, can see methods , variables no matter solution have tried posted on stackoverflow failed here how can see methods debug here class [global::system.diagnostics.debuggernonusercodeattribute()] public sealed partial class playerstats : pb::imessage<playerstats> { /// <summary>field number "level" field.</summary> public const int levelfieldnumber = 1; /// <summary>field number "experience" field.</summary> public const int experiencefieldnumber = 2; /// <summary>field number "prev_level_xp" field.</summary> public const int prevlevelxpfieldnumber = 3; /// <summary>field number "next_level_xp" field.</summary> public const int nextlevelxpfieldnumber = 4; /// <summary>field number "km_walked" field.</summary> public const int kmwalkedfieldnumber = 5; /// <summary>field number "pok...

java - How to change JButton text in one class based on data from another class? -

background: have accountingmoduleui jframe , has chart of accounts jpanel contains account jbuttons part of arraylist generated through createaccount jbutton , code continuous jbutton generation follows: private void btncreateaccountactionperformed(java.awt.event.actionevent evt) { jlabel2.settext("chart of accounts"); buttonarraylist.add(new jbutton("button"+buttoncount)); panelaccounts.add(buttonarraylist.get((buttonarraylist.size()-1))); buttonarraylist.get((buttonarraylist.size()-1)).show(); buttoncount++; buttonarraylist.get((buttonarraylist.size()-1)).addactionlistener(new actionlistener(){ public void actionperformed(actionevent e){ inputform.show(); } }); repaint(); revalidate(); } when 1 of newly created jbuttons clicked, input form presented, it's own stand alone class. user enters information , clicks submit button, creates a...

asp.net mvc - parse broken json string(response from web api); -

{{ "draw": "1", "recordsfiltered": 670, "recordstotal": 670, "books": [] }} this response json data returned web api.. how can desirialize it? here asp.net web api method: public jsonresult getbooks(){ .. return new jsonresult() { data = new { draw = draw, recordsfiltered = totalrecords, recordstotal = totalrecords, data = booklist }, jsonrequestbehavior = jsonrequestbehavior.allowget }; the trick make me crazy here, when make same request in browser response valid json string: { "draw": "1", "recordsfiltered": 670, "recordstotal": 670, "books": [] } but when check content of response in client debugmode see scope surroading data.. can describe stuation before joniour developer suicide..

javascript - How to add custom font to SharePoint online? -

i want apply custom font custom sharepoint master page. have tried create new font-scheme, problem font custom one. is there solution on how apply custom fonts sharepoint custom master pages? i'm not sure version of sharepoint using. in 2013 can create "theme" uses color palette, , font scheme. specifically check out webfonts section that proper way sharepoint branding. use css each page , include global css file in master page have custom font. need have url of font .

php - How to get image upload date from another website -

i need know image upload date jpg file on website. image has no exif information (everything empty). how can done? it's not own server can't use ftp. you can server sends you, in case image data. don't know got image-data from, , don't know when put there. ... unless, separate request, server gives such information.

r - Repeated subsetting and arithmetic of dataset based on second dataframe -

i have dataframe "dfa" (65,000 rows) of form: chr pos ncp ncp_ratio 1 72 1.06 0.599 1 371 4.26 1.331 1 633 2.10 2.442 1 859 1.62 1.276 1 1032 7.62 4.563 1 1199 6.12 4.896 1 1340 13.22 23.607 i wish use values of chr , pos in each row of dfa sequentially subset second data.frame dfb of form: chr pos watson crick 1 1 5 0 1 2 5 0 1 4 1 0 1 6 1 0 1 7 1 0 1 8 2 0 1 9 2 0 1 12 1 0 1 14 1 0 1 15 2 0 1 22 1 0 dfb has 4 million rows. each time subset dfb , i'd retrieve values region of interest based on range in pos (i.e. +/- 1000 value of pos in dfa ), , add them third data.frame dfc prefilled zeros. i have working looping through each row of dfa . due 65,000 rows, takes hours. questions are: is there better/more efficient way? which part of code slowing down terribly?" my...

android - I have problems with Database inserting in eclispe -

i've created simple app student's name , save in database , if inserted , show toast otherwise show 'didn't work' toast. how can find out database saved? here script codes: student public class student { public string name; } databasemanager import android.content.context; import android.database.sqlite.sqlitedatabase; import android.database.sqlite.sqliteopenhelper; public class databasemanager extends sqliteopenhelper { public databasemanager(context context) { super(context, "mydata", null, 1); } @override public void oncreate(sqlitedatabase arg0) { // todo auto-generated method stub string query = "create table tbl_student_info ( " + " name varchar( 10 )," + ");"; arg0.execsql(query); } @override public void onupgrade(sqlitedatabase arg0, int arg1, int arg2) { // todo auto-generated method st...

xamarin.ios - How do you clear text from a table cell on iOS with xamarin.UITest? -

i have been trying use: cleartext(c => c.class("mycell").index(0)); the output says: "clearing text in element using element matching class("mycell").index(0)." but text stays put i needed target "uitextfield" rather "mycell"

kotlin - In Kodein dependency injection, how can you inject instances of Kodein itself into instances? -

in kodein, have modules imported parent module, , classes need instance of kodein can injection later. problem code: val parentmodule = kodein { import(someservice.module) } where someservice.module needs kodein instance later, kodein isn't yet created. passing later module seems bad idea. in kodein 3.x see there kodein-conf module has global instance, want avoid global. how other modules or classes kodein instance? note: this question intentionally written , answered author ( self-answered questions ), idiomatic answers commonly asked kotlin/kodein topics present in so. in kodein 3.x (and maybe older versions) have access property within initialization of module called kodein can use in bindings. within module, binding like: bind<someservice>() singleton { someservice(kodein) } for complete example , using separation of interfaces vs. implementation, might this: interface someservice { // ... } class defaultsomeservice(val ...

How do I get the columns into an csv file with opencsv from a JSONobject in Java? -

i writing little app go api, json data , fill csv file. it works far, csv file, correct rows, instead of columns there still commas in text form in file. i using opencsv. private void writecsv(inputstream input, string name) throws ioexception { string line; bufferedreader reader = new bufferedreader(new inputstreamreader(input, "utf-8")); stringbuilder text = new stringbuilder(); while ((line = reader.readline()) != null) { text.append(line); } jsonarray docs = new jsonarray(text.tostring()); file file=new file(name + ".csv"); string csv = cdl.tostring(docs); csvwriter writer = new csvwriter(new filewriter(file)); bufferedreader sreader = new bufferedreader(new stringreader(csv)); string csvline; while ((csvline = sreader.readline()) != null) { writer.writenext(csvline); } writer.close(); system.out.println("...

go - Mocking crypto/ssh/terminal -

has had success or have ideas on best way mock entry (for testing purposes) term.readpassword(int(os.stdin.fd())) call in golang.org/x/crypto/ssh/terminal package? i have tried creating temp file (vs os.stdin ) , writing string values testing\n or testing\r temp file error inappropriate ioctl device . i'm guessing tty related or specific format missing(?) not sure. help appreciated. if stubbing test creating fake file os.stdin referencing, tests become tremendously os specific when try handle readpassword() . because under hood go compiling separate syscalls depending on os. readpassword() implemented here , syscalls based on architecture , os in this directory . can see there many. cannot think of way stub test in way specifying. with limited understanding of problem solution propose inject simple interface along lines of: type passwordreader interface { readpassword(fd int) ([]byte, error) } func (pr passwordreader) readpassword(fd int) ([]byte, er...

collections - java downcast results in method not applicable error -

i trying downcast function database objects. get: the method getasstringarray(hashmap<long,dbobject>) in type dbobject not applicable arguments (hashmap<long,dbemployee>) when try call getasstringarray(). here test code: dbobject base class: public class dbobject implements comparable<dbobject> { protected long id; public long getid() { return id; } public void setid(long id) { this.id = id; } public static dbobject[] getasarray(hashmap<long,dbobject> map) { collection<dbobject> list = map.values(); dbobject[] ar = list.toarray(new dbobject[] {}); arrays.sort(ar); return ar; } public static string[] getasstringarray(hashmap<long,dbobject> map) { vector<string>vstrings = new vector<string>(); collection<dbobject> list = map.values(); dbobject[] ar = list.toarray(new dbobject[] {}); arrays.sort(ar); ...

eclipse - Can't switch to Groovy 2.4 on GGTS -

Image
i followed following guide upgrade grails 3.0 & groovy 2.4 cannot seem find in eclipse (ggts version: 3.6.4.release) can switch compiler. this guide i've been following: https://tedvinke.wordpress.com/2015/04/10/grails-3-released-installing-gradle-and-groovy-2-4-support-in-eclipseggts/ did fine until step 5. here's problem: all want upgrade project grails 3 & groovy 2.4 there other ide supports perhaps? thanks! found issue... posting in case else gets here. apparently 2.4 compiler did not install correctly expected. the solution reinstall groovy 2.4 eclipse feature link in eclipse marketplace: http://dist.springsource.org/snapshot/greclipse/e4.4/

css - collection-repeat on thumbnail cards and weird margins -

Image
i building collection-repeat iterates through objects , fills cards based on them. have 2 main questions complete job. have been using 'thumbnail' cards when using approach not able correctly set margins. adds margin on left , none on right nor between different cards (bottom margin). have tried css, nothing works. this html code: <div class="card" collection-repeat="item in items" item-width="'100%'"> <div class="item item-divider"> {{item.eventtitle}} </div> <div class="item item-text-wrap"> <b>{{item.eventhour}}</b><br />{{item.eventtext}} </div> </div> and on browser (no custom css added here), @ left margin , unexisting 1 on right: how can solve both problems bottom , right margins? thanks in advance is there specific reason using collection-repeat? limit styling options. converting simple ng-repeat make...

html - Display Value of a chossen ListItem from a DropDownList in VB -

i'm using vb , have dropdownlist want value displayed integer. if user chooses 15, display 'size: 300' <asp:dropdownlist id="applist" runat="server" autopostback="true" width="110px"> <asp:listitem value="1000">15-1</asp:listitem> <asp:listitem value="500">15-2</asp:listitem> <asp:listitem value="300">15</asp:listitem> </asp:dropdownlist> size: the simplest option use code render block display selected value: size: <%= applist.selectedvalue %> of course, there plenty of other options. e.g. use label data-binding expression , require call page.databind() : size: <asp:label runat="server" text="<%# applist.selectedvalue %>" /> ' in code-behind protected sub page_load(byval sender object, byval e system.eventargs) handles me.load page.databind() e...

ios - Printing arrays to screen in React Native -

i want print couple of arrays on screen in react native ios app. right nothing showing on screen. console.logs after loop show arrays have data supposed have, not reflected on screen. how render again after fetch call has loaded? here's code: 'use unique' import react, { component } 'react'; import { stylesheet, touchablehighlight, text, view, listview } 'react-native'; import api './apicall'; class apirequest extends component { constructor() { super(); this.state = { users: [], id: [], type: [] } } componentwillmount() { api.getdata() .then((res) => { this.setstate({ users: res }) (var = 0; < this.state.users.length; i++) { this.state.id.push(this.state.users[i].id); this.state.type.push(this.state.users[i].type); }); } render() { return( <view style={styles.container}> ...

mongodb - What does nscannedObjects = 0 actually mean? -

as far understood, nscannedobjects entry in explain() method means number of documents mongodb needed go find in disk. my question is: when value 0, mean besides explanation above? mongodb keep cache documents stored there? mongo document database, means can interpret structure of stored documents (unlike example key-value stores). one particular advantage of approach can build indices on documents in database. index data structure (usually variant of b-tree), allows fast searching of documents basing on of attributes (for example id (!= _id) or other distinctive feature). these stored in memory, allowing fast access them. when search documents basing on indexed attributes (let's id > 50), mongo doesn't need fetch document memory/disk/whatever - can see documents match criteria basing solely on index (note fetching disk several orders of magnitude slower memory lookup, no cache). time goes disk when need fetch document further processing (and not cove...

c# - Bitmap.Save the whole mage is black, not just the background -

this question has answer here: background turns black when saving bitmap - c# 2 answers i taking screenshot of external application printwindow , want save desktop. this code : // proc process proc = process.getprocessesbyname("procname").single(); intptr hwnd = proc.mainwindowhandle; // restore proc if minimised int style = getwindowlong(hwnd, gwl_style); if ((style & ws_minimize) == ws_minimize) showwindow(hwnd, windowshowstyle.restore); // rect rect rect; getwindowrect(new handleref(this, hwnd), out rect); // screenshot int width = rect.right - rect.left; int height = rect.bottom - rect.top; bitmap bmp = new bitmap(width, height); using (graphics g = graphics.fromimage(bmp))...

parse.com - parse password reset email -

i have moved our parse server onto elastic beanstalk instance , result have had set mailgun email adapter send out password resets. my issue links provided password reset email not work: cannot /apps/pvrdbvgdey6k59nq4tmoyuokcy0szcfp6gcgfge0/request_password_reset?token=sdvc5xlor4ohminfnekxc7wuz&username=testuser the code emailverifytokenvalidityduration: 2 * 60 * 60, // in seconds (2 hours = 7200 seconds) preventloginwithunverifiedemail: false, // defaults false publicserverurl: process.env.server_url || 'http://localhost:1337/parse', appname: 'instyle', emailadapter: { module: 'parse-server-simple-mailgun-adapter', options: { fromaddress: 'no-reply@domain.com', domain: 'domain.com', apikey: 'key-example', } } there no error code. works me current parse-server v.2.3.2. may process.env.server_url doesn't have /parse path? in anyway, correct path parse-server password...

java - how to get upgraded org.jboss.as.jmx:main in WildFly10 -

i trying upgrade application jboss 7 wildfly10, , getting warning: [0m[33m13:53:36,641 warn [org.jboss.as.dependency.private] (msc service thread 1-6) wflysrv0018: deployment "deployment.mywar.war" using private module ("org.jboss.as.jmx:main") may changed or removed in future versions without notice. the module mentioned in jboss-deployment-structure.xml follows: <?xml version="1.0" encoding="utf-8"?> <jboss-deployment-structure > <deployment> <dependencies> <module name="org.jboss.as.jmx"/> </dependencies> </deployment> </jboss-deployment-structure> how called new module jmx? tried replace org.jboss.remoting-jmx got invocation of init method failed; nested exception javax.management.jmruntimeexception: failed load mbeanserverbuilder class org.jboss.as.jmx.pluggablembeanserverbuilder: java.lang.classnotfoundexception: org.jboss.as.jmx.pluggablembeanse...

python - OneHotEncoded features causing error when input to Classifier -

i’m trying prepare data input decision tree , multinomial naïve bayes classifier. this data looks (pandas dataframe) label feat1 feat2 feat3 feat4 0 1 3 2 1 1 0 1 1 2 2 2 2 1 1 3 3 3 2 3 i have split data datalabel , datafeatures. prepared datalabel using datalabel.ravel() i need discretize features classifiers treat them being categorical not numerical. i’m trying using onehotencoder enc = onehotencoder() enc.fit(datafeatures) chk = enc.transform(datafeatures) sklearn.naive_bayes import multinomialnb mnb = multinomialnb() sklearn import metrics sklearn.cross_validation import cross_val_score scores = cross_val_score(mnb, y, chk, cv=10, scoring='accuracy') i error - bad input shape (64, 16) this shape of label , input datalabel.shape = 72 chk.shape = 72,16 why won't classifier accept onehotencoded features? edit - entire stack trace code /root/anacond...

node.js - expressJS 4.x + vhost + SSL/HTTPS -

i not familiar ssl wondering missing make vhost + expressjs ssl connected. code works virtualhost+ expressjs not https. port open. var options = { key: fs.readfilesync("ca.key"), cert: fs.readfilesync("ca.crt") } var main = express(); if (!module.parent) main.use(logger('dev')); main.get('/', function(req, res){ // }); var app = module.exports = express(); app.use(vhost('myappblahbblah.com', main)); var server = https.createserver(options, app); server.listen(443);

python - Pentaho PDI: Metadata related Null Pointer Exception in Scripting task -

using pentaho pdi 6, with: a) csv input on .csv (4 row .csv ibm) , ascii file encoding (preview rows works fine) connected to b) cpython script executor , installable tools -> marketplace. assumes python, pandas, numpy installed. script settings: configure, input frames: (previous step), df python script, manual python script: df.replace(to_replace= "\[|\]|'|\"", value='', regex=true, inplace=true) output fields, output fields: (column names, string type) throws 2016/07/25 10:45:21 - cpython script executor.0 - error (version 6.1.0.1-196, build 1 2016-04-07 12.08.49 buildguy) : unexpected error 2016/07/25 10:45:21 - cpython script executor.0 - error (version 6.1.0.1-196, build 1 2016-04-07 12.08.49 buildguy) : java.lang.nullpointerexception 2016/07/25 10:45:21 - cpython script executor.0 - at org.pentaho.python.pythonsession.rowstopythondataframe(pythonsession.java:389) 2016/07/25 10:45:21 - cpython script executor.0 - at org.pen...

android - Cards not getting aligned correctly -

i trying have 4 cards.i want first 2 cards horizontally aligned next each other , 2 cards need below , aligned horizontally next each other. i using 2 separate linearlayout each row of 2 cards(i.e 2 cards in each row). the problem first 2 cards visible , other 2 cards not visible. xml code <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:card_view="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context=".mainactivity" android:background="#bcd4d4" android:weightsum="1"> <linearlayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" android:la...