My vacation on Zlatibor

Good things :
* Clean air 😉
* All is clean (VERY!!! No garbage around!)
* No stray dogs (yessss!! not to be believed!)
* Excellent hosts (villa “Ruža”)
* Not far by car (from Belgrade)
* Good local shops (Maxi)
* There is quite a bit to be seen in the surrounding area (Great Turist info, should see it as soon as you arive!), although for most of it, it is best done by car
* Very acceptable prices for some local produce (local fruity liquors)
Not so good things :
* very urbanized
* Appallingly high prices for such things as local cheeses
Where you really should go :
* Tornik – a great number of local tourist attractions (sporty), very price-worthy
* Stopića cave – wonderful!!!!, and there is a guide too
* Waterfall (near the cave), good for a picnic, but only in good weather
What you may skip :
* Zlatibor lakes (small, no entertainment…..)
And a few pictures :
veca-mapa-zlatibor
zlatibor-detaljna-mapa
vila-Ruza
20160811_133313
20160810_180500
20160810_174920

Posted in Relaxation | Tagged , | Leave a comment

New location for “My Documents” folder on WIN 7

Luckily for me it is not hard to change this!
This is a great link for a tutorial.
1. Click on a button “Start”
2. Right click on “Documents” and choose option “Properties”
3. In a new window select option “Include a folder” and choose the folder you want
4. Right click on new folder, and choose option “Set as Default save location” :
nova-lokacija-za-moja-dokumenta
5. Click “Apply” i potom “Save” and that is it
😉

Posted in WIN | Tagged , , | Leave a comment

PHP and HTML, continued

A strange thing, you must not use a sign “+” in the filename.
Why? No idea, but it gives a VERY strange error, and no page, of course…..
Some additional abbreviations :
DOM – document object model
Abbreviations in a HTML table :
th – table header
tr – table row
td – table cell
Tabellen-aufbau
**********
I must pull data from existing HTML tables (my service catalog) concerning the service name and owner (for all xyz services).
**********
Here is how to show what is AFTER a key word “Naziv” from my abc-it.html document :
php-prikaz-dela-fajla-od-reci-nadalje
And here is how to pull only service name from the whole text :
php-prikazdelafajlaizmedjudvefraze
And variables are :
oznakepromenljivih
I got my idea from here : link.
*************************
And it all works for HTML files, but NOT for PHP files.
Funkcija file_get_contents ne “hvata” izlaz PHP fajla kako valja, već na mestima gde su PHP funkcije daje kuke I verige (file_get_contents() doesn’t execute PHP statements).
Here it is how I have written this function in the end :
php-unutar-phpa
And a excellent link considering this : link.
**********************
This works well, but it would be better if data is in the table.
But if I try to put PHP scripts in HTML defined tables, it all comes out shifted to one side and downwards.
Here is what I have tried, and it did not work : command htmlentities, putting PHP in front of the table/in a table, return instead of echo (in a PHP function), different commas (” or ‘)…..

Posted in Linux, Uncategorized, WIN | Tagged , | Leave a comment

About databases : Oracle

Since I work with them, I should learn some basic stuff about DBs.
Here it is Oracle…..
*****************************************************************
A database is an organized collection of information treated as a unit. The purpose of a database is to collect, store, and retrieve related information for use by database applications.
A database management system (DBMS) is software that controls the storage, organization, and retrieval of data. Typically, a DBMS has the following elements:
*Kernel code – This code manages memory and storage for the DBMS.
*Repository of metadata – This repository is usually called a data dictionary.
*Query language – This language enables applications to access the data.
A database application is a software program that interacts with a database to access and manipulate data.
Today, the most widely accepted database model is the relational model.
A relational database is a database that conforms to the relational model. The relational model has the following major aspects:
*Structures – Well-defined objects store or access the data of a database.
*Operations – Clearly defined actions enable applications to manipulate the data and structures of a database.
*Integrity rules – Integrity rules govern operations on the data and structures of a database.
A relational database stores data in a set of simple relations. A relation is a set of tuples. A tuple is an unordered set of attribute values.
A table is a two-dimensional representation of a relation in the form of rows (tuples) and columns (attributes). Each row in a table has the same set of columns. A relational database is a database that stores data in relations (tables).
The relational model is the basis for a relational database management system (RDBMS). Essentially, an RDBMS moves data into a database, stores the data, and retrieves it so that it can be manipulated by applications.
Oracle Database is an RDBMS. An RDBMS that implements object-oriented features such as user-defined types, inheritance, and polymorphism is called an object-relational database management system (ORDBMS). Oracle Database has extended the relational model to an object-relational model, making it possible to store complex business models in a relational database.
One characteristic of an RDBMS is the independence of physical data storage from logical data structures.
In Oracle Database, a database schema is a collection of logical data structures, or schema objects. A database schema is owned by a database user and has the same name as the user name. Schema objects are user-created structures that directly refer to the data in the database. The database supports many types of schema objects, the most important of which are tables and indexes.
A schema object is one type of database object. Some database objects, such as profiles and roles, do not reside in schemas.
You define a table with a table name, such as employees, and set of columns. In general, you give each column a name, a data type, and a width when you create the table.
oracle-shema
A table is a set of rows. A column identifies an attribute of the entity described by the table, whereas a row identifies an instance of the entity.
An index is an optional data structure that you can create on one or more columns of a table. Indexes can increase the performance of data retrieval. When processing a request, the database can use available indexes to locate the requested rows efficiently.
SQL is a set-based declarative language that provides an interface to an RDBMS such as Oracle Database. In contrast to procedural languages such as C, which describe how things should be done, SQL is nonprocedural and describes what should be done. Users specify the result that they want (for example, the names of current employees), not how to derive it. SQL is the ANSI standard language for relational databases.
PL/SQL is a procedural extension to Oracle SQL. PL/SQL is integrated with Oracle Database, enabling you to use all of the Oracle Database SQL statements, functions, and data types.
A transaction is a logical, atomic unit of work that contains one or more SQL statements.
Partitions are pieces of large tables and indexes. Each partition has its own name.
Views are customized presentations of data in one or more tables or other views. You can think of them as stored queries. Views do not actually contain data.
******************************************************************************
Text is taken from this link.

