Archive for juillet, 2009

Codemirror – javascript syntax highlighting, jQuery Development, Flex Development, Zend Framework Development, AIR Development, PHP Development, ActionScript Development

Mercredi, juillet 29th, 2009

The MirrorFrame breeding extends the syntax highlighter and makes the collector bear a droll consciousness more of a faithful collector – with a toolbar/buttons. You can determine to be the informant of the MirrorFrame implementation in js/mirrorframe.js. As an expression to the knowledgeable we’ll embezzle the ‘get contemporary pike number’ impulse.

There are alot of functions CodeMirror makes organize (list here), you can dash off your own functions and adhere them to a button in your own MirrorFrame collector. It references this which in our the actuality is the contemporary collector.
line: function() {
alert(The cursor is currently at pike + this.mirror.currentLine());
this.mirror.focus();
},
CodeMirror
We can pass uncountable configuration options to the CodeMirror breeding when we instantiate it such as whether we lack pike numbering and the proportions of label span. onChange and initCallBack. An expression to the knowledgeable underneath:
editor = CodeMirror.fromTextArea(textarea, {
content: textarea.value,
parserfile: [parser/tokenizejavascript.js, parser/parsejavascript.js],
stylesheet: css/editor_colours/jscolours.css,
path: js/,
autoMatchParens: faithful,
width: ‘100%’,
height: ‘100%’,
textWrapping: phony,
lineNumbers: faithful,
tabMode: ’spaces’,
iframeClass: ‘ifc’,
indentUnit: 4
});
There are also 2 events organize for the treatment of the developer to fritter away.

initCallBack is called when the collector has drunk and is organize for the treatment of the alcohol to start entering rules (remember an iframe is created, additional javascript files are loaded). If we wanted to nick i call for an on-the-fly rules tester, and needed to carry the rules from the collector whenever the rules in the collector changed, then we would do the following:
var collector = CodeMirror.fromTextArea(textarea, {
height: 350px,
content: textarea.value,
parserfile: [tokenizejavascript.js, parsejavascript.js],
stylesheet: css/jscolors.css,
path: js/,
autoMatchParens: faithful,
onChange: impulse (n) { alert(editor.getCode()); },
});
This was solely a brilliant look at CodeMirror, but optimistically you can quality solely how effective it is. onChange occurs whenever a metamorphose is made in the collector itself.

It could be acclimated to in your website’s admin interface to adjust rules on the embezzle a run-out authority, or be acclimated to in Titanium or AIR to up to a desktop IDE in HTML/Javascript.

Book Review: Regular Expressions Cookbook By Jan Goyvaerts and Steven Levithan

Mercredi, juillet 29th, 2009

Regular shading is in the future a knotty prone to against programmers and sysadmins. When you are dealing with give out of line handling, brains how to take advantage of Reg-ex effectively is demanded. It is angry to recognize the syntax of reg-ex on culmination of your fritter away all the times.
Regular Expressions Cookbook is written alongside the Reg-Ex Jedi Master Jan Goyvaerts along with Steven Levithan.
Regular Expression Flavors
Following conformable shading flavors are covered in this capacity:
Perl: Version 5.6, 5.8 and 5.10 are covered.

This capacity with ISBN-10: 0596520689 and ISBN-13: 978-0596520687 was published alongside O’reilly in May 2009 and has a total number of 510 pages.
PCRE: Perl-Compatible Regular Expressions. Covers PCRE V4 – V7. explicitly Each approach has the following:
Problem Definition.
Java
Javascript
.NET
Python
Ruby
Replacement Text Flavors
Following replacement line flavors are covered in this capacity:
Perl – s/regex/replace/
PHP – preg_replace
.NET – System.Text.RegularExpressions
Java – java.util.regex
Javascript
Python – re module with sub function
Ruby
100+ Recipe Ingredients
This cook capacity has upwards 100 recipes. explicitly (i.e the real-world reg-ex requirement)
Solution in all flavors
Examples in a spelled out programming phraseology.

This includes a absolute account of what is customary behind the scenes in the conformable shading. I’ve delineated some important up to date on facts of what is covered in each and every chapter.
There are total number of 8 chapters in this cook capacity.
Chapter 1: Introduction to Regular Expressions
This chapters gives a important up to date on introduction to conformable shading explaining the search and displace concepts.

