​
Showing posts with label a. Show all posts
Showing posts with label a. Show all posts

Saturday, 29 July 2017

Creating a folder with limited size

Creating a folder with limited size


To create a folder with fixed size, one of the solutions is to create a limited size filesystem and mount it.

Create a file that will be a container of the filesystem. Just take ANY file on your system that has a suitable size, or create one by
$ dd if=/dev/null of=~/myfs bs=SIZE_OF_BLOCK_IN_BYTES count=SIZE


Format the file with the FS you want
$ mkfs.ext4 ~/myfs
It will say that it creates an FS on a non-block device.



Mount the FS
mount -o loop,rw,usrquota,grpquota ~/myfs  /path/of/mount/point
{ Read More }


Creating a Community QR Poster

Creating a Community QR Poster


One of the first community publishing projects we undertook in my learning strategies class, was to produce a large QR code that will eventually hyperlink to our class website.  Our poster will be 29 pixels square to match our master QR image. If your students use one inch pixels, the group will produce an image almost two and a half feet wide. (Our final poster will be a bit larger than that.)

Step 1: Create a QR code that links to a classroom web page.  I used MobileFish QR Code Creator because it allows the user to specify the size of the first printed image.


Step 2: Decide on a way to cut the code into pieces so that each student can take on a part of the project.  With 16 high needs students in my class, I began our project by breaking our code into 16 equally sized unique squares.



Step 3: Enlarge each students piece of the puzzle so that the individual pixels can easily be seen and organized.  I enlarged each of the pieces to fit on full sheet of letter-sized paper.


Step 4 (Option 1): Provide each student with a piece of the puzzle. You might elect to print a puzzle grid template on which each student might recreate his/her pixels.  Just make sure the grid is filled with enough fairly precise squares.

 

Step 4 (Option 2): As an alternative, you can simply have each student produce a set number of dark squares that can be added to a master grid by a select team of students.  So long as the black pixels are composed of images that appear dark when viewed from a distance, the code should work.

Step 4 (Option 3): Instead of puzzle pieces, cut your QR code into strips, providing each student with a binary strip composed of black and white squares.  This solution would work wonderfully for a class composed of 29 students!

Step 5: I asked each student to complete images that represented their favourite things, their talents, and their goals for this school year.  For some, it took a long time to develop a list of words or icons that could most apty represent each individuals uniqueness. (It took even longer for students to produce clean dark images with black Sharpie pens.)


Step 6: Put it all together.  With our QR puzzle being completed on a part time basis, we hope to have a final poster ready in a week or so.


Community projects like this one call for each student to demonstrate some commitment to the collective.  The resulting symbol demonstrates to others that the unified group is made up of many uniquely talented individuals.  While we used hand-drawn sketches, Im confident that a similar project that uses coloured squares of paper, photographs or images cut from magazines, can yield a similarly effective symbol of class unity.
{ Read More }


Friday, 28 July 2017

Creating hidden accounts on a XP Box

Creating hidden accounts on a XP Box


Others want to log in to XP under your name?
Need to have an account under the radar?

Whatever the need, note it can be done!

The problem is that user accounts always show up on the welcome screen on XP. Our goal is to hide them from there using a simple Windows registry tweak. This tweak requires an existing account, so use one thats already there or create a new one. I would recommend the later!

Now go into the Registry (click on "start" > "Run" and type "Regedit" (without quotes) and hit enter).

Now go to:
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsNTCurrentVersionWinlogonSpecialAccountsUserList

Now right-click on the pane on the right and create a new DWORD. Make the name from "New Value #1" to the same as the AccountName you wish to hide. Example: if I wanted to hide an Account called StealthyMoFo, the DWORD Name would be StealthyMoFo.

Now double-click on the name and set the data value:

0 to hide it
1 to make it visible

Now exit the registry and reboot the machine for this to take effect.

To logon using this new account, when you see the welcome screen, hold down "ctrl+alt" and hit delete twice. this should take you to a normal usernamepassword prompt like Windows 2000. Enter the name and password of the hidden account to log on.


