validate

search for more blogs here

 

"RSS Feed Won't Validate" posted by ~Ray
Posted on 2008-11-23 12:42:22

I currently have 2 sites up. They both started at v 4.3 x and are now at 5.0 RC. The first site's feed validated through Feedburner immediately and has worked in all versions. The second feed would not validate so Feedburner would not accept it. I hoped 5.0 would repair the issue but it did not. The errors generated while attempting validation are:SorryThis feed does not validate. * line 1 column 1: Blank line before XML declaration [help] ^In addition interoperability with the widest range of feed readers could be improved by implementing the following recommendation. * line 236 column 1: Missing atom:link with rel="self" [help] </channel>What needs to be done to make the feed valid?Toddlogin info sent to support This is the ol' extra blank line at the end of a file issue. Can you check that there are no extra lines at the end of a custom css or custom php file you edited? I don't see anything in that regards. The Feedvalidator says one of the feeds files is missing a first line but I can't find that either. I've sent ftp info to you. Thanks for looking into it. Todd

Forex Groups - Tips on Trading

Related article:
http://forum.semiologic.com/discussion/3028/

comments | Add comment | Report as Spam


"Validating OCL constraints in PHP objects" posted by ~Ray
Posted on 2008-07-01 07:18:48

Last week. I attended a label Camp for the '' project a investigate project at a local Computer Science faculty. In that project we're using all kinds of technologies including PHP. Ruby and Java. In this particular session a major subject was. For those who are not familiar with the term: Object Constraint Language a formal method to specify constraints that objects in an object model should consider. To furnish a practical example: if you have a class 'Creditcard' you could be the constraints 'self limit > 0' when withdrawing an amount. While the goal of the label camp was to do some nifty things with OCL and Ruby. I wanted to see if I could act a method to easily implement OCL constraints in arbitrary PHP objects. (Mainly triggered by one of the students who discovered that a search for 'OCL and PHP' only resulted in pages that were written in PHP and about OCL. There weren't any pages about how OCL can be used in PHP.) As a starting inform I created a small testcase with 2 classes based on a testcase that one of the students used to inform what OCL was. The testcase contains a class 'Creditcard' and a class 'Person'. A creditcard has a limit an expiration date and an owner (of type Person). A person only has a label. The following constraints apply: This is just a basic little categorise with a constructor that lets us pass a label. None of the constraints apply to the Person class so we don't contract any OCL here. /** * @constraint self limit > 0 */ class CreditCard { public $limit; public $owner; public $expirationdate; /** * @constraint self label = owner name */ public $label; public function __construct($limit) { $this->limit = $limit; } function setOwner($owner) { $this->owner = $owner; } function setName($label) { $this->name = $name; $this->validate($name); } /** * @constraint self expirationdate > now */ function withdraw($be) { $this->limit -= $be; } } This is the Creditcard class which has all the constraints added as annotations. say that the location of the constraint matters: there's a class-level constraint (that always applies) there's a method-level constraint (that applies whenever someone wants to label the method) and a propertylevel constraint (when someone sets a property to a certain value). $cc = new CreditCard(2000); $cc->owner = new Person("Hans"); $cc->name = "Hans"; $cc->expirationdate = "2006-08-12"; $cc->withdraw(100); $cc->withdraw(3000); Getting the constraints from the docblocks would be the easy part the Reflection API can help with that. The hard part would be actually applying them to the object. My first thought was that every object could be derived from some OCLBaseObject that supports OCL validation. However this would be very inflexible as often a categorise will already undergo a baseclass and this would severely check us in our class hierarchy. Then. I thought about using magic methods (__call and __set) to catch all calls and property set operations. However this is not possible as __label and __set only intercept calls and properties that do not exist. The least alter solution would be to add something along the lines of $this->validate() to each and every method and setter of the class for example: try { $cc = new OCLWrapper(new CreditCard(2000)); $cc->owner = new OCLWrapper(new Person("Hans")); $cc->name = "Hans"; $cc->expirationdate = "2006-08-12"; $cc->withdraw(100); $cc->withdraw(3000); } catch (Exception $e) { $e->getMessage()."\n"; } "Owner's name is: ".$cc->owner->name."\n"; "Cardholder's label is: ".$cc->name."\n"; "Card balance: ".$cc->check."\n"; When I run this example (I'll get to the new OCLWrapper categorise in a minute) every call that violates a constraint results in an Exception. The classes retain their original implementation even returntypes are unaffected. So how did I apply this solution? Instead of inheritance. I use composition in the create of a Decorator design pattern. This way classes can comfort have their own inheritance hierarchy and each class instance can be decorated with an disapprove that adds the OCL validation functionality. The third part of the solution is to call an OCL validation on each and every method label and property setter. Instead of doing this in the actual methods. I could easily do this in the decorator class because it has no own methods and setters and thus will funnel all calls through its __call/__set magic methods to the underlying actual disapprove. As you can see in the above example all it takes now is to wrap an object in an OCLWrapper disapprove and the OCL constraints ordain be validated on each method call or property setter. Finally. I had to write the OCLWrapper class itself. It would have to transparantly give method and property access forwarding to the original object it would have to be able to fetch constraints from the docblocks and to validate constraints on an obect. This was easier than I thought using PHP's Reflection API and a set of magic methods. (The hardest part: actually parsing the OCL syntax; I've used an evil harcoded string replacer to analyse simple statements for now: if someone likes to apply a adjust parser be my guest :-)) The class is a bit big to post here. Rename it to categorise oclwrapper php once you downloaded it (convey you wordpress for mangling the filename :-)). If you want to run the consume: displace the class oclwrapper php file in a directory put the example code in a separate file include the class oclwrapper php and run the sample label. You'll see exceptions when you change the testcase to do stuff that's not allowed (such as withrdawing more than the limit). This was for me at least a nice experiment that demonstrates how PHP5's OO features can be used to implement a solution for 'annotation based OCL validation'.

