Posts

Showing posts from June, 2011

iphone - getting the details to show above an annotation -

iphone - getting the details to show above an annotation - ok have annotations showing fine can't figure out how little dialogue box thing appear above it. when create annotation, this: annotation *annot = [[annotation alloc] init]; annot.coordinate = touchmapcoordinate; annot.title = @"location"; annot.subtitle = @"the address"; [self.mapview addannotation:annot]; again, works find doesn't show little dialogue box. i understand has delegate. downloaded apple's mapcallouts illustration code , couldn't figure out how contacted delegate annotations. here annotations class annotation.h #import <foundation/foundation.h> #import <mapkit/mapkit.h> @interface annotation : nsobject <mkannotation>{ cllocationcoordinate2d coordinate; nsstring *title; nsstring *subtitle; } @property (nonatomic) cllocationcoordinate2d coordinate; @property (nonatomic, copy) nsstring *title; @property (nonatomic, copy) nsstring...

c - pipe chain between processes -

c - pipe chain between processes - i want have 1 parent 2 children. the parent reads file "a.txt" , sends trough pipe first child; first kid reads chars , sends sec kid lower letter chars. the sec kid prints in "b.txt" each distinct char , number of appearances(per line) , sends trough pipe parent number of distinct chars. parent prints result sec child. i've done pipe parent 1 kid , test i've set pipe parent. can't figure out how create pipe go sec child. i've been searching info on dup2 don't on how create work. #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/wait.h> #include <unistd.h> #include <ctype.h> #include <fcntl.h> void main() { int pfd1[2], pfd2[2], pid1, pid2, pfin, status, fd; char *c = (char *)malloc(sizeof(char)); if (pipe(pfd1) < 0) { printf("eroare la crearea pipe-ului\n...

java - Create a password protected excel file using apache poi? -

java - Create a password protected excel file using apache poi? - i developing simple java programme create excel file using (apache poi) api. using oracle 10g database , using ojdbc14 jar. i have table called userinfo having 3 columns namely username,password , name. using apache poi , have been able set rows in excel file. since file contain sensitive info such username , password, want create password protected. on forums , have found how read password protected files not how create them. how can accomplish this? thanks in advance. updated: of version 3.10 poi supports encryption decryption xlsx files. see the "encryption support" page on poi's website. below still relevant xls binary workbooks. according the "encryption support" page on poi's website poi supports reading encrypted xls , xlsx files. encrypting not mentioned on page, implies it's not supported. backed searching poi site "encrypt" returns handful...

c - read an unknown number of lines -

