Posts

Showing posts from June, 2010

php - Code Works on Server not on Xampp: json_encode -

hi have piece of code works on uberspace server doesn't work on xampp (mac). the code database request: get_all_experts($errors, $rows, ' active < curdate() , active not null'); echo count($rows);//is 14 in example echo json_encode($rows);//doesn't return $arr = array (1,'b'=>'2','c'=>3,'d'=>4,'e'=>5); echo json_encode($arr);//works function get_all_experts(&$errors, &$rows, $selector) { $result = mysql_query('select * experts'.$selector); if (!$result) { $errors['sql_experts'] = 'kein ergebnis: '.mysql_error(); } else { while($r = mysql_fetch_assoc($result)) { $rows[] = $r; get_expert_tags($errors, $rows, $r); get_last_expert_experience($errors, $rows, $r); } } }; the 2 inner functions database requests , add nested values. e.g. 1 expert has more 1 experience. edit: $conn = mysql_connect('localhost',

javascript - Is there a way to test the name of downloaded file in protractor? -

is there way test name and/or extension of downloaded file application in protractor? using node.js filesystem, can read files in directory , verify them in protractor test. there nothing special provided protractor emulate functionality.

javascript - Get text of option before the currently selected option of a dropdown -

i'm working on form need validate textbox field between selected dropdown item, , item before selected. example dropdown: <select>select</option> <option value="57">25</option> <option value="58">28</option> <option value="59" selected>30</option> <option value="60">32</option> <option value="61">33</option> <option value="62">35</option> </select> given selected item, 59, need jquery give me value previous item, in case 58. note example, values not sequential this. i can item after selected item in jquery using: $("#sealshaftsizeid option:selected + option").text(); i unable find jquery reverse of that. you can resolve this: $("option[selected]").prev().css( "background-color", "red" ); <script src="https://ajax.googleapis.com/ajax/libs/jquer

c - Printing content of 2D array (pointer of pointer) -

i defined function initialising 2d array through pointers , @ same time fell random values. then print , don't see expected values. bug in code? i've been looking hours. #define matrix_size 3 int **initialize_matrix(size_t m, size_t n){ int i1,i2; int **ptr1=(int **)malloc(sizeof(int *)*m*n); int *ptr2=(int *)malloc(sizeof(int)*m); srand(time(0)); for(i1=0;i1<matrix_size;i1++){ for(i2=0;i2<matrix_size;i2++){ ptr2[i2]=rand()%10; printf("%d ",ptr2[i2]); } } for(i1=0;i1<matrix_size;i1++){ ptr1[i1]=ptr2+m*i1; } printf("\nfinished generating\n"); return ptr1; } void print_matrix(int** matrix_to_print){ int i1,i2; for(i1=0;i1<matrix_size;i1++) for(i2=0;i2<matrix_size;i2++){ printf("%d ",matrix_to_print[i1][i2]); if(i2==matrix_size-1) printf("\n"); } } this prints: 2 4 8 0 6

trying to addFile in plupload using input field of type file -