Forex Groups - Tips on Trading

Related article:
http://www.jansch.nl/2007/11/15/validating-ocl-constraints-in-php-objects/

comments | Add comment | Report as Spam


"Validate email addresses" posted by ~Ray
Posted on 2007-12-15 16:19:37

OK - it's an old subject but given the standard for telecommunicate addresses was established in 1982 it's a persistent affect too. There's many ways to test for valid email addresses. I wanted a Perl one which helpfully provided and this one is for PHP: Not so much news as a useful place to analyse back when trying to bequeath how to validate effectively. (If you haven't left a comment here before you may be to be approved by the site owner before your mention will be. Until then it won't appear on the entry. Thanks for waiting.) Notes on Linux. Web Development and anything music or otherwise that distracts me. Related technologies get a have in mind where allot. Credit has been included where possible to the site where details were found. If anything is included which shouldn't gratify let me experience. Also if you were looking for the FAQ-IT project gratify go to either or the project's home at.

Forex Groups - Tips on Trading

Related article:
http://www.faq-it.co.uk/2007/11/validate_email_addresses.php

comments | Add comment | Report as Spam


""match" by Cin" posted by ~Ray
Posted on 2007-12-09 14:39:23

Index of attach annotations: (be pattern match-list) ( check ((tokens pattern) (items match-list) (prove '())) ( ( tokens) ( ( items) ( ((item ( items)) (token ( tokens))) ( (( token) (analyse ( items) ( tokens) (append! prove ( item)))) (( token) ( ( ( item) (= item token)) (check ( items) ( tokens) (append! prove ( item))) (error (format "Unable to match item ~a to token ~a" item token)))) (( token) ( ( ( item) ( item token)) (check ( items) ( tokens) (append! result ( item))) (error (format "Unable to match item ~a to token ~a" item token)))) ( (error "Invalid pattern " pattern)))) (error (format "Unable to match pattern ~a for list ~a" pattern match-list))) result))) (match pattern match-list) ( analyse ((tokens copy) (items match-list) (prove '())) ( ( tokens) ( ( items) ( ((item ( items)) (token ( tokens)) ( ( () (check ( items) ( tokens) (attach! result ( item))))) (validate ( (change by reversal? ) ( ( (correct? item) ( item token)) () (error (change "Unable to be item ~a to token ~a" item token)))))) ( (( token) ()) (( token) (validate =)) (( token) (validate )) ( (error "Invalid copy " copy)))) (error (format "Unable to be pattern ~a for enumerate ~a" pattern match-list))) prove))) (match copy match-list) ( (check token item) ( (validate correct? ) ( ( (correct? item) ( item token)) item (error (format "Unable to be item ~a to token ~a" item token)))) ( (( token) item) (( token) (validate =)) (( token) (validate )) ( (error "remove pattern " pattern)))) ( check pattern match-list))

Forex Groups - Tips on Trading

Related article:
http://paste.lisp.org/display/50967

comments | Add comment | Report as Spam


"Re: [grails-user] webflow and validation" posted by ~Ray
Posted on 2007-11-27 23:20:15

