- http://i.cmaas.net/pc/Linux/Wine/1368700507 (ja)
- https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/939301
- https://forums.ubuntulinux.jp/viewtopic.php?id=13910 (ja)
- OS: Knoppix 7.0.3 LCR
- DE: LXDE
<?php | |
/** | |
* This is free and unencumbered software released into the public domain. | |
* | |
* Anyone is free to copy, modify, publish, use, compile, sell, or | |
* distribute this software, either in source code form or as a compiled | |
* binary, for any purpose, commercial or non-commercial, and by any | |
* means. | |
* |
<?php | |
// Does string contain letters? | |
function _s_has_letters( $string ) { | |
return preg_match( '/[a-zA-Z]/', $string ); | |
} | |
// Does string contain numbers? | |
function _s_has_numbers( $string ) { | |
return preg_match( '/\d/', $string ); |
require('font-awesome/css/font-awesome.css'); | |
document.body.innerHTML = '<i class="fa fa-fw fa-question"></i>'; |
<?php | |
$queue = DrupalQueue::get('versioncontrol_reposync'); | |
while ($item = $queue->claimItem()) { | |
try { | |
versioncontrol_reposync_run_worker($item->data); | |
$queue->deleteItem($item); | |
} | |
catch (Exception $e) { |
<?php | |
/** | |
* Implements hook_form_FORM_ID_alter(). | |
* | |
* Move your field or group of fields to the node form options vertical tabs. | |
*/ | |
function mymodule_form_node_form_alter(&$form, FormState $form_state, $form_id) { | |
$form['mygroup'] = [ |
<?php | |
use Drupal\file\Entity\File; | |
use Drupal\image\Entity\ImageStyle; | |
// File ID. | |
$fid = 123; | |
// Load file. | |
$file = File::load($fid); | |
// Get origin image URI. | |
$image_uri = $file->getFileUri(); | |
// Load image style "thumbnail". |
name: Modal Form Example | |
type: module | |
description: 'Modal Form Example module' | |
package: Example | |
version: VERSION | |
core: 8.x |
$ convert -density 200 INPUT.pdf -rotate 0.3 +noise Multiplicative -format pdf -quality 85 -compress JPEG -colorspace gray OUTPUT.pdf
<?php | |
/** | |
* Class RD_Text_Extraction | |
* | |
* Example usage: | |
* | |
* $response = RD_Text_Extraction::convert_to_text($path_to_valid_file); | |
* | |
* For PDF text extraction, this class requires the Smalot\PdfParser\Parser class. |