Two Side Notes:

  • This can be used to also force the Administrator account to show up on the welcome screen as it does in safe mode.
  • Your hidden account will still have a folder under Documents and Settings. So if someone sees it, they might suspect something. Try to use something that sounds like it might belong there like "RemoteService" or "DotNet" or "Admin". Most people wouldnt rise an eyebrow as those would seem like normal application/User accounts.

{ Read More }


Thursday, 27 July 2017

Criteris per a la consideració dun treballador especialment sensible a determinats riscos del treball

Criteris per a la consideració dun treballador especialment sensible a determinats riscos del treball


Resultat dimatges de salut laboral Resultat dimatges de salut laboral 

Lobjecte del present criteri de lInstitut Valenci� de Seguretat i Salut en el Treball (INVASSAT) �s aclarir quan, amb car�cter general, un treballador ha de ser considerat com especialment sensible als riscos derivats del treball.


http://www.invassat.gva.es/documents/161660384/161741829/CRITERIO+PARA+LA+CONSIDERACI%C3%93N+DE+UN+TRABAJADOR+COMO+ESPECIALMENTE+SENSIBLE+A+DETERMINADOS+RIESGOS+DEL+TRABAJO/7b543960-1d07-4e5f-ac02-0d2f76d300c7
{ Read More }


Wednesday, 26 July 2017

Create a free tk domain website with free hosting by AppFog

Create a free tk domain website with free hosting by AppFog


DEMO
This free .tk domain is made available by a company called Dot TK and the free hosting is provided by AppFog.

Create free hosting for site

Go to AppFog Signup page
Fill up the form and click Signup.
Go to Create an app

Choose an application:


Choose a infrastructure and a subdomain (I use HP):


After filling up form, click on Create App.

You will be automatically redirected to the app panel.
Thats it. You created your AppFog app.
To learn how to upload files to your app. Here are some pages that will help you understand about AppFog.

  • Installing AF CLI Tool
  • Uploading files to app in Windows.
  • Uploading files to app in Mac OSX & Linux.
  • Uploading files to app in Ubuntu (alternate way).
The created app domain will be .hp.af.cm. You can link this app to Dot TK. See How to do that below.

Create Free Website

Go to Dot TK website. 
Login with a service provider (Google, Facebook etc...)
Go to Add Domain
Fill up the form and click NEXT.
A new page will be visible and in it click the Use DNS for this domain button.
Go to AppFog panel in another tab. Click your app and from the app panel click Domain Names.
Type the url of site you made in Dot TK in the input box as shown in the picture:

Then Click on Update button.

Getting the IP address of AppFog app.

Open a new tab and go to http://www.selfseo.com/find_ip_address_of_a_website.php
Type the URL of the AppFog app in to the selfseo input box and click Get IP.

The page will show the IP address of the site :
Go to the Dot TK tab we already opened. Type the IP address we just found on to the two IP address input box :
Change the Registration length to 12 months.
Type the verification code in the picture and click on the Next button.

Visit the site you created on Dot TK to verify that your site is created.
If you have any doubts or problems, feel free to comment the problem/doubt.
DEMO
{ Read More }


Tuesday, 25 July 2017

Create a live system ISO for your Ubuntu based Linux machines using Systemback

Create a live system ISO for your Ubuntu based Linux machines using Systemback


Jack Wallen introduces you to an easy way to create live ISO images of your currently running Linux system with Systemback.
Systemback
You have that Linux desktop or server precisely how you want it and are interested in either creating a spot-on backup or a live ISO that you can then install on other (similar) hardware. How do you do it? You could go through the process of learning a number of commands to take care of the process, or you could install and use a handy tool called Systemback.
The Systemback tool allows you to create restore points, backups, and live images of a running system. Currently, it only works for Ubuntu derivatives based on 14.04, 14.10, and 15.04. It does, however, work like a champ (and does so quite easily).
I want to show you how to install and quickly make a live image of your current Linux system.