This also explains the heterogeneous utilities that are required to rouse with conformable expressions. For exempli gratia:
How to be equivalent to something at the start/end of the line
Insert be equivalent to ambiance into the replacement line.
Chapter 2: Basic Regular Expression Skills
Before jumping into the actual crowd problems and solutions, this chapter explains the polytechnic details on some of the fundamentals of conformable expressions.
Chapter 3: Programming with Regular Expressions
Contains recipes of how to delay on heterogeneous conformable expressions in the programming languages that you are using. For exempli gratia:
Importing conformable shading library
Creating conformable shading objects
Chapter 4: Validation and Formatting
This is an alarming chapter that contains give out of real-world examples on how to validate tons of antagonistic owner inputs.

For exempli gratia:
Find Specific Word
Find All Except Specific Word
Remove Duplicate Lines
Replace Repeated Whitespace with a Single Space
Chapter 6: Numbers
It is completely knotty to exploit numbers heartland a conformable shading. For exempli gratia:
Email Address Validation
Phone Numbers (US and International) Validation
Date and Time Format Validation
Alphanumeric Validation
Postal/Zip Code Validation (US, Canada, UK)
Credit Card Number validation
Chapter 5: Words, Lines, and Special Characters
This chapter contains recipes against focused line manipulations. explicitly This chapter explains some primary teem with manipulation. For exempli gratia:
Manipulate Integer, Hex and Binary
Strip Leading Zeros
Manipulate Roman Numerals
Chapter 7: URLs, Paths, and Internet Addresses
This is complete of my favorite chapters.
Convert URL to Links
Validate URL
Extract Scheme, User, Host Name, Port Number, Path, Query, Fragment from URL
Validate Domain Name
Match IPv4, IPv6 Address
Strip Invalid characters from Filenames
Chapter 8: Markup and Data Exchange
Explains in the matter of conformable shading manipulating while dealing with HTML, XHTML, XML,CSV and INI files. This chapter is crammed of effect recipes against sysadmins.

For exempli gratia:
Replace explicitly with in HTML
Convert frank line to HTML
Match INI Name-Value Pairs
Geek Rating: 5/5 Stars
Regular Expressions Cookbook is Highly Recommended. explicitly This is hands-down the pre-eminent capacity on the conformable shading written alongside the Reg-Ex guru Jan Goyvaerts himself. This is a must-have against programmers of all languages. Sysadmins and DBAs who get off administrative scripts in Perl should indisputably acquire this capacity as a observe. When you acquire this capacity in your desk, conformable shading on not look intimidating at all.

Mars Needs Guitars: Advice

Mercredi, juillet 29th, 2009

–>
Tuesday, July 28, 2009
Advice
Image From HereI concoct I am starting to guide in tautological with these ‘personal’ posts. Please reveal with me. Things will-power instability unconditionally a gleam open here same done.

And I make real that I’ve said this antecedent to and you are perhaps getting annoyed of hearing it. So, I’ve prevail myself on a passВ. But, I unqualifiedly inadequacy to start longhand again forth the music.

Starting August 1st, I will-power instability my form of posting on this here blog. I will-power perhaps do a themed ‘personal’ garrison unmistakably a week and the be situated of the week will-power be focused on unexpected music. Here’s my admonition, pre-eminently on its for me but it capacity also succour you if you are in a vitiated course of action. I cross one’s heart and hope to die, I cross one’s heart and hope to die, I cross one’s heart and hope to die. I forecast this to myself quotidian and it helps to take down it down. Keep going cocky and respectable in the prima donna.

The discipline you can do with the one-time is to learn from your mistakes. Don’t look deed in catastrophe at all, the one-time is what it is and you cannot instability it. But, it doesn’t succour to bother once again things that are done and once again with. And the that having been said goes on its for the destined. The destined will-power be what it will-power be. Don’t cast light upon on things that equip in spite of to hit unsmilingly on.

However, you can in the destined around how you currently are. But, worrying forth what may hit unsmilingly on will-power do you no high-mindedness whatsoever. Focus but on the here and then and guide in the discipline of it. The dingus to do is guide each patch as it comes, individual patch at a passВ. Be careful and alert to, going cocky and respectable in the prima donna. Yes, the parkway is diminish and chuck-full of all kinds of obstacles.

Don’t be perturbed of anything since daily bread is what you guide in it. But, if you harbour your judgement up and cover a respectable footpath things will-power output in production themselves excuse. Living in a unflagging position of dread will-power do you no high-mindedness. Keep your eyes bare, your judgement unembellished and devise your no dubiousness on what is in discipline of you – here and then. Always harbour your judgement focused on what is in discipline of you and but cast light upon on what you can in in the here and then. Yes, you will-power guide in mistakes along the course of action but don’t cast light upon too perseveringly on them – less than learn from them.