c - read an unknown number of lines - i need implement in c programme ,which reads unknown number of lines stdin. know maximum number of lines 100. tried utilize gets ,but don`t know when stop loop. can advise me how implement it? this depends on when want programme stop. there several mutual approaches: never: run infinite loop until end-user hits ^c or otherwise terminates programme using facilities of operating system until user enters special marker, i.e. "keyword" quit , exit , etc. on line itself until user enters empty line (i.e. hits enter ) since max number in case 100, can utilize limit automatically terminate input 1 time max reached. c input stdin gets

c++ - Strange behaviour updating sprite position -

c++ - Strange behaviour updating sprite position - i'm coding simple roguelike game in c++ using sdl library, , have problems moving character on screen. each time frame needs rendered, update position of sprite using update() function, nil if player standing still. issue motion command, , starting animation, utilize step() function called 1 time per each player motion 1 tile another. upon receiving "up" command, game behaves fine , character moves smoothly in 1 sec new position. however, when "down" command given, moves @ half speed, , after 1 sec has passed, instantly "teleported" final position, sudden flicker. code motion identical, fact in 1 case delta motion summed y position, in other case subtracted. maybe fact position integer , delta double causing problems? sum , subract behave differently (maybe different rounding)? here relevant code (sorry length): void player::step(player::direction dir) { if(m_status != standing) //...

.net - Validating xml signature on part of the document using SignedXml -

.net - Validating xml signature on part of the document using SignedXml - i using signedxml class validate signature in xml document. signature refers part document. i able verify signature, how can sure signature signing specific part of document need validate? sign different part of document using same key , signature still valid. from understand, signedxml automatically verifies signature against part of document that's supposedly signed. a digital signature verified passing signature value and data/content that's supposedly signed (or hash value of it). means if signature verifies, can sure right part of document signed. if signs different part of document , you're verifying signature against non-signed part of document, won't positive result. , due construction of xml, signedxml verifies signature against what's suppposedly signed, not against else. .net xml xml-signature xml-dsig

java - Android how to add a Linearlayout to another LinearLayout from code -

java - Android how to add a Linearlayout to another LinearLayout from code - i have linearlayout in main.xml: <?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="fill_parent" android:orientation="vertical" android:id="@+id/mainlayout" > </linearlayout> i have made xml file, called item_box.xml: <?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/linearlayout1" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/item_bg" android:gravity="right" > <imageview android:id="@+id/imageview1" a...

iphone - Create adjusted image similar to UIButton's adjustsImageWhenHighlighted effect -

iphone - Create adjusted image similar to UIButton's adjustsImageWhenHighlighted effect - i'm working info icons in table view. , icons in disabled state. want seek create grayed versions of icons programmatically, before inquire designer me. similar adjustment happens in uibutton when image auto-adjusted highlighted state. know how image adjustment? what modifying alpha of icons? if create images partly transparent you'll similar effect , no programming needed. another possibility add together partially transparent grayness uiimageview on button. button made gray-looking -- you'll need uiimageview have alpha of .2, or somewhere in range. iphone ios cocoa-touch uikit core-graphics

CRM 4.0 - How to add an attribute into 'To' field (email workflow) -

CRM 4.0 - How to add an attribute into 'To' field (email workflow) - i'm using microsoft crm 4.0 custom entity. trying send emails dynamically different email addresses. have created workflow , email template, can't populate 'to' field in email template add together 1 of attributes. attributes not appear on form assistant. have field in entity of nvarchar , format of 'email'. any ideas?? you cannot (by default) utilize string attribute or custom entity email target in crm 4.0. types of built in entities can used (normally contact, systemuser or queue). we ended using queues mechanism of storing email addresses did not want associated specific user or client (such shared team emails notifications). it's bit ugly if utilize them else works fine. email workflow dynamics-crm dynamics-crm-4 crm

iphone - Compilation Error on #include Algorithm:No such file or Directory -

iphone - Compilation Error on #include <algorithm> Algorithm:No such file or Directory - i want utilize opencv , open surf libraries in 1 project along artoolkitpluas gives me error "algorithm:no such file or directory" tried best prepare can't. please help me. in problem , need help. thanks your source file beingness compiled objc or c. should c++ (.cpp) or objc++ (.mm). iphone

indexing - ColumnStore index benefits on Azure? -

indexing - ColumnStore index benefits on Azure? - we running on azure , have table hundreds of millions of rows. table static , refreshed weekly. we've looked @ columnstore index unfortunately not azure yet below questions, will columnstore index available in azure? if not other technology can utilize same performance benefits columnstore index provide? can same query performance using azure table storage? i'm newbie both azure , columnar databases please bear me me if inquire these questions.. :) about columnstore , if have bought license, can check development team or inquire on blogs such scottgu's blog. there come know feature release. azure database designed scalability. need utilize partition key wisely. partition key index of book, if want search in book, can refer index , reach page quickly. in other words, can grouping info depending upon criteria , store in single partition. ever have same criteria, query nail 1 partition. thing partit...

sql - Postgres: order data by part of string -

sql - Postgres: order data by part of string - i have column name represents person's name in next format: firstname [middlename] lastname [, sr.|jr.] for, example: john smith john j. smith john j. smith, sr. how can order items lastname? a correct , faster version this: select * tbl order substring(name, '([^[:space:]]+)(?:,|$)') or: order substring(name, e'([^\\s]+)(?:,|$)') or even: order substring(name, e'([^\\s]+)(,|$)') explain [^[:space:]]+ .. first (and longest) string consisting of 1 or more non-whitespace characters. (,|$) .. terminated comma or end of string. the lastly 2 examples utilize escape-string syntax , class-shorthand \s instead of long form [[:space:]] (which loses outer level of brackets when within character class). we don't have utilize non-capturing parenthesis (?:) after part want extract, because (quoting manual): .. if pattern contains parentheses, portion of t...

java - Set main frame not resizable -

java - Set main frame not resizable - i want set main frame (whole application) not resizable user. can tell me how it? when set minimum , maximum size in layout design not work. i'm still able resize whole application. assuming using swing , jframe , phone call setresizable(false) . java swing resizable

javascript - Printing out results from google map search -

javascript - Printing out results from google map search - i need utilize google maps (v3) check whether address typed search field exists , print out on screen. that's easy plenty checking whether latitude/longitude pair found address. however, have problem. when user types in broad search, such mutual street name first street, need print out results found user can take one. not need display results on map @ point, show list of them on page. found code online supposed , modified doesn't work. 'gclientgeocoder() not defined' error, suspect when past code have problems wondering if more experience point me in right direction. here's code, hardcoded search term 'first street' function testing purposes. function showaddress() { var geo; geo = new gclientgeocoder(); var search = 'first street'; // ====== perform geocoding ====== geo.getlocations(search, function (result) { //map.clearoverlays(); ...

java - Scroll text area to top after it has been filled -

java - Scroll text area to top after it has been filled - i have few text areas filled loops of information. possible create 'jump' or scroll top automatically after loop has completed, user sees start , not end? you can utilize setcaretposition() set cursor @ position 0 of textarea. works me. java loops textarea awt

perl - Dynamic package loading under plackup with Starman -

perl - Dynamic package loading under plackup with Starman - i running web app under plackup starman , trying dynamically load , instantiate packages based on user requests. using 'require $packagename;' load bundle $packagename contains name of package, names stored in config file. execute known set of commands on instance classes inherit base of operations class , contain set of known methods. this works fine under apache, reason plackup saying cannot locate bundle though @inc contains library path , bundle names absolute lastly directory in lib path. is, bundle name base::my::package. anyone experience issue? need update other path within starman? executing plackup -i flag updating environment perl5lib variable. tried 'use lib /...' in main app class, none of these work. thanks require take module names (e.g. scalar::util) when they're specified barewords. if give require string, needs relative path module (e.g. scalar/util.pm). can aro...

ruby - Message/logging from Thin -

ruby - Message/logging from Thin - how can stop rack lean returning initial messages of next type? >> lean web server (v1.3.1 codename triple espresso) >> maximum connections set 1024 >> istening on 0.0.0.0:3000, ctrl+c stop i using this: rack::handler::thin.run(rack::builder.new map("/resource/"){run(rack::file.new("/"))} map("/") run(->env{ h = rack::utils.parse_nested_query(env["query_string"]) [200, {},[routine_to_generate_dynamic_content(h)]] }) end end, port: 3000) those messages not come rack, come thin: https://github.com/macournoyer/thin/blob/master/lib/thin/server.rb#l150 can set logging preferences according this: https://github.com/macournoyer/thin/blob/master/lib/thin/logging.rb thin::logging.silent = true, want quiet all? maybe direct log file instead of stdout? ruby logging rack thin

javascript - How long does the jquery .ready() function wait? -

javascript - How long does the jquery .ready() function wait? - i have page on php output rather big div, has lots of components within it. js handle div begins instantaneously, there problems of timing related loading of bigdiv , script handles it. so, applied code handle on ready() var bigdiv = $(document).find('#bigdiv'); bigdiv.ready(function{ //some code here }); now question is, if bigdiv takes long time appear, how long ready() function wait? if bigdiv not appear @ all? so avoid script waiting it, applied timeout, thus chose approach this: var waittimer = 0; var lodtmout = 2000; function chkdatalod(){ var bigdiv = $ph(document).find('#bigdiv'); if(bigdiv.length > 0){//find if bigdiv has content bigdiv.ready(function(){//wait bigdiv load it's contents //some code here }); }else{ //chk bigdiv after every 500 msec 2000 msec if(waittimer === lodtmout){ homecoming...

facebook - please tell me why 1 of these 2 identical URL's get's picked up by FB graph, while the other does not? -

facebook - please tell me why 1 of these 2 identical URL's get's picked up by FB graph, while the other does not? - i have 2 identical links both have appropriate facebook open graph meta tags. however, 1 of them not picked facebook , other 1 does: works http://sephora.com/browse/product.jhtml?id=p53162&categoryid=b65 broken http://sephora.com/browse/product.jhtml?id=p276328&categoryid=b15 my test works, versus broken when "like" page, object/url should appear on "likes" list whenever visit graph.facebook.com/me/likes. first url correctly seen on likes list, sec not added. any ideas why? identical url's. i have set both through http://developers.facebook.com/tools/debug/ had no luck. please allow help! hmm, url have in og tag different url entered: see http://developers.facebook.com/tools/debug/og/object?q=http%3a%2f%2fsephora.com%2fbrowse%2fproduct.jhtml%3fid%3dp53162%26categoryid%3db65 http://sephora.com/browse...

puzzle - Simplifying Python program -

puzzle - Simplifying Python program - i'm finish beginner in python , programming in general. made programme spotify's best before puzzle. accepted. have looked litle around on net , looked @ other solutions problem, , have seen have importet several modules, inclusive calendar module. understand solution, wanted create myself practice. i appreciate tips , hint, without haveing import code. it's printer(a) , det datamaker() needs modification. normyear = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] leapyear = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] answerlist = [] u''' check if of integers years ''' def yearcheck(): x in xrange(0, 3): = datalist[x] if len(a) > 2: if not len(a) == 4 , int(a) in xrange(2000,3000): if int(a) in xrange(100,1000): datalist[x] = int(a) + 2000 else: print info + u" illegal" u...

sqlite - FMDatabase iOS INSERT issues -

sqlite - FMDatabase iOS INSERT issues - i'm making application database. modal utilize fmdatabase classes. have insert new info in 2 tables: -project(id_proj primary key autoince unique, name, baseimage) -imagesforpro(id_img primkey autoincr unique, smallimage, largeimage, id_proj) have method -(void)addproject:(project*)proj pass project object. have insert projectname , baseimage project table , extract id_proj of record i've inserted , insert little , larges images imagesforpro table.how remeber id_proj(which autoincrement) lastly inserted record? moreover, how utilize insert? utilize properly? how set nsdata database properly? thanks. here have far: -(void)addproject:(project*)proj { [db open]; nsdata *bmdata=uiimagepngrepresentation(proj.baseimage); if (proj==nil) { nslog(@"dead object"); } nslog(@" new name %@", proj.projectname); //doesn't work //id_proj autoincrement field that's why pass ...

LaTeX-like cross-referencing in epub? -

LaTeX-like cross-referencing in epub? - are there markup languages or compilers allow me utilize latex cross-referencing commands (label , ref) , create epub document? everything i've tried far (pandoc including) has shortcomings. pandoc v1.9 has been released , has many improvements, including adding internal , external links epub writer. note pandoc supports docbook output, community has own independent paths epub via xslt. also check out "extras" page in pandoc wiki, i've been excited lately aditya's "filter" script, not sure if helpful utilize case though. latex epub

r - lapply() when function returns NULL -

r - lapply() when function returns NULL - is there method stop lapply() returning null values each element of list when function doesn't have return() . here's pretty basic example: x <- function(x) { return(null) } a.list <- list(a=1,b=2,c=3) lapply(a.list, x) the output is: $a null $b null $c null my goal not have output, @ all. update: usage case follows. i'm using lapply() pump out xtable() text , i'm sink() 'ing rnw file. null output bugging automation. two options come mind: either trash_can <- lapply(a.list, x) or invisible(lapply(a.list, x)) the first 1 makes me wonder if there analog of linux's /dev/null in r can utilize redirect stuff don't want. problem creating variable trash_can hang around , utilize memory unless rm(trash_can) . don't think that's problem here. r

Silverlight. Play video from byte array -

Silverlight. Play video from byte array - i have silverlight application recieves special construction of media: images , videos. info recieved byte[] each image or video to show images, use: memorystream stream = new memorystream(node.resourcebin); bitmapimage bmp = new bitmapimage(); bmp.setsource(stream); imagecontainer.source = bmp; and works. to show video have tried: memorystream stream = new memorystream(); stream.write(node.resourcebin, 0, node.resourcebin.length); stream.position = 0; videocontainer.setsource(stream); videocontainer.play(); and doesnt work. compared length of byte[] , original avi file , equals, so, info recieved correctly. what's wrong it? thanks have verified silverlight can play video without loading stream? video issues i've had relate codec support. – real baumann 9 hours ago sl plays wmv format. avi doesnt play @ all. thanks. look here: http://forums.silverlight.net/t/...

google maps - Tips for setting up a public transportation route planner -

google maps - Tips for setting up a public transportation route planner - i intending develop in near future web app planning route using local public transportation system. using google maps , hear tips on how should start planning project maximum efficiency (how should store stations, lines, times each line, mutual stations etc, , how draw route next roads - not straight line between 2 points). give thanks you! public transportation in metropolitan areas can utilize google maps api how google maps public transit directions http server-side request google-maps architecture schema gtfs

Automapper not mapping entities that are newly added in Entity Framework 4.1 context -

Automapper not mapping entities that are newly added in Entity Framework 4.1 context - i lazy loading entities , when create initial phone call pull list of entities seeing system.data.entity.dynamicproxies....type. fine , entities map dtos fine. issue having when add together new item context beingness pulled fromt context , not database. so, see list beingness pulled system.data.entity.dynamicproxies types , new item taht actual type of object. so, illustration may have list this: system.data.entity.dynamicproxies.contact... system.data.entity.dynamicproxies.contact... system.data.entity.dynamicproxies.contact... mynamespace.contact i created custom type converter , noticed dynamicproxy types have source value, mynamespace.contact not have source value. so, not getting mapped in type converter. you can phone call createobject/create method in objectset/dbset when creating entity without using constructor. var newcontact = context.contacts.create(); cont...

C# Catching exception which is occuring on ThreadPool -

C# Catching exception which is occuring on ThreadPool - i investigating crashes in application caused win32 exception, , have narrowed downwards must occuring in threadpool taking care of eventlog.entrywritteneventhandler event handler in application. set this: // create event log monitor eventlog.log = "application"; eventlog.enableraisingevents = true; eventlog.entrywritten += new entrywritteneventhandler(eventlogmonitor); eventlogmonitor handler event. wondering have ideas find out whats causing exception. seems hear events threadpoolwaitortimercallback beingness set up, wouldn't have of code on it, , if exception occuring on cant see how deal problem. help appreciated!! here output of !clrstack in windbg: 0:008> !clrstack os thread id: 0x106c (8) esp eip 049df1c8 7756f871 [helpermethodframe: 049df1c8] 049df26c 73ce6fa0 system.diagnostics.eventlog.get_oldestentrynumber() 049df27c 73bf24ed system.diagnostics.eventlog.completioncallba...

html - I would like to use the transform: scale() property but not have it apply to the children of the element -

html - I would like to use the transform: scale() property but not have it apply to the children of the element - i utilize css transform: scale() property not have apply children of element. default behavior scales parent div , children divs. how around this? thanks! html css html5 webkit

jquery - call Fancybox in parent from iframe -

jquery - call Fancybox in parent from iframe - i have 2 pages, index.html , social.html. cleaned out index , left jquery code need fancybox trying have images within social.html , when clicked on it, open fancybox , show in index.html not within iframe. error comes is: uncaught typeerror: property 'showimage' of object [object domwindow] not function (anonymous function)social.html:103 onclick this index.html: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> <script type="text/javascript" src="js/jquery.fancybox-1.3.4.pack.js"></script> <link rel="stylesheet" type="text/css" href="css/jquery.fancybox-1.3.4.css" media="screen" /> <script type="text/javascript" src="js/video.js"></script> <script type="text/javascript"> function showimage(...

c# - Silverlight Bing Map with bindable amount of MapItemsControl -

c# - Silverlight Bing Map with bindable amount of MapItemsControl - is possible add together itemssource bing map command bind mapitemscontrols observablecollection? want set different pushpin-styles on map easily. if understand question, have collection of mapitemcontrols added map - , collection has bind-able - created dynamically? i had similar issue before. solution me create new maplayer , expose two-dimensional collection of items dependencyproperty. here suggested approach: public class speciallayer : maplayer { public static readonly dependencyproperty itemssource ... onpropertychanged(...) { var layer = sender speciallayer; foreach(object in routes){ layer.add(new pushpin(...)); } } } i wrote short post it. can check details. honza c# silverlight bing-maps

java - How get information from Web page (Android)? -

java - How get information from Web page (Android)? - i create android application must receive info page http://example.com/get.php?id=1. utilize next method: private string getdata() { httpclient httpclient = new defaulthttpclient(); httpcontext localcontext = new basichttpcontext(); // !!! application stops here httpget httpget = new httpget("http://example.com/get.php?id=1"); httpresponse response = null; seek { response = httpclient.execute(httpget, localcontext); } grab (clientprotocolexception e) { // todo auto-generated grab block e.printstacktrace(); } grab (ioexception e) { // todo auto-generated grab block e.printstacktrace(); } string result = ""; bufferedreader reader = null; seek { reader = new bufferedreader( ...

java - Transform ResultSet of native query hibernate -

java - Transform ResultSet of native query hibernate - i have 2 tables abc, xyz, have taken bring together on 3 mutual columns let's p,q,r. now, i want response of query finish joined row. session hibernatesession = (session) em.getdelegate(); stringbuffer querystring = new stringbuffer(); querystring.append("select t1.*, t2.* abc t1, xyz t2 t1.p = t2.p , t1.q = t2.q , t1.r = t2.r"); collection<----> results = query.list(); do need create new object can store finish bring together row or there way can transform result 2 collections i.e. collection<abc> , collection<xyz>. please help me out, new hibernate. thanks you can utilize addentity method on query object, session.createsqlquery("querystring") .addentity("t1") .addentity("t2") .list(); see http://docs.jboss.org/hibernate/core/3.3/reference/en/html/querysql.html#d0e13763 you may want ...

unicode - PDF: Duplicate font names with different ToUnicode Cmaps -

unicode - PDF: Duplicate font names with different ToUnicode Cmaps - i'm parsing pdf file , extracting of text, , i've run situation encounter font dictionary named "c2_0", contains cidfont (type 0) tounicode cmap. so, no problem - have tools parse tounicode cmap , map 2-byte character codes unicode values. but pdf file later includes another font dictionary object, also called "c2_0", contains different tounicode cmap. didn't how should handle sec cmap, guessed , combined entries both cmaps. worked, , extracted text correctly. but, can't find in pdf reference manual says allowed, or addresses situation. have thought duplicate font names lead unspecified behavior, or @ to the lowest degree have sec override first or something. tried combining them longshot guess - , surprised worked. does have experience this? know if pdf allowed have duplicate font names refer different objects different cmaps "combine" when invoked...

pygame - Broken calling function in Python -

pygame - Broken calling function in Python - when programing basic ufo game in python 2.7 , pygame came accross error, didn't come in consol. happend was: i programing made little alter in code the menu screen worked fine , go play game it keeps restarting. i edited few more bits of code it'd in while loop until phone call command correctly. and still wouldent phone call command. if want have images can download them , sorcecode here: http://dl.dropbox.com/u/33487921/a%20problem.zip here code: import sys, pygame, random pygame.locals import * time import gmtime, strftime pygame.init() width = int(500*2) height = int(300*2) width2 = width + (width/5) height2 = height + ((height/3)/2) screen = pygame.display.set_mode((width, height2)) pygame.display.set_caption("moetm's ufo game") class flyingobject(): def restart(self): self.amount = 0 self.array = [] def new(self, fps): self.amount += 1 in range(self.amou...

ubuntu - SVN Commit Error (couldn't perform atomic operation) -

ubuntu - SVN Commit Error (couldn't perform atomic operation) - everything working fine, when of sudden, getting svn: commit failed (details follow): svn: couldn't perform atomic initialization what problem ? i using "projectlocker" (http://projectlocker.com/) os: ubuntu10.04 in case, because partition svn had been installed in, full. svn ubuntu projectlocker

sql server - SQL UPDATE statement with WHERE EXISTS -

sql server - SQL UPDATE statement with WHERE EXISTS - im trying write query updates date if grouping im updating has line_cd of 50. this? update employer_addl set employer_addl.gtl_uw_apprv_dt = employer_addl.dntl_uw_apprv_dt exists ( select emp_plan_line_info.line_cd emp_plan_line_info emp_plan_line_info.gr_nbr = employer_addl.gr_nbr , emp_plan_line_info.line_cd = 50 ) what this? update ea set ea.gtl_uw_apprv_dt = ea.dntl_uw_apprv_dt employer_addl ea inner bring together emp_plan_line_info ei on(ei.gr_nbr = ea.gr_nbr) ei.line_cd = 50 sql sql-server

objective c - UIScrollView bounces half page when at its bounds -

objective c - UIScrollView bounces half page when at its bounds - i have scrollview in app. works fine, when it's @ edges (beginning , lastly photo), bounces... bad. if seek scroll bounces me correctly, if stronger (faster) bounces half previous photo. it's easier create see mean, here's video took (sorry quality, it's taken ipad :d ) http://www.youtube.com/watch?v=4werayetybw you may want utilize three20 photo viewing tutorial. objective-c ios uiscrollview bounce

How can you replace text in a file using the Windows command-line environment? -

How can you replace text in a file using the Windows command-line environment? - i writing batch file script using windows command-line environment , want alter each occurrence of text in file (ex. "release") another(ex. "debug"). simplest way that? built in functions? there no native solution there set , sed utilities situation. see here list cygwin, unxutils, gnuwin32, at&t research's uwin system, msys mingw related question on stack overflow got list from command-line

jquery validation plugin remote query - error/failure handling -

jquery validation plugin remote query - error/failure handling - i'm using jquery validation plugin on user profile editing form. i'm using 'remote' feature query website , check email uniqueness, working well. question how deal errors or failures, doesn't seem documented. behaviour want if json query fails or times out forget part of validation, allow user submit , allow server side validation take care of it. i can see there error attribute, , looks can add together function run in scenario, set there switch off validation rule in case of timeout/error/failure? remote: { url: location.pathname + "/emailunique", timeout: 20000, data: { userid: function() { homecoming $("#form_editprofileform_userid").val(); } } } yes, add together error function: remote: { //your normal $.aja...

facebook like - People who "liked" my Blogger post? -

facebook like - People who "liked" my Blogger post? - i have added next blogger template add together button on each of blogger post: <script> document.write(&#39;&lt;iframe src=&quot;http://www.facebook.com/plugins/like.php?href=<data:post.url/>&amp;layout=standard&amp;show_faces=false&amp;width=380&amp;action=like&amp;font=trebuchet+ms&amp;colorscheme=light&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; allowtransparency=&quot;true&quot; style=&quot;border:none; overflow:hidden; width:450px; height:25px&quot;&gt;&lt;/iframe&gt;&#39;); </script> my question is, how know has pressed display number of people have liked post? thank you! facebook doesn't provide api list of people page. due privacy issues (although facebook never know reasonings, sell personal info time). facebook-like like blogger facebook-likebox

How to detect in advance if a browser will download a file instead of viewing it? -

How to detect in advance if a browser will download a file instead of viewing it? - sometimes when view file on page on own, browser has default way of viewing it, place in image or video tag, or invoke plugin. other times, downloads file. sometimes because of headers set server, lets ignore now. file types, doesn't matter headers set -- browser seek download them regardless. some of types browser view listed in navigator.mimetypes. however, not authoritative. ipad can view microsoft office files not study this. is there simple way figure out browser going file before it? browser download

objective c - How to parse the string using TBXML in iphone sdk? -

objective c - How to parse the string using TBXML in iphone sdk? - i tried parse next string using tbxml. <panel><start><post_id>4</post_id><user_id>2</user_id><post>hyder here</post><created_on>2012-01-09 06:36:59</created_on><likes>0</likes><noc>0</noc><status>a</status></start><start><post_id>3</post_id><user_id>2</user_id><post>hello hyder here</post><created_on>2012-01-09 06:34:09</created_on><likes>0</likes><noc>0</noc><status>a</status></start><start><post_id>2</post_id><user_id>0</user_id><post>hi, syed hyder....</post><created_on>2012-01-09 01:07:36</created_on><likes>0</likes><noc>0</noc><status>a</status></start><start><post_id>1</post_id><user_id>0</...

java - How to run proguard in my spring mvc application, no jar but for classes? -

java - How to run proguard in my spring mvc application, no jar but for classes? - spring mvc applications don't have jars, have wars (.war or exploded). my maven build creates exploded war in: /myapp/target/myapp-1.0/ and classes in: /myapp/target/myapp-1.0/web-inf/classes i want obfuscate in namespace com.maypp.* how can this? so far have this: <plugin> <groupid>com.pyx4me</groupid> <artifactid>proguard-maven-plugin</artifactid> <executions> <execution> <phase>package</phase> <goals> <goal>proguard</goal> </goals> </execution> </executions> <configuration> <obfuscate>true</obfuscate> <injar>?????</injar> <infilte...

c# - Nested Html.Action calls in Razor -

c# - Nested Html.Action calls in Razor - edit: vastly simplified version of site , if create test app, pattern works fine. in our real app, using t4mvc , within area. i'm guessing 1 of these factors causing issue... edit2: default routes defined , if navigate straight /areaname/controllername/subchild?val=123 renders. i have peculiar problem mvc , hoping can help... i have controller next action methods public actionresult index() { homecoming view(getmodel()); } public actionresult result child(string blah) { homecoming view(getmodel(blah)); } public actionresult result subchild(int val) { homecoming view(getmodel(val)); } i have 3 razor views. index.cshtml <div> @html.action("child", new { blah = "raaa"}) </div> child.cshtml <div> @*error here*@ @html.action("subchild", new { val = 123}) </div> subchild.cshtml <h1>@model.val</h1> when navigate / exce...

portlet - Encode french characters using UTF-8 -

portlet - Encode french characters using UTF-8 - when submit jsp page , request goes portlet controller, want french characters on jsp page encoded using utf-8 in portlet controller. code syntax need utilize in jsp or portlet controller ensure this? for me works <%@ page language="java" import="java.util.*" pageencoding="utf-8"%> in top of jsp character-encoding portlet websphere-portal

str replace - Getting rid of escape characters in PHP -

str replace - Getting rid of escape characters in PHP - i've got string containing values such "hello world\' hello world\'" , i'd rid of escape characters (the backslashes.) i've tried next code: str_replace("\\", "", $data); but doesn't seem work. if want rid of backslashes, there's handy php function accomplishes that $var = stripslashes($var); php str-replace

c# - How Can I Validate that an Email is from a Particular Domain in ASP.NET MVC? -

c# - How Can I Validate that an Email is from a Particular Domain in ASP.NET MVC? - i building application rolled out specific college campuses. i ensure that, when user signs up, , provides email address, school provided email ensure legitimate students have access service. does have illustration or ideas on how accomplish this? perhaps custom validation attribute? note: more specifically, need ensure email come in .edu email address looks regex way go...can provide guidance on proper expression? i create regular look attribute , custom dataannotation. register annotation under application_start in global. can utilize validation dataannotation in model both client , server side. have regularexpressattributes.cs class contains commonly used regular expressions; drop projects. if folks want allow me know. the view: <div class="editor-field span-7"> @html.labelfor(model => model.emailaddress) @html.editorfor(model => model.email...