Posts

ios4 - Xcode 3.2.3 (SDK 4) cannot support device iPod touch(iOS 4.1) and iPad(iOS 3.2.2). Any help? screen shots are attached -

Image
i cant test apps on devices. following screenshots. ipod: ipad: for 4.1 ipod, need download latest sdk , screenshot telling you. for ipad, need update device ios 4.1, , download 4.1 sdk.

cluster computing - Websphere 7 clustered deployment -

we have j2ee application ear file deployed in 7, making application availability high needs deployed in 3 clusters. have quartz scheduler class job upload data 1 database daily @ 2:00 am. now, problem if ear deployed in 3 different nodes load balancing , high availability, 3 ear file trigger upload @ same time. how can handle this. possible configuration in 7 environment. help/suggestion appreciated. thanks you have 2 possibilities: the quartz database backend nodes connect same database quartz uses synchronizing task running. can configured prevent task running on several nodes simultaneously. ejb 3.x timer. see instance example . works ensuring member each of clusters fire timer.

mod rewrite - Activate site maintenance via RewriteCond -f check? -

i thought hitting file via -f (i think is) in mod_rewrite rewritecond, if file exists, rewrite maintenance page. don't think performance penalty should big, maybe people had other experiences or objections on idea? why not this: rewriterule !^maintenance$ maintenance [l] and in there repond 503 status code .

iphone - how to make array of words contained in string? -

i have string gpbusd buy update hit 40 pips hit 110 pips gpbusd buy break update hit 100+ gpbusd buy 1.5500/25 1.5455 new 40 100+ gpbusd buy update close 0 10 pips n gpbusd buy 1.5335/50 1.5320 new 40 80+ gpbusd buy update 15-20 pips close keep open gpbusd buy 1.5530/50 1.5505 update hit 80 keep open gpbusd buy 1.5530/50 1.5465 new 40 80 100+ gbpjpy sell 131.05/.130.75 132.15 new 60 100 keep open eurusd sell 1.2840/20 1.2870 stop update i want make array of words contained between spaces of string?how can it? you can try with nsarray *words = [mystring componentsseparatedbystring:@" "]; more here

javascript - Lazy loading and dependency resolution -

some time ago, reading article(a library built guy) how library can lazy loading of js resolve dependencies between js (typically encountered when trying "include" 1 js another) include files once. thought specified multiple times regardless of how called (either directly specifying file or specifying 1 of dependencies) i forgot bookmark it, mistake . can 1 point me can above. know dojo , yui library have this, looking can use jquery i looking 1 more feature well. my site has asp.net user controls (reusable server side code snippets) have js. of them fired right away, when page loading gives bad user experience. yahoo performance guidelines specify js should @ bottom of page, not possible in case require me separate js , corresponding server side control different files , maintenance difficult. can put jquery document.ready() in user control js make sure fires after dom has loaded, looking simpler solution. is there anyway "begin executing any js a...

php - Get authed user's settings -

sorry title im pretty worthless @ php/mysql couldnt figure out title i'm creating community fun. i need able of authed user's info throughout site. whats best way this? right have query in index.php (i include pages thru index.php) querys users table id = session[id]. guess slow down site every user keeps reloading pages. what wonder is, there smarter way? get information when user first logs in, keep data need in $_session array.

regex - Python regular expressions: search and replace weirdness -

i use python regular expression problem. you'd expect result of import re re.sub("s (.*?) s", "no", "this string") to "this no string", right? in reality it's "thinotring". sub function uses entire pattern group replace, instead of group want replace. all re.sub examples deal simple word replacement, if want change depending on rest of string? in example... any appreciated. edit: the look-behind , look-forward tricks won't work in case, need fixed width. here actual expression: re.sub(r"<a.*?href=['\"]((?!http).*?)['\"].*?>", 'test', string) i want use find links in string don't begin http, can prefix in front of links (to make them absolute rather relative). your regex matches first s last s, if replace match "no", "thinotring". the parentheses don't limit match, capture text matched whatever inside them in special variable...