Archive for the ‘Tips & Tricks’ Category

November 18th, 2009

Cum sa schimbi Windows Logo in MyComputer

1. Creaza un logo de 120×120.
2. Salveaza`l ca .bmp
3. Deschide registri (Start -> Run -> Regedit -> Enter) si duceti-va la: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\OEMInformation
4. Deschide Valoarea cu nume “Logo” sau creati-l daca nu e acolo si pune adresa unde logo-ul este salvat.
5. De acolo puteti schimba si SupportURL, Manufacturer and Model.

Sustin Revolutia Bunului-Simt. Votez Antonescu

October 13th, 2009

Cum sa creezi un stick USB bootabil

Zilele trecute dupa ce am luat minunatul laptop de buzunar Lenovo, mi`am dat seama ca n`are CD-ROM. SHIT! Ok, fie, nu`i aia problema. E deja cu XP preinstalat deci, teoretic vreo 2 luni n`am probleme laughing. Asa ca i`am facut frumos imagine cu GHOST sa nu ma mai chinui data viitoare sa`i instalez toate chestiile de prin el.
Singura problema e ca daca vreau sa restaurez imaginea imi trebuiesc SRD ale minunatului ghost. Bun, cautat, gasit, facut, testat 100% Working big grin. Am gasit cum se face un stick USB bootabil. Hai sa va explic:

1: Deschizi frumos CMD din windows si scrii:
2: diskpart
3: list disk – comanda care`ti listeaza toate HDD care le ai in PC/laptop inclusiv USB care incep de la 0
4: select disk # – in loc de # ca sa poti selecta USB
5: clean
6: create partition primary
7: select partition 1
8: active
9: format fs=fat32 – numai partitie de format FAT32 merge ca idee big grin
10: assign
11: exit

Bun, dupa aceste minunate comenzi un stick USB bootabil. Ce trebuie sa faci acum e sa copiezi ceea ce vrei sa bootez (ex: Ghost, Windows etc.).

Enjoy! big grin

January 24th, 2009

Sidebar login

