Posts

ios - UIScrollView with UITableView not scrollable -

ios - UIScrollView with UITableView not scrollable - my app (xamarin/monotouch iphone) consists of 3 uitableview add together uiscrollview (all done programtically) each of tables not scrollable mytableview.scrollenabled = false; i calculate height needed x number of items , set in runtime. mytableview.frame = new rectanglef (0, 27, 320, mytableviewheight); the problem uiscrollview not scrollable: int caclulatescrollviewheight = mylistheight + olistheight + 104; scrollview.contentsize = new sizef (320, caclulatescrollviewheight); scrollview.frame = new rectanglef (0, 135, 320, caclulatescrollviewheight); scrollview.delayscontenttouches = true; scrollview.cancancelcontenttouches = false; this.view.add (scrollview); any thought can cause that? don't set scrollview frame height same calculated view height. frame box on screen want occupy; you'll want maintain less or equal screen size. if content size matches frame size, won't scroll (because...

ORACLE SQL Joining tables based on different time based events -

ORACLE SQL Joining tables based on different time based events - i have 2 tables: processor_event(id, time, machine, name, state) comm_event(id, time, machine, name, type) i want retrieve difference between processor_event.time , next comm_event in time before next processor_event.time. i.e. first comm_event event after processor_event occurs before next processor_event. example data: processor_event(id, time, machine, name, state) 1, 01:00:00, trx4, ignition, heated 2, 01:00:03, trx1, movement, triangulating 3, 01:00:23, trx4, movement, heated 4, 01:00:32, trx4, direction change, stable 5, 01:00:56, trx4, stopping, heated comm_event(id, time, machine, name, type) 1, 01:00:02, trx4, direction request, request 2, 01:00:15, trx4, direction acknowledgement, acknowledgement 3, 01:00:16, trx1, position change, command 4, 01:00:34, trx4, direction request, request 5, 01:01:02, trx4, position change, command expected return: processor_event.time, processor_event.mac...

shell - How to disable creating a new python IDLE session when compiling through Notepad++? -

shell - How to disable creating a new python IDLE session when compiling through Notepad++? - when i'm compiling python through notepad++ new python shell ( idle ) everytime, rather maintain 1 fixed window, instead of new window on position. so example, when write script prints "hello world!" , compile python shell displays text, , when modify script "goodbye world!" same shell prints text. or that shell gets closed, @ same position new shell emerges new text. could please help me i'm having hard time figuring out.. many in advance! you might have noticed, python source code not require compilation run. python source-code rather beeing interpreted on-the-fly, language "engine". your issue related notepad++ settings , o/s settings. idle program, has typically been set in o/s associated-application set of filename-extensions ( .py , etc ) if notepad++ compile not phone call o/s "launch" file, problem ceases exi...

Eclipse luna crashed (Eclipse IDE closed abrubtly) during Eclipse Marketplace loading -

Eclipse luna crashed (Eclipse IDE closed abrubtly) during Eclipse Marketplace loading - i installed jdk-1.8_20 , eclipse luna in linux mint 16. when clicked eclipse marketplace form menu, eclipse luna crashed (eclipse ide closed abrubtly). checked next answers answers not matched scenarios: eclipse marketplace hangs (luna, java8) market place not working in eclipse luna is possible resolve issue? update: have added log /workspace/.metadata/.log file: !entry org.eclipse.core.resources 2 10035 2014-10-13 20:32:16.558 !message workspace exited unsaved changes in previous session; refreshing workspace recover changes. !entry org.eclipse.m2e.logback.configuration 2 0 2014-10-13 20:32:17.080 !message exception while setting logging:org.eclipse.osgi.internal.framework.equinoxconfiguration$1 cannot cast java.lang.string !stack 0 java.lang.classcastexception: org.eclipse.osgi.internal.framework.equinoxconfiguration$1 cannot cast java.lang.string @ org.eclipse.m2e.logback....

layout - CSS: Why block element wrap around floating element -

layout - CSS: Why block element wrap around floating element - see illustration @ http://jsfiddle.net/w1xhpp2c/. don't understand why div.b wrapped around float element. thought inline element wrap float elements, while block elements not. .wrap{ width: 500px; } .a{ float: left; width: 200px; } .b{ background-color:#eee; width:500px; } <div class="wrap"> <div class="a"> a<br/> a<br/> </div> <div class="b"> b<br/> b<br/> b<br/> </div> </div> block boxes flow under floating elements. css 2.1 spec says since float not in flow, non-positioned block boxes created before , after float box flow vertically if float didn’t exist css layout

c++ - Ubuntu Shared Memory Between 2 Processes, Code Not Working -

c++ - Ubuntu Shared Memory Between 2 Processes, Code Not Working - i'm writing 2 processes separately should interact through shared memory , can't spot i'm going wrong. first process has created shared memory , if reprogrammed, can read shared memory too. however, sec output programme can't seem read @ all. utilize shmget in both programs create memory, bring together it. insert char array namearray input program, output should read shared memory , cout name. any help appreciated, code below :) input: #include <iostream> #include <sys/types.h> #include <sys/shm.h> #include <sys/ipc.h> #define shm_key 982 using namespace std; main() { int shmid; char namearray[] = "bill gates"; unsigned length = sizeof(namearray)/sizeof(namearray[0]); shmid=shmget(shm_key,256,0777|ipc_creat); if(shmid!=(-1)) /*error checking measure ensure shared memory creation successful*/ { char * ptr=(char *)sh...

javascript - Gulp does't copy all files as expected -

javascript - Gulp does't copy all files as expected - i tried create gulpfile.js personal website project. i've never done before little 'trial , error' works in acceptable way. the thing doesn't work after 1000 modifications simple copying files , folders. var files = { data_src : [ './files.json', 'data/**/*.*' ], distribution_dest : '_distribution' }; gulp.task('copy-data', function() { gulp.src(files.data_src, { base: './' }) .pipe(gulp.dest(files.distribution_dest)) .pipe(notify({message: 'data copied distribution!'})); }); this should re-create sub-folders , files gulp.dest . copies half of them, folders ignored if alter names etc. (no special characters, same subfolder construction 1 time got copied correctly ...) - nil worked. can't see pattern in this. there no error message while running gulp. nil help me find error. why folders or files excluded copying? ...