Workaround: simplexml_load_file() [<a href='function.simplexml-load-file'> function.simplexml-load-file</a>]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0

This error comes up when you are trying to include external address and config properties in php.ini named allow_url_fopen allow_url_include are set to Off. Similar error may occur when using file_get_contents function. So you will need to edit your php.ini file to set them on as shown belo: allow_url_fopen = 'On' allow_url_include = 'On' But beware this could lead to CSRF (Cross-site request forgery) attacks. You can read more about these settings from here http://phpsec.org/projects/phpsecinfo/tests/allow_url_fopen.html If you still need to use these settings and do not have access to your php.ini (this is a likely case with shared hosting). You can use .htaccess file to override the default php.ini settings. One workaround without touching the allow_url_fopen and allow_url_include settings is to use curl and fetch the output to simplexml_load_string() function This is how its done And thats pretty much what you need to do. I hope this helps. … [Read more...]

Illustrator CS5 Cheat Sheet PDF

Hi Guys I was contacted by Anthony of Wells and Drew to let me know that they've put together a Illustrator CS5 Cheat sheet or in other words a short cut list for windows and MAC OS. So I am sharing the same list with you. You can also download the PDF file if you wish for this Cheat Sheet. You can also download the PDF by Right Mouse Click > Save Target As {filelink=6} I would like to thanks Wells and Drew for putting this cheat sheet together. Source: http://www.wellsdrew.com/education/illustrator/ … [Read more...]

html as php .htaccess

So with my shared hosting I had this trouble where I have to include a bit of php code inside the actual html file, but the web server won't process it be most web servers are configured specially on shared hosting to treat ".html" files as HTML (no dynamic code gets executed except SSIs if they are configured) and files ending with ".php" as PHP. Now what if you have to process html file as php or run a php code inside your html file. Luckily with apache we have .htaccess file available which is there to override the default setting in your httpd.conf file. Ok now lets see what you can do to execute html as php. In your .htaccess file copy paste the config setting below The above setting will work if the apache is picking php as a module. what if apache is executing php  as CGI? Then add the line below to your .htaccess file You can apply the same technique to treat other file extensions to be executed as php, for example if you want to use .cgi or .aspx or .jsp as your file name extension then you could do something like this to To master .htaccess you must read this article as a starting reference point http://httpd.apache.org/docs/current/howto/htaccess.html If you are using php 5 then you could also try the config options below and same applies to php 5 running as cgi, rather than using AddType use AddHandler as shown below End of the day it all depend on where you are hosting your website and what recommendation your host makes about this. For people who are using cpanel with php 4 and 5 most likely this will work and when php runs as cgi replace AddType with AddHandler   I hope this helps         … [Read more...]

How to convert textfield to date picker ExtJs 3 (update on ExtJS 4)

Its really that simple with ExtJS 3 but in ExtJS 4 the case is otherwise. Alright I will show you how this is done below, but first up I would like to tell you that there is a good book on ExtJS which I highly recommend. This book is on the right hand side of this post. This book covers lot of basic to pro stuff and you will find it really handy. So now that I have told you about a really good book its time to get back to the point. Sencha has changed a lot of stuff from Extjs 3 to Extjs 4. So lets concentrate on Extjs 3 for the time being. lets first of all see how to do this in ExtJS 3.x say you have a text field as below I will add another property to the above textfield as shown below This is done just to get hold of this element and other similar one on the same page ExtJS code looks like this So the code above will work through all the input text fields where it is able to find "rel" attribute with value of "dpicker" So the above code works (hopefully :)) With Ext JS 4 applyTo property has been removed and as of writing I am not aware if similar thing can be without modifying some core Ext JS files which off course I would not like to do. You must read this http://www.sencha.com/forum/showthread.php?158065-add-applyTo-to-Ext-4.1 For a container based content usage contentEl serves great. This config option is used to take an existing HTML element and place it in the layout element of a new ExtJS component. I hope this helps If there is an update that you are aware of, help the community by sharing. Cheers   … [Read more...]

Flex Mobile – Preventing the Back Button Event Android

Hi Guys, There are many occasions when you would like to prevent or override default back button event for android devices. One of them is say when your present user with a login screen and they log in successfully and then you push a target view to the view stack, what if someone press hardware back button? Some questions that may arise in this situation is if you are offering in built session support or something equivalent to "remember me" functionality what happens? I guess user log-in View is shown again because the hardware Back button behaves a little bit different to your in view "popView" handler. To prevent the default Back button event is really simple? Override backKeyUpHandler  function of your ViewNavigatorApplication Here is how its done: In your application main file enter the following code Above code is enough to stop default event to occur. Even better what If you would like to ask your user a question (when they hit hardware back key say) "do you want to Exit this application?" how you go about this? Lets find out how? To start with create a SkinnablePopUpContainer and save it as PopUp.mxml under your components package or may be anywhere you like. Now edit the overridden  backKeyUpHandler function to include this code and thats it you get the following result                   I hope this helps. If it does answer your question please leave your comments as a feedback, Ta!   Cheers … [Read more...]

Ik Kudi pinky Moge wali, Kalol Kardi, kolaveri in punjabi mp3

