Mindwired
Short and strict computer related tutorials about some things, that can give you lot of headache.
13 October, 2011
tooltips missing black and white 2
If you notice there is red cross in white ellipse in your left corner of the screen. That means the tool-tips are disabled. You can enable them by simply pressing Tab on your keyboard.
Tags:
black and white 2,
games
14 September, 2011
Fix: Toggle does not work in Chrome
You can simply use toggleClass function. Create a class that has css attribute display set to none and toggle it.
Tags:
jquery
04 August, 2011
Fatal error: Call to undefined function node_form_validate() in .../includes/form.inc on line 1414
Solution to Drupal 7 error:
Error:
Fatal error: Call to undefined function node_form_validate() in .../includes/form.inc on line 1414
Solution:
Place next peace of code to your module.
module_load_include('inc', 'node', 'node.pages');
Error:
Fatal error: Call to undefined function node_form_validate() in .../includes/form.inc on line 1414
Solution:
Place next peace of code to your module.
module_load_include('inc', 'node', 'node.pages');
Tags:
drupal,
solve error
08 March, 2011
Wordpress - If front page
This snippet shows how to make an if statement. Whitch content is interpated when you are on front page.
<?php if(is_front_page() ) { ?> Your HTML here <?php } ?>
Tags:
wordpress
06 March, 2011
Drupal Module - Get Profile Values
How to get profile values in your module. First define/get global value, use profile_load_profile function and print_r for viewing the results.
<?php global $user; profile_load_profile($user); print_r($user); ?>
Tags:
drupal
22 February, 2011
Google Maps Estonian Provinces Cordinates
$maakonnad = array(
'Võrumaa' => array('Võrumaa','57.882737','26.971436'),
'Ida-Virumaa' => array('Ida-Virumaa','59.271495','27.328491'),
'Valgamaa' => array('Valgamaa','57.818429','26.185913'),
'Põlvamaa' => array('Põlvamaa','58.016828','27.493286'),
'Pärnumaa' => array('Pärnumaa','58.401712','24.515991'),
'Läänemaa' => array('Läänemaa','58.989652','23.670044'),
'Järvamaa' => array('Järvamaa','58.938673','25.499268'),
'Raplamaa' => array('Raplamaa','59.040555','24.796143'),
'Viljandimaa' => array('Viljandimaa','58.444858','25.532227'),
'Jõgevamaa' => array('Jõgevamaa','58.779591','26.38916'),
'Saaremaa' => array('Saaremaa','58.4161','22.615356'),
'Harjumaa' => array('Harjumaa','59.377988','24.768677'),
'Lääne-Virumaa' => array('Lääne-Virumaa','59.333189','26.328735'),
'Hiiumaa' => array('Hiiumaa','58.890458','22.631836'),
'Tartumaa' => array('Tartumaa','58.341218','26.746216')
);
Cordinates of Estonian province centers.
Eesti maakondade keskuste google mapsi kordinaadid.
'Võrumaa' => array('Võrumaa','57.882737','26.971436'),
'Ida-Virumaa' => array('Ida-Virumaa','59.271495','27.328491'),
'Valgamaa' => array('Valgamaa','57.818429','26.185913'),
'Põlvamaa' => array('Põlvamaa','58.016828','27.493286'),
'Pärnumaa' => array('Pärnumaa','58.401712','24.515991'),
'Läänemaa' => array('Läänemaa','58.989652','23.670044'),
'Järvamaa' => array('Järvamaa','58.938673','25.499268'),
'Raplamaa' => array('Raplamaa','59.040555','24.796143'),
'Viljandimaa' => array('Viljandimaa','58.444858','25.532227'),
'Jõgevamaa' => array('Jõgevamaa','58.779591','26.38916'),
'Saaremaa' => array('Saaremaa','58.4161','22.615356'),
'Harjumaa' => array('Harjumaa','59.377988','24.768677'),
'Lääne-Virumaa' => array('Lääne-Virumaa','59.333189','26.328735'),
'Hiiumaa' => array('Hiiumaa','58.890458','22.631836'),
'Tartumaa' => array('Tartumaa','58.341218','26.746216')
);
Cordinates of Estonian province centers.
Eesti maakondade keskuste google mapsi kordinaadid.
Tags:
google maps api
13 February, 2011
NetBeans encoding
Sometimes there are problems with file encoding. If you get question marks instead of some special characters, then you probably need to change encoding(default is utf-8). This is project based so its bad to have different kinds of encodings in one project.
How to change the encoding:
How to change the encoding:
- Open projects properties.
- The first tab contains Encoding dropdown menu.
- I have some projects with ISO-8859-1 and UTF-8.
- If you dont use utf-8 in sql database then do utf8_decode before inserting or updating your data.
Tags:
netbeans
Subscribe to:
Posts (Atom)