Installation

You wont find Systemback in the standard repositories, so you must first add the repo with the command:
sudo add-apt-repository -y ppa:nemh/systemback
Now, update apt with the command:
sudo apt-get update
Finally, install Systemback with the command:
sudo apt-get install systemback
Youll have to okay the dependencies before the install will begin. The dependencies will vary, based on what you have installed.
At this point, you should be able to start Systemback from the Unity Dash or your desktop start menu. You can also start Systemback from the command line with:
sudo systemback
You are now ready to create a live ISO.

Usage

Using Systemback is quite easy. From the main window (Figure A), select the location to house the ISO image (by clicking the ... button under Storage Location).
Figure A
Figure A
The Systemback main window.
Click the Live system create button and, in the new window (Figure B), give the live system a name, change the storage location (this location will need to have more than 4 GB of available space), and click Create new. You can optionally include user data files by checking the associated box.
Figure B
Figure B
Creating the live ISO image.
Note: If your .sblive file is larger than 4 GB, the conversion to a ISO is not possible. This is a file system limitation.
Depending on the size of your installation, the process will take some time to complete, so grab a cup of coffee or administer a server or two. After its installed, you should find an .sblive image in the defined storage location ready to convert to ISO. This image can either be written to a USB device or used to create a live ISO image. From the Created Live images window, select the image you want to convert, and then click Convert to ISO. When this process is completed, youll find the .iso file in the storage location ready to be written to disk. With that disk, you can then install the live image on other machines.
The best time to use Systemback is on a close-to-newly installed system. This is simply because of the file system size limitation. If youve installed too many applications on the system, the size will reach beyond 4 GB, and you wont be able to convert it. You can, however, still create restore points for a system. To create a restore point, first make sure youve selected a Storage directory, and then click the Create New button.
Once youve created a restore point, you can then go back to that restore point by simply selecting it from the left side of the window (Figure C) and then clicking System Restore on the right side.
Figure C
Figure C
Restoring from a restore point.
In the resulting window (Figure D), select the type of restore you want to do, if you want to include user configuration files, and click Next. This will begin the restore process.
Figure D
Figure D
Restore point options.
Systemback is a great way to create live images based on a pre-existing system and restore points in case you need to roll a Linux machine backward.
Do you administer or use Linux machines? If so, what do you use for your Linux backup/restore systems? Share your experience in the discussion thread below.

Source: http://www.techrepublic.com/article/create-a-live-system-iso-for-your-ubuntu-based-linux-machines-using-systemback/
{ Read More }


Sunday, 23 July 2017

Cose informatiche da fare a Natale o prima di Natale

Cose informatiche da fare a Natale o prima di Natale


Capita sempre pi� spesso di fare acquisti natalizi su Internet, e cos� la societ� di sicurezza informatica Sophos ha pubblicato un promemoria in dodici punti su come tenersi in sicurezza durante le feste. Ecco un assaggio dei temi principali.

Pulizia delle password. La pausa di Natale � una buona occasione per fare riordini di vario genere. Magari ci sta anche quello delle password, che devono essere differenti per ciascun sito, per evitare che un sito violato permetta a un criminale di rubarvi tutti gli account. Non � difficile, se usate un password manager che crea e si ricorda per voi tutte le password usando codici complicatissimi.

Aggiornamenti. Se ricevete in regalo qualche dispositivo digitale che si connette a Internet, per prima cosa aggiornate il suo software, per evitare che s�infetti. Fatelo subito.

Cambiate le password predefinite dei nuovi dispositivi. Molti dispositivi che potreste ricevere come regalo hanno delle password standard che sono note a tutti i malandrini della Rete: cambiatele, dunque, prima di affacciarvi a Internet. La raccomandazione vale in particolare per telecamerine di sorveglianza, monitor per beb�, televisori, lettori DVD e Blu-Ray, console di gioco e decoder TV.

