Posts

Showing posts from February, 2010

Android TextView setTextSize incorrectly increases text size -

this question has answer here: textview.settextsize behaves abnormally - how set text size of textview dynamically different screens 6 answers this in extension of textview. gettextsize() , settextsize() not overridden, not extend methods. programming in 1.6, api level 4. the loop in code causes size multiplied 1.5 every time iterates, e.g. if size reads 200 gettextsize , settextsize(size) called, gettextsize called again reads 300. public void shrinktest() { float size = this.gettextsize(); while (size > 8) { this.settextsize(size); size = this.gettextsize(); } } why this? heh, mixed units problem. seems little counterintuitive, it's easy fix. default method settextsize(float) assumes you're inputting sp units (scaled pixels), while gettextsize() method returns exact pixel size. you can fix using altern...

From Liferay's 'Asset Publisher'... view only those documents from a specific folder -

via 'asset publisher', there way through 'configuration' of portlet view documents located in specific folder? that is, filter shows documents in folder 'x', example. this not possible without custom development. we had similar requirement, , did implement foldermodellistener added category each document in folder name of folder category name. each time document uploaded folder, receives category. this allowed configure asset publisher using normal categories.

JSF 2 - Ajax - Form not completely rendered -

my ajax codes rendering form using newly-selected locale are: <h:selectonemenu id="selectlang" immediate="true" value="#{langlisting.language}"> <f:ajax listener="#{langlisting.changelocale}" render="@form" /> <f:selectitems value="#{langlisting.languages}" /> </h:selectonemenu> however, since above codes in in header file called header.xhtml, above codes render content of header.xhtml when switch locales between english , french. index.xhtml structure follow: header.xhtml menu.xhtml body content id of "contentsection" footer.xhtml how can render menu.xhtml, body section , footer.xhtml @ same time render header.xhtml? the @form affects content of parent <h:form> only. use @all instead. <f:ajax listener="#{langlisting.changelocale}" render="@all" /> see description of render attribute in <f:ajax> tag documentation . how...

iphone - Drawing waveform with AVAssetReader -

Image
i reading song ipod library using asseturl (in code named audiourl) can play many ways, can cut it, can make precessing but... don't understand gonna cmsamplebufferref data drawing waveform! need info peak values, how can (maybe another) way? avassettrack * songtrack = [audiourl.tracks objectatindex:0]; avassetreadertrackoutput * output = [[avassetreadertrackoutput alloc] initwithtrack:songtrack outputsettings:nil]; [reader addoutput:output]; [output release]; nsmutabledata * fullsongdata = [[nsmutabledata alloc] init]; [reader startreading]; while (reader.status == avassetreaderstatusreading){ avassetreadertrackoutput * trackoutput = (avassetreadertrackoutput *)[reader.outputs objectatindex:0]; cmsamplebufferref samplebufferref = [trackoutput copynextsamplebuffer]; if (samplebufferref){/* gonna this? */} please me! i searching similar thing , decided "roll own." realize old post, in case e...

asp classic - jquery getScript problem with Internet Explorer 8 -

i've script $.getscript('page.asp?t=' +timestap); page.asp generate this: myfunction({ "result" : { "error" : false/true, "delete" : false/true, "data" : 'escaped html data' } }); with firefox works charm, internet explorer result.data empty any help? is content-type of page.asp set server "text/javascript"?

php - Are there codeigniter controller sub-directory limits? -

greetings, i've encountered seemingly bizarre issue, , wondering if able shed light. i created simple controller 2 levels down traditional /application/controllers/ directory , i'm seeing ci-generated 404 when hitting said controller. to elaborate, directory structure follows: /ci/application/controllers/dir1/dir2/myfile.php the file has simple function echo statement. when move said file 1 level such located in: /ci/application/controllers/dir1/myfile.php it works. i've tried changing name of "dir2" directory in example above, name of controller, names of functions within controller -- no avail. i'm able hit same php file without going through code igniter framework, , i'm on windows machine working can't imagine permissions-related issue. i'm led think ci isn't willing go controllers directory more 1 level. is possible, or missing something? "out of box", codeigniter supports single level directory structu...