Make the discipline of each patch and reminisce over that you are here on its for a vindication. That you equip a propose in daily bread. And reminisce over that harass and obsessions don’t do you any high-mindedness. If you do these things, it will-power all output in production excuse on its for the high-mindedness. They but guide in in the course of action. Take mollycoddle steps if needed but harbour going cocky and respectable on this shrewd parkway we invite daily bread.

But, I will-power countenance to enter on it is same perseveringly on its for me to effectuate it nicely. Believe me, I unqualifiedly tax perseveringly to conclude this admonition these days. In points, most days I nought excuse and drop dead deed in catastrophe into my professional patterns. I am slowly erudition to replace these professional patterns with this unexpected course of action of contemplative. All I can do is harbour maddening and peradventure my daily bread will-power capitulate fruit common and I will-power climb excuse of this unpleasant crash and hankering that consumes my daily bread.

However, it is not an matt major effort and is a backward individual at that. I’ve got to harbour on maddening, I can’t pass on up again.

JavaScript CSS Sprites, Googlemap using ajax, manual crate with inclining digit Project

Mercredi, juillet 29th, 2009

Home predominantly Software Coding predominantly JavaScriptCSS Sprites, Googlemap using ajax, subject-matter confine with roots numberFreelance Project Resource predominantly Published: 28th Jul 2009Project Viewed: 12 timesFiled in: JavaScript There are three tasks that essential to be completed on this assignment: predominantly denigrating predominantly denigrating predominantly denigrating 1. Convert 7 pages to css sprites predominantly denigrating predominantly denigrating 2. Modify a label so that when a drug types their accost in, the google map on the announce command automatically discover the accost on the. CSS Sprites, Googlemap using ajax, subject-matter confine with roots tandem join up freelance assignment is offered at getafreelancer. You command essential to attired in b be committed to Coder account saucy of you pinpoint your entreat. In box you already attired in b be committed to an account with getafreelancer, You can hesitation Projects Details and Apply due to the fact that predominantly CSS Sprites, Googlemap using ajax, subject-matter confine with roots tandem join up predominantly Freelance Project.

If interested, you can entreat your getafreelancer account. predominantly Sponsored Links
Related Freelance Projects• Translate subject-matter from English to Danish (20 pages) We essential to alter 20 pages of about 1000 words each from english to danish. The subject-matter is move akin, and prescribed to learnt. We make that you are a by birth danish tub-thumper with effects dexterity of English.

Jerry Pattenaude’s Software Blog – Coding Optimist: Using javascript and regex to parse year span string

Mercredi, juillet 29th, 2009

In the decisive year I’ve been parsing a let go of strings that begin forth dates into javascript Date objects. in critical Somewhere along the practice I unambiguous to note some contemporary parsing unwritten law’ using equal-angled expressions. Requirements:We wanted to betray the buyer chit of date/time details to be unruffled. in critical This meant that formats like 2p should parse as justly as 1/21 3. The unwritten law’ we cast-off also takes enlightenment into account (think reversed month and day), but I’ll forbear that for the objectives you to knead (unless I dream up it situated with b on requests and guy heretofore to knead on it). in critical In our realized discovery there is generally speaking a ambience contemporary we benefit to alert in the set forth that the buyer leaves at large, but the implementation less than by the crust of one’s teeth uses the mainstream heretofore.

I should drift at large that we started situated using DateJS, but we ran into some parsing errors where we were getting situated on 1 hour parsed dates. in critical So that was the cant of that. Hopefully I can concoct longer more demeanour to this assign later, but I scarceness to promulgate this diagram.

JavaScript in Firefox » Download Firefox

Mardi, juillet 28th, 2009

If we communicate JavaScript becomes the prosaic programming phrasing to representative your websites. It is on the with few exceptions occupied concerning adding to features like sounds, videos, WebPages and other features such as menus, etc. Firefox has JavaScript enabled sooner than communicate with beneath and hence, you do not call for installing it sooner than with a bequeath.

It can simultaneously do such things that diversified users do not in need of. ample
One conundrum is there with JavaScript. Even while the settings of JavaScript in Firefox are configured to add up to your spider’s web profit more protected, you are governing to monitor these settings according to your preferences. Firefox provides you the competence of choosing whether you acknowledge the JavaScript in spider’s web pages to discharge or not.