Lucchetti nello shopping. Se andate su un sito a fare acquisti, controllate che accanto al nome del sito, nella casella dell�indirizzo del browser, ci sia un lucchetto chiuso: indica che la connessione al sito � cifrata e che nessuno pu� intercettarla per leggere i dati della vostra carta di credito.

Attenzione alle false mail degli spedizionieri. I criminali informatici in questo periodo sanno che stiamo ricevendo tanti regali per posta o tramite spedizionieri, per cui hanno avviato campagne di ransomware e rubapassword basate su mail che sembrano provenire dalle Poste o simili e sembrano annunciare l�arrivo di un pacco, sapendo che molti utenti si aspettano mail di questo genere e quindi le apriranno e soprattutto ne apriranno gli allegati infettanti.
{ Read More }


Friday, 21 July 2017

Create a comma separated string in shell a b c a b c no not sed

Create a comma separated string in shell a b c a b c no not sed


Well, the title does not really explain the real issue but I couldnt find a better one.

Another try: assume you have a list of tokens in a shell script and you want to build a comma separated list out of those tokens and you want to do this in a loop there is usually an issue with one comma too many at the beginning or at the end.

For simplicity I use a simple token list.
This example of course could be solved faster with sed.
I add a more complex example at the end.

A first approach is as follows and will create a list with an empty first element so to speak:
TOKENS="a b c" LIST="(" for token in $TOKENS ; do LIST="${LIST},${token}" done LIST="${LIST})" echo $LIST (,a,b,c) 
So how does one get rid of the extra empty element at the beginning of the list?