objective c - iPhone deselect row after delay -

i wondering if aware of way deselect table view after delay? i using deselectrowatindexpath method. want highlighting show second before deselecting it. thanks! i able using [tableview deselectrowatindexpath:indexpath animated:yes]; another way be: [self performselector:@selector(deselect:) withobject:self afterdelay:0.33]; and create method deselect calls deselectrowatindexpath

python - Store specific value in javascript when multiple forms are present -

i've got list of 10-20 objects on each page creating these forms: <div id="routetable"> {% route in route_list %} <div id="routedone"> <form class="doneform" action="/route/complete/" method="post"> <input type="hidden" name="route_id" value="{{ route.route_id }}" /> <input type="hidden" name="next" value="{{ request.get_full_path }}" /> <input type="submit" value="done" class="donebutton" /> </form> </div> {% endfor %} </div> and i'm trying add jquery page in order intercept usual form submit , instead using ajax below. (i have view returns html chunk swapped out above div#routetable. problem line 4 "var route_id...": <script> $(document).ready(function() { $(".doneform").submit(function() { var route_id = $(t...

Rails production deployment folder? -

i noticed when set rails app production created folder in application called rails_env=production i've kinda rolled , not pushing production. free delete folder? the "rails" command in rails 2 creates new app, while same in rails 3 runs script/... looks you've installed old version of rails on production server. if it's development machine, can happen when have rvm installed different versions of rails.

flash - I am planning to build a giant management system in Flex 4.0, and I need some advice -

i planning build giant management system in flex 4.0, , wanted know pros , cons of using 4.0 (or 4.2) on 3.5? lighter components? faster pipelines? things can forward when using flex 4.0? the biggest change when using flex 4 (and above) introduction of spark architecture. spark offers brand new component set makes easier design , skin components. spark architecture offers integration other adobe tools such flash catalyst. adobe has stated spark future of flex development. mx architecture not supported in mobile optimized components, example. if start new project today, try focus on flex 4 / spark architecture as possible. if of spark components fail you, can still use mx components in flex 4 project. although hasn't happened yet, can forsee future mx component set becomes deprecated.

remote debugging with tomcat/eclipse, while others are sharing system -

i have setup tomcat remote debugging through eclipse, have added following configuration in tomcat startup script export jpda_address=9999 export jpda_transport=dt_socket echo $jpda_address ……. exec "$prgdir"/"$executable" jpda start "$@" however, there multiple developers working on server , when debugger stops @ breakpoint added, other developers stuck, there anyway in tomcat allow other developers continue running application seamlessly while debugging? as made me realise, need second independent tomcat instance. underlined in comment below, debug breakpoint mechanism in jvm stop all webapps reaching breakpoint if duplicate them (said otherwise regardless of number of working threads, each thread freeze , wait or resume signal).

php mysql table creation advice WHERE certain cell = -

i have table (parts) has 2 columns in it, 1000 or rows. 1st (parts) column has info stored in each row of it. updating 2nd column via csv files parsing php. csv file has 2 columns , half many rows. first column in updating csv file need match row in first column of parts table. 2nd column in csv file update 2nd column in (parts) table. im using query loop info parts table: <?php $file = fopen("csv-file-w-2-columns.csv","r"); require "../db_connect.php"; mysql_select_db("parts", $con); while(!feof($file)) { $line = fgets($file); $values = explode(",",$line); mysql_query("update parts set parts_column2='".$values[1]."' parts_column1='".$values[0]."'"); } mysql_close($con); fclose($file); ?> in doing takes long, , script never finishes. if in small bits @ time works. could advice speed up, , info why might stalling has been when process whole thing @ once? ...

apache - mod_ssl not compiling with apache2 -

solved resolved, strange issue. check config.log, suggested capsule , found following line: configure:14368: checking whether enable mod_ssl configure:16123: result: no i wondering why wasn't installing ssl when had asked to. found configuration command had parsed in: ./configure --prefix=/usr/local/apache --enable-so--enable-cgi--enable-info--enable-rewrite--enable-speling--enable-usertrack--enable-deflate --enable-ssl--enable-mime-magic notice lack of spaces? had entered command each directive in new line missing spaces, , arguments not being correctly passed. and works expected! apache build ( 2.2.1 ): ./configure --prefix=/usr/local/apache \ --enable-so \ --enable-cgi \ --enable-info \ --enable-rewrite \ --enable-speling \ --enable-usertrack \ --enable-deflate \ --enable-ssl \ --enable-mime-magic when try configure ssl, following try restart apache syntax error on line 56 of /usr/local/apache/conf/ext...

iphone - Cookies don't work in UIWebView displaying "local content" -

there lot of threads using uiwebview caches and/or cookies, seem relate remote urls. i cannot cookies work when "displaying local content" (as iphone docs call it). for example, if load plain old html file bundle resource: - (void) viewdidload { [super viewdidload]; nsstring* path = [[nsbundle mainbundle] pathforresource:@"index" oftype:@"html"]; nsurl* url = [nsurl fileurlwithpath:path]; nsdata* data = [nsdata datawithcontentsoffile:path]; [web loaddata:data mimetype:@"text/html" textencodingname:@"us-ascii" baseurl:url]; } then: - (void) webviewdidfinishload:(uiwebview*)webview { nsstring* result = [web stringbyevaluatingjavascriptfromstring: @"try{document.cookie='name=value';''+document.cookie;}catch(e){''+e}"]; nslog(@"result = '%@'", result); } results in: r...

.net - what is wrong with stretching of my usercontrol -

Image
i want picture comes usercontrol stratch on yellow background , not in thin line there . i have stretched every possible thing there still have problem my main window <window x:class="dbtool.mainwindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:view="clr-namespace:dbtool.view" xmlns:viewmodel="clr-namespace:dbtool.viewmodel" title="mainwindow" height="332" width="528" > <window.resources> <!-- these 4 templates map viewmodel view. --> <datatemplate datatype="{x:type viewmodel:selectdatabaseviewmodel}"> <view:selectdatabase /> </datatemplate> <datatemplate datatype="{x:type viewmodel:mysqlpageviewmodel}"> <view:mysqlpageview /> </datatemplate> </window.resources> <grid sh...

flickering Translate animation in Android -

i have horizontalscrollview linearlayout in it. linerlayout has images in it. when use translateanimation move image 1 x-coordinate x coordinate. animation flickring. image size around 2400 pix wide , 100 pix height. i can't find way prevent filckring translateanimation. ideas ? are testing on emulator or real device? emulator can pretty jerky sometimes.

c++ - Link an .obj or .lib to a pre-existing executable -

i have pre-existing executable, have no source, want link object file or static library (c++), do have source. i'm using visual studio 8.0. the number 1 thing question, please don't ask why need this. want know how (i'm pretty sure can done). i tried adding "myprogram.exe" executable "additional dependencies" c++ linker project property. results in following linker command line options: /out:"c:\users\me\documents\visual studio 2008\projects\samplecpplibrary\debug\samplecpplibrary.lib" /nologo myprogram.exe when build project, error: error 1 fatal error lnk1107: invalid or corrupt file: cannot read @ 0x268 c:\users\me\documents\visual studio 2008\projects\samplecpplibrary\samplecpplibrary\myprogram.exe 1 samplecpplibrary i figured trying create .lib has executable linked in might inherently wrong. changed project type exe, , intentionally did not give main entry point. instead gave this: extern int _tmain(int arg...

Problem With Java Generic Interface passed to Generic Constructor -

i have interface , class , both compile fine. when try instantiate separator anonymous implementation of namer fails compile. private interface namer<n> { string getname(n o); }; private static class separator<h> { hashset<h> olddiff; hashmap<string, h> newfamap; public separator(hashset<h> older, hashset<h> newer, namer<h> namer) { olddiff = new hashset<h> (older); hashset<h> newdiff = new hashset<h> (newer); olddiff.removeall(newer); newdiff.removeall(older); newfamap = makemap(newdiff, namer); } private hashmap<string, h> makemap(hashset<h> set, namer<h> namer) { hashmap<string, h> map = new hashmap<string, h>(); (h holder : set) { map.put(namer.getname(holder), holder); } return map; } } in method namer<faholder> namer = new namer<fahold...

Python String Argument Parsing -

i working cmd class in python , passes me of arguments 1 big string. best way tokenize arg string array of args[]. example: args = 'arg arg1 "arg2 quotes" arg4 arg5=1' result = split_args(args) and like: result = [ 'arg', 'arg1', 'arg2 quotes', 'arg4', 'arg5=1' ] import shlex shlex.split('arg arg1 "arg2 quotes" arg4 arg5=1')

resharper - Ctrl-W stopped working -

i have resharper installed , somehow ctrl w no longer "extends selection". tried assigning global / resharper.extendselection in tools -> options -> keyboard still selects 1 word. i have found resolutions. go resharper -> options -> visual studio integration -> keybord shortcuts --> resharper or intellij idea.next time when press ctrl w , visual studio ask shortcuts. choice resharper shortcuts , it.

c# - Playing a Video and grabbing frames using a timer -

i having trouble playing video , grabbing frames. need grab frames perform change detection among other things...is there way of playing video , grabbing frames periodically (using timer) such using windows media player control on windows form? n.b: i have looked on directshow.net, seems complicated & involved such simple requirement. don;t want head route, unless absolutely must. the avifile lib won't cut since need support multiple video formats (other avi) i have done similar in past directshow. you going better results directshow, since can calculations frame frame rather on timer. these both examples of motion capture, use directshow: a b

file io - windows: if ReadFile fails, can I ReadFile again? -

i using windows readfile function read large file. if network not stable, @ times error when calling readfile (network location no longer available). @ moment, if happens error out , terminate process. what if, when readfile fails, wait few seconds , try again? assuming network issue went away, right data readfile? or @ point forget in file tries read? if readfile failed because network share went away, have reopen file when comes back.

java - How to override/remove default handler in GWT widget? -

i change behavior of suggestbox in gwt. want submit value pressing enter. suggestbox have keyhandler, catches enter key , sets new selection. looking solution remove/overide handler. this method called constructor in suggestbox private void addeventstotextbox() { class textboxevents extends handlesallkeyevents implements valuechangehandler<string> { public void onkeydown(keydownevent event) { switch (event.getnativekeycode()) { case keycodes.key_down: display.moveselectiondown(); break; case keycodes.key_up: display.moveselectionup(); break; case keycodes.key_enter: case keycodes.key_tab: suggestion suggestion = display.getcurrentselection(); if (suggestion == null) { display.hidesuggestions(); } else { setnewselection(suggestion); } break; } delegateevent(suggestbox.this, event); } public void onkeypress(keypressevent event) { de...

nuget - Is there a way to get the FULL description of a package from the Package Manager console -

when running command get-package -remote structuremap-mvc3 in package manager console nuget, returns following descriptions packages truncated. id version description -- ------- ----------- structuremap-mvc3 1.0.1 adds latest version of structuremap , configures default depende... structuremap-mvc3 1.0.2 ...

windows - IIS7 shortcut redirects to original location -

i'm using git test out dojo widget i'm developing. developing on *nix machine , i'm running issues how put together. dojo organized folder convention , git wants inside single folder. other coder on *nix using symlinks place files need within dojo folder structure creating shortcuts these files on windows, see being windows equivalent, causes iis redirect shortcut origin location breaking of relative paths within file. there more proper way since coping pasting files need git repository pita. there better way this. you try using actual symbolic or hard links in windows, might give better luck. depending on os, may have functionality available (e.g. mklink command in windows 7 , believe vista well); in windows xp there junction command available powertoy (but junctions apply directories): http://technet.microsoft.com/en-us/sysinternals/bb896768 there few shell extensions enable access symlink/junction functionality right-click menu items in explorer: ...

objective c - Find locale currency for iphone programmatically -

i want find out currency locale on user's iphone programmatically. means, if user in store, currency locale should usd, australia, should aud. purpose of task try convert item price listed on our app match price appstore ask. for example, if sell video 3 usd, , australian wants buy it, should show 2.8 aud in app screen. reduce calculation in user on real price in country. know how it? in cases currency symbol won't enough. example, in germany write our prices this: 1,99€ people in use $1.99. there 3 differences in string. currency symbol, position of , separator. if want right should use nsnumberformatter. takes care of differences between currency formats. , better you. because currencies, not 4 main currencies want support. nsnumberformatter *formatter = [[nsnumberformatter alloc] init]; [formatter setnumberstyle:nsnumberformattercurrencystyle]; [formatter setlocale:[nslocale currentlocale]]; nsstring *localizedmoneystring = [formatter stringfromnumber:mycu...

Making pyramid using c# -

my question how make pyramid using * , 'space' in c#? output this. * * * * * * * * * * * * * * * we need use "for loop" program. know how make one. * ** *** **** ***** i made program this: static void main(string[]args) { int i=o; int j=o; for(i=5;1>=1;i--) for(j=1;j<=5;j++) { console.write("*"); } console.writeline(" "); } i'm confused when comes pyramid because includes spaces. help! think how you'd print pyramid manually. suppose 5 levels deep. 1st line: 4 spaces, 1 star, 2nd line: 3 spaces, star, space, star 3rd line: 2 spaces, star space star space star etc. doesn't matter whether print spaces after last star or not - won't make difference how looks. what see? if have total of x levels line 1: (x-1) spaces, (star space) line 2: (x-2) spaces, (star space) twice line 3: (x-3) spaces, (star space) 3 times line 4: (x-4) spaces, (star space) 4 times that...

c# - Gridview, is there an event, how would I determine that it has finished being rendered? -

gridview, there event, how determine has finished being rendered? that's it, want adjust height of other controls on page , want pick event. sorry should have been more explicit in stating web page not winform. in end managed solve problem registering function page load called after controls have been drawn , calling gridview size , resizing other controls fit. works , that. thanks. the gridview inherits control can use of events, try prerender , seams provide need

media player - How to browse files in tree order to pick up the audio files available on sdcard and mobile memory in Android? -

i need browse file tree in order pick audio files. how can achieve this? check out filemanager code open intents: http://code.google.com/p/openintents/source/browse/#svn%2ftrunk%2ffilemanager that want.

embedded - PWM pin of microcontroller, what is it for? -

i see pwm pin in microcontrollers, in pic is/are use of it? while pwm indeed used motor control, i'd main use pwm digital analog conversion, in case mcu doesn't have dac on chip (they don't). pwm duty cycle can used represent analog value, if connect pwm output op amplifier. quite common design in kinds of applications. most kinds of systems reglating using pwm + op amp give analog output, can used control sort of hardware. analog output can read mcu, through analog digital converter, , mcu can alter pwm duty cycle accordingly.

bash - Check occurrance of word after a particular number of lines -

how check if line starts "warning: ", ignoring first 15 lines? to provide context, want use in bash if condition error processing based on log. way system setup, gives known warning comes within first 15 lines, need ignore. tail -n +16 /var/log/syslog | grep '^warning'

css - How can I make my web application look correct in IE 8 and 9? -

i find application not in ie in chrome , firefox. perhaps shows in wrong way. well, want solve issue have. so try hand ie developer tool find nothing customize styles , css. how others these things ie? i mean, don't care how works in 6, how can make in firefox , chrome in ie 8 or 9? well, trick use when need in ie? well, know nothing in web design want refactor existing code works. so, thing is, how can make them compatible ie 8 or 9? tools exist make them work? one of important things can ensure site looks close enough write standards compliant code doctype have chosen, , validate code throught w3's validator tool after that, check out adobe's browser labs tool. can view site in browser , make minor tweaks need.

sql - AutoIncrement Identity Problem -

using sql server. table1 recordno id --------------- 2 001 3 002 4 003 .... recordno column identity column table1 problem the recordno column starting 0, times starting 2. how avoid problem -- recordno column should start 1. should not start other numbers. recordno id -------------- 1 001 2 002 3 003 .... need query help the auto-incremented identity number increments whether record committed or not. looks me possibly initial insert failing or inside transaction not being committed. the identity column type meant surrogate identifier, , it's not recommended use number else. possible build own autoincrement functionality, that's bad idea because of performance , concurrency problems. also, possible reseed identity column 1 thusly: dbcc checkident (table1, reseed, 1) edit: assume have table definition set seed set 1 , increment set 1 well.

simple app that can be downloaded and installed to the android phone and once clicked on the app will open a URL in the default browser of the phone -

simple app can downloaded , installed android phone , once clicked on app open url in default browser of phone. pls tell me how start application? at first try google before posting in here. because idle person [ think :) ] giving solution also. in main activity's oncreate method use these codes open google's website : intent browserintent = new intent("android.intent.action.view", uri.parse("http://www.google.com")); startactivity(browserintent); finish();

numbers - Round just decimal in Javascript -

i have value that: 20.93 i'd round 20.90 how can in javascript ? thanks! multiply number 10, round , divide number 10: var result = math.round(20.93 * 10) / 10

iphone - Reloading string in TableView Cell -

alright heres deal. have sports app want update scores (parsed website) in tableview when viewdidappear or when user scrolls through list. updating text of label present in cell without putting function in cellforrowatindex making performance awful. i have tried loading images asynchronously in tableview using nsurlconnection without luck(only 1 loading table). wondering if has done before , me. - (void)reloadrowsatindexpaths:(nsarray *)indexpaths withrowanimation:(uitableviewrowanimation)animation; apple ios reference library here nsarray *indexpaths = [[nsarray alloc] initwithobjects:[nsindexpath indexpathforrow:row insection:section], nil]; [(uitableview *)self.view reloadrowsatindexpaths: indexpaths withrowanimation: uitableviewrowanimationtop]; [indexpaths release];

html - Text goes goes into separate lines when using a percentage padding -

Image
i have small problem in html forms. when give following css, .row .section-1 label {/* formatting section-1 labels */ padding: 0 5px 0 10px; margin: 3px 0 0 0; display:block; } this output : however when edit css put padding in form of percentage: .row .section-1 label {/* formatting section-1 labels */ padding: 0 40% 0 80%; margin: 3px 0 0 0; display: block; } this output : i want use percentages, want in first image. ideas?? thanks you're padding on left of label element: .row .section-1 label {/* formatting section-1 labels */ padding: 0 40% 0 80%; margin: 3px 0 0 0; display: block; } the definition of css padding in percentage follows: defines padding in % of containing element so it's adding 80% of label elements width padding. in original fixed padding example you're setting 10px padding on left.

asp.net - spamassassin check score C# code -

is there way check score in asp.net application? class or similar .net? how other spam filters out there. --edited looking way check spam score of email messages in c#. here super simplified "just check score" code connecting running spam assassin email check c# wrote http://elasticemail.com . setup sa run on server , set access permissions. then can use code call it: public class simplespamassassin { public class ruleresult { public double score = 0; public string rule = ""; public string description = ""; public ruleresult() { } public ruleresult(string line) { score = double.parse(line.substring(0, line.indexof(" ")).trim()); line = line.substring(line.indexof(" ") + 1); rule = line.substring(0, 23).trim(); description = line.substring(23).trim(); } } public static list<ruleresult> getreport(...

bash - How do I improve my logic to read and write variable values to a file? -

i wrote functions in shell script read , write variable settings from/to file. wondering if there cleaner way this. don't bit delete existing match write , rewrite @ end of file. there better way this? thanks. fnreadtestsetting() { #$1 variable read testsettings.ini file grep $1 $main_folder/testsettings.ini >$main_folder/temp.ini if [ $? -eq 0 ]; sed -i "s|$1=||" $main_folder/temp.ini test_value=`cat $main_folder/temp.ini` export $1=$test_value fi rm $main_folder/temp.ini return } fnwritetestsetting() { #$1 variable , value written testsettings.ini file in format variable_name=value if [ ! -e $main_folder/testsettings.ini ]; touch $main_folder/testsettings.ini fi setting_name=`echo $1 | awk -f = '{print $1}'` grep $setting_name $main_folder/testsettings.ini &>/dev/null if [ $? -eq 0 ]; sed -i "/^$setting_name/d" $main_folder/testsettings.ini echo "$1" >> $main_folder/testsettings.ini else ec...

asp.net - How to unit test the Initialize() method of System.Web.Mvc.Controller? -

i unit test initialize method of controller object. initialize () method extracts player's id cookies collection of request object , retrieves current player object database. player object stored in controller object's currentplayer property. have following code unit test. test written index () method of controller: [test] public void index_returnsjsonresult () { var _gamerepositorymock = gamerepositorycreator.create (5); var _formsauthenticationmock = new mock<iformsauthentication> (); var _chooseopponentcontroller = new chooseopponentcontroller (_gamerepositorymock.object, _formsauthenticationmock.object); var cookie = new httpcookie (cookiename); cookie.value = player.playerid + "_encrypted"; var cookies = new httpcookiecollection (); cookies.add (cookie); var httprequestmock = new mock<httprequestbase> (); httprequestmock.setup (x => x.cookies).returns (cookies); httprequestmock.setup (x => x.isaut...

Firefox addon - Notification bar with timer -

in firefox add-on, set temporary notification top notification bar. temporary, mean notification disappear after couple seconds. possible? thank you. notifications don't have automatic timeout, can set own timeout , call removenotification remove it. var box = bar.appendnotification(label, value, image, priority, buttons); settimeout(function() { bar.removenotification(box); }, delay);

image - CHM vs css+background -

i create chm file. decorate use css , option 'background'. images saved in img. css setting header this: .data{ width:100%; height:80px; display:inline-block; background:#fff url(/img/bg_fill.png) repeat-x; } html code: <div class="data">hello world</div> in html ok, when make chm file background not have background. why? maybe path wrong? have simular problem? that's problem img path. suspect img folder in same directory css , html files located. if so, try remove first slash in image url: url(img/...

Display data in table view -

i have created 1 application core data unable display data in table view. writing code below have written fetching results: #import "rootviewcontroller.h" #import "detailviewcontroller.h" #import "addviewcontroller.h" #import "employeedetailsappdelegate.h" /* template not ensure user interface consistency during editing operations in table view. must implement appropriate methods provide user experience require. */ @interface rootviewcontroller () - (void)configurecell:(uitableviewcell *)cell atindexpath:(nsindexpath *)indexpath; @end @implementation rootviewcontroller @synthesize detailviewcontroller, fetchedresultscontroller, managedobjectcontext; @synthesize array; #pragma mark - #pragma mark view lifecycle - (void)viewdidload { // employeedetailsappdelegate *appdelegate = [[uiapplication sharedapplication]delegate]; self.title = @"employee name"; self.navigationitem.rightbarbuttonitem = self.editbuttonitem...

mysql - Activate Federation Engine -

when checked on sql server federation have got ** * ** * ** * ** * * 10. row * ** * ** * ** * ** * engine: federated support: no comment: federated mysql storage engine what command enable federation on mysql thanks you need @ least mysql version 5.0.3 you need start mysql parameter --with-federated-storage-engine mysql federated storage engine documentation

segmentation fault - What is the maximum size of stack segment that can be allocated to a process? -

#include<stdio.h> #include<stdlib.h> void start(){ double xyz[135168]; char str[20]; xyz[0] = 1.2; sprintf(str,"pmap %d",getpid()); system(str); start(); } int main(){ char str[20]; sprintf(str,"pmap %d",getpid()); system(str); printf("entering start()\n"); start(); return 0; } output anirudh@anirudh-aspire-5920:~/desktop/testing$ ./a.out 3695: ./a.out 00110000 1372k r-x-- /lib/libc-2.12.1.so 00267000 8k r---- /lib/libc-2.12.1.so 00269000 4k rw--- /lib/libc-2.12.1.so 0026a000 12k rw--- [ anon ] 00b64000 4k r-x-- [ anon ] 00c27000 112k r-x-- /lib/ld-2.12.1.so 00c43000 4k r---- /lib/ld-2.12.1.so 00c44000 4k rw--- /lib/ld-2.12.1.so 08048000 4k r-x-- /home/anirudh/desktop/testing/a.out 08049000 4k r---- /home/anirudh/desktop/testing/a.out 0804a000 4k rw--- /home/anirudh/desktop/testing/a.out b78eb000 4k rw--- [ anon ] b78fe000 ...