Posts

Showing posts from March, 2010

asp.net mvc 3 areas - HighCharts -- MVC 3 Database -

Image
i working dotnet.highcharts in visual studio 2010. creating mvc 3 web application. able highcharts working statically assigning data. able send data database highcharts displaying. can create class control data , send class highcharts? if so, can tell me how this? also, if has working project demonstrates , willing share awesome. i saw posted below class in question. however, don't know how use or send class highcharts script. appreciated. class highchartspoint { public double x {set; get;} public double y {set; get;} public string color {set; get;} public string id {set; get;} public string name {set; get;} public bool sliced {set; get;} } edit well, building web application display information data collected solar monitoring. power, voltage, current, , etc grouped combiner, inverter, , etc. believe x , y data. however, if simpler code via array of object, it. hope answered question. below model classes have data. not done them. still

php - .htaccess rewrite URL not showing correctly? -

i want when write following: http://boundsblazer.com/user/joe it internally processes page: http://boundsblazer.com/user/profile?usr=joe but keeps old url. however, when write: http://boundsblazer.com/user/joe the url becomes: http://boundsblazer.com/user/profile?usr=joe i have searched countless threads, , nobody having trouble am. problem when write url, url changes , makes ugly. .htaccess: rewriteengine on rewriterule ^user/([a-za-z0-9]+)$ http://boundsblazer.com/user/profile.php?usr=$1 [l,qsa] does know causing problem? use this: rewriteengine on rewriterule ^user/([a-za-z0-9]+)$ /user/profile.php?usr=$1 [l,qsa] the issue using absolute url, instead of relative url, , mod_rewrite performing redirect instead of rewrite.

