Posts

C File processing and matching help -

i have assignment in college in required read in 2 .dat (aascii) files created earlier program, both of sorted. one client account file contains clients balance , account number , name, other transaction file contains account number , transactions account. this program has match account numbers , create new , updated clients file adding transaction amount balance of client based on accounts number. i have working fine except when there duplicate transaction example if transaction file contains 2 separate transactions 2nd client code print updated balance after both transactions instead of cumulative balance. i wondering if can shed light on how solve problem. code attached, in advance. #include <stdio.h> #include <conio.h> int main() { int account,matches=0; /* account number */ char date[ 30 ]; /* account date */ double balance, saleamount,total=0, x; /* account saleamount */ int transaccount; char name [ 30 ]; file *cfptr; ...

django-registration view customization -

i'm using django-registration (see: https://bitbucket.org/ubernostrum/django-registration ) on 1 of projects. standard setup django-registration add code below in urls.py file (r'^accounts/', include('registration.urls')) and customize templates in folder called registration . the code above creating links registration, login , password recovery fine. in project there other functions add views if add include('registration.urls') appears have no way of customizing views containing django-registration forms. is there way call forms used django-registration in view can add few more things on views ? the registration form provided registration backend. check out registration.backends.default.defaultbackend . there's method get_form_class(request) returns registration.forms.registrationform class. have create new backend, inherit defaultbackend , override get_form_class() method return new form class. you can pretty providing...

Where is PDF image rotation information stored? -

i trying extract images stored in pdf stream. while can easily, not able accurate image rotation information. looking specific information such mediabox, rotate , landscape/portrait mode. when extract image, alignment not match end user sees pdf reader tool. i binary compared 2 pdfs (where image rotated 90 in former , same image rotated 270 in latter) , found difference in particular stream object. however, not able make out stream information is. here 2 documents talking about: http://bit.ly/eqzgkj http://bit.ly/g43whb the position, size , orientation of image when displayed on page determined current transformation matrix (ctm). have execute entire page content stream determine ctm in place when image displayed. it's virtual rendering of pdf page.

ios4 - in iphone 4 which method call when we close application -

i want know method call when in iphone , application close , again open. in iphone4 malty task felicity available . want background , foreground method application. - (void)applicationdidenterbackground:(uiapplication *)application when user quits application supports background execution. and - (void)applicationwillenterforeground:(uiapplication *)application method called part of transition background inactive state. can use method undo many of changes made application upon entering background.

iphone - ipad 3.2.2 loading in landscape -

i changed properties in info.plist support orientation in landscape thereby app opens in landscape mode well. problem face when app loads in landscape mode view aligned. there view on right side of split view not aligned properly. when load in portrait mode , landscape there no issue. can tell me if there additional properties or work around issue. as using splitview controller should not worry orientation. just see in view .nib file there 1 authosizing feature set u remove problem. this link may if dont know autosizing.

licensing - How can I distribute msvr71.dll (microsoft visual c++ runtime dll) -

i have application requires msvcr71.dll. in machines dll missing. instead of asking user install vc++ runtime, distribute dll (only 1 file msvcr71.dll) our application. gets copied application installation directory. from licensing point of view, doing correct? not find license agreement. the page has following note: for msvcr70.dll or msvcr71.dll, should install crt dll application program files directory. should not install these files windows system directories. msvcr80.dll , msvcr90.dll, should install crt windows side-by-side assemblies. there should redist.txt file in program files/microsoft visual studio .net 2003 states rules redistributing different files visual studio. http://msdn.microsoft.com/en-us/library/aa984372.aspx has list of locations check redist.txt .

c# - get xml node by order -

i have xml file like: <?xml version="1.0" encoding="utf-8" ?> <config> <metadataformconfig fieldinternalname="test"> <tabs> <tab title="a c" order="1"> <showparentterm>a</showparentterm> <showparentterm>b</showparentterm> <showparentterm>c1</showparentterm> </tab> <tab title="d e" order="2"> <showparentterm>d</showparentterm> <showparentterm>e</showparentterm> </tab> </tabs> </metadataformconfig> </config> i want tab element order. if changed tab title="a c" order 2 want node "d e" first "a c" can 1 me how this? you can linq xml: xdocument doc = xdocument.load(@"test.xml"); var tabs = do...