Posts

Showing posts from July, 2011

php - Different timestamp on php_error.log -

i'm using mamp on macbook pro, , whenever took php_error.log each error timestap berlin i'm in south america. [16-jan-2016 03:06:40 europe/berlin] php parse error: the actual time when error happened 21:06. how can change timestamp? know not big deal easier debug when date correct. the timezone indeed set berlin somewhere in system or code. check /usr/local/etc/php/(version)/php.ini file , date.timezone setting. full list of supported timezones available here . modify setting if necessary , restart php process/server. if setting not present, it's idea fix now! check if 'europe/berlin' set somewhere in code. simple way in php files in folder: find . -name "*.php" -exec grep -h "europe/berlin" {} \;

postgresql - Using Transaction in Sequelize for Postgres -

i trying transaction sequelize in noodejs. using postgres database. when call testdel transaction autocommitted in testdel. if transaction autocommit set false. if pass variable t db.transaction testdel, wait manual commit / rollback. can without passing t function? make coding complicated. the coding following: db.transaction({autocommit: false}).then((t) => { args = {vctitle: {$ilike: '%ulie%'}}; let bodelete = true; testdelpost(t, args) .then(rersult =>{ if(rersult){ t.commit(); }else{ t.rollback(); } }) }); function testdel(args){ //the result got deleted , auto committed after destroy, //doesn't wait above transaction decide commit or rollback. //if pass t, , set traction: t in destroy, work expected return db.models.post.destroy({where: args}) .then(result =>{ if(result > 0){ return true; }else{ return fa

javascript - Slide images every 5 seconds -

this slideshow's images: <section id="mainfooter"> <div class="mainfooter"> <p class="margright">jaafari housseine &copy; 2013 <span>|</span> <a href="#!/page_privacy">privacy policy</a></p> <nav class="bgnav"> <ul> <li class="active"><a href="images/picture1.jpg"><img src="images/pagination_act.png" alt="" class="img_act"></a></li> <li><a href="images/picture2.jpg"><img src="images/pagination_act.png" alt="" class="img_act"></a></li> <li><a href="images/picture3.jpg"><img src="images/pagination_act.png" alt="" class="img_act">

c++ - operator<< working w/ temp variable, but not directly with function call -

i'm trying write std::ostream operator<< class. have function (taking advantage of rov) returns instances of class. my operator works when assign result of function call local variable, , pass local operator << , not when pass result in directly. what's going on here? simplified standalone example (test.cpp): #include <iostream> template <class t> class anobject{ public: anobject(t value) : m_value(value) {} t getvalue(){ return m_value; } protected: t m_value; }; template <class t> std::ostream & operator<<(std::ostream& os, anobject<t> & obj ) { os << obj.getvalue(); return os; } anobject<int> getobject() { return anobject<int>(5); } int main(int argc, char**argv) { // doesn't compile std::cout << getobject() << std::endl; // does.... //auto obj = getobject(); //std::cout << obj << std::endl; } compiler command (g++ version 4.8.4 on ub

html - How to slide-out a submenu from under the navigation bar using CSS transition? -

i've been trying create transition effect where, on hover, sub menu slides out underneath main navigation bar. far, i've got elements in place , wasted hours playing around different methods various posts, no avail. here jsfiddle . i'm guessing i'm gonna have rid of display: none -> display: block way of hiding submenu no transitions various other methods such transitioning max-height , opacity , pulling down massive top value etc have failed. inflated top value method, submenu slides on rather under , changing z-index values somehow pushes behind while turning background transparent. weird behaviour. i appreciate if explain me how go creating smooth slide-out transition sub-menu. thank you transforming scale or transitioning max-height: 0 better option navigational elements. jsfiddle if initial state of element "display: none" passed on in dom hide element (as children) assistive technology. also, can use sibling sectors sel

cakephp - Cake PHP shows Internal Server Error 500 -

following cakephp code in index.php file. when runs on server, shows internal server error 500 if (!defined('ds')) { define('ds', directory_separator); } if (!defined('root')) { define('root', dirname(dirname(dirname(__file__)))); } if (!defined('app_dir')) { define('app_dir', basename(dirname(dirname(__file__)))); } $vendorpath = root . ds . app_dir . ds . 'vendor' . ds . 'cakephp' . ds . 'cakephp' . ds . 'lib'; $dispatcher = 'cake' . ds . 'console' . ds . 'shelldispatcher.php'; if (!defined('cake_core_include_path') && file_exists($vendorpath . ds . $dispatcher)) { define('cake_core_include_path', $vendorpath); } if (!defined('webroot_dir')) { define('webroot_dir', basename(dirname(__file__))); } if (!defined('www_root')) { define('www_root', dirname(__file__) . ds); } if (php_sapi_

c++ - Remove cycles from connected graph by finding vertices and edges -

Image
how can remove cycles graph this? edge lengths one, , edges either vertical or horizontal. graph connected. i want compute smallest number of edges have removed in order graph contain no cycles. it helpful if included sample code (preferably c++, c or java). update: apparently have find number of vertices , edges. problem have gives set of instructions (down, left, up, down, left, left, up, down). start (0, 0) in coordinate plane , move 1 unit in specified direction. create graph. how number of vertices , edges set of instructions? since graph connected, if point is, write, to compute smallest number of edges need removed in order graph contain no cycles then don't need write algorithm. known result of removing cycles tree, , trees have same number of edges (the number of vertices minus one). if point enumerate remaining edges (or removed edges), can use dfs (depth first search). specificially, in output of dfs , need retain marked there "tree

amazon web services - Point Cloudflare DNS to AWS Route 53 -

i want point dns cloudflare aws route 53. did deleted records , added ns record ns-1579.awsdns-05.co.uk ns-880.awsdns-46.net ns-1425.awsdns-50.org ns-176.awsdns-22.com but not resolved. can't figure out whats wrong. to use cloudflare you'll need use cloudflare name servers -- other name servers domain need removed @ domain registrar. if happen using cname setup cloudflare (business plan , above) continue use amazon route 53, wouldn't using cloudflare dns in addition route 53 dns ...you'd use 1 or other.

jquery - Css selector does not work as I expected -

i've done search/google didn't lead anywhere. problem, have following html structure (just sample, list's length dynamic): <ul class="collection"> <a class="collection-item head">alvin</li> <a href="#" class="collection-item">alvin</a> <a href="#" class="collection-item">alvin</a> <a href="#" class="collection-item">alvin</a> <a class="collection-item head">alvin</li> <a href="#" class="collection-item">alvin</a> <a href="#" class="collection-item">alvin</a> <a href="#" class="collection-item">alvin</a> <a class="collection-item head">alvin</li> <a href="#" class="collection-item">alvin</a> <a href="#" class=&qu

php - Jquery: Option selected not work in rendered select list -

i had countries/state chained select box pulled database (rendered select list) , want specific option value remain selected when page redirected action. user input fields temporarily stored in session , fields able retained value, excepted country , state field. i couldn't find these pulled option tag (which rendered) appeared in view-sources, can view in chrome console , firebug, believe jquery cannot find particular option value perform action, whereas when hard-code options, below script working: append options function ajaxcall() { this.send = function(data, url, method, success, type) { type = type||'json'; var successres = function(data) { success(data); }; var errorres = function(e) { console.log(e); alert("error found \nerror code: "+e.status+" \nerror message: "+e.statustext); }; $.ajax({ url: url, type: method,

c++ - Vector Subscript out of Range During Projectile Creation -

there 2 microsoft visual c++ runtime library messages pop when attempt create projectiles while game running debug assertion failed! program: c:\windows\system32\msvcp120d.dll file: c:\program files (x86)\microsoft visual studio 12.0\vc\include\vector line:1201 expression: vector subscript out of range and debug assertion failed! program: c:\sfml-2.3.2\sfml\debug\sfml.exe file: c:\program files (x86)\microsoft visual studio 12.0\vc\include\vector line:1202 expression: "standard c++ libraries out of range" && 0 and message microsoft visual studio express 2013: unhandled exception @ 0x5b89a893 (msvcr120d.dll) in sfml.exe: invalid parameter passed function considers invalid parameters fatal. this occurs press space bar create projectile (green square). green square appears on screen should , message pops up. projectile @ point current code should behave green square paint brush, message pops up. here source code: main: int main ( ) { int coun

javascript - By default show first container -

hello friends found show hide div script on fiddle, script need use in project problem want show first container text default default shows nothing show on button click. 1 can me this, w'll b full. <div class="btn-group" data-toggle="buttons-radio"> <button id="btn-game" data-target="game_container" class="btn btn btn-primary" type="button">game</button> <button id="btn-video" data-target="video_container" class="btn btn btn-primary" type="button">video</button> <button id="btn-giveaway" data-target="giveaway_container" class="btn btn btn-primary" type="button">giveaway</button> </div> <div class="see se" id="game_container"> game stuff </div> <div class="see" id="video_container"> video stuff </div> <d

javascript - React component could not sync props which created by dynamic ReactDOM.render -

when use react+redux+immutable, issue: component created dynamic way, when props change, component not rerender. react bug? i deleted business code, react code here: http://codepen.io/anon/pen/gomoez or below: import react 'react' import reactdom 'react-dom' class extends react.component { constructor(props) { super(props); this.state = { name: 'tom' } } dynamic() { reactdom.render(<b name={this.state.name} changename={this.changename.bind(this)} type={false}/>, document.getelementbyid('box')) } changename() { this.setstate({ name: 'tom->' + date.now() }); } render() { return <div> top name: {this.state.name} <b name={this.state.name} changename={this.changename.bind(this)} type={true}/> <div id="box"></div> <button onclick={this.dyna

C++ assignment to boost::python::object doesn't work. Why? -

according documentation , assignment here should work, doesn't: #include <boost/python.hpp> #include <iostream> int main(int, char **) { using namespace boost::python; py_initialize(); object test = object(2.05); //this works fine test = 3.05; //compiler error std::cout << extract<double>(test) << std::endl; py_finalize(); return 0; } here's compiler output: g++ -std=c++1y -i/usr/local/cellar/python3/3.5.0/frameworks/python.framework/versions/3.5/include/python3.5m -i/usr/local/cellar/boost/1.59.0/include -o0 -g3 -wall -c -fmessage-length=0 -mmd -mp -mf"test.d" -mt"test.d" -o "test.o" "../test.cpp" ../test.cpp:9:10: error: no viable overloaded '=' test = 3.05; ~~~~ ^ ~~~~ /usr/local/cellar/boost/1.59.0/include/boost/python/object_core.hpp:241:9: note: candidate function (the implicit move assignment operator) not viable: no known convers

Routing error in ASP.NET MVC 4 -

i have stumbled upon curious behavior in asp.net mvc routing. in routeconfig file, when map route (the default route): routes.maproute( name: "default", url: "{controller}/{action}/{id}", defaults: new { controller = "home", action = "index", id = urlparameter.optional } ); using: @html.actionlink("index", "home") i nice, clean , short url, like: http://mysite/ but if add optional parameter after id , this: routes.maproute( name: "default", url: "{controller}/{action}/{id}/{name}", defaults: new { controller = "home", action = "index", id = urlparameter.optional, name = urlparameter.optional } ); the same actionlink outputs url: ht

php - Using raw MYSQL queries in symfony -

i'm working symfony instead of using doctrine use raw mysql queries. $query1 = "select sport_id coach id = $id"; $statement1 = $connection->query($query1); $statement1->execute(); $sport_id = $statement1->fetch(); for above query gives error "notice: array string conversion 500 internal server error - contexterrorexception" can please explain wrong this? i'm beginner in symfony

ruby on rails - Why on deployment I have 'development' database is not configured. Available: ["production"]? -

when i'm trying bundle exec sidekiq see 'development' database not configured. available: ["production"] . why development database, if i'm deploying app server , need production ? last time hadn't problem.. look? edit console after $ /var/www/vkgazer/code# bundle exec sidekiq 'development' database not configured. available: ["production"] /var/www/vkgazer/code/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/connection_specification.rb:248:in `resolve_symbol_connection' /var/www/vkgazer/code/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/connection_specification.rb:211:in `resolve_connection' /var/www/vkgazer/code/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/connection_specification.rb:139:in `resolve' /var/www/vkgazer/code/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active

java - Gcm Notification only comes in my own device -

i new in gcm , want send notification using gcm spacific users of app notification comes in own device here code mainactivity.java public class mainactivity extends actionbaractivity { private googlecloudmessaging gcm; string regid; checkbox isdriver; httppost httppost; stringbuffer buffer; httpresponse response; httpclient httpclient; list<namevaluepair> namevaluepairs; string user_name = ""; private final static int play_services_resolution_request = 9000; string tag = "mainactivity"; string sender_id = "224163385438"; string api_key = "aizasycl3rek_onegldhcp8giso_5p6xwe3guva"; utils utils; private context context = mainactivity.this; private progressdialog pb; private edittext username; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); util

how to show some markers on a static image using openlayers 3 -

i trying show marker on static image ie given static image of size in feet , set of point in feets how mark image or marker on static image using openlayers3 i understand have provision in openlayer3 use static image base layer of map i not getting how show marker on static image(base layer)for given plots on image any more thank please suggest war it i show static image map shown below <!doctype html> <html> <head> <title>static image example</title> <script src="https://code.jquery.com/jquery-1.11.2.min.js"></script> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ol3/3.6.0/ol.css" type="text/css"> &l

encryption - Prove the decryption by counter mode is correct -

as review question have prove decryption process of counter mode correct. how prove it? no other information given. encryption: cj = e(k, counter + j -1) ⊕ pj decryption: pj = e(k, counter + j -1) ⊕ cj pj = e(k, counter + j -1) ⊕ cj replace cj = e(k, counter + j -1) ⊕ pj cj = e(k, counter + j -1) ⊕ e(k, counter + j -1) ⊕ pj since x⊕x=0 (the encrypted counter xored itself) , 0⊕x=x pj = 0 ⊕ pj pj = pj qed

PHP: Fetching records after mysql query -

this elementary question, finding confusing. earlier used bind results , fetch them using while loop. using * in sql statement, hence doubt. here code: $mysql = new mysqli("localhost", "user", "password", "database"); $sql = "select * mytable id = ?"; $stmt = $mysql->prepare($sql); $prm = $_post['txt']; $stmt->bind_param("i",$prm); $stmt->execute(); $stmt->store_result(); if ($stmt->num_rows > 0) { } there around 20 columns in table, hence want avoid including column names in sql. how echo out columns of each record? use get_result() instead of store_result() , , use result object's ->num_rows property check if returns row or not, this: $mysql = new mysqli("localhost", "user", "password", "database"); $sql = "select * mytable id = ?"; $stmt = $mysql->prepare($sql); $prm = $_post['txt']; $stmt->bind_param(&qu

sql server - Query in trigger doesn't give expected result -

i tried following output through triggers in sql server 2005. i'm using query change values of age (column name) zero, if less zero. create trigger agecheck on account insert begin declare @age int select @age = age inserted if @age < 0 set @age = 0; end i able execute query successfully, i'm not getting desired result. i'm using sql server 2005. could please suggest on this. what doing in trigger setting variable @age 0 if less 0. selecting age variable that, doesn't link variable field in table. not that, inserted virtual table can have more 1 row in it. select statement assign last age returned query variable. what need join table inserted in, inserted virtual table on primary key. assuming account table has key account_id , give following create statement: create trigger agecheck on account after insert begin update account set age=0 inserted inner join account on

c# - How to get all images in the resources as list? -

i have winforms project , added multiple images resources (project properties -> resources). have form1.cs, usercontrol1.cs .resx files, , using assembly.getmanifestresourcenames() , contains 3 strings namely: 1 testapplication1.properties.resources.resources, 2 testapplication1.form1.resources 3 testapplication1.usercontrol1.resources what need files #1 contains images need get. need have list can access these images through indexes. can access files individually no problem, have 72 images need them list. question is, how these images in #1 list? edit: there no other way create list , add of 72 images it? or there way can of these images resources list? also, don't want resort using system.io build application class library. each .resx file compiled single "composite" embedded *.resources resource blob located in assembly. appreciate confusing means term "resource" overloaded refer both .resources blob, individual contents of each

javascript - Way to asynchronously load Google Translate widget for your website? -

is there way asynchronously load google translate widget website? i tried putting on bottom of page, #google_translate_element container still empty. <!-- asynchronous google translate --> <script type="text/javascript"> function googletranslateelementinit() { new google.translate.translateelement({pagelanguage: 'en', includedlanguages: 'ar,bg,bn,de,el,eo,es,en,fr,hi,id,it,iw,ja,ko,pl,pt,ru,th,tr,vi,zh-cn', layout: google.translate.translateelement.inlinelayout.simple, gatrack: true, gaid: 'ua-1234-1'}, 'google_translate_element'); } (function() { var googletranslatescript = document.createelement('script'); googletranslatescript.type = 'text/javascript'; googletranslatescript.async = true; googletranslatescript.src = '//translate.google.com/translate_a/element.js?cb=googletranslateelementinit'; ( document.getelementsbytagname('head')[0] || document.getelementsbytagname('body&

php - How can I make sure the code runs all possibilities? -

i'm stuck! the code looks words or sentences preg_match_all , replaces words , converts units. long text becomes $lines[] through explode("\n", $long_text); a loop runs through $lines. if(preg_match_all) finds if line contains it's looking for. problem occurs: two of same preg_match_all() true, because code looks once on each line skips it. other problem: 3500ft handled 500 ft because preg_match_all("/(\d{3,4})(ft)/", $lines[$i], $output_array) has option of 3 digits. how can force first 4 digits 3 digits. option 2 preg_matches first 1 {4} , next {3} ? example long_text: isbildning område 1a,1b,1c,2a,2b,3c,4a: under hela perioden lätt till måttlig isbildning mellan 1500ft och fl090. område 3a,3b: början av perioden lätt till måttlig isbildning mellan fl060 och fl090.i mitten och mot slutet av perioden lätt till måttlig isbildning mellan 1500ft och fl090. område 4b: mot slutet av perioden lätt till måttlig isb

node.js - How to prevent nodejs console close -

is there alternative php error_reporting(0) in nodejs? want prevent app closing after error, tried try , catch method , doesn't work. so, how can prevent node.js server closing after error ? edit: there event uncaught errors: process.on('uncaughtexception', function (err) { console.log('caught exception: ' + err); }); see duplicate: make node.js not exit on error you use pm2 run script, pm2 automatically restart script on crash. you need catch error. example try { error(); } catch(err) { // nothing } there no other way far know. fix or catch these errors only.

twitter bootstrap - Scroll, eventhough overflow-y is set to visible -

i have bootstrap table dropdown button. i have set overflow-y on fixed-table-body visible don't scrollbar. (thanks crazymatt, bootstrap-table, overflow ) but still want overflow-x auto, because have many columns. otherwise site gets ugly on mobile devices - doesn't fit. need scrollbar in mobile mode. when use: .fixed-table-body { overflow-x: visible; overflow-y: visible; height: 100%; } ...the table fits in desktop , tablet (not mobile) - , dropdown button works well but when use: .fixed-table-body { overflow-x: auto; overflow-y: visible; height: 100%; } ...the table fits in desktop , tablet , mobile. dropdown doesn't works. how can solve problem? jsfiddle: https://jsfiddle.net/qr3ao2e3/2/ z-index can solve issue. try using below , see if works: .fixed-table-body { overflow-x: auto; overflow-y: visible; height: 100%; } .table{ position:relative; z-index:1; } .dropdown-menu{ position:relative; z-index:2

java - Jmeter-Master unexpectedly aborted with Shutdown hook -

i trying run load test, on centos 6.7, on distributed & non-gui mode. the test plan supposed run 48 hours, stopping @ random intervals. both java , jmeter processes not running. reproduce issue on 2 different setup. jmeter.log not indicate error except following lines: info - jmeter.reporters.resultcollector: shutdown hook started info - jmeter.reporters.resultcollector: shutdown hook ended issue resolved recreating containers new set of jmeter files.

c# - Entity Framework Code First: Many to many self referencing, naming convention -

working example class product { public int id { get; set; } public string name { get; set; } } class color { public int id { get; set; } public string name { get; set; } } class productcolor { public int id { get; set; } [foreignkey("productid")] public product product { get; set; } public int productid { get; set; } [foreignkey("colorid")] public color color { get; set; } public int colorid { get; set; } } after adding , applying migrations, when add product list of productcolors entity context not changed ( no need add , apply new migration ) class product { ... public virtual icollection<productcolor> productcolors { get; set; } } this ok. not working example but how name list inside product, if need reference products products ? example class productform { public int id { get; set; } [foreignkey("productid")] public product product { get; set; } public int prod

c++ - Template function argument as 'const T' -

i given template function member function in class compactwriter : template<typename t> compactwriter operator%(const field<const t>& field) { _os << field.getname() << ": " << field.valuereference() << ", "; return *this; } and then, asked second const for. know according : is there difference between “t” , “const t” in template parameter? there should no difference. therefore, i'm kind of confused of why question asked. a little background hoping might trigger might have missed... template class 'field': #ifndef serialization_field_h #define serialization_field_h #include <string> #include <iostream> template<typename t> class field { private: public: field(const std::string& name, t& value) : _name(name) , _value(value) {} const std::string& getname() const { return _name; } t& valuereference() const { return _

asp.net mvc - Bind multiple models asp,net mvc -

i have model have multiple other models in it. public class mainmodel { public entity1 (); public entity2 (); } after posting view, entity1 entities null? luck. doing wrong? question is: asp.net mvc multiple model in 1 view (create, update) how can class entities in model? controller(homecontroller) : public actionresult index() { mainmodel model=new mainmodel(); return view(model); } [httppost] public actionresult index(mainmodel model) { return view(model); } view(home/index) : @model mainmodel @using (html.beginform("index","home",formmethod.post)) { <input type="submit" value="submit" /> }

Gstreamer Video Sink for Raspberry Pi -

i m working on raspberry pi board gstreamer 1.0 inbstalled. testing pipelines on board. in raspberry pi video sink not working. tried different videosinks such ximagesink, xvimagesink, autovideosink etc but none of these videosinks able play video. the error getting error: element /gstpipeline:pipeline0/gstxvimagesink:xvimagesink0: not initialise xv output additional debug info: xvimagesink.c(1290): gst_xvimagesink_xcontext_get (): /gstpipeline:pipeline0/gstxvimagesink:xvimagesink0: is there other video sinks can use raspberry pi can view view videos gstreamer ? is there video sink specially made broadcom 2835 or openmax provide videosink ? and have idea resolve xvoutput issue ? the error message implies me xv libraries not installed. i'm not sure type of distro running on raspberry pi, if it's debian/ubuntu-type distro, package name xv appears 'libxv1'. however, indicated ximagesink doesn't work. expect ximagesink work, long there x serve

How to add index to a collection of arrays in php? -

hi have collection of array foreach loop. has no index , want modify it. $productsrange = productpricesinventorytax::where('sale_price', '>=', $min_price) ->where('sale_price', '<=', $max_price) ->get(); foreach($productsrange $product){ $products = product::where('id', '=', $product->product_id)->paginate(15); $productdetails = $this->prepareallproductdetails($products); $array = $productdetails[0];//this returns unidexed array echo "<pre>"; print_r($array); the array looks this. array ( [id] => 1 [sku] => 258 [name] => bingo mad angles chaat masti [is_configurable_product] => 1 [mrp] => 20 [sale_price] => 20 [image] => 258-bingo-mad-

angular - Triggering Angular2 change detection manually -

i'm writing angular 2 component has property mode(): string . able set property programmatically not in response event. problem in absence of browser event, template binding {{mode}} doesn't update. there way trigger change detection manually? try 1 of these: applicationref.tick() - similar angular 1's $rootscope.$digest() -- i.e., check full component tree ngzone.run(callback) - similar $rootscope.$apply(callback) -- i.e., evaluate callback function inside angular 2 zone. think, i'm not sure, ends checking full component tree after executing callback function. changedetectorref.detectchanges() - similar $scope.$digest() -- i.e., check component , children you can inject applicationref , ngzone , or changedetectorref component.

android - The same layout mutliple times in one layout not working properly -

so have little problem app. adding same layout 11 times main layout , here adding text them. problem is, no text shows @ all. sorry not perfect english. :d jsonparser parser = new jsonparser(); hashmap<string, string> params = new hashmap<>(); params.put("username", username); params.put("pass", password); jsonobject json = parser.makehttprequest(link php file, params); arraylist<string> stundenlist = new arraylist<>(); int success = json.getint("success"); if (success == 1) { jsonarray stunden = json.getjsonarray("stundenplan"); (int = 0; < stunden.length(); i++) { jsonobject c = stunden.getjsonobject(i); string montag = c.getstring("montag"); string dienstag = c.getstring("dienstag"); string mittwoch = c.getstring("mittwoch"); string donnerstag = c.getstring("donnerstag"); string freitag = c.getstring("fr