TheStyle Logo Subscribe to the RSS feed
  • Home
  • Apple
  • Business Intelligence
  • Css
  • Inspiration
  • Java
  • Javascript jQuery
  • MySQL
  • Oracle
  • PHP
  • SAP BO Data Integrator
  • Snippets
  • Terminology
  • Tip of the day
  • Tutorial
  • Unix
  • Web Development
  • Wordpress
  • Yii Framework
Home » Snippets
Change the download file name with html5
  • Snippets
  • Web Development
May14

Change the download ...

posted by xav

Sometimes your web application generates, on the fly, downloadable files with really horrible file names. You can use the html5 download attribute as a remedy ! Just like this : <!-- will download as "expenses.pdf" --> <a href="wtfreallybadassname9ad8f.pdf"...

»»
Active Telephone links in webpages
  • Snippets
  • Web Development
May14

Active Telephone lin...

posted by xav

If you’re a smartphone user, you might get sensible to websites making phone numbers directly usable by the phone on the webpage. it’s quite simple to code a phone sensitive link. Use this : <a href="tel:1-555-555-555">call me directly</a> Some phones or...

»»
Oracle simple delete duplicates
  • Oracle
  • Snippets
Dec19

Oracle simple delete...

posted by xav

Well, this is a fine statement to delete duplicates in a table : DELETE FROM table1 A WHERE A.rowid > ANY ( SELECT B.rowid FROM table1 B WHERE A.ID = B.ID and any additional condition ) and other conditions on...

»»
Get your Oracle DB character set
  • Oracle
  • Snippets
Oct05

Get your Oracle DB c...

posted by xav

Here goes one fine and simple SQL statement to get your character set from your Oracle DB. SELECT * FROM nls_database_parameters WHERE parameter = 'NLS_CHARACTERSET' That’s it.

»»
WordPress Quick tip : shortcodes in widgets
  • Snippets
  • Wordpress
Jun29

WordPress Quick tip ...

posted by xav

If you want to be able to use shortcodes in widgets, like a text widget for example. Make sure to have this line somewhere in your functions.php file (in your theme). <?php //line to enable shortcodes in widgets add_filter('widget_text', 'do_shortcode'); ?>

»»
Mysql Replace function
  • MySQL
  • Snippets
  • Tip of the day
Jun07

Mysql Replace functi...

posted by xav

Here is a quicky to replace a string inside a column: update yourTable set theColumn = replace(theColumn,'oldString','newString')

»»
Quickly remove folders with Unix command
  • Snippets
  • Unix
May24

Quickly remove folde...

posted by xav

Lately I did wanted to remove efficiently all .svn folders (yes..from svn) inside a project with tones of folders and sub folders. Here under is the command I used. But before trying it, be sure to be in the right root folder from where you want to remove the .svn folders. The trick here is to...

»»
BODI : Get the tables of DataProvider Owner
  • SAP BO Data Integrator
  • Snippets
Mar29

BODI : Get the table...

posted by xav

Imagine you have to provide a list of tables (I mean, an editable one…that you can copy paste…) used by a dataprovider’s owner. If you can get connected to your SAP BODI repository you could use this request: select distinct descen_obj from AL_PARENT_CHILD where...

»»
Purify your inputs in Yii
  • Snippets
  • Yii Framework
Feb29

Purify your inputs i...

posted by xav

When working with my models in Yii a tried to inject a javascript in a text area, a simple alert. And the alert popped up when I went to browse the content of my model. Hopefully, we can prevent javascript injection, and more by using a php library called HTMLPurifier. Yii does include this...

»»
PHP and Oracle
  • Oracle
  • PHP
  • Snippets
Feb08

PHP and Oracle

posted by xav

Here goes a tiny snippet that should get you started by using Oracle as your database instead of the classic MySql RDBMS. <?php // At first, get connected to the instance of your RDBMS $conn = oci_connect("user", "password",...

»»
Debug the Hard Way
  • PHP
  • Snippets
Feb07

Debug the Hard Way

posted by xav

Sometimes you just need plain debug on an environment where you do not control the PHP settings. To be able to see what is going wrong in your PHP page just add the following code in the head of your page. <?php error_reporting(E_ALL); ini_set('display_errors',...

»»
  • Recent
  • Popular
  • Random
  • Change the download file name with html5 Change the download file name with html5 Posted by xav on 14 May , 2013
  • Active Telephone links in webpages Active Telephone links in webpages Posted by xav on 14 May , 2013
  • Yii extensions Yii extensions Posted by xav on 13 May , 2013
  • Yii: Multilingual simple approach Yii: Multilingual simple approach Posted by xav on 17 Sep , 2012
  • Yii: Use themes Yii: Use themes Posted by xav on 22 Jun , 2012
  • HUMANS.txt HUMANS.txt Posted by xav on 9 May , 2012
  • Purify your inputs in Yii Purify your inputs in Yii Posted by xav on 29 Feb , 2012
  • Custom theme Widget Zones Custom theme Widget Zones Posted by xav on 13 May , 2013

Series

  • Beginning with Yii (7)
  • MySQL Procedures (1)

Categories

  • Apple (1)
  • Business Intelligence (1)
  • Css (1)
  • Inspiration (2)
  • Java (1)
  • Javascript jQuery (1)
  • MySQL (2)
  • Oracle (7)
  • PHP (5)
  • SAP BO Data Integrator (1)
  • Snippets (11)
  • Terminology (2)
  • Tip of the day (19)
  • Tutorial (4)
  • Unix (1)
  • Web Development (11)
  • Wordpress (4)
  • Yii Framework (6)

Advertisement

myows online copyright protection

RSS FifteenPeas Blog

  • Know your market !
  • Webfonts : Expand your typography stacks
  • DOTCLEAR : a WordPress alternative
  • Silverstripe : the CMS from New Zeeland.
  • The Setup: What do people use to get stuff done?

Series

  • Beginning with Yii (7)
  • MySQL Procedures (1)

Web Development

  • Smashing Magazine Best Web Design and development resource ever ! Smashing Magazine Best Web Design and development resource ever !

Wed Design

  • Abduzeedo Best Design inspiration Blog ever ! Abduzeedo Best Design inspiration Blog ever !

Often used Tags

apache beginner Best Practice bitbucket boilerplate business intelligence CDN coding command line css database Data base debug framework Free git Google htaccess information java LESS Mobile mysql Oracle php RDBMS robots SEO Snippet snippets sourcetree spring SQL svn terminal unix unix commands url version control visualization web Web Service web start wordpress Yii

a fifteenPeas.com release | Powered by Wordpress