Cristian CIOFU » miniTechBlog

  • Archive
  • RSS

Add (and use) a custom php function in your twig template

Ok, so you did this great php function and now you want to use it in your template…

How should you do it? Well… It’s very simple :)

Just add this to your code and you’re done :

https://gist.github.com/cristic84/5803778
    • #twig
    • #tutorial
    • #en
    • #php
  • 18 hours ago
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

SQL injection search

GitHub - avantaje si dezavantaje ;)

prietenii știu de ce

(via williamhorbelt)

    • #github
    • #php
    • #sqlinjection
    • #security
    • #websecurity
  • 22 hours ago > williamhorbelt
  • 1
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Lista pachetelor instalate (Sublime Text 2)

Asa cum am zis aici, am inceput sa lucrez din ce in ce mai intens cu Sublime Text 2.

Astazi am avut curiozitatea de a gasi modalitatea prin care se pot afisa pachetele (plugin-urile) instalate in Sublime Text 2.

Initial am gasit solutia direct din command prompt (ctrl+shift+p), apeland la “List Packages” din Package Control :

… insa eu voiam o lista text si nu sa navighez prin ele :)

Dupa ce am mai cautat putin, am gasit ceea ce doream eu mai usor decat as fi crezut :

Preferences » Package Settings » Package Control » Settings - User

Si aici veti gasi o frumoasa lista text cu toate pluginurile instalate.

Mission completed!

    • #sublime text
    • #sublime text 2
    • #plugins
    • #ro
    • #sublime text 2 plugins
  • 1 day ago
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

GitHub + Firewall (windows) = ???

Daca vreti sa folositi de la munca / scoala / etc. aplicatia GitHub si reteaua are in spate un firewall enervant, probabil ca v-ati lovit deja de problema clonarii unui repo.

Aplicatia in sine nu are in setari o zona unde sa poti defini proxy-ul, insa este important de stiut ca setarile folosite (la nivel de git) sunt setarile standard git.

Asadar pentru a rezolva problema este suficient sa modificati fisierul .gitconfig situat in C:\Users sau C:\Documents and Settings si sa adaugati sectiunea urmatoare :

https://gist.github.com/cristic84/5795699

Dupa care restartati aplicatia GitHub si totul va merge ca pe roate :)

    • #github
    • #proxy
    • #firewall
  • 1 day ago
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Sublime Text 2 - ce pluginuri folosesc (partea #1)

De curand am (re)inceput sa folosesc Sublime Text 2.

In trecut am folosit Notepad++ / Eclipse PDT / phpStorm / NetBeans (pana de curand).

Motivul principal pentru care am renuntat la aceste IDE in favoarea micutului Sublime Text 2 :

… iar lucrul cu proiecte este super fain facut.

Asadar, iata mai jos o lista cu pluginurile folosite de mine in momentul de fata :

Package Control - desigur :)

A full-featured package manager that helps discovering, installing, updating and removing packages for Sublime Text 2. It features an automatic upgrader and supports GitHub, BitBucket and a full channel/repository system.

BracketHighlighter

Bracket Highlighter matches a variety of brackets such as: [], (), {}, “”, ”, , and even custom brackets.

DocBlockr

DocBlockr is a package for Sublime Text 2 & 3 which makes writing documentation a breeze. DocBlockr supports Javascript, PHP, ActionScript, CoffeeScript, Java, Objective C, C and C++.

SyncedSideBar

Sync project sidebar (folder view) with currently active file

Emmet

Asta daca vrei sa codezi ca un ninja :D

SideBar Enhancements

Provides enhancements to the operations on Sidebar of Files and Folders.

Clipboard History

Keep a history of your clipboard items. Let you paste them back in, as needed.

jQuery Package

This is a Sublime Text bundle to help with jQuery functions.

In plus, eu folosesc tema Nexus (I love it) :

    • #sublime text
    • #plugins
    • #ro
    • #sublime text 2 plugins
    • #sublime text 2
    • #ide
  • 5 days ago
  • 1
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

iOS7 new features (announced + hidden)

“Hidden” features

  • The Clock app actually shows the real time
  • Tons of new Emoji’s [click to see them all]
  • The timer is now visible on the lockscreen
  • If you pull down from below the status bar, you get search (Spotlight)
  • If you search for a term (in Spotlight) and it’s in an SMS, it’ll show in Spotlight. If you click on it, it’ll take you to the actual SMS
  • Calculator now has a percentage sign in portrait mode
  • Newsstand can now be put in a folder
  • The “New” banner on apps when you first download them is gone, now it is a blue dot to the left of the name.
  • App updates show up in the notifications menu, under “All.”
  • AppStore Wishlist (was this already included in iOS 6?)
  • When charging the battery, rather than an image of a battery on a lock screen, x% charged appears under the clock, before reverting to the date.
  • Folders now also have pages, with nine (9) apps per page
  • (don’t know if this was tested) if you have find my iphone on, you cannot restore the phone (i’m restoring back to 6.1.4 now). it will ask you to turn off find my iPhone. When you attempt to turn it off in settings, you need to type in your appstore password
  • If you swipe left in the compass app, you get a leveler, it turns green when your phone is flat.
  • You can now dismiss a notification by swiping it up
  • You can swipe multiple apps from the multitasked (Like Auxo)
  • ’ Blueprint-like’ background when downloading apps.
  • On the lock screen, ‘Slide to Unlock’ is acceptable anywhere on the screen.
  • On Reminders - you can specify the exact distance from destination
  • There is now an option for “Mark All” as read in the mail app!
  • It will be possible to disable auto updates
  • Redeem gift cards by using the camera
  • When you snooze an alarm that’s going off, it shows you the alarm on the lockscreen, with a countdown to the next time it goes off.
  • Panoramic photos on the lockscreen
  • If you search for a contact in Spotlight who doesn’t have a photo, it brings up a circle with their initials in.
  • … to be continued