Am primit ieri un comentariu de la un utilizator care vroia sa stie cum pune formularul de login in sidebar. Asa ca m`am conformat si acum scriu un post referitor la asta. Cum nu stiu sa fac pluginuri pentru wordpress, o sa pun direct codul. Tot ce trebuie sa faceti, e copy/paste unde vreti sa apara si aia e tot big grin

Codul este:

  1. <h2><?php _e(‘Meta’); ?></h2>
  2.                 <?php global $user_ID, $user_identity, $user_level ?>
  3.                 <?php if ( $user_ID ) : ?>
  4. <ul>                    Noroace,<strong> <a href="<?php bloginfo(‘url’winking ?>/wp-admin/profile.php"><?php echo $user_identity ?></a></strong>.
  5.  
  6.  
  7.                                 <li><a href="<?php bloginfo(‘url’winking ?>/wp-admin/">Dashboard</a></li>
  8.  
  9.                                 <?php if ( $user_level >= 1 ) : ?>
  10.                                 <li><a href="<?php bloginfo(‘url’winking ?>/wp-admin/post-new.php">New Post</a></li>
  11.                                 <?php endif // $user_level >= 1 ?>
  12.  
  13.                                 <li><a href="<?php bloginfo(‘url’winking ?>/wp-login.php?action=logout&amp;redirect_to=<?php echo urlencode($_SERVER['REQUEST_URI']) ?>">Logout</a></li>
  14.                         </li>
  15.                 </ul>
  16.  
  17.                 <?php elseif ( get_option(‘users_can_register’) ) : ?>
  18.  
  19.                 <strong />Log in</strong>
  20.                 <ul>
  21.                         <li>
  22.                         <form action="<?php bloginfo(‘url’winking ?>/wp-login.php" method="post">
  23.                                 <p>
  24.                                 <label for="log"><input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="15" /> User</label>
  25.  
  26.                                 <label for="pwd"><input type="password" name="pwd" id="pwd" size="15" /> Password</label>
  27.  
  28.                                 <input type="submit" name="submit" value="Send" class="button" />
  29.                                
  30. <label for="rememberme"><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /> Remember me</label>
  31.  
  32.                                 </p>
  33.                                 <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>
  34.                         </form>
  35.  
  36.  
  37.                         <li><a href="<?php bloginfo(‘url’winking ?>/wp-register.php">Register</a></li>
  38.                         <li><a href="<?php bloginfo(‘url’winking ?>/wp-login.php?action=lostpassword">Recover password</a></li>
  39.                 </ul>
  40.  
  41.                 <?php endif // get_option(‘users_can_register’winking ?>
  42.        </li>
  43.  
January 13th, 2009

Related Post

Cautam eu disperat un plugin de Related Post, n`am gasit, asa ca am creat. Nu, nu stiu sa fac pluginuri pentru wordpress.. am creat doar codu` de generare. Codul este urmatorul:

  1. <?php
  2. $this_post = $post;
  3. $category = get_the_category(); $category = $category[0]; $category = $category->cat_ID;
  4. $posts = get_posts(‘numberposts=6&offset=0&orderby=post_date&order=DESC&category=’.$category);
  5. $count = 0;
  6. foreach ( $posts as $post ) {
  7. if ( $post->ID == $this_post->ID || $count == 5) {
  8. unset($posts[$count]);
  9. }else{
  10. $count ++;
  11. }
  12. }
  13. ?>
  14.  
  15. <?php if ( $posts ) : ?>
  16. <div class="post-content">
  17. <h2>Postari asemanatoare</h2>
  18.  
  19. <ul>
  20. <?php function getWords($text, $limit) {
  21. $array = explode(" ", $text, $limit +1);
  22. if(count($array) > $limit) {
  23. unset($array[$limit]);
  24. }
  25. return implode(" ", $array); }
  26. ?>
  27. <?php foreach ( $posts as $post ) : ?>
  28. <?php $mycontent = strip_tags($post->post_content);
  29. $excerpt = getWords($mycontent, 15);
  30. $a_title = $excerpt . "…"; ?>
  31. <h3><li><a href="<?php the_permalink(); ?>" title="<?php echo $a_title ?>">
  32. <?php if ( get_the_title() ) { the_title(); } else { echo "Untitle"; } ?></a>
  33. (<?php the_time(‘F jS, Y’) ?>)
  34. </li></h3>
  35. <?php endforeach // $posts as $post ?>
  36. </ul>
  37. </div>
  38. <?php else : ?>
  39. <div class="post-content">
  40. <h2>Postari asemanatoare</h2>
  41.  
  42. <ul>
  43. <li>Nu mai sunt alte postari asemanatoare.</li>
  44. </ul>
  45. </div>
  46. <?php endif // $posts ?>
  47. <?php
  48. $post = $this_post;
  49. unset($this_post);
  50. ?>
  51.  
  52.  

Codul merge, nu va asteptati sa fie prea usor de inteles laughing Si eu ma pierd in el laughing Ideea e alta. Codul de mai sus, il inserati la sfarsitul postului si creeaza automat 5 postari relationate. Numarul de postari se poate schimba de aici: $count == 5. Si in loc de 5 scrieti cate posturi vreti sa va apara. Sper sa va ajute happy

October 5th, 2008

Cum sa schimbi portul de Remote Desktop

Dupa ce aseara mi`am reinstalat minunatul Windows Vista, am vrut sa intru remote. Am uitat ca eu am router si e setat sa`mi dea drumul pe un port anume. Asa ca a trebuit sa schimb portul de Remote Desktop. Si am zis sa va zic si voua cum se face daca sunteti, ca in cazul meu, mai multi insi pe acelasi router. Iete instructiuni:

1. Deschideti Registry Editor. (In XP: Start -> Run -> Regedit -> Ok; In Vista: Start -> si scrieti REGEDIT in casuta unde scrie START SEARCH.)
2. Cautati urmatorii sub-registri:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber
3. Click dreapta – Modify, modifica pe DECIMAL.
4. Scrieti noul port pe care vreti sa aveti deschis REMOTE DESKTOP si click OK.
5. Inchideti Registry Editor.

Si cam asta e. Numai ca, acum cand vreti sa va conectati la PC`ul vostru, in loc sa scrieti doar IP scrieti IPtongueORT. De exemplu: 192.168.152.100:6969 (asta e ip local si e doar exemplu laughing )

Enjoy!