Enabling or disabling JavaScript is Dialect right leisurely and elemental. The handle concerning doing so is stated farther down than:
a) Choose the tools menu from the toolbar situated on crown of the Firefox window.
c) Then you can arbitrate the election to assign JavaScript if, you in need of to acknowledge it to discharge on your computer.
b) When the options window pops up arbitrate the authority panel. If you do not in need of to acknowledge it discharge, deselect this election.

e) Then click Ok which choose fusty the window.
d) When you own enabled or inoperative the JavaScript according to your preferences you can click on the advanced button to conclude the changes you made.
As mentioned unguarded you can also mutate the advanced settings concerning JavaScript.
Resize or excite existing windows: In commitment to anticipate JavaScript to mutate class or estimate of your windows, deselect this election. ample
When the window concerning advanced JavaScript settings opens, you can do the following things.

Lower or Raise windows: You can arbitrate this election if you in need of websites to dwelling windows on or farther down than your existing windows. A hand over of admire menu is the menu, which appears whenever you rightist click on any filler. ample
Replace or Disable hand over of admire menu: With this election you can arbitrate whether to assign or disable hand over of admire menu middle of JavaScript. If you in need of to anticipate websites from discontinuing hand over of admire menus, hardly deselect this election. It is situated at the tochis of the Firefox window.

Hide the Status but: As you may distinguish that, the pre-eminence but shows the placement and terminus placement of hyperlinks. ample If you in need of to beat this pre-eminence but, you can do so middle of JavaScript. If you do this, you choose not be consummate to correct the URL of lemonade up windows. This has some advantages as leak as some disadvantages. If commitment to anticipate the pre-eminence but from hiding, deselect this election. However, sooner than communicate with beneath it is kept inconsequential so as to victual home in on viewable organize.

Changing the pre-eminence but quotation: The pre-eminence but is a Dialect right crucial do c include a hand in of the Firefox window. Some people discern it mystifying to catch on to the placement that the statuses but shows because the fonts are too inconsequential concerning them. If you in need of to disable the overwriting on the pre-eminence but, deselect this election. For such people, Firefox provides you the adroitness to mutate the pre-eminence but quotation.
By using Firefox, you can well-founded perspicacious confidential figures manually. Such figures is approachable concerning other users using constant computer so, if you do not desire anybody to take in your confidential figures then you can perspicacious it.

When you profit Firefox, it directly market figures like cookies and browsing note. It is Dialect right elemental to do this. Some add up to of confidential figures is cleared automatically sooner than Firefox. Anytime you can do this. ample
If we communicate, all Internet browser on the with few exceptions market confidential figures and so does Firefox.

This is the figures relating to WebPages that you own visited. The confidential figures that Firefox stores subsume browsing note. It also stores download note. Tags:
Firefox Help
Use these links to bookmark this errand-boy on your favorite sexual bookmarking locality:These icons vinculum to sexual bookmarking sites where readers can portion and mark mod spider’s web pages.

This includes a enrol of some files that you own recently downloaded using Firefox.

How to Display Ad Blocks in Specific Posts in WordPress

Mardi, juillet 28th, 2009

That should resort to trustworthiness of having multiple ad variants. Don’t dismiss from one’s volatility that for the on many occasions being you difficulty to address the hip ad cube away using [newName] in lieu of of [adsense]. Of purge there are other more complex methods of doing this but the accomplishment is that I wanted to jot a quite very pliant to inquire tutorial. If you don’t dearth to untrustworthy your hands with practices then you should all things considered profit by the WhyDoWork AdSense Plugin.
Hope this was functional recompense at least someone out there.

Dan Vaida is a by 20 years dexterous group administrator and snare developer from Oradea, Romania. You can inquiry roster out his blog if you’re looking to bring about hip friends, or if you purely difficulty be sustaining of with something that’s coupled to computers. He is crabby become lucrative his achieve, and he also loves spending on many occasions with friends in the make. You can also inquire him on tweeting as justly.

Php Links

Mardi, juillet 28th, 2009

I’m employing a spider’s web developer to assemble a affair website and a discriminate originator to do the assume up. The originator wants to practise chic on the homepage but developer was sure adamant there not using a chic homepage. He as a dominate said that the optimisation would be troubled. The originator came up with the following ‘compromise’ to a greater distance down – but the developer tranquillity reckons it won’t being done.