i've used plupload browse button option successfully, trying use utility resize files within existing web page user individually selects files. understood documentation uploader addfile method work input fields i'm having no success. the field defined as: <input id="selectuserfile1" name="userfile1" type="file" accept="image/gif,image/jpeg" aria-labelledby="selectuserfile1-arialabel" title="browse file on computer" /> and add file with: uploader.init(); uploader.addfile(document.getelementbyid('selectuserfile1')); alert('files total: ' + uploader.files.length); uploader.start(); it seems fail though, filesadded method not called , uploader.files.length 0. uploader defined follows: var filecount = 1; var uploader = new plupload.uploader({ runtimes : 'html5,flash,silverlight,html4', url : 'test_file_upload.php', flash_swf_url : '../testjs/moxie.swf'

vb.net - writing content of listbox to a txt file and then opening it -

i trying save contents of 1 listbox txt file , open , printing second listbox. have done of this, actual file not txt file. can u show me how make file txt file using code? if not possible can u show me code can? private sub loadbutton_click(byval sender system.object, byval e system.eventargs) handles loadbutton.click if openfd.showdialog() = dialogresult.ok dim lines = file.readalllines(openfd.filename) listbox2.items.clear() listbox2.items.addrange(lines) end if end sub private sub savebutton_click(byval sender system.object, byval e system.eventargs) handles savebutton.click if savefd.showdialog() = dialogresult.ok using writer = new streamwriter(savefd.filename) each o object in listbox1.items writer.writeline(o) next end using end if end sub you can use file.writealltext method (along string builder). opinion, it's cleaner code. private sub savebutton_click(byva

java - Servlet not directing to JSP page -

Image
we required write web application using java, html, beans, , jsps. problem have never taken html or css course. i have base html page called index.html takes user's first , last name in text field submit button. when press submit "page cannot displayed error." have compared code instructors , similar unsure doing wrong. appreciated. also, not mind horrible formatting. index.html <!doctype html> <html> <head> <title>final project</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <h1>welcome banking tyler weaver</h1> <h4>please enter first , last name</h4> <form action="bankingcontrol" method="post"> <input type="hidden" name="action" value="menu">

jquery - MVC client side validation messages are displayed despite .cancel class -

i have submit button on mvc form (with unobtrusive validation enabled) has cancel class: <input type="submit" name="go back" value="1" class="cancel" /> the cancel class allows form post if input fields have validation errors. validation error messages nonetheless displayed button clicked, , remain visible until server completes round trip , page redisplayed. is there baked mvc i'm missing, or need write own js code find , hide validation messages if submit element has "cancel" class? disable client-side validation in mvc 3 "cancel" submit button people seems have popup validation problem , saying in comment that's it's not working in mvc4 , mvc5. personnaly, il suggest control behavior on form submit event , use ajax post form. $("myform").submit(function( event ) { event.preventdefault(); //prevent default submit if (!$(this).find("input[type=submit]").

Facebook Graph Python for Event Information Mining -

i able return local facebook events via facebook sdk python this: import facebook # pip install facebook-sdk import json access_token = 'caacedeose0cbap0g6qgrqhsaleb9ykeubnny3r3wqzbizprrznkyx36kzbo2oy2mbimjoki5fja27bicun4do16vrow4edl99zbnkrajvfakvnxuxtt8k9uu29fiwq6jjq9lsqzconkwvzv1ielmu30egms0qyxx8sisjfogrze00ibmvpoltibfgfno7boo75xkaubk5ntdniyay0tkgzauwabzmh8ozd' def pp(o): print json.dumps(o, indent=1) # create connection graph api access token g = facebook.graphapi(access_token) print print '---------------' print 'events' print '---------------' pp(g.request("search", {'q' : 'evansville, in', 'type' : 'event'})) it returns this: { "id": "565819520206832", "start_time": "2014-11-07t19:15:00-0600", "location": "evansville, in", "name": "evansville icemen vs. wheeling nail

Username Failures When Connecting SQLAlchemy to MySQL -

i'm attempting connect python web application local database via sqlalchemy. i have configured following connection string: sqlalchemy.url = mysql+mysqlconnector://root:root@localhost:3306/db_mother when use above, following error (after long stack trace): sqlalchemy.exc.programmingerror: (programmingerror) 1045 (28000): access denied user 'root'@'localhost' (using password: no) none none when change connection string this: sqlalchemy.url = mysql+mysqlconnector://ripley:amanda@localhost:3306/db_mother i expected error, because user not configured password in db: sqlalchemy.exc.programmingerror: (programmingerror) 1045 (28000): access denied user 'ripley'@'localhost' (using password: yes) none none so, in first case have valid db user , password (which can use connect via command line or sequelpro), , says i'm not using password. in second case seems understand there password. why not have understanding in first place?

c# - Rounding to specfic digits fails with this double-precision value -

Image
i'm attempting truncate series of double-precision values in c#. following value fails no matter rounding method use. wrong value causes both of these methods fail? why math.round fail correctly truncate number? method can used instead correctly truncate such values? the value : double value = 0.61740451388888251; method 1: return math.round(value, digits); method 2: double multiplier = math.pow(10, decimals) return math.round(value * multiplier) / multiplier; fails in vs watch window! double floating binary point type. represented in binary system (like 11010.00110 ). when double presented in decimal system approximation not binary numbers have exact representation in decimal system. try example operation: double d = 3.65d + 0.05d; it not result in 3.7 in 3.6999999999999997 . because variable contains closest available double . the same happens in case. variable contains closest available double . for precise operations double / float not f

java - Create enum with entries associated to classes -

supposing have several specific classes extend 1 abstract class, so: public abstract abstractclass { // abstract stuff here } public firstspecificclass extends abstractclass { // specific stuff here } public secondspecificclass extends abstractclass { // specific stuff here } i need create enum elsewhere in each entry connected (associated?) 1 of specific classes; end, passing specific class constructor parameter , storing private field within enum (i've provided getter method field). need create static method takes instance of 1 of specific classes argument , returns appropriate enum element (or null). looping on each enum entry , using instanceof in combination getter private field mentioned previously. attempt: public enum types { first(firstspecificclass.class), // line 2 second(secondspecificclass.class); // line 3 private class<abstractclass> classtype; private types(class<abstractclass> classtype) { this.classtype = classtype;

sql server - finding if patient followed up with doctor after 90 days using DataAdd function in SQL -

i have table has 2 datasets, 1 dataset has doctor office data , other 1 has hospital data. trying find out if patient has followed doctor after 90 days initial admission @ hospital. patient can have multiple admission dates , @ each admission separately if followed doctor after 90 days. calculation should be if service_date - discharge_date > 90 flag 1 set nocount on go declare @test table ( [name] varchar(15) ,[service_dt] datetime ,[dsch_dt] datetime ,[src] varchar(50) ,[loc] varchar(50) ) insert @test ([name], [service_dt], [dsch_dt], [src], [loc]) values ('mike', '2014-01-01', '2014-01-01', 'hospital', 'ny') ,('mike', '2014-2-27', '2014-02-28', 'hospital', 'ny') ,('mike', '2014-07-15', '2014-07-15', 'hospital', 'ny') ,('david', '2014-09-04', '2014-09-04', 'hospital', '

javascript - Adobe Edge: unload Composition -

reference: http://www.adobe.com/devnet-docs/edgeanimate/api/current/index.html#multiplecompositions so, if loads compostion... adobeedge.loadcomposition('comp1js', 'comp1divclass', { scaletofit: "none", centerstage: "both", bscaletoparent: true/*, htmlroot: "foldernameifinanotherdir/"*/ }, {"dom":[]}, {"dom":[]}); what unloads it? can help. load , remove @ will.

Change Server and Client Collation and Charsets in mysql -

Image
i need change mysql server variables 1 one (without using my.cnf file). need this how can change these variable names without editing my.cnf? update this looks now. can run update statements on table? update mytable set value = 'utf8mb4_unicode_ci' variable_name = 'collation_connection'; and on other necessary updates.

spring mvc - Hibernate using two oracle database, Error: cannot simultaneously fetch multiple bags -

i have 2 separate oracle schema pool information , update. somehow when have 2 hibernate.dialect pointing same dialect, give me simultaneously fetch multiple bags error. if change 1 of org.hibernate.dialect.mysqldialect, error disappear , compile table did not generate. question hibernate. while datasource mysql, able generate of table need, when switch datasource oracle, generate 3 table. below persistent.xml <!-- hibernate sessionfactory --> <bean id="sessionfactory" class="org.springframework.orm.hibernate3.annotation.annotationsessionfactorybean" p:datasource-ref="datasource"> <property name="packagestoscan" value="edu.byuh.checklist.domain" /> <property name="hibernateproperties"> <value> hibernate.dialect=org.hibernate.dialect.oracle10gdialect hibernate.transaction.factory_class=org.hibernate.transaction.jdbctransactionfactory

javascript - Recognizing Multple Sets of Opening Tag, Body, and Closing Tag in Regex -

i'm attempting develop function converts [bold]...[/bold] <b>...</b> forum. of right now, works when there 1 set of [bold]...[/bold], however, whenever second 1 added, regex not recognize end of first [bold] until second. to illustrate, if put "[bold]hello[/bold], how [bold]today[/bold]?", should this: hello , how today ? however, i'm getting this: hello[/bold], how [bold]today ? below current function: function formatbolds(str) { output = output.replace(/(\[bold\])(.*)(\[\/bold\])/g, "<b>$2</b>"); } all need change .* non greedy .*? function formatbolds(str) { output = output.replace(/(\[bold\])(.*?)(\[\/bold\])/g, "<b>$2</b>"); } the problem .* greedy , tries match many characters possible, includeing first [/bold] , following [bold] until last [/bold] . ? makes non greedy, , halts matching @ minimum length match

matlab - How cam I zoom in spectrogram horizontally in my codes? -

i'm trying give 2 points user , showing spectrogram between points, following codes successfully, don't know why below errors? also want know, if want put reset button in code revert plot initial state how can that? function from_callback(hobject, eventdata, handles) handles.from=str2double(get(hobject, 'string')); guidata(hobject,handles); function from_createfcn(hobject, eventdata, handles) if ispc && isequal(get(hobject,'backgroundcolor'), get(0,'defaultuicontrolbackgroundcolor')) set(hobject,'backgroundcolor','white'); end function to_callback(hobject, eventdata, handles) handles.to=str2double(get(hobject, 'string')); guidata(hobject,handles); function to_createfcn(hobject, eventdata, handles) if ispc && isequal(get(hobject,'backgroundcolor'), get(0,'defaultuicontrolbackgroundcolor')) set(hobject,'backgroundcolor','white'); end function zoomb_call

excel - Reference Cell from closed Workbook VBA (with error check and relative path) -

going reword pretty poor. here code got stackoverflow take data cell within closed workbook, works perfect sub pullvalue() dim path, filename, sheetname, cell path = "c:\users\admin\desktop\" filename = "book1.xlsm" sheetname = "sheet1" cell = "a1" range("a2") .formula = "='" & path & "[" & filename & "]" & sheetname & "'!" & cell & "" .value = .value end end sub however. trying replace path "c:..." relative link. have tried many forms, i.e. 'thisworkbook.path' nothing seems work, i'm adding code in wrong i'm not vba user. if has tips it'd appreciated , bonus points if can tell me how ignore errors also. cell return blank if sheetname not exist. cheers :) i see no reason why wouldn't work, however, did remember after thisworkbook.path to add "\"? mean saying relat

How to handle different ruby version requirements between chef 10.28.0 and ohai 8.0.1 -

Image
i'm trying build server on rackspace using chef 10.28.0, building exact same configuration i've built 3 times before without changes. difference chef installed ohai 7.4.0 on previous runs , time installing ohai 8.0.1. the problem chef 10.28.0 installs ruby 1.9.3, whereas ohai 8.0.1 requires ruby 2.0.0 or greater. googling have found chef 10 supports ruby 2.0 installs ruby 1.9 default. there way chef 10 install ruby 2.0 instead? barring that, there way chef 10 install ohai 7.4 instead of 8.0? thanks in advance. please use omnibus installer packages. these include ruby, chef, ohai, , other dependencies in working configuration. can download older versions of omnibus installers the download page : or can use -v option bootstrap scripts.

ios - JSON Parsing error with Swift -

i'm new in ios programming , i'm trying new language swift. i've problem / don't know how in parsing json swift ios use. used json in android, know json , link right, when try code below (seen in tutorial) app seems crash , highlighted line: var jsonresult = nsjsonserialization.jsonobjectwithdata(data, options: nsjsonreadingoptions.mutablecontainers, error: &err) nsdictionary the console gives me error: the operation couldn’t completed. (nsurlerrordomain error -1005.) fatal error: unexpectedly found nil while unwrapping optional value here entire code of button's action: let urlasstring = "http://xxxxxxxxxx.altervista.org/app/_dd_/downloadutenti.php?email="+campoemail.text+"&password="+campopassword.text let url = nsurl(string: urlasstring)! let urlsession = nsurlsession.sharedsession() println(url) println(urlsession) let jsonquery = urlsession.datataskwithurl(url, completionhandler: { data, response, e

Disable SSL 3.0 Windows CE Web Server -

i have web server running on few devices running few versions of windows ce. 1 ce 5.0 , other ce 6.0 r3. i have tool can check see if server supports tls , ssl , versions. can see both of web servers support tls 1.0 , ssl 3.0. can see site: http://msdn.microsoft.com/en-us/library/ms900411.aspx that can disable ssl, when disables tls 1.0. there way turn off ssl 3.0 without turning off tls? i tried works on windows server, didn't either: [hkey_local_machine\system\currentcontrolset\control\securityproviders\schannel\protocols\ssl 3.0\server] "enabled"=dword:00000000 this link might help: authentication services registry settings (windows ce 5.0)

How do I make a node move in sprite kit swift -

i have been wondering how long time using sprite kit swift, problem don't know how make node move skactions basicly when go on scene put on see node moving (name node sprite) ,i not understand how works can please show me explained example on how this, thank in advance! to move sprite in sprite-kit can use skactions. for example: let action = skaction.movebyx(3, y: 2, duration: 10) this make sprite move 3 units along x-axis , 2 units along y axis in 10 seconds. if want sprite move specific place, can do: let action2 = skaction.moveto(location: cgpoint, duration: nstimeinterval) hope helped!

java - How do I write a method to determine the highest value in an array -

the array part of class called co2data array co2data array. problem i'm trying find highest value in array method isn't working. values array method must first them co2data class. what's wrong method: public static co2data highest (co2data [] arr2){ scanner sc = null; co2data highestindex = arr2[0].gettotalco2; (int = 0; i<arr2.length; i++){ arr2[i].gettotalco2(sc.nextdouble()); if(arr2[i].gettotalco2() > highestindex ) { highestindex = arr2[i].gettotalco2(); } } system.out.println(highestindex); return highestindex; } here's co2data class looks like: public class co2data { private string country; //a private variable prevent other users accessng , chaning these variables. private double totalco2; private double roadco2; private double co2perperson; private int carsperperson; public co2data() { country = "";//this sets initial values different variables totalco2 = 0; roadco2 = 0; co2perperson = 0; carsperperson

vb.net - Use LINQ to query XML into an array using .ToArray() -

i vb6 veteran gradually coming grips vb.net. have working app trying configure using xml files (other basic app settings). i want read elements single xml node within file , create array of strings. have searched site , others , have found many examples perform similar operations, can't quite grasp of (especially if question / answer in c#). i'm no xml expert, know how select single node , write reasonably neat code iterate through child elements , manually build array using redim, , work fine. ... i'm trying learn new techniques specific example. so ... seems maybe 2 or 3 compact statements should able write linq query , use .toarray() extension method populate array without resorting looping construct. here representation of xml: <?xml version="1.0"?> <targets> <target name="abc"> <index>0</index> <randoms> <string>index</string> <string>local</string>

drawing - Ball to brick collision in c# -

i writing program has ball moving around picturebox , have set of bricks @ top of picturebox. i have used array location of bricks using: int[,] bricklocation = { { 0, 0 }, { 30, 0 } } i have used drawrectangle construct each brick within picturebox. exist within timer1_tick event. ball drawn, picturebox cleared , x , y coordinate change. when ball "collides" brick, want way in brick disappear because there brick behind it. [brick0] [brick1] at moment, code collision between ball , brick1 is: if ((yball > bricky) && (yball < bricky + 25) && (xball > brickx) && (xball < brickx + 80)) { yballchange = -yballchange; } where xball, yball x , y coordinate of ball , brickx , bricky coordinate bricks. so when ball coordinates within bounds of brick1 y-direction change. is there way in can redraw [brick1] in new position no size eliminate there can collision between ball , [brick0]? o

python Tix - how to clear a combobox -

how clear items in tix.combobox object? tried things cb.entry.delete (0, tix.end) and other veriations of function doesn't seem anything. not clear api function should use , doc i've read nothing it. possible?? thanks! edit: ps deleting item name great. couldn't find how either. as the docs say, combobox has entry subwidget, , listbox subwidget. see the wikipedia page on combo boxes in general: something else part entry, , list item 1 etc. parts listbox. so, cb.entry.delete valid, it's deleting contents of entry subwidget. doesn't affect of items in listbox. so, how listbox ? well, in tcl/tk , can access cb.listbox . doesn't work in python/tkinter. if @ the source , can see combobox doesn't have 2 sub-widgets, five , none of listbox or named listbox : entry entry arrow button slistbox scrolledlistbox tick button cross button : present if created fancy option (you should able see help(tix.co

jquery - Anyway to make html/body scroll range shorter than the page height with niceScroll -

is there way make scrolling area height of nice scroll shorter page height starts after nav , end before page bottom? tried jsfiddle example ( code page , view page ) not solution me" var _nscroll = false; if (typeof $.fn.nicescroll != 'undefined') { _nscroll = { horizrailenabled: false, zindex: 2, cursorborder: "none", cursorwidth: "8px", cursorcolor: "#515154", background: "#cbcdd0", autohidemode: false, railoffset: {top:'50px',left:0} }; $("html").nicescroll( _nscroll ); } $(".nicescroll-rails").css({ 'top': '70px', 'right': '7px', 'bottom': '50px', 'height': $(window).height() - 100 });

How to add time to a date in Sybase? -

i'd take current date in sybase , set time 13:30:00. let do select getdate() 12/5/2014 4:06:24.670 pm want return 12/5/2014 13:30:00 pm how transform that? i did not have time test suggest convert date part of getdate() mm/dd/yyyy , add "13:30:00 pm" before convert string datetime object. select convert(datetime,convert(varchar, getdate(), 101) + "13:30:00 pm")

find - NOTE:(getline was not the issue) C++ getline() stops working in user defined function but works in main function -

note: solved, problem not getline() find function improperly filled array! i've looked several questions before posting own, not find answer problem. first question posted, did research , tried other solutions other questions before posting own. not entirely sure isn't duplicate. apologies! thank understanding in advance! i trying use getline() (c++) user input. works fine in main, not in user defined function. thought might have buffer, used cin.ignore() suggested in: c++ getline method not working and checked: how getline work cin? to make sure understood getline(). program still not work correctly. my program takes english text string user input (console input) , converts morse code , outputs result string (console output). basically problem this: getline works in main function both strings , strings spaces ex: "this" , "this code". however, in user defined function, works strings without spaces ex: "this". thanks help!

Shadow mapping 'shadow acne' artifacts using OpenGL and GLSL -

Image
i wrote simple 3d application implementing hard , pcf shadow mapping algorithms using famous front face culling technique. unfortunatly, problem technique sealed meshes can produce cast shadows. example plane can't produce such effect because plane front face itself. so solution use function 'glpolygonoffset' goal modify depth value during depth rendring path of each vertex visible 'light view'. in other words function needed avoid 'shadow acne' artifacts keeping time meshes front faces. here's display of such rendering using hard shadow mapping algorithm: as can see shadow rendering perfect without artifacts! here's c++ client code defining depth texture rendering path: /*glenable(gl_cull_face); //old technique glcullface(gl_front);*/ (uint32_t idy = 0; idy < lightscenenodelist.size(); idy++) { if (lightscenenodelist[idy]->isshadowenabled()) { type::shadowcasterptr pshadowcaster = shadowmanager::getsin

ios - Some methods in class do not recognize that instance of MKMapView already exists -

i trying turn on user tracking mode mkmapview. mkmapview part of storyboard, believe automatically initialized. when run debugger on viewdidload , viewdidappear , prints address of mkmapview, seems initialized. here methods in firstviewcontroller class: #import "firstviewcontroller.h" #import "options.h" #import "appdelegate.h" @interface firstviewcontroller () @end @implementation firstviewcontroller - (void)viewdidload { [super viewdidload]; // additional setup after loading view, typically nib. appdelegate *appdelegate = (appdelegate *)[[uiapplication sharedapplication] delegate]; self.currentmap.delegate = self; [appdelegate.locationmanager requestalwaysauthorization]; appdelegate.locationmanager.distancefilter = 20.0; } - (void)viewdidappear:(bool)animated { [super viewdidappear:no]; if ([cllocationmanager authorizationstatus] != kclauthori

Append text or data to text file in Swift -

i have read read , write data text file i need append data (a string) end of text file. 1 obvious way read file disk , append string end of , write back, not efficient, if dealing large files , doing in often. so question "how append string end of text file, without reading file , writing whole thing back"? so far have: let dir:nsurl = nsfilemanager.defaultmanager().urlsfordirectory(nssearchpathdirectory.cachesdirectory, indomains: nssearchpathdomainmask.userdomainmask).last nsurl let fileurl = dir.urlbyappendingpathcomponent("log.txt") var err:nserror? // until find way append stuff files if let current_content_of_file = nsstring(contentsofurl: fileurl, encoding: nsutf8stringencoding, error: &err) { "\(current_content_of_file)\n\(nsdate()) -> \(object)".writetourl(fileurl, atomically: true, encoding: nsutf8stringencoding, error: &err) }else { "\(nsdate()) -> \(object)&qu

c++ - Removing geometrical objects from geomview window when used in CGAL -

i interested in implementing computational geometry algorithms using cgal library. ideally, interested in being able animate algorithm.cgal has interface geomview built in interested in using illustrating these algorithms. based on little understand of cgal geomview interface (from example ), below simple code wrote, inserts 5 random points, , segments between of points. however, once render objects screen, don't know how unrender them or delete them geomview window, if need deleted @ next iteration(say) of algorithm. how modify code below that? if knows of better way using geomview animate geometry algorithms cgal helpful. #include <iostream> #include <vector> #include <cgal/exact_predicates_inexact_constructions_kernel.h> #include <unistd.h> #include <cgal/io/geomview_stream.h> typedef cgal::exact_predicates_inexact_constructions_kernel k; typedef k::point_2 point_2; typedef k::segment_2 segment_2; using namespace std; int main

svn - review board didn't display repository after add -

i have started review board on amazon ec2 , can success log in admin computer. , other functions including add users, create group works except add svn repository. have strict followed instruction document. didn't see repository added. have struggled in 2 days this. thanks without knowing exact sequence of steps followed , exact message got, difficult answer this. although, experience review board, if unable add new repo, because of permission issues repo directory. make sure user running review board has permissions access repo directory.