Please raise an air and attach an app that demonstrates the problemCheersOn Nov 17. 2007 4:46 PM jjh <knoffhoff@gmx...> wrote:>> I'm trying to do something just like in the user command for webflows:>> on("submit") {> def p = new Person(params)> if(!p validate())> return error()>> } to "showSummary">>> Person is a domain-class.>> When the validate passes. I get the following error:>> "Could not acquire current catch some z's Session; nested exception is> org hibernate. HibernateException: No catch some z's Session bound to thread and> configuration does not allow creation of non-transactional one here ">> When I replace the !p validate() with false it works just fine.> When I change Person to be a CommandObject it works fine too but I can't> use validation right?> Tried this with 0.6 and 1.0 rc1>> What can I do?>> --> View this message in context: http://www nabble com/webflow-and-validation-tf4827104 html#a13810807> Sent from the grails - user mailing list collect at Nabble com.>>> ---------------------------------------------------------------------> To unsubscribe from this enumerate please visit:>> http://xircles codehaus org/bring home the bacon_email>>-- Graeme RocherGrails Project LeadG2One. Inc. Chief Technology Officerhttp://www g2one com---------------------------------------------------------------------To unsubscribe from this list please visit: http://xircles codehaus org/manage_email

Forex Groups - Tips on Trading

Related article:
http://archive.codehaus.org/grails/user/3f2c19a70711171242w6f1cd56ak69f33d7e39edbb18@mail.gmail.com

comments | Add comment | Report as Spam


"Looking for third party Test Lab who can validate web app security ..." posted by ~Ray
Posted on 2007-11-17 21:44:08

We are developing an internet based application which needs to negotiate all of the various firewalls proxies intrusion detectors packet inspectors and rate limiters of the world. It is expensive and impractical to try and deploy change surface a representitive sample of these technologies. What we would really desire to find is a Testing service with many of these devices in a lab and capable of testing our application against a broad spectrum of these devices to back up identify issues. Any pointers are much appreciated Hi stepehen,How are you doing today,We can definatly back up on this. Please displace the information in dilate to sriramch@rediffmail com. We are looking send to bring home the bacon with you in regards. My user id - sriramch@rediffmail com or please send me your telecommunicate address i would like you add to my network thanks and regardssriram Hello Stephen,We at Datamatics have a Independent Testing Validation center and are currently carry out numerous Testing projects across US. Kindly let me experience your contact information or give me a label on the following be so that we can discuss this on detail. Thanks Biplob Bora,Manager - International Business,Datamatics Ltd,Ph: 866-370-8210 xt : 2108

Forex Groups - Tips on Trading

Related article:
http://www.linkedin.com/answers/technology/web-development/TCH_WDD/130788-1391531

comments | Add comment | Report as Spam


"validate styleswitch" posted by ~Ray
Posted on 2007-11-09 22:25:18

Note: Regular member posting and registration is currently DISABLED as we move the forums to a new server. When this communicate disappears it means you're on the new server and can affix again. Thanks for the patience. 1) compose call: styleswitch2) compose URL (on DD): 3) exposit problem: how would i validate styleswiitch?this is the error output belowthankyou for your timealto---------------------------------------Validation Output: 2 Errors 1. Error lie 328. Column 21: required evaluate "challenge" not specified. <create id="switchform"> The attribute given above is required for an element that you've used but you undergo omitted it. For instance in most HTML and XHTML document types the "type" evaluate is required on the "compose" element and the "alt" attribute is required for the "img" element. Typical values for type are type="text/css" for <call> and write="text/javascript" for <script>. 2. Error lie 329. Column 47: there is no evaluate "onChange". …me="switchcontrol" size="1" onChange="chooseStyle(this options[this selectedI You have used the attribute named above in your document but the enter type you are using does not support that evaluate for this element. This error is often caused by incorrect use of the "Strict" enter type with a enter that uses frames (e g you must use the "Transitional" document type to get the "aim" evaluate) or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead). This error may also result if the element itself is not supported in the enter type you are using as an undefined element will undergo no supported attributes; in this case see the element-undefined error communicate for further information. How to fix: check the spelling and inspect of the element and evaluate. (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen enter type and/or use CSS instead of this evaluate. If you received this error when using the <embed> element to combine flash media in a Web page see the FAQ item on valid radiate. I would strongly discuss against using XHTML however. IE does not yet support XHTML and cannot display pages served as such. A lot of web designers have this terrible apparel of writing XHTML and then serving it as HTML (with a text/html content-type). This however isn't HTML (yes change surface if the validator says it is). What it is is remove HTML as bad as if your enter didn't validate at all. Instead. I suggest you fasten to HTML 4.01 Strict until IE gains XHTML give or possibly drop support for IE and configure your server to displace your XHTML as XHTML (with the application/xhtml+xml MIME write). Unfortunately however this often isn't an option on production sites. I would strongly advise against using XHTML however. IE does not yet support XHTML and cannot display pages served as such. A lot of web designers have this terrible habit of writing XHTML and then serving it as HTML (with a text/html content-type). This however isn't HTML (yes even if the validator says it is). What it is is invalid HTML as bad as if your document didn't validate at all. Instead. I declare you stick to HTML 4.01 Strict until IE gains XHTML support or possibly drop support for IE and configure your server to displace your XHTML as XHTML (with the application/xhtml+xml copy write). Unfortunately however this often isn't an option on production sites.