Highlights of iOS 7

  • Control Center
  • New Notification Center
  • Photo Filters
  • FaceTime Audio
  • iCloud Photo Sharing
  • Automatic App Updates
  • Better Multitasking
  • Overhaul to the UI
  • Live Wallpapers
  • Amazing looking Stock Apps
  • New Safari
  • All-new Siri
  • AirDrop (iPhone 5 only)
  • Phone, Messages, and FaceTime Blocking (there’s something handy )
  • iTunes Radio
  • Activation Lock
  • New First-Time setup menus
  • Flickr and Vimeo Integration
  • Spotlight (Swipe to the right down)
  • Newsstand is now an app.
  • Night Mode on Maps
  • FaceTime now has its stand-alone app for iPhone.

[ via ]

    • #ios7
    • #apple
    • #ios7features
    • #iphone
    • #ipad
    • #ios
    • #appstore
    • #imessage
    • #spotlight
    • #newsstand
    • #emoji
  • 6 days ago
  • 8
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+
iOS7 - WWDC 2013, a set on Flickr.iOS7 rocks!!!
Pop-upView Separately
20130610_IMG_154220130610_IMG_154320130610_IMG_154420130610_IMG_1545

iOS7 - WWDC 2013, a set on Flickr.

iOS7 rocks!!!
    • #ios
    • #ios7
    • #apple
    • #wwdc
    • #wwdc2013
  • 1 week ago
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Responsive Design (unde si cum sa testezi)

Zilele acestea am cautat solutii pentru a testa aspectul unui site pe diverse device-uri (da, da - responsive design).

Sunt multe site-uri / extensii / bookmarklet-uri care se lauda ca fac acest lucru, insa dupa o scurta cautare eu am ales 3 site-uri si un bookmarklet pe care le-am considerat bune.

Ce m-a interesat pe mine a fost suportul pentru testarea locala (localhost links) si, in unele cazuri, posibilitatea de a testa pe Custom Screen Size.

Asadar, eu va recomand urmatoarele unelte :

WEBSITES :

1) https://quirktools.com/screenfly/ ()()()()() = 5 stars
2) http://screenqueri.es/ (
)()()()( ) = 4 stars
3) http://www.responsinator.com/ (
)()()()() = 5 stars

BOOKMARKLET :

http://responsive.victorcoulon.fr/ ()()( )( )( ) = 2 stars

INFORMATII UTILE :

http://screensiz.es/ - o lista cu diverse device-uri si ale lor dimensiuni :)

credit imagine : John Polacek
(daca tot dati click cititi si prezentarea omului. aveti multe de invatat)

Enjoy!

    • #web-programming
    • #webdesign
    • #responsive
    • #responsive design
    • #ro
  • 1 week ago
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+
Page 1 of 2
← Newer • Older →

About


Founder, CEO @ 0010 Media

Extra :
blog personal
inrime (poezii)

Social Media :
[voi adauga in curand]

Locatie :
67000 Strasbourg, France

Pages

  • Despre mine

Following

  • digitalvanity
  • staff
  • randomyesusefulno
  • clientsfromhell
  • minimalmac
  • thecodinglove
  • pulpinsidefiction
  • lesjoiesducode
  • whoaphoebe
  • icodeforlove
  • pinkwatch
  • restlessmedia
  • en-quelques-mots
  • jeveuxpartirenfrance
  • jensenrf
  • danielleasaur
  • v2dev
  • slimr
  • jeayese
  • theneverendinstory
  • please-do-come-in
  • summerinjanuaryy
  • littlebigdetails
  • wordgraphics
  • jruz
  • fuckyeahhappy
  • whatitdobabybo0
  • colouredshadows
  • aliceada
  • quote-book
  • pierrero
  • leiiriv
  • electrosocketblues
  • necenzurat
  • lesjoiesdelafac
  • vickibear
  • yavor
  • macee0
  • restezcalmeetparlezfrancais
  • postitlovenotes
  • therealetty
  • nfr
  • p0ouet
  • etiquetteforagentleman
  • gonzolicu
  • allmilkandhoney
  • fuckyeahbokeh
  • kittty
  • rottenkid
  • lyricalgraphics
  • pandaaaaaan
  • beelynne
  • dashgifs
  • boozeboysandbitches
  • howardtharp
  • cvparade
  • stressedchocolate
  • creampuff
  • itsalexis
  • all3xa
  • sexyasiangirl
  • thechosenwords
  • nomore-a-girl
  • extraordinaire
  • wtfcode
  • informedconcept
  • RSS
  • Random
  • Archive
  • Mobile
Effector Theme by Pixel Union