Posts

Showing posts from April, 2015

ios - objective-c - Attach UIImage to share -

i have issues following code. thing want image attached share message. nsstring *texttoshare = @"i'm feeling good!"; nsurl *mywebsite = [nsurl urlwithstring:@"http://www.iamgross.de"]; uiimage *bestimage = [uiimage imagenamed:@"besticon"]; nsarray *objectstoshare = @[bestimage, texttoshare, mywebsite]; dispatch_async(dispatch_get_global_queue(dispatch_queue_priority_default, 0), ^{ //here non-main thread. uiactivityviewcontroller *activityvc = [[uiactivityviewcontroller alloc] initwithactivityitems:objectstoshare applicationactivities:nil]; nsarray *excludeactivities = @[uiactivitytypeairdrop, uiactivitytypeprint, uiactivitytypeassigntocontact, uiactivitytypesavetocameraroll, uiactivitytypeaddtoreadinglist, uiactivitytypeposttofl...

ios - Where to look in Xcode for debug information -

i’m new ios, xcode development… , i’m having trouble trying figure why app failing @ specific point. i have starting viewcontroller called mainmenuviewcontroller has label application title , 2 buttons. each button acts segue action show 2 more viewcontrollers. the app builds when mainmenuviewcontroller appears if click on first button takes me next viewcontroller , actions on , subsequent viewcontrollers lead on these views segue actions take me mainmenuviewcontroller of these views work correctly. from mainmenuviewcontroller if click second button segue action fails , xcode points class appdelegate: uiresponder, uiapplicationdelegate { line in file appdelegate.swift. where should looking find out why app failed? ok... figured out... 2 views had commonality when completed first view copied common controls on other view. unknown me not transferred control had sentevent referenced first view controller. these not replaced new references constructed added to. deleti...

javascript - Edit multiple html files - add string to <head> -

i have huge static html site , need add new script , css path @ end of each head section. there tool can me in ?. or maybe can use php or js? i'm quite new in this. thank help. you use notepad++ add code every file. open notepad++, open search -> replace (or ctrl + h ) go 'find in files' tab find </head> replace with: <script src="script.js"></script> <link rel="stylesheet" rel="style.css"> </head> http://www.makeuseof.com/tag/how-to-find-and-replace-words-in-multiple-files/ you can use php includes. have html file script , css in, example: <script src="script.js"></script> <link rel="stylesheet" rel="style.css"> put html code want on every page, in 1 file , call it, say, include.html then use php code in file want code: <?php include('include.html'); ?>

html - CSS - White space around top and left of page -

i'm building web app , unfortunately have white border around top , left of page. have set html , body padding , margin 0px doesn't seem having effect on it. inside of body single iframe , when preview site , go on inspect element shows padding on body... here code - if take great! <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="x-ua-compatible" content="chrome=1,ie=edge" /> <title>index</title> <style> html { height:100%; } body { background-color: #ffffff; margin: 0px !important; padding: 0px !important; height:100%; } </style> <!-- copy these lines document head: --> <meta name="viewport" content="user-scalable=yes, width=320" /> <!-- end copy --> </head...

angularjs - How to make dropbox items unselectable? -

i have html element: <select class="form-control" ng-model="current.data.sites" ng-options="item.id item.description item in current.lookups.sitereg | filterbyidarray: current.data.sites"> <option value="">--data--</option> when open dropbox want items displayed want make unselectable. any idea how can make items in dropbox unselectable? you need set disabled on option tag. if want make options disabled have use ng-repeat rather ng-options. <select class="form-control" > <option value="">--data--</option> <option ng-repeat="item in current.lookups.sitereg | filterbyidarray: current.data.sites" value="{{item}}">{{item}}</option> </select>

symfony - Symfony2 / Form - Change GET Method generated URL -

i have form method, , action have 3 optional parameters. if submit form, form generate url this: "example.com/keyword=test?category=test1?country=test2" but route looks "example.com/{keyword}/{category}/{country}" how can solve issue? i tried this: if($form->isvalid()){ return $this->redirect($this->generateurl('route', array('keyword' => $form['keyword']->getdata(), ... ))); } but can't because render form in ::base.html.twig, , redirection doesn't work ... searchformaction: public function searchformaction(request $request) { $form = $this->createform(new searchtype(),null, array('action' => $this->generateurl('web_portal_search'))); $form->handlerequest($request); if($form->isvalid()){ // return $this->redirecttoroute('web_portal_search', // array( // 'keyword' => $form[...

python - Unclear behavior of multithreading application: can't exit thread -

multithreading app on python 2.7. use "threading" , "thread" libraries. main thread had started other 10 threads, work. have 1 shared class data (singletone). don't use thread blocking, , it's seems good. main thread starting threads "start" , "join" methods of threading class. 1 of ten threads, starting every 10 seconds , math calculation. when work complete, thread invoke "thread.exit()". and main thread did not have result of 1 thread. thread end! , strings of code complete, main thread stops on "join" instruction , did not response. p.s. i'm not native english speacker, , discribe problem difficult. please tolerant. code example: while true: all_result = check_is_all_results() time.sleep(1) if (all_result): print app_data.task_table app_data.flag_of_close = true time.sleep(2) # Задержка на всякий случай if (app_data.flag_of_close): terminate() print u"test" if len...

haskell - Trying to exercise with the Cont monad. Syntax issue -

after study ([1], [2], [3] among others) trying make work of continuation monad attempting examples on own. the second answer [1] suggests express factorial using continuations. solution following: cont ($ (fact 0)) = return 1 cont ($ (fact n)) = cont ($ (fact (n-1))) >>= (\x -> cont ($ (n*x))) i've done simulations on paper , solution should correct. however i unable have digested ghc . of course renamed fact function, still no joy. my latest attempt https://gist.github.com/muzietto/595bef1815ddf375129d , gives parse error in pattern \c -> ..... can suggest running implementation these definitions? [1] how , why haskell cont monad work? [2] http://hackage.haskell.org/package/mtl-1.1.0.2/docs/control-monad-cont.html [3] https://wiki.haskell.org/monadcont_under_the_hood first, can not define function in way posted same reason can not implement predecessor function follows: 1 + (predecessor x) = x functions can defined through equation...

c# - Get and save enum using reflection -

i have project in have assemblies implement abstract class. each assembly has public enum called resultenum. resultenum's value stored in database int. i have web project displays info, , want display int's string representation - name of corresponding value resultenum. what want is, using mef, load relevant assemblies (no problem here), search enum using reflection (no problem here also) , store enum in way, , cache in order avoid process next time want convert int database string representation (and other way around if necessary) since have several thousands of records in db table. aggregatecatalog catalog = new aggregatecatalog(); catalog.catalogs.add(new directorycatalog(path)); _container = new compositioncontainer(catalog); try { _container.composeparts(this); } catch (compositionexception compositionexception) { console.writeline(compositionexception.tostring()); } foreach (var task in mytasks) { taskabstract instance = (taskabstract)task.create...

angularjs - Roll back ngOptions select to unselected state -

ngopions creates blank option option html below if model value doesn't match of option values: <option value="?" selected="selected"></option> after selection made, angularjs removes first empty option html select html. i have use case want roll state of html select unselected option angularjs removed. tried ngmodel methods $setpristine() , $rollbackviewvalue() , , $setuntouched() . none of these mothods puts state of select initial state empty option. is possible truely roll angularjs select element have empty option after selection made? the code ngoptions ( line 473 in ngoptions.js ) suggests single-select can it, , writevalue function (called when ngmodel changes) has invoked null value (not undefined , === used.) so can try setting model variable null . if doesn't work, expect may out of luck far proper solutions go, , might need re-render whole directive. can create pretty simple directive that, similar wh...

c# - ASP.NET GridView won't populate from changing SqlDataSource.SelectCommand if Textbox is empty -

i'm using textbox , dropdownlist filter database searches. i'm using sqldatasource blank selectcommand , setting command in codebehind depending on user has typed in , selected in dropdownlist. if statements in codebehind work if txtfindbook != "". before explain anymore here code: default.aspx <asp:content id="bodycontent" contentplaceholderid="maincontent" runat="server"> <div class="jumbotron"> <h1>find book...</h1> <p> <asp:textbox id="txtfindbook" runat="server" width="700px"></asp:textbox> <asp:dropdownlist id="ddlgenres" runat="server"></asp:dropdownlist> <asp:button id="btnfindbook" runat="server" text="search" onclick="btnfindbook_click" height="36px" /> <p>enter search terms in box above, click "searc...

From an application programmer's perspective - Can Functional Programming be used to program Quantum Computers? -

i'm not expert in functional programming (fp). in fact, started learning it. so, here real question: since, fp derived mathematics , not von. neumann machine, can programming style/paradigm used program quantum computers? more application programmer's perspective since low-level machine instructions may different. no. functional programs still perform classical computation. functional style define has nothing resembling superposition, quantum mechanical gates, or interference. while possible transport general idea of higher-order , first-class functions realm of quantum computation (and people researching right now), there quantum turing machines, far can tell results different classical functional programming quantum algorithms classical algorithms. example, in qml if ... ... else ... removed in favor of similar conditional condition qbit , result superposition of then , else values. now, of course quantum computers turing-complete , could, in theory, exec...

php - Getting results from a database -

Image
i'm working phpexcel have problem getting results database. i have next code : require_once 'phpexcel/classes/phpexcel.php'; include "phpexcel/classes/phpexcel/writer/excel2007.php"; session_start(); include("config.php"); global $kon; ob_start(); $excel = new phpexcel; $excel->getproperties()->setcreator('boris jelic'); $excel->getproperties()->setlastmodifiedby('boris jelic'); $excel->getproperties()->settitle('orders'); $excel->removesheetbyindex(0); $cols = array('tijd' => 'a', 'shop' => 'b', 'products' => 'c', 'naam' => 'd', 'adres' => 'e', 'gemeente' => 'f', 'telefoonnummer' => 'g', 'email' => 'h', 'leeggoed' => 'i'); $list = $excel->createsheet(); $list->settitle('users'); $list->getcolumndimension('...

mysql - PDO INSERT INTO not working? -

so tried fix , read lot of questions here on stackoverflow non of them helped me. have working mysql connection pdo , can select things , stuff if try insert db wont work. there no pdo exception execution of prepared sql query wont work. my code doesn't work: $stmt3 = $host->prepare("insert users(username, passwort, email, key) values (:username, :passwort, :email, :key)"); try{ if(!$stmt3->execute(array(':username' => $uzernamez, ':passwort' => $password_db, ':email' => $email, ':key' => $key))) die("unknown error!"); } catch(pdoexception $ex) { die($e->getmessage()); } it dies "unknown error!" isn't pdo exception , yes connection working because 4 lines above query if user exists , works fine. key reserved word make sure use ` ` (backticks) wrap reserved words. – abhik chakraborty or rename key whatever fits needs did.

list - Is it worth converting to Sets? -

i'm dealing lists in program, , want able check whether 2 lists intersect or not. attempt @ implementation commonele :: (eq a) => [a] -> [a] -> bool commonele _ [] = false commonele [] _ = false commonele (x:xs) ys |x `elem` ys = true |otherwise = commonele xs ys this works , i'm trying careful efficiency things don't blow up. this question explains in 1 of answer more efficient use sets check intersections. list automatically have distinct elements, using sets might idea, natural way build data in list comprehension, i'd have use fromlist function turn set. how tell implementation more efficient? for record i'm going have check lots of small lists (~10^5 of size <100). you mention in comments sets pairs of coordinates (int,int) each coordinate in range [1..10] . in case should use "bit set" can use processor's bitwise , and or operations set intersection , union. the module data.bitset.dynamic can use...

html - Set "text content" in CSS when user is holding mouse on a price plan -

i have created price plan css , html overlay effect. now, want add text content when user hover 1 of plans , should "choose plan." have tried adding "content" variable on .green:after , works, can't figure out how align middle. how should proceed? http://codepen.io/anon/pen/wabmgo you should add .green:after - text-align: center align text horizontally , padding-top make inside margin in block. for example: .overlay:after { position: absolute; content:"money"; top:0; left:0; text-align: center; padding-top: 65px; width:100%; height:100%; opacity:0; }

ios - Phonegap - The Info.plist in the package must contain the CFBundleVersion key -

Image
i have followed steps generate .ipa file , went upload using application loader kept getting following error: the info.plist in package must contain cfbundleversion key. info.plist in package must contain cfbundleshortversionstring key. here's hello world-info.plist file containg info: <?xml version="1.0" encoding="utf-8"?> <!doctype plist public "-//apple//dtd plist 1.0//en" "http://www.apple.com/dtds/propertylist-1.0.dtd"> <plist version="1.0"> <dict> <key>cfbundledevelopmentregion</key> <string>english</string> <key>cfbundledisplayname</key> <string>${product_name}</string> <key>cfbundleexecutable</key> <string>${executable_name}</string> <key>cfbundleiconfile</key> <string>icon.png</string> <key>cfbundleicons</key> <dict> <key>c...

python - Custom Hyperlinked URL field for more than one lookup field in a serializer of DRF -

i using django rest framework developing web api project. in project need build nested api's endpoint this: /users/ - users /users/<user_pk> - details of particular user /users/<user_pk>/mails/ - mails sent user /users/<user_pk>/mails/<pk> - details of mail sent user so, using drf-nested-routers ease of writing & maintaing these nested resources. i want output of endpoints have hyperlink getting details of each nested resource alongwith other details this: [ { "url" : "http://localhost:8000/users/1", "first_name" : "name1", "last_name": "lastname" "email" : "name1@xyz.com", "mails": [ { "url": "http://localhost:8000/users/1/mails/1", "extra_data": "this data", "mail":{ ...

php - How to define a dynamic attribute for a many to many relationship in Laravel 5? -

i have many-to-many relationship order s product s, follows: class order extends model { ... public function products() { return $this->belongstomany('app\product') ->withpivot('unit_price', 'quantity'); } } i can access attributes of relationship using $order->pivot->unit_price , $order->pivot->quantity . but there way can create accessors relationship? instance, $order->pivot->subtotal return unit_price * quantity . yes can, looking pivot class, easy implement, here's tutorial you.

Swift, sprite kit game: Have circle disappear in clockwise manner? On timer? -

Image
alright, don't know name have sprite kit game (a runner game) that, when it's game over, going have "save me" button , timer runs out accordingly. when timer runs out, can no longer click button , save character. i don't want display timer in text however- want circle "unwinds itself," if will, , disappears @ rate timer runs out. i.e. when timer reaches 0, circle has disappeared. circle disappears degree degree in clockwise motion in accordance timer. here pictures explain i'm talking about. how this? by changing path property of skshapenode @ fixed interval, can create frame-by-frame animation sequence. create animation, set path property sequence of shapes starts circle , ends nothing. can use uibezierpath , wrapper cgpath , create shapes animation using following steps: move path's "pen" center of circle add arc path addarcwithcenter startangle endangle add line path point on circle corresponding ending a...

Python Numpy 2D plot set total number of y-tics with autoscaling -

Image
i limit total number of tics on y-axis in 2d plot. in example image provided can see f_x plot has 6 total tics (0,0.2,0.4,0.6,0.8,1) while f_y plot has 8. there way still have axis scale automatically fix number of total tics plots greater 6 tics in example busy? ax.locator_params(axis='y', nbins=num) easiest way this. nbins set maximum number of bins (i.e. spaces between ticks) each axis. "even" numbers still chosen, value controls density of ticks on axis. default value new axes 9 (in other words, maximum of 10 ticks/ticklabels). for example, let's set rather busy default: import matplotlib.pyplot plt import numpy np np.random.seed(1977) # generate data different ranges x = np.linspace(0, 8.8, 1000) ydata = np.random.normal(0, 1, (4, x.size)).cumsum(axis=1) ydata *= np.array([1e-3, 1e3, 10, 1e-2])[:,none] fig, axes = plt.subplots(nrows=4) y, ax in zip(ydata, axes): ax.plot(x, y, color='salmon') plt.show() oy!! not g...

r - Converting quarterly time-series data into monthly data -

i trying use quarterly price deflator on monthly housing data. can please me convert quarterly data monthly data? looked using cubic spline interpolation method in stata had no luck getting file work. have access excel , r option me try. thank time. quarterly cpi deflator data 1999-04-01 79.891 1999-07-01 80.180 1999-10-01 80.547 2000-01-01 81.163 2000-04-01 81.623 2000-07-01 82.152 2000-10-01 82.593 2001-01-01 83.112 2001-04-01 83.699 2001-07-01 83.973 2001-10-01 84.227 2002-01-01 84.497 2002-04-01 84.812 2002-07-01 85.190 2002-10-01 85.651 2003-01-01 86.179 2003-04-01 86.455 2003-07-01 86.934 2003-10-01 87.346 2004-01-01 88.108 2004-04-01 88.875 2004-07-01 89.422 2004-10-01 90.049 2005-01-01 90.883 2005-04-01 91.543 2005-07-01 92.399 2005-10-01 93.100 2006-01-01 93.832 2006-04-01 94.587 2006-07-01 95.247 2006-10-01 95.580 2007-01-01 96.654 2007-04-01 97.194 2007-07-01 97.531 2007-10-01 97.956 2008-01-01 98.516 2008-04-01 98.995 200...

jQuery Collision Detection with multiple random moving divs -

i'm trying find way multiple divs move different direction if collide. here's fiddle working with. appreciated... markup <div class='ani' name="animate"></div> <div class='ani' name="animate"></div> <div class='ani' name="animate"></div> <div class='ani' name="animate"></div> <div class='ani' name="animate"></div> <div class='ani' name="animate"></div> css div.ani { width: 150px; height:150px; background-color:black; position:fixed; -moz-border-radius: 50%; -webkit-border-radius: 50%; -khtml-border-radius: 50%; border-radius: 50%; } div.ani:hover { background-color:#bd0000; } } javascript (function() { var e = jquery, f = "jquery.pause", d = 1, b = e.fn.animate, = {}; function c() { return new date().gettime() } e.fn.animate = function(k, h, j, ...

Python Numpy Matplotlib Set Y-Label inline -

Image
i'm wondering how might set y label in following plot inline 1 another. misaligned since y values not of equal space. in case, it's easier not use ylabel @ all. instead, use annotate place text @ constant offset left side of axes. as example of problem: import matplotlib.pyplot plt fig, axes = plt.subplots(nrows=4, sharex=true) yranges = [(-1000, 100), (-0.001, 0.002), (0, 5), (0, 20)] labels = ['$p_{euc}[mm]$', '$p_z[mm]$', '$p_y[mm]$', '$p_x[mm]$'] ax, yrange, label in zip(axes, yranges, labels): ax.set(ylim=yrange, ylabel=label) plt.show() to solve this, it's easiest use annotate . trick position text @ y=0.5 in axes coordinates, , 5 points left hand edge of figure in x-direction. syntax bit verbose, relatively easy read. key in xycoords , textcoords kwargs control how xy , xytext interpreted: import matplotlib.pyplot plt fig, axes = plt.subplots(nrows=4, sharex=true) yranges = [(-1000, 100), (...

What is wrong with this Haskell quicksort -

taking functional programming plunge , trying teach myself haskell online materials. pretty basic, cannot figure why implementation of quicksort not terminate input list length longer 1. here's code: quicksort :: (ord ord) => [ord] -> [ord quicksort [] = [] quicksort [element] = [element] quicksort array = quicksort right_half ++ [pivot] ++ quicksort left_half pivot = head array right_half = [element | element <- array, element <= pivot] left_half = [element | element <- array, element > pivot] i reading online textbook decided try quicksort myself before reading given solution. after failing, went , understood given answer, still cannot see why mine wrong. haskell newbie appreciated! notice sort of algorithm not going yield quick sort. time complexity of (++) destroy you, if nothing else. as problem, taking elements <= pivot.. (absolutely) include pivot. if have list [2,1] sort right half call quicksort [2,1] , crea...

DELPHI Catch Update, Delete, Create event from a TFDMemTable -

i create descendant component tfdmemtable. need catch event on update data (create, update, delete)... add more specific treatments. unit _dataaccess; interface uses system.sysutils, system.types, system.uitypes, system.classes, system.variants, system.rtti, firedac.stan.intf, firedac.stan.option, firedac.stan.param, firedac.stan.error, firedac.dats, firedac.phys.intf, firedac.dapt.intf, data.db, firedac.comp.dataset, firedac.comp.client, rest.response.adapter, rest.client, system.json, rest.json,fmx.types, fmx.controls, fmx.forms, fmx.dialogs, _toaster; type // events type firedac.comp.client tfdupdaterecordevent = procedure (asender: tdataset; arequest: tfdupdaterequest; var aaction: tfderroraction; aoptions: tfdupdaterowoptions) of object; tfdupdateerrorevent = procedure (asender: tdataset; aexception: efdexception; arow: tfddatsrow; arequest: tfdupdaterequest; var aaction: tfderroraction) of object; tfdafterapplyupdatesevent = procedure (dataset: ...

How to Write File in Reverse Order -

i'm working on ansi c application produces file contents in reverse order. is, bytes @ end of file received first, , @ beginning received last. preferably, due amounts of data may involved, write data directly file without first arranging in separate memory buffer. possible? how may accomplished using ansi c? if can done higher level library not ansi compliant, acceptable. the solution simpler had thought. able use fseek move file pointer end of file , incrementally move backward (decrement file pointer index) through file each write.

mysql - [Solved]sql query to get duplicate records with different dates -

i need records different date field , table sites: field id reference created every day add lot of records, need function extract records existing duplicates of rows added, notifications. the conditions can't difference between records of current day , old data in table should (one day 4 days) . if there simple query without using transaction . i'm not sure totally understand mean duplicate records, here's basic date query: select fieldid, reference, created, date(created) the_date sites the_date between date( date_sub( now() , interval 3 day ) ) , date ( now() )

angularjs - calling an angular function when an option is selected from list -

input type="text" placeholder="" ng-autocomplete ng-keyup="adddeliveryareas($event)" ng-model="deliveryareas.search" details="details" options="options" i using ng-autocomplete directive. https://github.com/wpalahnuk/ngautocomplete want call angular function when address selected option list simply use ng-change directive. angular doc function bind called everytimes change ng-model occurs.

c - SDL2 program stops responding after a while -

so trying simple sprite animation. using image sprite: http://answers.unity3d.com/storage/temp/5358-1123_01_01.jpg this code: #include <sdl.h> #include <sdl_image.h> #include <stdio.h> #include <stdlib.h> #include <stdbool.h> //screen dimension constants const int screen_width = 640; const int screen_height = 480; #define path_to_image "sprite.jpg" int main(int argc, char* args[]) { const int walking_animation_frames = 8; sdl_rect gspriteclips[ 8 ] = { (sdl_rect) {.h = 112, .w = 88, .x = 16, .y = 16}, (sdl_rect) {.h = 112, .w = 88, .x = 133, .y = 16}, (sdl_rect) {.h = 112, .w = 88, .x = 265, .y = 16}, (sdl_rect) {.h = 112, .w = 88, .x = 398, .y = 16}, (sdl_rect) {.h = 112, .w = 88, .x = 16, .y = 139}, (sdl_rect) {.h = 112, .w = 88, .x = 132, .y = 139}, (sdl_rect) {.h = 112, .w = 88, .x = 264, .y = 139}, (sdl_rect) {.h = 112, .w = 88, .x = 397, .y = 139}, };...

html - How to put six divs in two rows -

my problem when put 6 divs texts , images in 2 rows should this. http://2.firepic.org/2/images/2015-08/17/wv2fu4foh87c.png but when add @media screen , (min-width:1000px){ .container { width: 940px; margin: 0 auto; overflow:hidden;} } and try resize window happening http://2.firepic.org/2/images/2015-08/17/u06pnsn3elx3.png here code <div class="container"> <div class="work-wrap "> <div class="work-item icon1"> <h5 class="title">select piece of jewelry like.</h5> <p>you can choose size, decoration material (silver, gold)</p> </div> <div class="work-item icon2"> <h5 class="title">make decoration unique.</h5> <p>you can write variety of phrases, change shape, , adjust polishing.</p> </div> ...

linux - C++ & OpenSSL: SIGPIPE when writing in closed pipe -

i'm coding c++ ssl server tcp connections on linux. when program uses ssl_write() write closed pipe, sigpipe-exception gets thrown causes program shut down. know normal behaviour. program should not die when peer not closes connection correctly. i have googled lot , tried pretty found, seems nothing working me. signal(sigpipe,sig_ign) not work - exception still gets thrown (same signal(sigpipe, somekindofhandler) . the gdb output: program received signal sigpipe, broken pipe. 0x00007ffff6b23ccd in write () /lib/x86_64-linux-gnu/libpthread.so.0 (gdb) #0 0x00007ffff6b23ccd in write () /lib/x86_64-linux-gnu/libpthread.so.0 #1 0x00007ffff7883835 in ?? () /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 #2 0x00007ffff7881687 in bio_write () /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 #3 0x00007ffff7b9d3e0 in ?? () /lib/x86_64-linux-gnu/libssl.so.1.0.0 #4 0x00007ffff7b9db04 in ?? () /lib/x86_64-linux-gnu/libssl.so.1.0.0 #5 0x000000000042266a in netinterface::sendtosubscribers(bool...

ios - Content not displaying on UITableViewCell -

i attempting create autosizing cell using purelayout, though json loads , correctly assigned uitableviewcell objects no data displayed. here how attempting setup cell in custom tableviewcell class: self.backgroundcolor = [uicolor whitecolor]; self.accessorytype = uitableviewcellaccessorynone; self.accessoryview = nil; self.selectionstyle = uitableviewcellselectionstylenone; // fix contentview constraint warning [self.contentview setautoresizingmask:uiviewautoresizingflexibleheight]; // create profileimageview self.profilepicture = [[uiimageview alloc] initwithframe:cgrectzero]; self.profilepicture.translatesautoresizingmaskintoconstraints = no; self.profilepicture.contentmode = uiviewcontentmodescaleaspectfill; self.profilepicture.backgroundcolor = [uicolor whitecolor]; [self.contentview addsubview:self.profilepicture]; // name label self.namelabel = [[uilab...