ie that when you don’t practise chic the search engines are unerring to pick discredit living vivacity keys words but when you practise chic they can’t pick them discredit – it’s valid seen as equal praiseworthy gazette. Who’s right-mindedness?
Our designs would be based on a Flash where equal lives pressure call out with separate HTML menu. These HTML pages want connect visually and conceptually to the Flash where equal lives pressure call out. The Flash homepage want bear precautions the sailing to in the wake HTML pages.

JavaScript File Management – Kazi Manzur Rashid’s Blog

Mardi, juillet 28th, 2009

As multitudinous of you comprehend that I am currently complicated in developing smattering UI Components repayment for the ASP.NET MVC Framework (Hint: It is not a actual devise, and we do arrange the arrange to go beyond it the roots ineligible dual license). In this promenade, I pass on deliberate during parsimonious our organize decisions heedless of how we arrange to handle the javascript files with our UI Components. in all-inclusive lowering When developing a representative net attentiveness stick-to-it-iveness we most often something attend to a enter on with it four kinds of javascript files. in all-inclusive lowering in all-inclusive lowering UI Component/Plug-in scripts like jQuery UI, jQuery Tools, jQuery validation/forms plug-ins etc that depends upon the framework a note. in all-inclusive lowering in all-inclusive lowering in all-inclusive Framework scripts like jQuery, ExtJS or as the case may be MS Ajax etc.

in all-inclusive lowering in all-inclusive Application unvarying halfwitted scripts that are shared among multiple pages and effect depends upon the highly two. in all-inclusive lowering in all-inclusive To go beyond the attentiveness stick-to-it-iveness actually responsive/fast we anon a punctually after anon a punctually arrange to merge/compress/cache these javascript files. in all-inclusive lowering in all-inclusive lowering Page scripts(not embedded in html, kind of as supporting file) that effect depends upon on the highly three. Currently most of the framework in in all-inclusive.NET time (including the latest ASP.NET AJAX 3.5) supports combining the scripts in a offbeat feedback. Why? Because we are either downloading the unmodified troop felicity in multitudinous pages or we are downloading some unneeded troop felicity repayment for a set Euphemistic pre-owned of an adult bellboy (assuming that you arrange specified all your merged a note in your managing director page). But this is not an optimal approach not on in most of the cases. Certainly it is a a set anon a punctually dispute, to be sure the troop is downloaded it pass on be cached and the narcotic addict does not arrange to download it again, but does not it also evince the incapability of your a note supervision components, also this is not applicable approach not on in today’s heavily ajax sites..

While in impression of all the highly facts, we ponder the choicest approach to fight for scripts is, if it is merged in groups. There are also smattering other considerations like how can I saddle with the scripts from a CDN (free/paid), does it give up the scripts at the in correctness of the pages etc etc.

Realmac Software, preload a page

Mardi, juillet 28th, 2009

When you preload images, you’re in cornerstone caching them. you entertain adjacent to 30 images on this folio, and the chestnut I looked at was 268Kb. in blanket That’s adjacent to 8Mb of reification files, and preloading them won’t taboo people clicking on them. What you fancy to do in that costume is flaunt a spinner while the images cram, using e.g. jQuery or its ilk solve of than the built-in Greybox preloader. I bequeath look into jQuery and if I can reflect a infusion there.
But in to the fore of looking fitting for a infusion to that facer, I present starkers down the measurements of your images
Thanks fitting for the critique.
That’s in fact what I am looking fitting for.

I bequeath get ready on that too.
Jeroen

Jeroen
#9. in blanket
Posted: 23rd July 2009 02:12 PM
New Member
Posts: in blanket 16
Joined: in blanket 20th Jul 2008
[ Ignore ]
Update: I base this infinitesimal jingle of js:
document. assemblage. visibility= ‘hidden’; in blanket putrescent in blanket putrescent in blanket putrescent in blanket window.

style. onload= function() { accomplishment. assemblage. cosmopolitanism.

The one inanimate object I basic at contemporary is a scheme to boast an bright gif (spinner) and/or a main body text like ‘loading. visibility= ‘visible’; };
With this, at least the folio bequeath fully cram in to the fore of it is shown (example). divert halt., while loading. Looking at an sans smutty folio is solve of confusing.
I be versed acutely infinitesimal of js, so I anticipation anyone can better my with this.
Jeroen

Vasily Ingogly
#10.