Posts

Showing posts from September, 2012

unix - Find - replace - Update string using shell script -

This summary is not available. Please click here to view the post.

ios - Core Data - NSManagedObjectContext returns nil in Master-Detail Application -

i'm working on alarm clock app, use core data stack apple's master-detail application template, worked fine core data, until i'm calling in - (void)applicationdidenterbackground:(uiapplication *)application method masterviewcontroller work during app in background , should tableview [self.tableview reloaddata] . and point error +entityforname: nil not legal nsmanagedobjectcontext parameter searching entity name 'myentity' everything works fine when app running when tableview should reload when application in background error. knows how solve problem? in appdelegate.m - (nsmanagedobjectcontext *)managedobjectcontext { if (_managedobjectcontext != nil) return _managedobjectcontext; nspersistentstorecoordinator *coordinator = [self persistentstorecoordinator]; if (coordinator != nil) { _managedobjectcontext = [[nsmanagedobjectcontext alloc] init]; [_managedobjectcontext setpersistentstorecoordinator:coordinator]; } return _managedobjectcont

jquery - FlotChart 0.8.2 Time mode requires the flot.time plugin -

i'm working flotchart make custom linechart (which call in ajax) i'm doing wrong because not displayed , error : uncaught error: time mode requires flot.time plugin. but jquery.flot.time.js included don't understand why got error. i found link : https://github.com/flot/flot/issues/1016 explain why flot throwing error don't understand everything... can explain me more or check wrong in code ? $(function() { var data = [ { label: "a0-p1-m1 10cm", data: [ [1388538000000, 29.8848], [ // .. data] ] } ]; var options = { legend: { nocolumns: 1 }, xaxis: { mode: "time", timeformat: "%d/%m %h:%m", ticklength: 10 }, yaxis: { show: false } }; var plot = $.plot("#placeholder13", data, options); }); thank tim

ios - Alert view on UINavigationBar in iOS7? -

is there suitable custom view can put above navigation bar? usually using uialertview giving alert. want view on navigation bar show infront of navigation bar , hide after 5 second.? is there component of build-in feature? thanks there way -- through can show view on navbar or tabbbar whereever need.. https://github.com/ecstasy2/toast-notifications-ios https://github.com/filipstefansson/uinavigationbaralert

java - Why can I write to "mnt/sdcard" and not to "mnt/extsd"? -

Image
i'm trying store file external storage (android 4.2.2). i'm using correct permission in manifest.xml: <manifest ...> ... <uses-permission android:name="android.permission.write_external_storage" /> <uses-permission android:name="android.permission.read_external_storage"/> ... the external sd card available, can prove using other app read , write files. path /mnt/extsd/ valid, @ picture below. external sd card writable because can copy/paste files it. the code: try { string path = "/mnt/extsd/file.dat" file f = new file(path); f.createnewfile(); return true; } catch (exception e) { e.printstacktrace(); return false; } i error on f.createnewfile(); : w/system.err(2172): java.io.ioexception: open failed: eacces (permission denied) w/system.err(2172): @ java.io.file.createnewfile(file.java:948) w/system.err(2172): @ solarapp.activities.settings.application.activitybackup

java ee - wicket - text field with formate that support 1,000 instead of 1000 -

i show in client string 1,000 acutall value int x = 1000 integer how can achive ? i trying genrating new class mytextfiels have @override public <c> iconverter<c> getconverter(class<c> type) { iconverter<c> converter = super.getconverter(type); if (converter instanceof abstractdecimalconverter<?>) { ((abstractdecimalconverter<?>) converter).getnumberformat(getlocale()).setgroupingused(true); } else { ((abstractintegerconverter<?>) converter).getnumberformat(getlocale()).setgroupingused(true); } return converter; } but not seem work , missing when getnumberformat() on converter, doesn't return reference numberformat instance converter use, rather clone of instance: @override public numberformat getnumberformat(final locale locale) { numberformat numberformat = numberformats.get(locale); if (numberformat == null) { numberformat = newnumberformat(locale);

sql server - How to format date to a certain way in SQL -

i have following query: select dateadd(day, 0 - (datepart(weekday, getdate()) % 7), getdate()) which displays: 2014-04-19 10:47:46.790 how can modify query displays 04/19/2014 or 04-19-2014 select convert(varchar, dateadd(day, 0 - (datepart(weekday, getdate()) % 7), getdate()), 101) outputs 04/19/2014 and select convert(varchar, dateadd(day, 0 - (datepart(weekday, getdate()) % 7), getdate()), 110) outputs 04-19-2014 alternately, format in consuming application (in case, ssrs). done =format(date_column, "mm/dd/yyyy") or =format(date_column, "mm-dd-yyyy")

css - Columns are overlapping in bootstrap 2 layout -

Image
i using codeigniter , trying set bootstrap 2 column layout using in controller: $data['form'] = $this->load->view('sellers/form7','',true); $data['data1'] = $this->load->view('sellers/lorem','',true); $this->load->view('sellers/twocolumnlayout', $data); my layout view : <div class="container-fluid"> <div class="row-fluid"> <div class="span5"> <?php echo $form ?> </div> <div class="span2"> </div> <div class="span5"> <?php echo $text1 ?> </div> </div> </div> unfortunately columns overlapping (please see attached pic). can show me how fix this?

How to modify the root parent selector in sass -

this question has answer here: modifying middle of selector in sass (adding/removing classes, etc.) 1 answer how can modify root element of parent selector chain? (using sass 3.3.x) like... =prepend($prefix) @at-root .#{$prefix}#{&} // note there no dot (.) separating @content .foo .bar +prepend(baz) background: red and return .baz.foo .bar { background: red; } or better... explicit way target root element (or nth element)? =prepend($prefix) &.#{$prefix} @content .foo +prepend("baz") .bar background: red returns this: .foo.baz .bar { background: red; } on right track?

How to use LZMA SDK in C++? -

i have difficulties in using lzma sdk in application. i create kind of single file compression tool. dont need directory support, need lzma2 stream. have no idea on how lzma sdk used this. please can give me little example on how lzma sdk can used under c++? i think it's little example use lzma sdk. /* lzmautil.c -- test application lzma compression 2008-08-05 igor pavlov public domain */ #define _crt_secure_no_warnings #include <stdio.h> #include <stdlib.h> #include <string.h> #include "../lzmadec.h" #include "../lzmaenc.h" #include "../alloc.h" const char *kcantreadmessage = "can not read input file"; const char *kcantwritemessage = "can not write output file"; const char *kcantallocatemessage = "can not allocate memory"; const char *kdataerrormessage = "data error"; static void *szalloc(void *p, size_t size) { p = p; return mya

JQuery AJAX to PHP issue with CORS -

i trying build php api can use jquery post in order make phonegap app. keep running problem cors (i think) when try use ajax call here ajax call: $.ajax({ type: 'post', url: "http://xxx.xxx.xxx.xxx/v1/login", data: { user: username, pass: password } }).done(function( msg ) { console.log(msg); }); and here headers i'm setting in php file: header('access-control-allow-origin: *'); header('access-control-allow-methods: get, post, put, delete, options'); header('access-control-max-age: 604800'); header('access-control-allow-headers: x-requested-with'); every time run ajax call same errors returned in console: post http://xxx.xxx.xxx.xxx/v1/login 500 (internal server error) l.cors.a.crossdomain.send o.extend.ajax login onclick the ajax call inside function called 'login' being run on button click, think accounts last 2 lines of error message, don't understand rest. also

java - Apache Camel: keeping filtered messages -

say have queue containing messages a , a , b , a , b , a . i'd log+drop b messages, i'd keep a messages untouched. need type of ignore functionality, rather discarding filter. if that's not available need similar to: from("jms:queue:from") .filter(header("head").isequalto("b")).to("log:com.acme?level=info").end() .to("jms:queue:from"); this type of thing seems common pattern? how people type of thing? i think choice better option filter from("jms:queue:from") .choice() .when(header("head").isequalto("b")).to("log:com.acme?level=info") .otherwise().to("jms:queue:from") .end()

ios - Should we define a position to CCAnimation? -

well, asking question ccanimation example in book " learn cocos2d ". in example (ch6), don't see code define position ccanimation , see ccsprite-derived class, called "ship", given position. why? ccanimation knows animate? thanks ccanimation has no position. animation changes sprite frames (textures) of sprite (the ship). therefore ship's position determines animation played.

c# - wpf binding not updating -

using mvvm, have view contains dependencyproperty, , listbox bound viewmodel: public static readonly dependencyproperty selectedserverproperty = dependencyproperty.register("selectedserver",typeof(object), typeof(serverview), new frameworkpropertymetadata(test)); public object selectedserver { { return getvalue(selectedserverproperty); } set { setvalue(selectedserverproperty, value); } } public serverview() { setbinding(selectedserverproperty, "selectedserver"); initializecomponent(); } public static void test(dependancyobject sender, dependancypropertychangedeventargs e) { ... } xaml: <listbox itemssource="{binding servers}" displaymemberpath="name" selecteditem="{binding selectedserver}" /> and viewmodel implements inotifypropertychanged: servermodel _selectedserver; public servermodel selectedserver { { return _selectedserver; } set { _selectedserver = value;

java - Clojure Reflection warning - call to write can't be resolved -

i'm struggling correct type hints avoid warn on reflection while writing text-file-output database query. i've tried put ^string type hints before each function being called, output going hit text file on disk. the reflection warning occurs on :row-fn line towards end of function. have comment reflection warning, dbdump/dbdump.clj:157:44 - call write can't resolved. on same line. how can rid of warning? i'm thinking there performance cost when working large datasets. (defn run-job [job-time-string db-spec config] (let [; {{{ source-sql (str "select * " (:source-base-name config)(:table-name config)) max-rows (:max-rows config) fetch-size (:fetch-size config) working-dir (:working-dir config) output-name (str working-dir "/" job-time-string ".pipe" ) field-delim (:field-delim config)

javascript - UnderscoreJS - how to flatten a object using one of the iterator? -

i make breadcrumb. , getting data end this: var object = { "department": { "deptcode": null, "description": "123", "deptname": { "name": "xyz" } }} and using underscore or jquery modify object this: var result = { "department.deptcode": null, "department.description": "123", "department.deptname.name": "xyz" } i tried using undrscore, not result. 1 show me possible way done? my try: var lable = []; _.each(object, function(key, obj){ var title = obj; if(_.object(key)){ _.each(key, function(text,obj){ lable.push(title + '.' + obj + ':' + text); }) } }); console.log(lable); here fiddle try creating recursive function, (based on fiddle): var lable = {}; function flatten(object, title) { _.each(object, function(key, ob

api - Intragram Client ID issue -

i'm having serious trouble instagram , getting latest posts feed json result. i'm using following link: https://api.instagram.com/v1/users/client_id/media/recent/?access_token=access_token# i've registered app on instagram, , put client id on app , put link above. i've registered client id access token it's still doing same thing. the link says page not found seems right link. any ideas? take while register client id become valid? my client id mix of letters , numbers, right? on note, what's client secret for? the id in recent media feed user id of user photos wish view (which number), not client id of application. should used access token via oauth process. if don't know user id can find using ../v1/users/search end point. the client secret used part of oauth process valid access token.

php - recursive level adding of strings -

i figting recursion , cannot solve it. here want do: there n levels. every level has arrays of values. levels 0 => array (2) 0 => "66:" 1 => "68:" 1 => array (4) 0 => "76:9" 1 => "76:10" 2 => "76:13" 3 => "76:14" 2 => array (4) 0 => "77:11" 1 => "77:12" 2 => "77:15" 3 => "77:16" in example can see upper there 3 levels(n possible). trying make combinations this: level[0][0] + ";" + level[1][0] + ";" + level[2][0] level[0][0] + ";" + level[1][0] + ";" + level[2][1] level[0][0] + ";" + level[1][0] + ";" + level[2][2] level[0][0] + ";" + level[1][0] + ";" + level[2][3] level[0][0] + ";" + level[1][1] + ";" + level[2][0] level[0][0] + ";" + level[1][1] + ";" + level[2][1] level[0]

Trouble understanding python generators -

this question has answer here: what “yield” keyword do? 33 answers i new generator in python. have simple enough code playing can not understand output getting out of it. here code : def do_gen(): in range(3): yield def incr_gen(y): return y + 1 def print_gen(x): in x: print x = do_gen() y = (incr_gen(i) in x) print_gen(x) print_gen(y) i expected output : 0 1 2 1 2 3 but seeing : 0 1 2 i not understand output. can please me sort out lack of understanding? in advance. generators (like iterables) can iterated on once . time print_gen(x) done, x . further attempts new values x result in stopiteration being raised. this works: x = do_gen() y = (incr_gen(i) in do_gen()) print_gen(x) print_gen(y) as creates 2 separate independent generators. in version, generator expression assigned y expects x yield

html - MS Access or MySQL -

i have create website has data-base support.this college project.i'm confused whether use ms access or oracle mysql store data-base...which of these 2 has compatibility , flexible.please help.thank you. i advise using mysql(windows) or mariadb(linux). you may try xampp(windows) or lamp(linux) start. cheers.

java - IntelliJ IDEA 13.1.1 - Spring MVC Project Template Error -

this question has answer here: my application not open servletcontext resource 3 answers i'm playing spring framework in intellij idea 13.1.1. in intellij choose: file -> new project -> spring -> spring mvc -> create project template. creates default spring project configuration of deploying war:exploded tomcat server. change nothing default configuration. builds , deploys correctly, result following: http status 500 - servlet.init() servlet mvc-dispatcher threw exception javax.servlet.servletexception: servlet.init() servlet mvc-dispatcher threw exception org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:501) org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:98) org.apache.catalina.valves.accesslogvalve.invoke(accesslogvalve.java:950) org.apache.catalina.connector.coyoteadapter.service(coyo

ios - Authorizing a certificate for MCSession -

i have created self signed certificate in keychain , using multipeerconnectivity framework transfer data between devices. when create session can pass securityidentity when invite peers in mcsession. - (instancetype)initwithpeer:(mcpeerid *)mypeerid securityidentity:(nsarray *)identity encryptionpreference:(mcencryptionpreference)encryptionpreference; but securityidentity nsarray, how can pass certificate in nsarray , how can authenticate in - (void)session:(mcsession *)session didreceivecertificate:(nsarray *)certificate frompeer:(mcpeerid *)peerid certificatehandler:(void(^)(bool accept))certificatehandler; it array containing information can used identify local peer other nearby peers. the array contains objects helps identify peer others. first secidentityref object has seckeyref object , related seccertificateref object. (it apple developer certificate , private key pair) the other elements in array can seccertificateref objects representing intermediate

Expand time interval data into days in R -

suppose have data looks this: interval_id indiv_id role start_date end_date 1 1 2006-05-01 2006-06-16 2 1 b 2006-06-16 2006-10-16 3 1 2006-10-16 2009-10-16 4 1 b 2009-10-16 2014-04-23 5 2 2007-12-15 2009-10-16 6 2 b 2009-10-16 2011-07-01 but want data looks (taking first role interval example): interval_id indiv_id role day 1 1 2006-05-01 1 1 2006-05-02 1 1 2006-05-03 1 1 2006-05-04 1 1 2006-05-05 1 1 2006-05-06 ... ... ... ... 1 1 2006-06-16 i'm doing loop in r. pretty sure unnecessary. there package expanding time intervals this? seems reshape-type job since i'm kind of turning time interval long format data set. thanks. here's way p

html - Breaking Text Block In A DIV To Screen Height -

ideally want have columns when displayed visible screen on 1 screen page visible show full columns (no matter how many across) height of current screen. these columns break content automatically on next page if content long single screen user page down see next block of columns. the css code using make (two) columns right (that responsive) below: .resp-column { padding: 1em; -moz-column-count: 2; -moz-column-gap: 1em; -webkit-column-count: 2; -webkit-column-gap: 1em; column-count: 2; column-gap: 1em; } @media screen , (max-width:480px) { .resp-column {column-count: 1;} } so... css works fine 2 columns , responsive know when have 2 long columns of text pain read on device unless break per current screen length. how : break content on screen length automatically when not on @media screens? i tried adding > height: 100vh; < .resp-column , did not work... created multiple horizontal columns. thanks , in advance.

sublimetext2 - sublime Text 2 bring back unsaved files on osx -

in sublime know if don't save changes in file later 1 can start left off. opened new tab in sublime , closed application before save file. sublime save temp file somewhere in computer (i using mac osx) sublime text 2 stores files in ~/library/application support/sublime text 2/settings , in .sublime_session files located there. the contents of files large json blob contains individual tab contents. search in file file name / tab name / key word in document , should able need.

c++ - Converting from string to float creates unnecessary decimals -

p->gettext(buf2,32); float area = atof(buf2); when 9.2 in buf2 , gets automatically converted 9.245 . can tell me why happen, (i have restricted float value upto 3 decimal places)? have you've tried setting precision higher? std::setprecision(4) << buf2 also try doing 0 fill on base on character count of string possibly?

r - Select element with specific character -

i have atomic vector character different length each elements belows: <- c("abcde", "adlbb", "asdlb", "abcdg", "abcdgdl") my task select "dl". the tricky part dl not fixed specific position of elements. my ideal answer is: [1] "adlbb" "asdlb" "abcdgdl" i tried grep("[dl]", a, value=true) seems not working. thanks. with grep be > <- c("abcde", "adlbb", "asdlb", "abcdg", "abcdgdl") > grep("dl", a, value = true, fixed = true) ## [1] "adlbb" "asdlb" "abcdgdl" no need [ capture characters if set fixed = true . capture "dl" is. variety > a[grep("dl", a, fixed = true)] ## [1] "adlbb" "asdlb" "abcdgdl" since mentioned you're learning regular expressions in r , here other variations of grep

android - Spinner and HTML select -

i have spinner displaying categories. ((string)categoryspinner.getselecteditem())) gives category name. the spinner initialized given below: list<string> list = new arraylist<string>(); (int = 0; < category.length; i++) { list.add(category[i].getname()); } arrayadapter<string> dataadapter = new arrayadapter<string>(this, android.r.layout.simple_spinner_item, list); dataadapter.setdropdownviewresource( android.r.layout.simple_spinner_dropdown_item ); shoppingitemcategoryspnr.setadapter(dataadapter); is there idea make spinner html select-tag can display category name , category id?

webserver - Tomcat server.xml connection timeout configuration -

i have read connection timeout in server.xml close connection in case of timeout not stop thread going processing request. in case achieving closing connection ?? not sure how resources occupied connection, thought closing connection release socket(some memory). want understand real advantage of flag. the apache tomcat connectiontimout described in documentation the number of milliseconds connector wait, after accepting connection, request uri line presented. default value 60000 (i.e. 60 seconds). it defines amount of time connection held open. question of why close connections, again apache documentation , setting communication timeouts important improve communication process. detect problems , stabilise distributed system. in short, achieving stability , effective error logging making sure connection pool clean.

android - XmlPullParser - get data from tag with specific attributevalue -

i'm creating parser xml-file , works fine until add option retrieve link. have several tags of same name , want 1 specific tag specific attribute value. ... <artist> <name>venom</name> <mbid>5ddddef1-fd5a-4ca8-8e89-df4adff4239b</mbid> <url>venom</url> <image size="small">http://userserve-ak.last.fm/serve/34/35628151.png</image> <image size="medium">http://userserve-ak.last.fm/serve/64/35628151.png</image> <image size="large">http://userserve-ak.last.fm/serve/126/35628151.png</image> <image size="extralarge">http://userserve-ak.last.fm/serve/252/35628151.png</image> </artist> ... i'm fishing link in "extralarge". my current code: ... private trackinfo readtrack(xmlpullparser parser) throws xmlpullparserexception, ioexception { parser.require(xmlpullparser.start_tag, ns, "track");

php - Multidimensional Array for making 2 sql update query -

edit: adjusted array understand easyer. i'm struggling couple of days , drives me crazy... what want 2 sql update queries this. note statement array. code: "update gewasregistratie set lengtegroei= 1, vruchten_geaborteerd= 1, etc.. kenmerk = 'standaard' , user_id = ".$user"" "update gewasregistratie set lengtegroei= 2, vruchten_geaborteerd= 2, etc.. kenmerk = 'natugro' , user_id = ".$user"" i got multi-level array (its $_post["type"] array). array ( [lengtegroei] => array ( [standaard] => 1 [natugro] => 2 ) [vruchten_geaborteerd] => array ( [standaard] => 1 [natugro] => 2 ) [plantbelasting_geteld] => array ( [standaard] => 1 [natugro] => 2 ) [uitgroeiduur] => array ( [standaard] => 1 [natugro] =>

vb.net - Counting variables and functions of copy-paste source -

i need on counting variables , functions , print out names in vb.net. example, let's have source code other ours, , in our project have textbox , button. need paste third-party source code in textbox , when click button need have ouput 1 below: num of variables: 10 num of functions: 5 names of variables: i,j,k.... names of functions: func1, func2... i don't have idea ask, thing did searching online days , found nothing. any appreciated. thanks.

javascript - how to call modalPopup from custom validator code -

i want show user friendly messages using custom validator , modal popup extender. here design : <ajaxtoolkit:modalpopupextender id="mpe" runat="server" targetcontrolid="hdvalue" popupcontrolid="panelalert" backgroundcssclass="modalbackground1" dropshadow="true" cancelcontrolid="btncancel"> </ajaxtoolkit:modalpopupextender> <asp:panel id="panelalert" runat="server" cssclass="modalpopup" width="233px" style = "display:none"> <div class="sidesection_top" style="float: left; height: 15px;" align="left"> <div style="float: left; width: 192px; height: 15px;" align="left"> registration alert</div> <div style="float: right; width: 32px; height: 15px;" align="right"> &l

Scons checking for compiler option -

i want check in scons compiler support option (for example -fcilkplus ). way manage following sequence of operations: env.prepend(cxxflags = ['-fcilkplus'], libs = ['cilkrts']) then launch custom checker: def checkcilkpluscompiler(context): test = """ #include <cilk/cilk.h> #include <assert.h> int fib(int n) { if (n < 2) return n; int = cilk_spawn fib(n-1); int b = fib(n-2); cilk_sync; return + b; } int main() { int result = fib(30); assert(result == 832040); return 0; } """ context.message('checking cilk++ compiler ... ') result = context.tryrun(test, '.cpp') context.result(result[0]) return result[0] now if fails, have remove 2 options flags -fcilkplus cilkrts environment variables. there better way ? the problem can't manage access env context , therefore can't make clone of it.

visual studio 2013 - Windows Phone development tools -

i have installed vs-2013 , install visual studio 2013 update 2 rc windows phone 8.1 development using link https://dev.windowsphone.com/en-us/downloadsdk , after want install sdk 8.0 using above link gets me error below: this product can installed on windows 8 or later 64-bit machine. but have installed windows 8 kindle suggest me, waiting reply. thanks. the download suggests requirement windows 8 (x64) introducing windows phone sdk 8.0 blog. see: http://www.microsoft.com/en-us/download/details.aspx?id=42307 (expand system requirements) , http://blogs.msdn.com/b/visualstudio/archive/2012/10/30/introducing-windows-phone-sdk-8-0.aspx

ruby - Carmen Gem giving special characters -

i using carmen gem countries , respective states.but, when use carmen::country.named("sri lanka").subregions.collect{|p| p.name} , getting array: ["basnāhira paḷāta", "madhyama paḷāta", "dakuṇu paḷāta", "uturu paḷāta", "næ̆gĕnahira paḷāta", "vayamba paḷāta", "uturumæ̆da paḷāta", "Ūva paḷāta", "sabaragamuva paḷāta"] and after using i18n, getting: ["basnahira pa?ata", "daku?u pa?ata", "madhyama pa?ata", "nae?genahira pa?ata", "sabaragamuva pa?ata", "uturu pa?ata", "uturumae?da pa?ata", "uva pa?ata", "vayamba pa?ata"] with ? replacing special characters. transliterate changes non ascii characters ascii characters approximations, characters there no approximations replaced ?. this explained in docs . if not want do, not want use transliterate method. if want write

CSS slideshow doesn't work after the first loop -

i wanted learn tutorial messed things up... seems images in slideshow overlap after first loop. don't know why never shows first picture again. appreciated... <div class="slides"> <ul><!-- slides --> <li><img src="http://cdn.imghack.se/images/08b84eb923891fcc01dd3cdc4c1b1c7b.png"></li> <li><img src="http://cdn.imghack.se/images/aface157d33eed1ac449df27428bb339.png"></li> <li><img src="http://cdn.imghack.se/images/30dba15fd1c89ad8b6e6363b8ede09f9.png"></li> </ul><!-- slides --> .slides { height:300px; overflow:hidden; position:relative; width:705px; background: black; box-shadow: black 0 0 3px; } .slides ul { margin-top:0; list-style:none; position:relative; padding: 0; } /* keyframes #anim_slides */ @-webkit-keyframes anim_slides { 0% {opacity:0;} 25% {opacity:1;} 50% {opacity:1;} 75% {opacity:1;} 100% {opacity:0;} } @-moz-k

mysql - Owncloud disappear from my server -

i have owncloud installation in cloud server. yesterday ok. when reboot server (centos 6.3) tried access owncloud on web. it's not there. checked owncloud folder , empty. owncloud database (in mysql) doesn't exists. said, before reboot ok. right think lost everything. i know it's not lot of information, it's have. if can me find out happen, grateful. well, seems ispconfig instance rewrite of virtualhosts configuration , that's why pointing other folder.

c++ - eclipse g++ not mangling function name -

a c++ module i'm working contains function (fitspectrumnaiu) calls 2 other functions (quadcal , mrqmin), , prototypes called functions included after first line of containing function: /*++ analyze spectral data */ int fitspectrumnaiu(long inumchans, long *pspectrum, double dgain, double dzero, double *dcentroid, double *dfwhm, double *darea, double *derror) { double quadcal(double ax, double ay, double bx, double by, double cx, double cy); int mrqmin(double *x,double *y,double *sig,int npt,double *a,int *ia, int ma, double **covar, double **alpha, double *chisq, void (*funcs)(double, double*, double*, double*, int), double *alamda); ... (body of fitspectrumnaiu) mrqmin() , quadcal() defined later on in source file. the code compiles fine , becomes part of library subsequently linked main routine. problem occurs during linking eclipse g++ however. mrqmin() routine’s name not mangled when put archive , linker not find it. objdump of li

php - How can I retrieve specific information from my sql query based on what information is filled in the HTML form fields? -

i brand new php , else, please try keep response simple possible. thank you. can't figure out how information field filled in. when search, brings empty fields well. need information in html form found. example, if put in project code, need information pertains code. or if put in specific budget, need has budget. hope makes sense...i'm such rookie, don't know how word question!!!! have tried using !is_null, (isset), !empty none of them seem work. <?php include 'connect.php'; // values form $p_code=$_get['projectcode']; $p_name=$_get['projectname']; $budget=$_get['budget']; $s_date=$_get['startdate']; $e_date=$_get['enddate']; $c_year=$_get['cyear']; $c_qtr=$_get['cqtr']; $c_grp=$_get['cgrp']; $sponsor=$_get['sponsor']; $client=$_get['client']; $p_lead=$_get['projectlead']; $orig_hrs=$_get['originalhrs']; $risk_per=$_get['riskpercent']; $notes=$_get[&#