escaping - How to escape apostrophe (') in MySql? -

the mysql documentation says should \' . however, both scite , mysql shows '' works. saw , works. should do? the mysql documentation cite says little bit more mention. says, a “ ' ” inside string quoted “ ' ” may written “ '' ”. (also, linked mysql 5.0 version of table 8.1. special character escape sequences , , current version 5.6 — current table 8.1. special character escape sequences looks pretty similar.) i think postgres note on backslash_quote (string) parameter informative: this controls whether quote mark can represented \' in string literal. preferred, sql-standard way represent quote mark doubling ( '' ) postgresql has historically accepted \' . however, use of \' creates security risks... that says me using doubled single-quote character better overall , long-term choice using backslash escape single-quote. now if want add choice of language, choice of sql database , non-standard quirks

jQuery - add html based on class name -

is there way add html based on class name , inject specific place. code belows shows trying do, obvioulsy hard coded, want dynamically using jquery. <ul class="status clrfix"> <li class="green"><a href="">completed</a><span class="arrow"></span></li> <li class="green"><a href="">completed</a><span class="arrow"></span></li> <li class="blue"><a href="">in progress</a><span class="current-stage"><img src="images/current-stage.png" /></span><span class="arrow"></span></li> <li>not started <span class="arrow"></span></li> <li class="last">not started <span class="arrow"></span></li> so, want is; if class="blue" add inside li: <span class=&qu

How do I populate a select list in jQuery with data from PHP? -

i have bunch of courses , each course has different number of lessons. so, have 2 select lists 1 courses , 1 lessons associated course. course select list easy, i'm doing end of php in foreach loop. i'm going through courses student has: public function createcontent($student) { //get student courses //get lessons of each course //get upcoming lessons $lessons = $this->getlessons($courses); //need make use of $lessons populate lesson list foreach($coursearray $c) { $courseselectlist .= '<option id="select"'.$count.' value="'.$c['id'].'">'.$c['fullname'].'</option>'; $count++; } //create lesson select list in php backend or in front end dynamically jquery? return $courseselectlist.$lessonselectlist; } my next step create second select list contains lessons of selected course. how list populated depends on s

internet explorer - ASP.Net Browser Compatibility -

if use ie connect asp.net site , let browser sit idle minute or , try click on new item, link, whatever, ie appears though it's trying load never anything. if connect site using chrome , same thing chrome pulls next item expected no delay. i've tried making changes web.config sessionstate , httpruntime, asp , pool settings in iis, , can't seem fixes problem in ie. is there setting somewhere, perhaps in windows fix ie seems browser dependent issue , not related asp site or iis? i'm running out of ideas , of users using ie , not chrome it's not problem can ignore. here's web.config file if helps: <?xml version="1.0"?> <!-- more information on how configure asp.net application, please visit http://go.microsoft.com/fwlink/?linkid=169433 --> <configuration> <connectionstrings> <add name="applicationservices" connectionstring="data source=.\sqlexpress;integrated security=sspi;attachdbfilen

django-uploadify http error 500 after upload -

used technologies django-uploadify (multiple file upload) django 1.3 testing web server context i can upload files web server using upload.html page (the upload directory has required permissions). however, when upload completed, web server returns http 500 error. "post /filemanager/view http/1.1" 500 68788 the /filemanager/view page render correctly if access directly (get). code filemanager/urls.py urlpatterns = patterns('filemanager.views', url(r'^upload/', direct_to_template, {'template': 'upload.html'}), url(r'^view/', listview.as_view( queryset = container.objects.all(), context_object_name='containers', template_name='view.html'), name='view' ) ) filemanager/templates/upload.html {% load uploadify_tags %} {% load url future %} <html> <head> <script type="text/javascript"

wpf - How to set a viewmodel property if a listbox item selected? -

i have listbox...and bound list of items of type (class) "a". class "a" has boolean property "iscurrentviewactive". false default. when user select item in listbox....i need set "iscurrentviewactive" property of corresponding item true. i tried below code in listbox...but not working..any appreciated. <style x:key="listboxitemtabstyle2extended" targettype="{x:type listboxitem}" > <setter property="isselected" value="{binding path=iscurrentviewactive, mode=twoway}"/> <style.triggers> <datatrigger binding="{binding isselected, relativesource={relativesource ancestortype={x:type listboxitem}}}" value="true"> <setter property="isselected" value="{binding path=iscurrentviewactive, mode=twoway}"/> </datatrigger>

ios - Redeem codes for inapp purchase items -

is possible generate redeem codes iap items? it not possible, , not permitted, according iphone developer program license agreement, clause 3.3.3: without apple's prior written approval or permitted under section 3.3.17, application may not provide, unlock or enable additional features or functionality through distribution mechanisms other app store. source: https://www.eff.org/files/20100302_iphone_dev_agr.pdf for recent version: https://developer.apple.com/membercenter/index.action#agreements you can check following related questions workaround: workaround lack of promotional codes in-app purchases , rewarding ios app beta testers in app purchase?

javascript - Awesomium C no response from awe_webview_set_callback_js_callback -

i've asked question on awesomium forms haven't received response yet , figured speed things asking here too. i unable reach break point within callback_ui() when push corresponding html button. links work fine travel between pages callback not triggered. here simple c side code: #define buffer_len_callbacks 100 #define name_uiobj_index "object_index" #define name_uicall_index "callback_index" void callback_ui(awe_webview* view, awe_string const* object_name, awe_string const* callback_name, awe_jsarray const* args){ char buff_object_name[buffer_len_callbacks] = {0}; char buff_callback_name[buffer_len_callbacks] = {0}; //char buff_args[buffer_len_callbacks] = {0}; // strings. awe_string_to_utf8(object_name, buff_object_name, buffer_len_callbacks); awe_string_to_utf8(callback_name, buff_callback_name, buffer_len_callbacks); string s_obj_name(buff_object_name); string s_call_name(buff

How to join non-relational models in Django 1.3 on 2 fields -

i've got 2 existing models need join non-relational (no foreign keys). these written other developers cannot modified me. here's quick description of them: model process field filename field path field somethingelse field bar model service field filename field path field servicename field foo i need join instances of these 2 models on filename , path columns. i've got existing filters have apply each of them before join occurs. example: a = process.objects.filter(somethingelse=231) b = service.objects.filter(foo='abc') result = a.filter(filename=b.filename,path=b.path) this sucks, best bet iterate models of 1 type, , issue queries joined models other type. the other alternative run raw sql query perform these joins, , retrieve ids each model object, , retrieve each joined pair based on that. more efficient @ run time, need manually maintained if schema evolves.

java - What are the pros/cons/substitutes for using MySQL Connector/MXJ for an application -

i made interesting application using play framework , mysql connector/mxj make portable web server database, independent of installed software(including java). i'm still new mxj, , desktop application realm (as opposed straight-up webapps), i'm wondering if there other, better methods storing/accessing large amounts of data embedded mysql. assume so, since seems not many people use mxj. packs mysqld.exe in various forms multiple operating systems , platforms. runs in own thread, , stores data in whatever directory provide. for application analyzes , searches through data in large chunks(100mb 5gb), other (fast)options there, or justified in webapp-laziness of bringing along mysql? independent of installed software(including java). if looking embedded database desktop application, can go sqlite . however, there pros/cons using either mysql or sqlite sqlite: easier setup great temporary (testing databases) great rapid development great embeddi

c# - What should I fetch from gmail DotNetOpenAuth? -

i want use dotnetopenauth in website authentication + authorization (gmail). however, ask: should persist? i thought: in db: each user save guid , gmail (fetched) in formauthentication cookie guid have assigned user. any other suggestions? public bool login() { iauthenticationresponse authresponse = googleconsumerhandler.relyingparty.getresponse(); if (authresponse != null) { handleauthresponse(authresponse); } else { handleauthnullresponse(authresponse); } return false; } #region private methods private void handleauthresponse(iauthenticationresponse authresponse) { switch (authresponse.status) { case authenticationstatus.authenticated: state.fetchresponse = authresponse.getextension<fetchresponse>(); var consumer = new webconsumer(googleconsumerhandler.servicedescription, mconsumertokenmanager); authorizedtokenresponse accesstoken = consumer.processuserauthori

Why does jQuery.css('width') return different values in different browsers? -

i've written jquery code reads width of columns in table , applies them table. on page, there table this: <table style='table-layout:fixed;'> <tbody id='mytablebody'> <tr> <td style='width:100px;'>foo</td> <td style='width: 40px;'>bar</td> </tr> </tbody> </table> i've written following jquery code read css width properties of table: var colwidths = []; var cells = $('#mytablebody').find('td'); (i = 0; < cells.length; i++) colwidths.push($(cells[i]).css('width')); after code runs, expect colwidths [100, 40] , , in firefox, is. however, in ie8, [92,32] . breaks page in ie depends on values being correct. i believe may pertinent table contained within jquery-ui-tabs element, , know jquery-ui css can weird things, wouldn't surprised if has it. why jquery.css('width') doesn

iphone - detecting user touch on UIScrollView -

i wanted detect when user scrolls , removes finger screen. easiast this? thinking of using: -(void)touchesended:(nsset *)touches withevent:(uievent *)event; { nslog(@"touch ended"); } but put in uiviewcontroller, isn't called how using uiscrollviewdelegate function (void)scrollviewdidenddragging:(uiscrollview *)scrollview willdecelerate:(bool)decelerate this gets called when user lifts finger after dragging scroll view. see here: uiscrollviewdelegate documentation

wcf - What is Wireshark and WinPcap? -

i'm working wcf service wrote few years back, uses tcp. it's causing me problems saying, “…the target machine actively refused” attempting connect it. i've no idea why target machine (our windows 2003 server) should actively refusing connecting it, when last week hunky-dory. i've asked on msdn forums, , told run called wireshark. i've never heard of it. wireshark sort of fiddler, including other protocols besides http? and thing. i've downloaded wireshark , have started install it. on in installation informed me wants update called winpcap. i've never heard of that, either. i've done search on , have found on wikipedia , see windows version of pcap, stands packet capture. , according wireshark's website, whatever version of winpcap on system is, “… annoying bugs …” , version 4.1.2 of winpcap fixes them. ok, that's nice , all, frankly satisfying wireshark's needs alone isn't i'm here do. i'd know impact replacing

Is it possible to download an SQLite database to use locally via HTML5 when offline? -

i'm considering building html5 application require downloading sqlite database server , accessing database locally referencing data while offline. is possible download pre-populated sqlite database , access locally html5? haven't been able find examples or tutorial on this. my current thought build site can run while offline via manifest cache files (so far no problem), needs have access pre-populated sqlite database downloaded server, , part i'm not sure how handle. when online, html5 application need have ability check server updates, rebuild manifest cache , update database again... html5 , sqlite aren't same thing. offline storage , web sql features of html5 use implementations sqlite - not implementations use sqlite. that being said, short answer be: no. you should instead synchronize data doing like.... storing timestamps of updates , shuttling data , forth via json (or similar).

What is an algorithm I can use to program an image compare routine to detect changes (like a person coming into the frame of a web cam)? -

i have web cam takes picture every n seconds. gives me collection of images of same scene on time. want process collection of images created identify events entering frame, or else large happening. comparing images adjacent in time , fixed in space - same scene @ different moments of time. i want reasonably sophisticated approach. example, naive approaches fail outdoor applications. if count number of pixels change, example, or percentage of picture has different color or grayscale value, give false positive reports every time sun goes behind cloud or wind shakes tree. i want able positively detect truck parking in scene, example, while ignoring lighting changes sun/cloud transitions, etc. i've done number of searches, , found few survey papers (radke et al, example) nothing gives algorithms can put program can write. use color spectroanalisys, without luminance: when sun goes down while, similar result, colors not change (too much). don't go big changes, q

facebook graph api - How to get the app account access token needed to administrate app album? -

i have facebook app, associated photo album. users of app may upload images album, , have trouble figuring out how authentication work in real life application. while testing, i've used graph api list of accounts, , copied access token app account code. works, access token expire in few hours , have new 1 , copy code. i tried automate process, going through user's account in code, , getting access token in realtime. how ever, worked me obviously, since other users couldn't access accounts through graph api. how supposed work in real life application? access token 1 i've managed upload images with. that must because other users not app developer there not needed access_token them, app pages removed (but seems photos available yet) if want recommend open facebook page app page mange permission facebook account app page access_token & save (please note set app 60 days long access_token) let users upload images via page token (this make users avail

java - Spring MVC / @InitBinder is without effects -

i facing weird problem right jodatime datetimes , spring mvc controller. although see initbinder-annotated method invoked, without effects, strings of test request not bound domain object, can state following error message: org.springframework.validation.beanpropertybindingresult: 2 errors field error in object 'eventcommand' on field 'enddate': rejected value [29/03/2015 12:13]; codes [typemismatch.eventcommand.enddate,typemismatch.enddate,typemismatch.org.joda.time.datetime,typemismatch]; arguments [org.springframework.context.support.defaultmessagesourceresolvable: codes [eventcommand.enddate,enddate]; arguments []; default message [enddate]]; default message [failed convert property value of type 'java.lang.string' required type 'org.joda.time.datetime' property 'enddate'; nested exception org.springframework.core.convert.conversionfailedexception: failed convert type java.lang.string type @javax.validation.constraints.notnull @jav

c# - AssemblyResolve event fires when calling Assembly.Load(byte()) -

so have wpf project pulling in dlls used project here @ job. it's mess of dependencies, i've been using technique here: http://www.digitallycreated.net/blog/61/combining-multiple-assemblies-into-a-single-exe-for-a-wpf-application embed dependencies single executable. now, when i'm calling specific method inside 1 of dependencies, hit assemblyresolve event. onresolveassembly event runs, finds assembly embedded resource (cool!), , "return assembly.load(assembyrawbytes)". if hit f11 @ point (with breakpoint @ beginning of onresolveassembly), another call same event. it's same assembly (args.name same). if let run hit stack overflow, since can never seem escape recursive event calling. the msdn docs don't when assembly.load can fail, except filenotfoundexception or badimageformatexception. i've tried unhooking onresolveassembly @ moment before call assembly.load, application dies mysterious death, under vs goes poof . i'm breaking s

configuration - How to programmatically determine supportedRuntime in Powershell? -

i've looked through posted questions, , while see related issues, don't see answer specific question i'm pose. what programmatically determine in powershell script supported runtimes (especially defined in configuration file). example, if content of powershell.exe.config file this: <?xml version="1.0"?> <configuration> <startup uselegacyv2runtimeactivationpolicy="true"> <supportedruntime version="v4.0.30319"/> <supportedruntime version="v2.0.50727"/> </startup> </configuration> ...can programmatically info within powershell script (i.e. versions 'v4.0.30319' , 'v2.0.50727' supported)? thanks in advance , apologies if has been answered elsewhere. edit: clear, looking way did not depend on reading config file itself...just in case values set (or defaulted) means other config file. there object can query contains info on su

php - HTML5 pagination -

i've been making extremely simple blog page record progress in learning html5 , css3. far, have 2 basic posts. want create limit of 10 posts per page, create new page recent post on top, tumblr blogs i've seen. @ bottom of page have "older posts" , "newer posts" buttons cycle or forwards 10 blog posts.whenever create new post, push 10th post onto previous page. eventually, create blog archive sort posts month. user able @ posts in month on 1 page. i'm new html5 , css3 , willing learn javascript, php, or whatever else take this. help, links appreciated. here have far: <head> <meta charset="utf-8"> <title>smithsite:blog</title> <link rel="stylesheet" type="text/css" href="mycss.css"> <link href='http://fonts.googleapis.com/css?family=share' rel='stylesheet' type='text/css'> <!–[if lte ie 9]> <script src=”http://html5shi

How can android analyze realtime audio stream from mic? -

i mean frequency , other sound wave feature can analyzed phone mic? there guide it? i appreciate suggestion. good starting point, how to uncompressed pcm data.

java - Converting User Input to Integer with Custom Error Message -

i working on program accepts user input through joptionpane window. goal create if statement validates user input integer. i've tried integer.parseint method throws exception, cannot display own joptionpane window informing user of mistake. i'm new programming , cannot think of way convert string integer (or @ least way works) use in if statement. ideas? thanks! if integer somehow after joptionpane message displayed, may want take @ code continuously prompts user enter valid integer: int number = 0; boolean ok = false; string input = ""; while(!ok) { try { number = integer.parseint( input ); ok = true; } catch(exception e) { // change joptionpane message here warn user. } }

exe - Difference between offset and RVA -

what difference between relative virtual address , offset base of file?? the rva relative-virtual address, is, distance preferred base address. preferred base address stated in pe header, , (preferred) virtual address of start of image in memory when executable loaded in memory. and file offset number of bytes have read beginning of pe file arrive somewhere in file. so, if have section, find both things in section header: rva of section , offset in file; find 2 sizes, 1 how virtual memory section once loaded , 1 merely indicates size of section data in pe file. many references inside pe given rvas. in such cases, need check in section headers (or have sort of map) offset in pe file of reference.

google chrome - Cross Domain request withCredentials not working in Firefox -

i'm building backbone.js app talk api i've built. the api sits on api.foo.com website on web.foo.com im managed cors working appropriate header fields in apache header set access-control-allow-origin "http://web.foo.com" header set access-control-allow-methods "get,put,post,delete,options" header set access-control-allow-headers content-type header set access-control-allow-credentials "true" header append access-control-allow-headers origin header append access-control-allow-headers accept header append access-control-allow-headers x-requested-with and setting xhrfields to f = { withcredentials: true} params.xhrfields = f; // make request, allowing user override ajax options. $.ajax(params); this works chrome. im post api.foo.com/sessions login, cookie , request api.foo.com cookie. unfortunately when switched firefox 10.0.7, didnt work. withcredentials didnt seem jquery pick cookie , use it. unlike qu

Performance issue with WCF service (hosted in IIS) being hit with 20 concurrent requests -

Image
the problem: have wcf service i'm trying performance test jmeter , i've noticed service response times increase when more concurrent requests sent. first concurrent request returns in expected amount of time, each subsequent request takes increasing amount of time - last request can take double time of first. here screenshot of run in jmeter: the code: have stripped wcf service bare minimum, service method contains thread.sleep() simulate longer running process. [servicecontract] public interface iavailabilityservice { [operationcontract] thing getsomething(request request) } [servicebehavior( instancecontextmode = instancecontextmode.percall, addressfiltermode = addressfiltermode.any)] public class availabilityservice : iavailabilityservice { public thing getsomething(request request) { thread.sleep(20000); return new thing(); } } the service configured follows: <?xml version="1.0"?> <configuration> <sy

windows phone 7 - what is the cause of 'System.IO.IsolatedStorage.IsolatedStorageException'? -

exceptions: first chance exception of type 'system.io.filenotfoundexception' occurred in mscorlib.dll first chance exception of type 'system.io.isolatedstorage.isolatedstorageexception' occurred in mscorlib.dll public static isolatedstoragesettings settings = isolatedstoragesettings.applicationsettings; private void getscoredata() { if (settings.contains(dataitem2.name)) { this.textblock2.text = settings[dataitem2.name].tostring(); } else { settings.add(dataitem2.name, "n/a"); this.textblock2.text = "n/a"; } settings.save(); } now in other page i updating value doing this scorepage.settings["mykey"] = moves.tostring(); so everytime restart emulator , run project exception comes. reason why? the isolated storage in emulator not persisted after close it. reference: windows phone emulator : (see features) i

mysql - How can I recreate this query in ActiveRecord -

i know sounds "do homework me" question, i've been struggling recreating query activerecord while , wondering if it's possible without resorting using activerecord::base.connection.execute the structure basically: member has_many orders , transactions i need display members have placed order, total amount orders, , number of transactions given date range ordered total amount. i can data need following query: select members.*, sum(orders.amount) total_amount, count(transactions.id) total_transactions members inner join orders on (orders.member_id = member.id) left join transactions on (transactions.member_id = members.id) orders.created_at between "2012-03-01" , "2012-04-01" group member.id order total_amount desc is possible formulate query via activerecord? this how i'd through activerecord: member.includes(:orders, :transactions).select("sum(orders.amount) total_amount").where("orders.created_at

Authorization, JSON, and Redirecting in ASP.NET -

first off, familiar with issues regard autorization , json services. see: how manage redirect request after jquery ajax call . my situation: have admin directory, own "admin" directory, denying unauthenticated users: <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.web> <authorization> <deny users="?" /> </authorization> </system.web> </configuration> within directory main page , 2 http handlers i'm using uploading files , not. now, while i've got code handle situation when user unauthorized when handler accessed via or post, seems handler never executed, , gets/posts redirected login page. suppose , good, i'd http handlers handle issue , handle differently (at least give 401 code instead of redirecting). it seems should easy (and bet is easy) poke holes allow http handlers handle own security, i'm kinda @ wit's end here, hopi

objective c - Conversion from float to int looks weird -

i having difficulty understanding why following code giving me numbers below. can explain conversion float int? (pclocation cgpoint) counter = 0; pathcells[counter][0].x = pclocation.x; pathcells[counter][0].y = pclocation.y; cellcount[counter]++; nslog(@"%@",[nsstring stringwithformat:@"pclocation at: %f,%f",pclocation.x,pclocation.y]); nslog(@"%@",[nsstring stringwithformat:@"path cell 0: %i,%i", pathcells[counter][cellcount[counter-1]].x,pathcells[counter][cellcount[counter]].y]); 2012-03-09 01:17:37.165 50levelsbeta1[1704:207] pclocation at: 47.000000,16.000000 2012-03-09 01:17:37.172 50levelsbeta1[1704:207] path cell 0: 0,1078427648 assuming code otherwise correct: i think understand how nslog , other printf-style functions work. when call nslog(@"%c %f", a_char, a_float) , code pushes format string , values onto stack, jumps start of function's code. since nslog accepts variable number of arguments, d

javascript - Why am I getting a 6 second hang on ASP.NET AJAX page? -

Image
i have asp.net ajax page reason on live version getting 6 second pause in javascript used asp.net it's ajax capabilities. not happening on local copy. here picture of hang time , scriptresource.axd scripts seem causing it. anybody know what's going on? here's link bigger photo full size photo thanks, thomas obviously using ajax. there "special" resource loaded in powersearch.aspx? also, please trace scripts executed when going through page. if of them has wait until page ready, , page taking time load (due missing, or big resource) have wait 6 seconds. hope helps,

How to create database from Assets in Android using GreenDao ORM library -

i using greendao orm library creating database, works first sample creating database, within code. now problem can't find documentation or related database copying assets folder databases inside memory. check example here achieve functionality.

web services - Problems using CXF 2.5.2 and JBoss AS 7 -

i'm creating webservice using cxf 2.5.2. runs on tomcat. when immigrate jboss, error occurs below: 14:47:42,721 warn [org.jboss.as.ee] (msc service thread 1-3) jbas011006: not installing optional component org.apache.cxf.transport.ht tp.servlet3continuationprovider$servlet3continuation due exception: org.jboss.as.server.deployment.deploymentunitprocessingexception : jbas011054: not find default constructor class org.apache.cxf.transport.http.servlet3continuationprovider$servlet3continuat ion @ org.jboss.as.ee.component.componentdescription$defaultcomponentconfigurator.configure(componentdescription.java:606) @ org.jboss.as.ee.component.deployers.eemoduleconfigurationprocessor.deploy(eemoduleconfigurationprocessor.java:81) @ org.jboss.as.server.deployment.deploymentunitphaseservice.start(deploymentunitphaseservice.java:113) [jboss-as-server-7.1.0. final.jar:7.1.0.final] @ org.jboss.msc.service.servicecontrollerimpl$starttask.startservice(servic

c++ - cannot display the result of each one of my function -

i wrote code computes sum of components of array randomly filled values between 0 , 1. have write 2 functions, 1 iterative, , other 1 recursive. both should same work. 2 functions wrote work fine when call 1 @ time. however, if try call 2 functions in main, can see result of 1 only, cannot see result other one. in addition, recursive function tends called 1 time. have noticed if put getch() comment in recursive_function(). know missing something, cannot figure out. help. here code. using dev-c++. #include <iostream> #include<conio.h> #include <stdlib.h> using namespace std; //headers of thre functions int random_value(int array[], int size); int iterative_function (int array[], int size, int sum); int recursive_function ( int size, int array[], int index, int sum); int main() { int size;int array[size]; int sum=0; int index=0; cout<<"enter size of array"<<endl; cin>>size; //enter size ofthe array..

symfony - Correct assetic 'filter' syntax? -

where correct place put 'filter=...' parameter? i've seen before / after / in between files referenced, not sure if location makes difference. moreover, possible apply different filters different files within 1 {% stylesheets ... %} section? example.. have 'xxx' apply both files, 'yyy' apply only a.css & 'zzz' apply only b.css {% stylesheets filter='xxx' 'path/to/a.css' filter='yyy' 'path/to/b.css' filter='zzz' %}<link rel="stylesheet" type="text/css" href="{{ asset_url }}" /> {% endstylesheets %} as stated in docs, should after file list: http://symfony.com/doc/current/cookbook/assetic/asset_management.html#filters , has no importance. to mind can't apply different filters different files in same tag.