Forex Groups - Tips on Trading

Related article:
http://www.dynamicdrive.com/forums/showthread.php?t=24541

comments | Add comment | Report as Spam


"More "validate" methods on a model? in Programming Rails : Models ..." posted by ~Ray
Posted on 2007-11-03 15:48:15

I know that i can write my own custom validation writing an instance method like this in a model:def validate if label.. code. endendWhat if i wanted to write more than one validation or if statement in that method?I tried to write if statements one after the other in the validate method but i seems it doesn't work Using multiple ifs is no problem. Could you show us the code with multiple if statements that you tried? Using multiple ifs is no problem. Could you show us the code with multiple if statements that you tried? i simply use:def validate if instruct label end if condition 2 code end more ifs.. end.. i see that only the first if (instruct) is evaluated and it works correctly

Forex Groups - Tips on Trading

Related article:
http://railsforum.com/viewtopic.php?pid=38500#38500

comments | Add comment | Report as Spam


"Validate array of check_box_tag in Programming Rails : Models and ..." posted by ~Ray
Posted on 2007-10-28 13:17:52

<p><label for="affix_category_id">Category</label><br/> <% for category in @categories %> <%#check_box_tag(label value = "1" checked = false options = {}) check_box(object_name method options = {} checked_value = "1" unchecked_value = "0") %> <%= check_box_tag('post[category_enumerate][]' category id. @post categories collect { |obj| obj id } include?(category id)) %> <%= category name %><br>

Forex Groups - Tips on Trading

Related article:
http://railsforum.com/viewtopic.php?pid=38661#38661

comments | Add comment | Report as Spam


"Help me! C++" posted by ~Ray
Posted on 2007-10-23 17:17:19

You're currently browsing the C++ divide within the Software Development category of DaniWeb a massive community of 222,626 software developers web developers. Internet marketers and tech gurus who are all enthusiastic about making contacts networking and learning from each other. In fact there are 2,261 IT professionals currently interacting right now! If you are in the IT industry or are just a technology enthusiast you might find just what you're looking for in DaniWeb only takes a minute and lets you enjoy all of the interactive features of the site. Hey guys!CAn u tell me if my program is right?First. I need to get a Pkg and validate;Second,get month and validate;Third determinate max hours; *If FEB;Fourth get year and validate(1990-2020)analyse for leap yr. Fifth get hours and validate against maxhours;and calculate the bill ^^(month)I have 3 pkg PKG A = $12 monthPKG B = $18 " " " PKG C = $25 " " " Thank you!!Thx #consider <iostream>using namespace std;void main(){int mDays;int maxhours; char pkg = 'Z';cout<<"register pkg A. B or C: "; cin >> pkg; if( pkg == 'A'||pkg =='a' ||pkg =='b' ||pkg == 'B'|| pkg == 'C'||pkg =='c' ) { int month; cout<<"register Month 1 through 12: "; cin>>month;if(month>=1 && month<=12){int hrs; cout<<"Enter hrs: ";cin>>hrs;if (month==1||month==3||month==5||month==7||month==8||month==10||month==12){mDays = 31;maxhours = 744;}else if(month== 4 || month==6 || month==9 || month==11){mDays = 30;maxhours = 720;}else if(month ==2){mDays = 28;maxhours = 672;}else{ mDays = 29; maxhours = 696;} int yr; cout<<"register Year 1990 - 2020"<<endl; cin>>yr;if(yr>=1990 && month<=2020){if((yr%4)!=0) //move year{} }else{ cout<<" Year " << yr << " invalid "<<endl; }}else{cout<<"Month " << month << " invalid"<<endl; }}else{cout<<"Inalid pkg value"<<endl;}}//end main It almost looks desire you threw something out in the wind in the hopes that someone will fix it up for you. Clean up your label with indentation to mouth with so it's a little more legible. Then run it to see if you get the results you expect. alter off hand without spending to much time it appears the only measure leaps years ordain be evaluated is when the month is less than 1 or greater than 12. gratify enclose your next post in label tags. #include <iostream> using namespace std; int main(){ int mDays; int maxhours; char pkg = 'Z'; cout << "Enter pkg A. B or C: "; cin >> pkg; if ( pkg == 'A' || pkg == 'a' || pkg == 'b' || pkg == 'B' || pkg == 'C' || pkg == 'c' ) { int month; cout << "Enter Month 1 through 12: "; cin >> month; if ( month >= 1 && month <= 12 ) { int hrs; cout << "Enter hrs: "; cin >> hrs; if ( month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10 || month == 12 ) { mDays = 31; maxhours = 744; } else if ( month == 4 || month == 6 || month == 9 || month == 11 ) { mDays = 30; maxhours = 720; } else if ( month == 2 ) { mDays = 28; maxhours = 672; } else { mDays = 29; maxhours = 696; } int yr; cout << "Enter Year 1990 - 2020" << endl; cin >> yr; if ( yr >= 1990 && month <= 2020 ) { if ( ( yr % 4 ) != 0 ) //move year { } } else { cout << " Year " << yr << " invalid " << endl; } } else { cout << "Month " << month << " remove" << endl; } } else { cout << "Inalid pkg determine" << endl; }}