One might add an if-statement:
TOKENS="a b c" LIST="(" for token in $TOKENS ; do if [ "x$LIST" = "x(" ] ; then LIST="${LIST}${token}" else LIST="${LIST},${token}" fi done LIST="${LIST})" echo $LIST (a,b,c) 
In my search for a shorter one line solution I found the following approach using shell paremeter substitution.
TOKENS="a b c" LIST="" for token in $TOKENS ; do LIST="${LIST:-(}${LIST:+,}${token}" done LIST="${LIST})" echo $LIST (a,b,c) 
This is admittedly not easy to understand on the first glance unless you are very familiar with the parameter substitution.
Im using the complementary idea of :- and :+ .
${LIST:-(} will put out either the current value of LIST (if it exists and is not empty) or a ( .
So in the first invocation of the loop LIST is not yet set and thus ( is put out.
In the next rounds LIST is set and will be put out as is.
${LIST:+,} will put out either a comma (if LIST exists and is set) or nothing at all.
In the first invocation of the loop LIST is not yet set and nothing is put out.
In the next rounds LIST is set and a comma will be put out.

In all cases the token is appended at the end.

Here is a an example with more complex tokens which contain a space and they should be surrounded by quotes in the resulting list.
A="sam smith" B="jane jones" C="gabe miller" LIST="" for token in "$A" "$B" "$C" ; do LIST="${LIST:-(}${LIST:+,}${token}" done LIST="${LIST})" echo $LIST (sam smith,jane jones,gabe miller) 
{ Read More }


Thursday, 20 July 2017

Converting a space delimited file to tab delimited

Converting a space delimited file to tab delimited


try this one liner
       cat file | tr
 
{ Read More }


Tuesday, 18 July 2017

Create Matrix Effect in CMD BY a simple C program

Create Matrix Effect in CMD BY a simple C program


Creating Matrix Effect in CMD by a Simple C Program:




          Guys today Im providing you a simple .exe file which can create Matrix effect in CMD(Win32bit OS only).
  
So Download this .exe file from here

This is a sample for checking purpose.

And this is the source code for changing name in place of my name.

Download source code from here.

Open this .C file with TurboC Compiler and modify it and then click on compile button.

Modify only Name as in this program as I write ******Khattak******.

Now click on Compile Button and this time click on make option.It will create  *.exe file (i.e. ktk.exe).

So if you like my post then share it with friends and everyone.


{ Read More }


Thursday, 13 July 2017

Create A Personal Screen Saver In Win Xp

Create A Personal Screen Saver In Win Xp



This isnt a tweak, but a great little feature! For a great way to put your digital photos to work, try creating a slide show presentation for use as a screen saver. Heres how:

1. Right-click an empty spot on your desktop and then click Properties.

2. Click the Screen Saver tab.

3. In the Screen saver list, click My Pictures Slideshow.

4. Click Settings to make any adjustments, such as how often the pictures should change, what size they should be, and whether youll use transition effects between pictures, and then click OK.

Now your screen saver is a random display of the pictures taken from your My Pictures folder.
{ Read More }


Wednesday, 12 July 2017

Create a website in Rs1500 only

Create a website in Rs1500 only



We Have Best Packages For You
 Specifications
  • 10,000 MB disk space.
  • 100 GB monthly bandwidth
  • Free 24/7 support
  • Base.pk Domain
  • Money back Guaranty
  • 2 month Maintenance 

For More Details Contact Us

Mobile:   (92)0302-5021886
Email:     mrkm554@gmail.com







{ Read More }


Monday, 10 July 2017

Create a shortcut to lock a PC in Vista

Create a shortcut to lock a PC in Vista


Slice steps off your system log-off routine by putting a log-off shortcut on your desktop.

Start by right-clicking an empty space on the desktop and then selecting New shortcut. In the space below Type the location of the item, type in rundll32.exe user32.DLL, LockWorkStation (remember to watch your spacing and case).

Finally, create a clever name for the icon besides the default "rundll32"�how about "Lock PC"? Then click the shortcut to lock your computer with ease.
{ Read More }


Creating a Multi Node Cluster

Creating a Multi Node Cluster


I decided that I need to increase my mining power, so I setup two more nodes with the same hardware from my original post. The layout looks like this.

You only need to run geth on one node and connect your other ethminer instances (on node2 and node3) to your geth instance on (node1). That requires a little modification of the startup scripts to get everything connected.

Geth Start-Up

You need to tell geth to accept connections from remote hosts. The requires the following parameters.

 #!/usr/bin/env bash 
echo "Starting geth"
screen -dmS geth /usr/bin/geth --rpc --rpcaddr "0.0.0.0" --rpcport 8545 --rpccorsdomain "*"
#Basic geth startup script

--rpc enables the rpc console
--rpcaddr is the interface you want to listen on for conenctions. 0.0.0.0 is all interfaces
--rpcport is the port it will listen on 8545 is default
--rpccorsdomain is the domaint to accept request from

Ethminer Start-Up

To point your remote ethminers at your geth instance do the following in the startup script. You only need to do this on node2 and node3.

 #!/usr/bin/env bash 
echo "Starting Ethminer"
screen -dmS ethminer /usr/bin/ethminer -G -F http://192.168.1.57:8545
#Ethminer startup script for remote connections

-F puts ethminer into farm mode you need replace 192.168.1.57 with the IP of node where you are geth.

ethminer should start up as per normal. It will now just be getting work from the geth instance on node1.





{ Read More }


Friday, 7 July 2017

Cross Platform RTS Game 0 A D Alpha 21 Available For Download

Cross Platform RTS Game 0 A D Alpha 21 Available For Download


0 A.D., a free, open source historical war and economy game has reached alpha 21. The new release includes new maps, new game modes, as well as the official introduction of the Seleucid Empire.

0 A.D. alpha 21

Important changes in 0 A.D. Alpha 21 "Ulysses" include:
  • 11 random map scripts and 2 skirmish maps;
  • the Seleucid faction was completed by adding the models for the Colonnade, Barracks, Wonder, Market, Corral, Blacksmith, Dock, Library, Military Colony and City Walls;
  • new gameplay features:
    • Herocide/Regicide: you start with a hero and are defeated when he or she dies.
    • Wonder Victory: now you can change the time from when the wonder is built to when you win. Either set it to 0 so you win as soon as the wonder is built or to anywhere between 1 and 120 minutes for a chance for the opponents to destroy it before the match is won;
    • Last Man Standing: only one player can win the game. Form temporary alliances to eliminate common competitors. But be careful: as the remaining players struggle for victory, allies are forced to turn against you. This mode can be played with every victory condition;
    • new balancing;
    • buildings and units can now be upgraded;
  • the game now supports hosting on arbitrary UDP ports, which can be useful if your ISP blocks the default port;
  • various user interface improvements, like multiplayer lobby match details, a new Objectives dialog that reveals the chosen matchsettings in running games, and more.

Here is a screenshot of the new Seleucid buildings (via):

0 a.d. alpha21

As usual, the list of improvements is pretty large, so check out the official release announcement for a complete list.

You can see some of the new features in the latest 0 A.D. Alpha 21 in its official trailer:


(direct video link)

0 A.D. is still considered in alpha because some features are still missing. However, the game is playable, and it features great graphics and sound, as well as a powerful map editor.

There are also a few bugs you should be aware of. Most importantly, large maps are known to problems, formations are disabled, and you may experience lag when there are many moving units.

If you can contribute to 0 A.D. (programming, art, sound, documentation and more), see the programmers getting started page and join #0ad-dev on QuakeNet on IRC.


Download 0 A.D.


Download 0 A.D. (available for Linux, Windows and Mac)

Ubuntu 17.04, 16.10 and 16.04 / Linux Mint 18 users can install the latest version of the game by using its PPA. Add the PPA and install 0 A.D. using the following commands:

sudo add-apt-repository ppa:wfg/0ad
sudo apt update
sudo apt install 0ad


On Linux, the game requires a 1 GHz Intel or x86 compatible processor, at least 512 MB of RAM, and any graphics card supporting OpenGL 1.3 with 3D hardware accelerated drivers and at least 128 MB memory (e.g., Radeon 9000 or GeForce 3).


via Web Upd8 - Ubuntu / Linux blog http://www.webupd8.org/2016/11/cross-platform-rts-game-0-ad-alpha-21.html
{ Read More }


Creating a Kettle Repository

Creating a Kettle Repository


I wanted to create a new set of transformations that I was constructing for a project. For the same, I set up GeoKettle, a spatial ETL tool. Starting Kettle I was always wondered what the Central repository was. As I browsed through some old threads on user forums, I understood that Kettle repository was for centralizing your jobs and transformations across projects and users into a single place, so anyone could execute them.

That seemed like a good idea. However, most older posts had some concerns around its stability. Realizing that these concerns were probably five years or so old, I decided to set it up anyway.

First step is to create a Postgresql database user. For this, we need to first login as the postgres user within the Ubuntu environment and connect to the postgres

> su - postgres


Next we login to the psql environment and create a database level user called kettleadmin.
postgres > psql
psql > create user kettleadmin with password kettleadmin;


We then create a database called kettledb and we will grant all access to this database to user kettleadmin.

psql > create database kettledb;
psql> grant all on database kettledb to kettleadmin;

Now that we have setup the database, we can setup the kettle repository.
First step is to launch the GeoKettle shortcut. That brings the dialog box to choose your repository.


Now click the button for �New� to make a new repository, and click again on the following dialog box to create a new database connection.


On clicking the new button, another dialog box appears. Select Postgresql as the database connection type. Next, we specify the connection parameters to the database we have just created using credentials for kettleadmin as shown below


Click on �Test� to make sure the connection parameters are correct.


Once done, enter the additional details like name and description, and click �Create or Upgrade� to create the repository for the first time.



Once executed, the application will provide a list of commands executed.
Next, access the original command window and enter the default Login name and password for the database, which is admin/admin. Click on OK.


Now, on the dialog that appears, you can click on the top menu item �Repository� and click on link to �Explore Repository�.


This launches a window, where we can make changes to the current repository. The first step would be to add a new user for myself, to ensure I dont corrupt the configuration while working. I can do this by selecting the Users link and right clicking to select �New User� from the context menu.


Now I can configure this the way I want, to add new users. We are all set to move forward.


{ Read More }