Oh well punjabi version is here and is very exciting.. listen to it below. well done guys: very enjoyable :) If you are feeling little bored then Play some online games dude :) Check this awesome website out   I am sure you will enjoy this website. Now lets get back to Kolaveri :) BTW: kalol in punjabi means "frolic: Playing and moving about cheerfully, excitedly, or energetically, also could be used for flirting", and pinky is name of a Girl moga is town in punjab india If video below does not display please refresh your browser either by pressing F5 or CTRL+R.   I like the very last line :) balle balle balle balleee yaar taan theke chale :) I've put in the mp3 of this file If you wish to download   I am going to stop offering mp3 download of this song soon, so much bandwidth is going towards this song :) when the number of downloads hit a set limit thats pretty much it. If you wish to extend that counter do leave a genuine comment. Every comment will extend the download limit by 5. God knows how am I going to recover the bandwidth :)  but nothing more than sharing with punjabis across the world :). If you already have lyrics for this song then leave them in comments as I am still working on that so it would be great if someone can share. This song has potential to become a good party ringtone. I've started work on Lyrics now hopefully will complete soon :) here is some of it Yo boys! I am sing song punjabi song Ghaint song Ikk kudi pinky moge wali kalol kardi Ikk kudi pinky moge wali kalol kardi O mast eyes mast smile Jareya ni janda ohda vakhra style white top toppp black jean not cleann Ho Ikk kudi pinky moge wali kalol kardi di di di Ikk kudi pinky moge wali kalol kardi di di di di Oh Muma kehnde sadi kudi ni changi papa kehnde kitte jani na ehh mangi OO jis ghar jau othe aa jaougi tangi Stay tuned for more soon.... Download is members only now. Register and you should be able to … [Read more...]

extjs 4 new window auto loader

Ok so here is the deal about creating Windows in Extjs 4. I have been using Ext for few months now and still find it hard sometimes to get hold of the right information. Sencha has done a really good job with E4 but I guess there is more to be done in field of documentation I would guess. May be something like "how to guides" with common problems could be exciting to have. Yesterday I ditched Ext 3 in favour of Ext 4 and realized that again its not that simple but it becomes simple when you get hold of right thing from somewhere buried deep down the Sencha APIs. I had a requirement today to work on Ext Js window, Well the example on Sencha website (http://docs.sencha.com/ext-js/4-0/#!/api/Ext.window.Window) was a good starting point but more examples need to be added. The question is how to load content from somewhere on your server to the window you've just created following the example above So here is how I managed to do it loader property above is instance of ComponentLoader , because its an Ajax call to load content from the URL so you can also handle success and failures of that call as shown below There are many other options that could be handy but it all depends what your final requirement is. On a side note: The most likeable thing (animation oriented) about Ext window is that I can animate the opening of window, just set a unique ID to your anchor, or button and then simple add the following property to your window object I hope this helps     … [Read more...]

What does why this kolaveri di means: Full song and lyrics

Interesting song lyrics where nothing really make any sense :), really really great music though. Another Video doing round nowadays Why this Kolaveri di? means "Why This Murderous Rage, Girl?" Soup in this song means: Failure, Flop Bouv means "a Girl" Lyrics for Kolaveri are below: yo boys i am singing song soup (failure) song flop song why this kolaveri kolaveri kolaveri di why this kolaveri kolaveri kolaveri di rhythm correct why this kolaveri kolaveri kolaveri di maintain this why this kolaveri..di distance la moon-u moon-u moon-u  color-u  white-u white background night-u nigth-u night-u color-u black-u why this kolaveri kolaveri kolaveri di why this kolaveri kolaveri kolaveri di white skin-u girl-u girl-u girl-u heart-u black-u eyes-u eyes-u meet-u meet-u my future dark why this kolaveri kolaveri kolaveri di why this kolaveri kolaveri kolaveri di maama notes eduthuko apdiye kaila sax eduthuko pa pa paan pa pa paan pa pa paa pa pa paan sariya vaasi super maama ready ready 1 2 3 4 whaa wat a change over maama ok maama now tune change-u kaila glass only english.. hand la glass glass la scotch eyes-u full-aa tear-u empty life-u girl-u come-u life reverse gear-u lovvu lovvu oh my lovvu you showed me bouv-u cow-u cow-u holi cow-u i want u hear now-u god i m dying now-u she is happy how-u this song for soup boys-u we dont have choice-u why this kolaveri kolaveri kolaveri di why this kolaveri kolaveri kolaveri di why this kolaveri kolaveri kolaveri di flop song I hope you'll like this If you do don't forget to share … [Read more...]

Flex mobile app portrait landscape only single orientation

So guys there are times when you want your flex mobile application to be either in portrait OR landscape orientation. The reason why we want to do it this way can be many. Lets see how its done In your Adobe AIR Application Descriptor File XML file Look for XML element called initialWindow. Under this element if not already uncommented, uncomment aspectRatio and autoOrients elements For landscape use this and for portrait use this   I hope this helps … [Read more...]

Flex mobile – how to open email, contact, url, punctuation keyboard keypad on textfield focus

One of the coolest features of Flex SDK 4.6 comes in form of Soft Keyboard types. There are few of them as stated below contact default email number punctuation url All of them serves specific needs, say for example if you accept user email addresses from within your mobile app then its a good move to show a specific keyboard just for that purpose. so how is it done? Flex SDK introduces a new class called SoftKeyboardType. You select the keyboard type with the softKeyboardType  property on the text input control. example is shown below as to how we can make use of the soft keyboards Also if you would want to force user input to be in capital letters only then you can set another helpful property "autoCapitalize" to true,  You can also check for spelling setting the property autoCorrect to true. so the above code can be re-written as below You can read more about the Soft keyboards here http://help.adobe.com/en_US/flex/mobileapps/WS82181550ec4a666a39bafe0312d9a274c00-8000.html#WS19f279b149e7481c-33fab5fe1331cc6b62f-8000 I would also recommend this article written by Holy Schinsky http://devgirl.org/2011/11/29/flex-mobile-development-flex-4-6-cool-new-soft-keyboard-features-sample-w-source/ All in all I am loving the soft keyboard types introduced in Flex 4.6 If you have any question please share with everyone by leaving your comments I hope this helps   Cheers             … [Read more...]