Custom toolbar for CKEditorType
$builder->add('content', CKEditorType::class, ['config_name' => 'minimal'])
d e v o n

blake kathryn
No title available
Cosimo Galluzzi

PR's Tumblrdome

oozey mess
art blog(derogatory)
One Nice Bug Per Day

Jar Jar Binks Fan Club
Mike Driver
Jules of Nature
$LAYYYTER
Monterey Bay Aquarium

No title available
Misplaced Lens Cap
let's talk about Bridgerton tea, my ask is open
Game of Thrones Daily

Game Changer & Make Some Noise
almost home
I'd rather be in outer space 🛸

seen from Vietnam

seen from Netherlands

seen from Türkiye
seen from Philippines
seen from United States

seen from Malaysia

seen from Brazil

seen from Singapore
seen from Türkiye
seen from Singapore

seen from United States
seen from United States
seen from Colombia
seen from United States
seen from United States
seen from United States

seen from Bangladesh
seen from Lebanon
seen from United States
seen from Germany
@sethrea-it
Custom toolbar for CKEditorType
$builder->add('content', CKEditorType::class, ['config_name' => 'minimal'])
Custom template to overwrite default Sonata form
Config
sonata_doctrine_orm_admin: templates: form: [ admin/admin_fields.html.twig ]
Template to extend: @SonataDoctrineORMAdmin/Form/form_admin_fields.html.twig
Light locker / forced lock screen
The root cause is that the user-specific light-locker.desktop file doesn't override the system-wide one. So, even if the user configures light-locker to not start at all, it still runs with the default configuration parameters.
Warning: This will disable system-wide default screen locking. If you want to enable locking for a specific user, you'll need to edit the Exec= line in the ~/.config/autostart/light-locker.desktop file for each user (or use GUI after reboot). Configuring this through "Preferences >> Light Locker Settings" may do this (once the system-wide file is moved out of the way), but I haven't tried this.
Step 1: Disable system-wide startup of light-locker. This will allow the per-user .desktop file to be executed instead.
sudo mv /etc/xdg/autostart/light-locker.desktop /etc/xdg/autostart/light-locker.desktop.bak
To re-enable this, you would just rename the file so it no longer has the .bak extension.
Step 2: reboot
Step 3: Edit the user-specific light-locker.desktop file and reboot, or use GUI lightlocker
Open ~/.config/autostart/light-locker.desktop in a text editor.
Edit the line that begins Exec= so it is only Exec=. That is, there is no command specified which means light-locker won't be started.
Mapping Windows key to menu
File: ~/.config/openbox/lubuntu-rc.xml
<keybind key="Super_L"> <action name="Execute"> <command>lxpanelctl menu</command> </action> </keybind>
This command should work as well but didn’t for me gconftool-2 --set /apps/metacity/global_keybindings/panel_main_menu --type string "Super_L"
Controlling screen brightness
xbacklight -inc XX xbacklight -dec XX
Bootstrap media queries
/* ============================================================================= Media queries for different screen sizes ========================================================================== */ // xs only @media (max-width: $screen-xs-max) { } // sm and larger @media (min-width: $screen-sm-min) { } // sm only @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) { } // sm and smaller @media (max-width: $screen-sm-max) { } // md and larger @media (min-width: $screen-md-min) { } // md only @media (min-width: $screen-md-min) and (max-width: $screen-md-max) { } // md and smaller @media (max-width: $screen-md-max) { } // lg @media (min-width: $screen-lg-min) { }
Hightcharts preset colors
Highcharts.getOptions().colors.each(function(color) { var el = new Element('div', { 'styles': { 'display':'inline-block', 'width':'50px', 'height':'50px', 'background':color } }); el.inject($('test')); });
Working on a shared code base
Fixing bugs in our spaghetti code
Pair-programming
Last commit on Friday 5pm
Friday deployments (...and leaving afterwards)
Typical bug fixing
Transliterating special characters to ASCII (plus test)
echo '<h3>Test UTF8 Conv</h3>'; $utf8_sentence = 'Weiß, Goldmann, Göbel, Weiss, Göthe, Goethe und Götz'; echo '<p>'.$utf8_sentence.'</p>'; setlocale(LC_CTYPE, 'en_GB.utf8'); $trans_sentence = iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $utf8_sentence); echo '<p>'.$trans_sentence.'</p>';
The code refactoring trap
Doctrine 2.4: Joins between arbitrary entities
Joins between arbitrary entities are now possible in DQL by using the syntax FROM Foo f JOIN Bar b WITH f.id = b.id.
iOS Media Queries for iPhone/iPod vs iPad & Retina vs Non-Retina Devices
/* ---------- iPad Only ---------- */
@media only screen and (device-width: 768px) {
.ipad-only { display: block; }
}
/* ---------- iPhone/iPod Only ---------- */
@media only screen and (device-width: 320px) {
.iphone-only { display: block; }
}
/* ---------- Retina Device Only ---------- */
@media only screen and (-webkit-min-device-pixel-ratio: 2) {
.retina-only { display: block; }
}
/* ---------- Non Retina Device Only ---------- */
@media only screen and (-webkit-max-device-pixel-ratio: 1) {
.non-retina-only { display: block; }
}
/* ---------- Retina iPhone/iPod Only ---------- */
@media only screen and (device-width: 320px) and (-webkit-min-device-pixel-ratio: 2) {
.retina-iphone-only { display: block; }
}
/* ---------- Non Retina iPhone/iPod Only ---------- */
@media only screen and (device-width: 320px) and (-webkit-max-device-pixel-ratio: 1) {
.non-retina-iphone-only { display: block; }
}