Posts

Showing posts from May, 2013

c# - SMTP Server Authentication Error -

i'm working on app send crash report email if global threading exception invoked. however, every time try send email, error the smtp server requires secure connection or client not authenticated. server response was: 5.5.1 authentication required. learn more at. <-- error message ends here seems weird. my exception event handler looks this: private void currentdomain_unhandledexception(object sender, unhandledexceptioneventargs e) { mailaddress fromaddress = new mailaddress("user@domain.com", "mary"); mailaddress toaddress = new mailaddress("user@domain.com", "sam"); const string frompassword = "password"; const string subject = "exception report"; exception exception = e.exceptionobject exception; string body = exception.message + "\n" + exception.data + "\n" + exception.stacktrace + "\n" + exception.source; va...

How to cycle through Textbox Controls Access VBA -

i wanted code cycle thru names of text box controls on form visible = true. know code constructed incorrectly, need ask if can point me in right direction. public sub txtboxnamevisible(byref pfrm form) dim ctl control dim txtbx textbox each txtbx in pfrm.controls.visible = true msgbox txtbx.name next txtbx end sub pfrm.controls.visible not compile because controls collection. visible supported property members of collection, not supported on collection itself. loop through pfrm.controls , check whether each of them visible text box, , msgbox names of ... dim ctl control each ctl in pfrm.controls if ctl.controltype = actextbox , ctl.visible = true msgbox ctl.name end if next ctl

Django celery beat pytz error on startup -

out of blue following error when trying start dev server celery , celery beat. 1 day thing works next day doesn't, haven't changed explain this. start server using foreman , procfile.dev so: procfile: web: python manage.py runserver celeryd: python manage.py celeryd -e -b --loglevel=info --concurrency=3 worker: python manage.py celerycam command: foreman start -f procfile.dev like said never gave errors. stacktrace below: 14:18:44 celeryd.1 | [2013-03-01 14:18:44,216: info/beat] celerybeat: starting... 14:18:44 celeryd.1 | [2013-03-01 14:18:44,224: warning/beat] process beat: 14:18:44 celeryd.1 | [2013-03-01 14:18:44,224: warning/beat] traceback (most recent call last): 14:18:44 celeryd.1 | [2013-03-01 14:18:44,224: warning/mainprocess] celery@allards-macbook-pro.local has started. 14:18:44 celeryd.1 | [2013-03-01 14:18:44,224: warning/beat] file "/users/allard/.virtualenvs/hellolily/lib/python2.7/site-packages/billiard/process.py", line 273, in _...

c# - How do we find duplicates in a list of objects -

this question has answer here: c# linq find duplicates in list 5 answers how find duplicates in list of objects based on multiple properties? the following code not returning if list contains dupes or not. var dups = listitems.groupby(i => new { i.value, i.code }) .where(g => g.count() >= 1) .select(g => new { length = g.key.value, label = g.key.code, count = g.count() }); i guess have error in condition where(g => g.count() >= 1) return groups 1 or more items (actually group have @ least 1 item condition true). if want duplicates should be: where(g => g.count() > 1) . so result code be: var dups = listitems.groupby(i => new { i.value, i.code }) ....

c# - Calling unknown settings -

c# project in visual studio 2013 i need build x-walk (cross reference) between database's field names , list of 'standard' names. because list needs maintained , updated, inclination create settings class , call setting cross reference. e.g. [global::system.configuration.applicationscopedsettingattribute()] [global::system.diagnostics.debuggernonusercodeattribute()] [global::system.configuration.defaultsettingvalueattribute("size")] public string mysize { { return ((string)(this["mysize"])); } } and called thus: private string str = myproject.attributexref.default.mysize; here rub comes... @ run-time code have respond passing 'attributes' name , have perform lookup. if have 'mysize' , not myproject.attributexref.default.mysize; should doing similar myproject.attributexref.{0} or... going wrong? and answer is... var = "mysize"; var b = myproject.attributexref[a]; console.writeline...

jquery - how to send message to specific user using SignalR -

i upgraded signalr v 0.53 1.0.1 , found oput iconnectionidgenerator interface weere using set clientids on connect not longer exsist (which made me sad). now question is, how around problem? how send message specific user (or set of users) without being able set each specific users connection id?? i'm not familiar previous versions of signalr the version v1.0.1 may send messages (call javascript methods) on client within hub using clients property. for example: clients.caller.addmessage(data); - sends message caller client. clients.all.addmessage(data); - sends message clients. etc. (check hubconnectioncontext class). if need maintain groups of clients, use groups property. you can maintain custom groups using context.connectionid . for detailed information can have @ signalr wiki page. hope helps further.

