Archive for the ‘Tips & Tricks’ Category
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
. 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
. 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 ![]()
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! ![]()
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
Codul este:
-
<h2><?php _e(‘Meta’); ?></h2>
-
<?php if ( $user_ID ) : ?>
-
<ul> Noroace,<strong> <a href="<?php bloginfo(‘url’
?>/wp-admin/profile.php"><?php echo $user_identity ?></a></strong>. -
-
-
<li><a href="<?php bloginfo(‘url’
?>/wp-admin/">Dashboard</a></li> -
-
<?php if ( $user_level >= 1 ) : ?>
-
<li><a href="<?php bloginfo(‘url’
?>/wp-admin/post-new.php">New Post</a></li> -
<?php endif // $user_level >= 1 ?>
-
-
<li><a href="<?php bloginfo(‘url’
?>/wp-login.php?action=logout&redirect_to=<?php echo urlencode($_SERVER['REQUEST_URI']) ?>">Logout</a></li> -
</li>
-
</ul>
-
-
<?php elseif ( get_option(‘users_can_register’) ) : ?>
-
-
<strong />Log in</strong>
-
<ul>
-
<li>
-
<form action="<?php bloginfo(‘url’
?>/wp-login.php" method="post"> -
<p>
-
<label for="log"><input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="15" /> User</label>
-
-
<label for="pwd"><input type="password" name="pwd" id="pwd" size="15" /> Password</label>
-
-
<input type="submit" name="submit" value="Send" class="button" />
-
-
<label for="rememberme"><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /> Remember me</label>
-
-
</p>
-
<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>
-
</form>
-
-
-
<li><a href="<?php bloginfo(‘url’
?>/wp-register.php">Register</a></li> -
<li><a href="<?php bloginfo(‘url’
?>/wp-login.php?action=lostpassword">Recover password</a></li> -
</ul>
-
-
<?php endif // get_option(‘users_can_register’
?> -
</li>
-
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:
-
<?php
-
$this_post = $post;
-
$category = get_the_category(); $category = $category[0]; $category = $category->cat_ID;
-
$posts = get_posts(‘numberposts=6&offset=0&orderby=post_date&order=DESC&category=’.$category);
-
$count = 0;
-
foreach ( $posts as $post ) {
-
if ( $post->ID == $this_post->ID || $count == 5) {
-
}else{
-
$count ++;
-
}
-
}
-
?>
-
-
<?php if ( $posts ) : ?>
-
<div class="post-content">
-
<h2>Postari asemanatoare</h2>
-
-
<ul>
-
<?php function getWords($text, $limit) {
-
}
-
?>
-
<?php foreach ( $posts as $post ) : ?>
-
$excerpt = getWords($mycontent, 15);
-
$a_title = $excerpt . "…"; ?>
-
<h3><li><a href="<?php the_permalink(); ?>" title="<?php echo $a_title ?>">
-
(<?php the_time(‘F jS, Y’) ?>)
-
</li></h3>
-
<?php endforeach // $posts as $post ?>
-
</ul>
-
</div>
-
<?php else : ?>
-
<div class="post-content">
-
<h2>Postari asemanatoare</h2>
-
-
<ul>
-
<li>Nu mai sunt alte postari asemanatoare.</li>
-
</ul>
-
</div>
-
<?php endif // $posts ?>
-
<?php
-
$post = $this_post;
-
?>
-
-
Codul merge, nu va asteptati sa fie prea usor de inteles
Si eu ma pierd in el
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 ![]()
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 IP
ORT. De exemplu: 192.168.152.100:6969 (asta e ip local si e doar exemplu
)
Enjoy!













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