Forex Groups - Tips on Trading

Related article:
http://www.daniweb.com/forums/thread89730.html

comments | Add comment | Report as Spam


 

 




blogs - aa blogs - air force blogs - aquarius blogs - aries blogs - army blogs - arts blogs - baby blogs - blogs 4 men - blogs 4 women - cancer blogs - capricorn blogs - career change blogs - choice blogs - christmas blogs - cigar blogs - cigarette blogs - cig blogs - coast guard blogs - coffee bean blogs - college baseball blogs - college basketball blogs - college football blogs - colleges blogs - computer blogs - create blogs - dating blogs - elvis blogs - email chat blogs - email pal blogs - enhancement blogs - fall blogs - fha blogs - freedom blogs - friendly blogs - funny blogs - gambler blogs - gemini blogs - her blog - his blog - hockey blogs - join blogs - javas blogs - kid safe blogs - leo blogs - libra blogs - apartments blogs - coffees blogs - horoscopes blogs - life advice blogs - lover blogs - marine blogs - married blogs - military blogs - misc blogs - more money blogs - mortgage blogs - move blogs - movies blogs - musical blogs - navy blogs - new in town blogs - obscure blogs - online date blogs - online game blogs - over 30 blogs - over 40 blogs - over 50 blogs - over 60 blogs - over 70 blogs - over 80 blogs - over 90 blogs - password blogs - pc blogs - mortgages blogs - peoples blogs - pictures blogs - pipe blogs - pisces blogs - poems blogs - poker blogs - police blogs - political blogs radio blogs - read blogs - recreational vehicle blogs - relocation blogs - reserve blogs - rv blogs - safe blogs - scorpio blogs - singles blogs - smokers blogs - smoker blogs - state blogs - state college blogs - taurus blogs - teen advice blogs - teenager blogs - tobacco blogs - tv blogs - vacation blogs - veteran blogs - virgo blogs - virtual blogs - weekly blogs - wingman blogs - word blogs - words blogs - writer blogs - poetry blogs - prescription blogs - sagittarius blogs - straight blogs - summer blogs - gi blogs - hooka blogs - penis enlargement blogs - vfw blogs - casinos blogs - casino blogs - web hosting blogs - hosting blogs - auto blogs - truck blogs - van blogs - suv blogs - 4 wheel blogs - harley blogs - flu blogs - diet blogs - pistols blogs - teenage blogs - lpga blogs - burnable blogs - new tunes blogs - coaching blogs - treasures blogs - trades blogs - nutty blogs - skate blogs - play 21 blogs - weather blogs - poker players - golf blogs - american blogs - football blogs - baseball blogs - hockey blogs - basketball blogs - soccer blogs - cooking blogs - recipe blogs - space blogs - 3d games blogs - barbecue blogs




the validate archives:

11 articles in 2006-01
22 articles in 2006-02
27 articles in 2006-03
36 articles in 2006-04
27 articles in 2006-05
26 articles in 2006-06
24 articles in 2006-07
18 articles in 2006-08
22 articles in 2006-09
30 articles in 2006-10
22 articles in 2006-11
22 articles in 2006-12
12 articles in 2007-01
12 articles in 2007-02
3 articles in 2007-03
7 articles in 2007-04
11 articles in 2007-05
10 articles in 2007-06
3 articles in 2007-07
1 articles in 2007-09




next page


validate