java - Start external program, but keep application in foreground -

i'm writing rss reader desktop application in java swing (odd choice, know) needs start web browser of user's choice (suppose it's firefox). use runtime.exec("firefox -new-window $url"). starts new window of firefox appears in foreground. when click link in application, want start firefox keep application on top (so can open several links , go them). there way this? preferably should work browser (any program) , start maximized not in foreground, though i'd settle other solutions starting minimized or using command line arguments of firefox (i haven't found purpose). it's kind of funny - questions i've found people having opposite problem, , i've written similar application several years in c# works intended. vaguely remember having same problem, looking @ sources now, don't see solution - seems starts browser no stuff. i got it. reason why not find right answer was asking wrong question. solution has nothing launching prog...

android - Always getting empty Wifi scanResult on Nexus 6 -

i created project available hotspots. works on versions older android 6.0. when using nexus (android 6) scan result always empty . anyone knows problem is? this can happen in 2 cases 1. when compiled sdk version 22 or below. 2. or compiled sdk 23 , use has explicitly denied location permission app when asked in marshmallow.

python - Transliterator fails at certain digraphs -

here code: def digraph(chars): als = "шжяеёющчШЖЯЕЁЮЩЧ" new = {'sh':als[0],'zh':als[1],'ja':als[2],'je':als[3],'jo':als[4], 'ju':als[5],'sx':als[6],'ch':als[7],'sh':als[8],'zh':als[9], 'ja':als[10],'je':als[11],'jo':als[12],'ju':als[13],'sx':als[14], 'ch':als[15],'sh':als[8],'zh':als[9],'ja':als[10],'je':als[11], 'jo':als[12],'ju':als[13],'sx':als[14],'ch':als[15]} try: return new[chars] except: return "[error]" def trans_cyr(inp): cyrillic = "абцдэфгхийклмнопрстувъыьзАБЦДЭФГХИЙКЛМНОПРСТУВЫЗ " latin = "abcdefghijklmnoprstuv$y'zabcdefghijklmnoprstuvyz " digs = ['sh','zh','ja','je','jo','ju','sx','ch','sh','zh', 'ja',...

elasticsearch - Elastic Search Script taking date as String -

i have couple of date fields in type . trying run script on date fields find duration between 2 dates. script takes date field string , gives no such property: millis class. beleive elastic search stores in date in epoch millis. here script trying ctx._source.duraton = ctx._source.sessionterminationdatetime.value.millis - ctx._source.eventconversiondatetime.value.millis here mapping "access-event-logs": { "mappings": { "session-summary": { "dynamic_templates": [ { "long_1": { "mapping": { "type": "long" }, "match": "generation" } }, { "datetime_1": { "mapping": { "format": "strict_date_optional_time||epoch_millis", "type": "date...

ios - How to disable UISlider Swift -

i've seen answers no actual code explaining how to, i'm new swift confused on how perform simple task. i have uislider want disable sliders funcation when if statement true. i current have uislider if statement can't workout how disable it. @ibaction func radiusslider(sender: uislider) { if location == false { //disable slider } else { radiusdata.radiusvalue = double(sender.value) radiuslabel.text = "radius: \(sender.value)km" nsnotificationcenter.defaultcenter().postnotificationname(radiusvalue, object: self) } } or in within viewdidload? if how? all appreciated set enabled property false. @ibaction func radiusslider(sender: uislider) { if location == false { sender.enabled = false } else { radiusdata.radiusvalue = double(sender.value) radiuslabel.text = "radius: \(sender.value)km" nsnotificationcenter.defaultcenter().postnotificatio...

Python CSV reader TypeError: string pattern on bytes object -

i trying use python csv reader first time. have method asks user select file want parse , passes file path parse method: def parse(filename): parsedfile = [] open(filename, 'rb') csvfile: dialect = csv.sniffer().sniff(csvfile.read(), delimiters=';,|') csvfile.seek(0) reader = csv.reader(csvfile, dialect) line in reader: parsedfile.append(line) return(parsedfile) def selectfile(): print('start selectfile method') localpath = os.getcwd() + '\files' print(localpath) filea in os.listdir(localpath): print (filea) test = false while test == false: fileb = input('which file deid? \n') conjoinedpath = os.path.join(localpath, fileb) test = os.path.isfile(conjoinedpath) userinput = input('please enter number ...

sql - Only return the values that never occur in subquery -

i've been stuck on 3 hours now. i'm sorry having ask here, can't through it. i've got table 2 columns. column called "process" , column b called "done". if there case process isn't done (thus having "0" value in b column) don't want have return @ all. the subquery tried use this: select table not in (select table b = 0); still, gives me values don't want. don't understand why not work. want processes return have values of 1 in b column. it's not clear why won't work you: select table b = 1 if have multiple rows same value , want ensure all of them have b set done: select table group having min(b) = 1 select table group having count(*) = count(case when b = 1 1 end) select table group having count(*) = sum(b) /* might not work */ the problem think last queries equivalent 1 you've got.

Setting table expiration time using Dataflow BigQuery sink -

is there way set expiration time on bigquery table when using dataflow's bigqueryio.write sink? for example, i'd (see last line): pcollection<tablerow> mainresults... mainresults.apply(bigqueryio.write .named("my-bq-table") .to("project:dataset.table") .withschema(getbigquerytableschema()) .withwritedisposition(bigqueryio.write.writedisposition.write_truncate) .withcreatedisposition(bigqueryio.write.createdisposition.create_if_needed)) .withexpiration(1452030098l) //**this table should expire on 31st jan i can't see in dataflow api facilitate this. of course, use bigquery api, better able in via dataflow when specifying sink. this isn't supported in dataflow api. can @ adding soon, should straightforward addition.

Racket COM: cannot get IDispatch interface for object - what's next? -

i'm trying use ms ui automation racket 6.x (uiautomationcore.idl under ms sdk uiautomationcore.dll under system) , safe racket call fails cannot idispatch error. code below: #lang racket (require ffi/com) (define clsid-cuia (string->clsid "{ff48dba4-60ef-4201-aa87-54103eef594e}")) (define cuia-instance (com-create-instance clsid-cuia)) (com-methods cuia-instance) the c++ code works same interface: cocreateinstance(clsid_cuiautomation, null, clsctx_inproc_server, iid_iuiautomation, reinterpret_cast<void**>(ppautomation)); my question is, should use interface? i've been trying find answer in racket reference have spent lot of time without answers. haven't studied racket c ffi (except section 5.12 com), , wondering whether should learn whole ffi before trying use more advanced code above. after spending more time on reference (thanks hans' initial comment), know answer. it's not an...

git - Updating Laravel Forge deployment repo from L4 to L5 -

i'm upgrading laravel 4 laravel 5 , following advise of this tutorial have created second repo containing new laravel 5 code. i've got ready push live, i'm stuck trying figure out how deploy appropriately on forge. i prefer not uninstall existing repo in forge. because don't want risk messing stored user files. so, left wondering how pull l5 project repo original repo? i've tried make pull request on bitbucket can't select external repo. i've tried simple push, can't push branch on external repo either. as can tell, i'm not git master, use basic functions @ point.

c# - Zebra won't print when I write filestream -

i trying print raw zpl data zebra printer using byte array. when run program nothing prints , program passes through no issue. time print asking if step through , check filestream values before close it, label print. can causing this? update: made suggested adjustments code , winapp. public bool labelprinting(datatable dt, string lblpath) { if (file.exists(lblpath)) { string strcontent = ""; string comport = cboport.text.trim(); streamreader myfile = new streamreader(lblpath); strcontent = myfile.readtoend(); myfile.close(); if (strcontent.length == 0) { return false; } else { char[] bigspacechars = { convert.tochar(0x09) }; strcontent = strcontent.replace(new string(bigspacechars), " "); strcontent = strcontent.replace("<cpn>", dt.ro...

c - Why is gcov generating gcda files with only the executable bit set when open is wrapped? -

i have c project @ hand cmocka tests , built using cmake. try use gcov determine test coverage , use cmake module: https://github.com/bilke/cmake-modules/blob/master/codecoverage.cmake module provides make target runs test target executable (which run gcov) , runs lcov , genhtml generate report. now, problem is, when test target executed, creates .gcda files owner's executable bit set, i. e. read bit missing. subsequently, lcov cannot read these files , produces report coverage of 0%. when chmod u+r gcda files manually afterwards , run post-test lcov commands hand, report generated (displays covered). gcda files created , valid, have unsuitable permissions set. the problem seems stem wrapping (with ld --wrap) open function capturing returned file descriptor in test case. here minimum compiling example: /* wrapped_open.c */ int main(void) { return 0; } int __wrap_open(const char *filename, int flags) { return __real_open(filename, flags); } # cmakelists.txt...

intentfilter - Android Open File Associations -

i can open custom file extensions when accessing browser links without problem. how can associate app file extensions locally on device? specifically to: 1) open file has been downloaded - drag notifications screen top of display lists recent .xm files have been downloaded. able tap on , have application open these files. 2) likewise other file explorer apps if possible. here intent filters. missing? <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> <intent-filter> <action android:name="android.intent.action.view" /> <category android:name="android.intent.category.default" /> <data android:scheme="file" /> <data android:pathpattern=".*\\.xm" /> <data android:host="*" /> <da...

Python datetime.timestamp() issue -

i find datetime.timestamp() function return different value on linux , windows. here simple to replicate it: from datetime import date, time, datetime, timedelta def main(): dt = datetime(2000, 1, 1) edt = datetime(2006, 12, 31) fname = 't1.csv' f = open(fname, 'w') f.write('date,timestamp\n') while dt <= edt: f.write('{0:%y-%m-%d},{1:.0f}\n'.format(dt, dt.timestamp())) dt += timedelta(days=1) f.close() return 0 here last different part windows: (windows7 64 + python3.4.3 64) ... 2006-10-30,1162180800 2006-10-31,1162267200 2006-11-01,1162353600 2006-11-02,1162440000 2006-11-03,1162526400 2006-11-04,1162612800 2006-11-05,1162699200 ... here corresponding linux output: (redhat6 64 + python 3.4.3 64) ... 2006-10-30,1162184400 2006-10-31,1162270800 2006-11-01,1162357200 2006-11-02,1162443600 2006-11-03,1162530000 2006-11-04,1162616400 2006-11-05,1162702800 ... systems using est automatic dst ...

DDD and Entity Framework: Pulling children from aggregate root -

this 1 driving me nuts! simplicity, i'm not gonna put entire code used our ddd expose i've tried , explain isn't working. i have simple database structure: products (holds product data) orders (holds entered orders) orderproducts (ref table between orders , product) i have order aggregate root , want pull out product count of 1 simple order. i fetch order id results in ef lambda: var order = _orderrepository.get(orderid); then, try pull count of products in order using: var count = order.orderproducts.count(); this line chokes when order has lot records because, it's fetching of them. fine. so, i'm refining bit adding filters products want count within order. product has couple of properties include type (so, there's type id). so, i'm trying this: //this trimming down results dozen products) var count = order.orderproduct .where(op=>op.product.typeid == 2) .count(); if use linqpad see ki...

rest - Dart RPC and object hierarchies -

this basic question rest apis. started reading docs , don't see how implement api object/model has sub-objects. instead there description of objects primitives (int, string, etc). is there example object hierarchy? or maybe server model uses ids in class definitions refer sub-objects, how google's ndb it? from docs: currently supported types public fields int, double, bool, string, datetime, list, map, , message class. this means can create structure need, requirement objects in must constructed of in particular way. an example: class person { string name; int age } class address { string city; string street; } class school { list<person> staff; person headmaster; list<person> students; address address; } one limitation did not cannot use inheritance in these classes, again whole point of rpc package create api can consumed client, not dart code.

ios - What is the name of this view? -

Image
i'm want use jtcalendar in project. in documentation states this view isn't provided. know name of view? want use timeline view along calendar view. thank you! it's example developer did put. if searching day timeline control recommend tapku calendar the calendar available via cocoapods. by experience, recommend make stack of events uitableview, instead of day timeline 00:00 23:00, example instead of 00:00 - 01:00 - date tiffany 02:00 - 03:00 - go home you can do: 01:15 - date tiffany (pic here) 03:20 - go home (map link)

foursquare - APIs to map coordinates to places -

what apis/ways map user's location (in coordinates) place? 45.5, 76,6 ---> stadium i understand foursquare apis example. there other ways have experience , recommend? maybe facebook places, or google places? the google places api , factual api both good. to use google api, need register api key: method you'd use is https://maps.googleapis.com/maps/api/place/nearbysearch/output?parameters see https://developers.google.com/places/documentation/ details. the factual api requires api key, , open location data repository. find nearby starbucks, query like: http://api.v3.factual.com/t/places?q=starbucks&geo={"$circle":{"$center":[34.06021,-118.41828],"$meters":5000}} see http://developer.factual.com/display/docs/places+api+-+global+database details. ultimately, best api depend on how location dataset matches needs. interested in categorization? user-contributed photos? etc.

How do you create a cumulative sales graph in PowerBI -

Image
the bar , line charts in power bi allow graph total sales month. example jan sales $100 feb sales $200 mar sales $150 i looking way graph same numbers show cumulative sales total show total revenue year. essentially, total current bar added sum of bars left of it. example above this: jan sales $100 feb sales $100+$200= $300 mar sales $300+$150= $450 this allow see total sales volume on year. ideas on how make happen? the easiest , clearest visual achieve "waterfall chart", this:

swing - Paint function will not iterate more than 3 times Java -

so every time run program , type 1 system, allow me move oval once,then program print debug 2 more times without moving oval. why? import java.awt.graphics; import java.awt.graphics2d; import java.util.scanner; import javax.swing.jframe; /** * * @author admin */ public class testinggame extends jframe{ public scanner scan = new scanner(system.in); public static int x = 0; public static int y = 0; /** * @param args command line arguments */ public static void main(string[] args) { testinggame myframe = new testinggame(); myframe.setsize(1000,1000); myframe.setlocationrelativeto(null); myframe.setdefaultcloseoperation(myframe.exit_on_close); myframe.setvisible(true); } public void paint(graphics g){ update(g); } public void update(graphics g){ graphics2d ga = (graphics2d)g; ga.drawoval(x, y, 50, 50); int input = scan.nextint(); if(input == 1){ ...

git svn - git svn branch results in Authentication failed -

i'm trying of branching , merging via git-svn , i'm hung on branching in subversion. our admin tells me have full read/write permissions on repo, , can fetch latest code. for test, deleted ~/.subversion/svn.simple directory , ran this. 04:13 pm [214423l] c:\dev\myfooapp.bar [master] $ git svn fetch authentication realm: <https://code:443> visualsvn server password 'cflorell': {my password} 04:14 pm [214423l] c:\dev\myfooapp.bar [master] $ git svn fetch 04:14 pm [214423l] c:\dev\myfooapp.bar [master] $ also, if clone repo using tortoise, , create branch using svn appears work. 04:43 pm [214423l] c:\dev\myfooapp.bar $ svn copy https://code/svn/myfooapp.bar/trunk https://code/svn/myfooapp.bar/branches/test-branch -m "test branch" committing transaction... committed revision 93. but upon trying create branch using git-svn , still says auth invalid. 04:14 pm [214423l] c:\dev\myfooapp.bar [master] $ git svn branch develop copying https://...

php - Find url and get ip address of website after redirect -

if have : domaina.com/out.php : <?php header('location: http://domainb.com/'); ?> is possible url : domainb.com , it's ip address , domana.com/out.php domainc.com ? what want : domaina.com/index.php <?php $data = geturlandip("domaina.com/out.php"); echo $data[0]; # wanted output (url) : domainb.com echo $data[1]; # wanted output (ip) : 133.133.133.133 ?> if need redirects, can do function getredirectstouri($uri) { $redirects = array(); $http = stream_context_create(); stream_context_set_params( $http, array( "notification" => function() use (&$redirects) { if (func_get_arg(0) === stream_notify_redirected) { $redirects[] = func_get_arg(2); } } ) ); file_get_contents($uri, false, $http); return $redirects; } this return array holding redirects last entry bein...

Opposite operation to "rails new"? -

rails new creates new rails application, entire rails directory structure. there opposite operation of rails new ? command delete rails new created. or may have manually delete directory rails new generated? rails destroy not option here. opposite of rails generate , destroys separate components of myapp not whole myapp/. you can remove folder. if you're on unix based system, use rm rm -r your_rails_app rails not create files outside directory have remove folder.

java - Jbutton flash between two backround colors -

Image
my problem: efficient way program delay in scenario. my scenario: making quiz game short project, long story short. question answered when user presses 1 of 4 jbuttons having answer on them. quizengine class calls paintbutton method showed here. after proceeds call other methods responsible making next question appear. want make button change between 2 colors decreasing time intervals. what have tried far: first placed joptionpane between paintbutton method , method changes interface next question see if button change color. did successfully. of course wasn't intention, wanted time interval. tried using thread.sleep. although program wait before changing next question, color change not visible. tried implementation of timer thingy (probably not correctly) although changed color program went ahead , proceeded next question. my want code /* paints button pressed red or green * green if anwser correct red if * false * * @param int bnr number of button ...

ajax - jquery .preventDefault() issue -

i want forms handled code: //all form submissions should go through here. $(document).on('submit', 'form', function (x) { //x.preventdefault(); //commented out because it's not working $.ajax({ url: $(this + '#formdestination').val(), //formdestination hidden field, showing submit form type: 'post', datatype: 'json', data: $(this).serialize(), complete: function (xhr, status) { if (status === 'error' || !xhr.responsetext) { window.location = '/broken/?err=inconsolable%20onsubmit%20ajax%20error'; //i'd real error here, ideally } //end if else { loader($('#pagedestination').val()); //loader function animates page loads new content. //#pagedestination hidden field stores page should go when it's done. //yes, know formdestination , paged...

c++ - How to transfer collection of small vector in a unique vector without copy -

i have map<t,vector<double> > , t=char values vector<double> of length<n n=5 . transfer each vector<double> map big vector<double> have length n*mapsize , each vector inserted @ index 5*k . if possible without copying. #include <vector> #include <map> using namespace std; int main() { typedef vector<double> vec; typedef map<char, vector<double> >::iterator itmap; //create map<char,vector<double>> 2 keys holding resp 2-3 elem vectors double v_value[] = {1.1,2.4}; vec v(v_value, v_value + sizeof(v_value)/sizeof(double)); map<char,vector<double> > mymap; mymap['a'] = v; v.push_back(10); mymap['b'] = v; //create vector should small vectors vec receipt; receipt.reserve(10); for(itmap = mymap.begin(); != mymap.end(); ++it) { it->second.resize(5); receipt.insert(receipt.end(),it->second.begin(),it->sec...

c++ - how check for member operator(type)? -

this question has answer here: is possible write template check function's existence? 21 answers suppose have types bar , foo . how can construct template class has_call_with_arg<> such has_call_with_arg<bar,foo>::value true if , if bar b; foo f; b(f); would compile? looked various related questions ( including mentioned above ) , tried template<typename func, typename arg> class has_call_with_arg { struct bad {}; struct test : func { template<typename c> bad operator()(c const&r); }; public: static const bool value = !std::is_same<bad, typename std::result_of<test(arg const&)>::type >::value; }; but didn't work (didn't detect correct match). what's wrong? template<typename sig, typename functor> struct is_callable; template<typename ret, typename... arg, t...

Spaces In Text Document Name Through Batch User Input -

i trying make "ai". functions making file , naming after user input, asking when input put in again. but, when add space, names after first word, , doesn't allow called next time! here part learns user input: :learn cls echo don't know "%cat%". can tell me know. echo. set /p catinfo=tell me know: echo %catinfo% >> brain\%cat%.txt set txt=that's cool, know. ( echo %name% ) > vf2.txt set txt=cool know %cat%. cls goto startup and reads text document: :learned ( set /p catinfo= ) < brain\%cat%.txt set txt=%catinfo% color e echo %catinfo% %speech% "%catinfo%" color ping 1.1.1.1 -n 1 -w 3000>nul cls goto startup i wanted user able use spaces talk computer. sorry pretty simple question, more streamline using underscores. thanks! -simon

Android: TabLayout not showing any tabs -

Image
first time working com.android.support:design:23.1.1 , , having issues getting tablayout work. my app set such: one main activity called landingactivity has drawerlayout menu items in it. when selecting menu item, load different fragments framelayout in landingactivity. some of loaded fragments should show tabs @ top, shouldn't. my issue is, on fragment supposed show tabs @ top, has space in nav bar should have tabs there, nothing shows. code: activity_landing.xml <android.support.v4.widget.drawerlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/drawer_layout" android:layout_width="match_parent" android:layout_height="match_parent"> <!-- linearlayout represents contents of screen --> <linearlayout android:layout_width="match_parent" android:layout_height="match_parent" android:orie...