Posted in Linux, Unix, WIN | Tagged , | Leave a comment

Crochet 50 : a nice summer blouse

A nice green blouse for summer :
zelena-bluzica1
zelena-bluzica2

Posted in Relaxation | Tagged , , , | Leave a comment

protect a folder under WIN 7

The problem is that in WIN 7 (and other WINs for PC use) you can protect a file with a password, but NOT a folder.
There are numerous workarounds :
1. Make a BAT file in said folder : link
2. Forbid to certain people access to said folder : link
3. Encrypt the content : link
4. Compress the data with a password. This is not usable for data that is often in use, of often changed (7 zip is good for this).

But all of this is not exactly elegant, and not really a solution.

To protect a folder under WIN 7 from anybody, you need 3rd party software – a list of options (one of them) may be found here.
People who have tested such SW say that more than one should not be used/installed on a PC, since they can get into conflicts.
Programs I have taken a look into :
1. Folder lock – commercial (link)
2. Folder guard – commercial (link)
3. Lock-a-folder – free, and has the most downloads off all that I have seen suggested (link), the problem is that it is very old (last version is from 2012)
4. Easy file locker – it does not say that it is free, last update is from 2016, problem is it has VERY bad comments, so I am not even going to try it!
4. 4 in 1 folder locker – not explicitly free, last update is from 2015
5. Microsoft private folder – free, but ooollldddd (2006), and works only on WIN XP
6. Protect folder – free, but only up till 20th opening, so not for me!

Posted in WIN | Tagged , , | Leave a comment

Musaka made from zucchinis

My college from work Branka mentioned this to me, since I have a surplus of zucchinis.

Ingredients :
3 larger zucchinis
Fresh dill
3 whole eggs
1 piece of young slty cheese (about 300gr)

Peel zucchinis, and cut the to 3mm thickness.
Mix eggs with grinded cheese, add salt and dill (per taste).
In the oiled casserole, layered with backing paper, add a layer of zucchinis and layer of this mix until you have used it all up.
Bake in a preheated oven at 180C.

How it looks before :
musaka-tikvice-sirovo
And when it is finished :
musaka-tikvice-peceno

Posted in Uncategorized | Tagged , , | Leave a comment

Free log parser

Analysis of Windows logs from different machines is why I need a log parser.
Lizard Log parser is excellent, BUT has only a 30 days free trial (which goes by VERY quickly).
So I have found out a combination of two free log parsers, of which one (Log Parser 2.2) gives the engine, and the other (Log Parser Studio) gives the GUI form (front end).
Log Parser 2.2 is a MS free product – link, but it is only CLI.
Log Parser Studio is a GUI utility which uses it (link), and which comes with a decent number of predefined queries, which are distributed per application.
Here is what it looks like :
log-parser

Posted in WIN | Tagged , | Comments Off on Free log parser

Contact form for a WordPress blog/site

If you want to add a contact form to your WordPress site or blog (like the one I have here), here is what you need to do :
1. Add plugin directly from a blog Dashboard
There are a few for contacts, and I have used “Contact Form 7” (link)
Install and activate the plug-in.
2. Open the installed plug-in with “Contact/Contact Forms” and copy the content in a blog post/new page as is. This will give you a default working contact form.
3. Adjust the contact form according to your needs
Go to “Contact/Add new” and adjust all as you need it to be.
kontakt1
When you have changed all that you want to, there will be a new string at the top.
4. Insert this new string in the contact form page.

Posted in Linux, WIN | Tagged , | Comments Off on Contact form for a WordPress blog/site

Word Press and header image, and a URL in it

So, how to put a URL link in a header image on a post?
Well you need to edit the page in your WordPress site/blog that is named : header.php
You can come to this page like this : from Dashboard/Appearance/Editor.
There is a writing in it that needs to be changed :
header1
Replaced by this :
header2

Posted in Linux, WIN | Tagged , , | Comments Off on Word Press and header image, and a URL in it