Displaying 71-80 of 268 results.
Wiki: NetBeans XAMPP: Connect to git repository and delete existing file from GitHubwiki
posted by admin on October 7, 2016
altIf youtry to delete file from NetBeans, after that try to do commit and push project to update repository, you cant see any deleted files, which you deleted on NetaBenas.

Now I want to share to you my version, to resolving that problem Step By Step

1. Adopt your netbeans project with github repository
All instruction here, how to install and work with NetBeans and Git repository and how to do

  1. How to Initialize a Git Repository
  2. How to Open Window > Output > Output
  3. How to add files or directly commit them to the Git repository
  4. How to clone existing project from Git repository location by user name and password or how to push existing project from NetBeans location by user name and password to Git repository
  5. etc...

2. Download GIT Bash
Official website for downloading Git Bash

3. Open Git Bash command output window
Change your directory to your NetBeans project directory, to find .git files

$ cd c:

a.ovasafyan@IT04 MINGW64 /c
$ cd xampp/htdocs/

a.ovasafyan@IT04 MINGW64 /c/xampp/htdocs
$ cd bukivedi.store

a.ovasafyan@IT04 MINGW64 /c/xampp/htdocs/bukivedi.store (master)

If all is right, you must see the word (master)

Check status

$ git status

If all is done, you can see this message

$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean

3. Starting delete process
Deleting file from local repository by rm

$ git rm "index-test.php"

right result:

$ git rm "index-test.php"
rm 'index-test.php'

Checking status after our deleting operation

$ git status

Right result:

$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)

deleted: index-test.php

check file on your NetBeans Project... File will be deleted successfully, and you can't see that file!
Saving our changes by commit

$ git commit -m "We are testing delete event of Git"

Right Result:

$ git commit -m "We are testing delete event of Git"
[master 3cf6321] We are testing delete event of Git
1 file changed, 15 deletions(-)
delete mode 100644 index-test.php

Push our changes to our Git Repository

$ git push

Right Result:

$ git push
Counting objects: 2, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 252 bytes | 0 bytes/s, done.
Total 2 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local objects.
To https://github.com/arthurhovasap/bukivedinstore.git
aac9734..3cf6321 master -> master

Check you repository and enjoy!Read more
Wiki: Google Maps API Maps JavaScript API Place Autocompletewiki
posted by admin on October 12, 2016

<!DOCTYPE html>
<title>Place Autocomplete</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
html, body {
height: 100%;
margin: 0;
padding: 0;
#map {
height: 100%;
.controls {
margin-top: 10px;
border: 1px solid transparent;
border-radius: 2px 0 0 2px;
box-sizing: border-box;
-moz-box-sizing: border-box;
height: 32px;
outline: none;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);

#pac-input {
background-color: #fff;
font-family: Roboto;
font-size: 15px;
font-weight: 300;
margin-left: 12px;
padding: 0 11px 0 13px;
text-overflow: ellipsis;
width: 300px;

#pac-input:focus {
border-color: #4d90fe;

.pac-container {
font-family: Roboto;

#type-selector {
color: #fff;
background-color: #4d90fe;
padding: 5px 11px 0px 11px;

#type-selector label {
font-family: Roboto;
font-size: 13px;
font-weight: 300;

<input id="pac-input" class="controls" type="text"
placeholder="Enter a location">
<div id="type-selector" class="controls">
<input type="radio" name="type" id="changetype-all" checked="checked">
<label for="changetype-all">All</label>

<input type="radio" name="type" id="changetype-establishment">
<label for="changetype-establishment">Establishments</label>

<input type="radio" name="type" id="changetype-address">
<label for="changetype-address">Addresses</label>

<input type="radio" name="type" id="changetype-geocode">
<label for="changetype-geocode">Geocodes</label>
<div id="map"></div>

function initMap() {
var map = new google.maps.Map(document.getElementById('map'), {
center: {lat: -33.8688, lng: 151.2195},
zoom: 13
var input = /** @type {!HTMLInputElement} */(

var types = document.getElementById('type-selector');

var autocomplete = new google.maps.places.Autocomplete(input);
autocomplete.bindTo('bounds', map);

var infowindow = new google.maps.InfoWindow();
var marker = new google.maps.Marker({
map: map,
anchorPoint: new google.maps.Point(0, -29)

autocomplete.addListener('place_changed', function() {
var place = autocomplete.getPlace();
if (!place.geometry) {
window.alert("Autocomplete's returned place contains no geometry");

// If the place has a geometry, then present it on a map.
if (place.geometry.viewport) {
} else {
map.setZoom(17); // Why 17? Because it looks good.
marker.setIcon(/** @type {google.maps.Icon} */({
url: place.icon,
size: new google.maps.Size(71, 71),
origin: new google.maps.Point(0, 0),
anchor: new google.maps.Point(17, 34),
scaledSize: new google.maps.Size(35, 35)

var address = '';
if (place.address_components) {
address = [
(place.address_components[0] && place.address_components[0].short_name || ''),
(place.address_components[1] && place.address_components[1].short_name || ''),
(place.address_components[2] && place.address_components[2].short_name || '')
].join(' ');

infowindow.setContent('<div><strong>' + place.name + '</strong>
' + address);
infowindow.open(map, marker);

// Sets a listener on a radio button to change the filter type on Places
// Autocomplete.
function setupClickListener(id, types) {
var radioButton = document.getElementById(id);
radioButton.addEventListener('click', function() {

setupClickListener('changetype-all', []);
setupClickListener('changetype-address', ['address']);
setupClickListener('changetype-establishment', ['establishment']);
setupClickListener('changetype-geocode', ['geocode']);

<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&signed_in=true&libraries=places&callback=initMap"
async defer></script>
Read more
Resolved: Bootstrap How Make Glyphicons Bigger - Change Size (like Fonts Awesome fa-nx)
posted by admin on October 12, 2016
I have icon in bootstrap , and I want to make him bigger, change size.
I can do it by font-size, but I want to know how to do it by bootstrap default functionality.

<span class="glyphicon glyphicon-camera"></span>

I dont want method like this

font-size: 2em;

I want method by classes systems, like awesome fonts fa-2x etc...Read more
Wiki: Bootstrap text-align classeswiki
posted by admin on October 12, 2016

<p class="text-left">Left aligned text.</p>
<p class="text-center">Center aligned text.</p>
<p class="text-right">Right aligned text.</p>
<p class="text-justify">Justified text.</p>
<p class="text-nowrap">No wrap text.</p>
Read more
Resolved: Bootstrap Form File Element upload button
posted by admin on October 12, 2016
I want customize my upload file input by bootstrtap default functionalityRead more
Wiki: Bootstrap Form Inputswiki
posted by admin on October 12, 2016
Supported Form Controls
Bootstrap supports the following form controls:
  • input
  • textarea
  • checkbox
  • radio
  • select

Bootstrap Input
Bootstrap supports all the HTML5 input types: text, password, datetime, datetime-local, date, month, time, week, number, email, url, search, tel, and color.
Note: Inputs will NOT be fully styled if their type is not properly declared!

<div class="form-group">
<label for="usr">Name:</label>
<input type="text" class="form-control" id="usr">
<div class="form-group">
<label for="pwd">Password:</label>
<input type="password" class="form-control" id="pwd">

Bootstrap Textarea
The following example contains a textarea:

<div class="form-group">
<label for="comment">Comment:</label>
<textarea class="form-control" rows="5" id="comment"></textarea>

Bootstrap Checkboxes
Checkboxes are used if you want the user to select any number of options from a list of preset options.

The following example contains three checkboxes. The last option is disabled:

<div class="checkbox">
<label><input type="checkbox" value="">Option 1</label>
<div class="checkbox">
<label><input type="checkbox" value="">Option 2</label>
<div class="checkbox disabled">
<label><input type="checkbox" value="" disabled>Option 3</label>

Use the .checkbox-inline class if you want the checkboxes to appear on the same line:

<label class="checkbox-inline"><input type="checkbox" value="">Option 1</label>
<label class="checkbox-inline"><input type="checkbox" value="">Option 2</label>
<label class="checkbox-inline"><input type="checkbox" value="">Option 3</label>

Bootstrap Radio Buttons
Radio buttons are used if you want to limit the user to just one selection from a list of preset options.

The following example contains three radio buttons. The last option is disabled:

<div class="radio">
<label><input type="radio" name="optradio">Option 1</label>
<div class="radio">
<label><input type="radio" name="optradio">Option 2</label>
<div class="radio disabled">
<label><input type="radio" name="optradio" disabled>Option 3</label>

Use the .radio-inline class if you want the radio buttons to appear on the same line:

<label class="radio-inline"><input type="radio" name="optradio">Option 1</label>
<label class="radio-inline"><input type="radio" name="optradio">Option 2</label>
<label class="radio-inline"><input type="radio" name="optradio">Option 3</label>

Bootstrap Select List
Select lists are used if you want to allow the user to pick from multiple options.

The following example contains a dropdown list (select list):

<div class="form-group">
<label for="sel1">Select list:</label>
<select class="form-control" id="sel1">
Read more
Wiki: Bootstrap CSS Style colors classeswiki
posted by admin on October 12, 2016
Add meaning through text-colors with the classes below. Links will darken on hover:
Class Description

.text-muted Text styled with class "text-muted"
.text-primary Text styled with class "text-primary"
.text-success Text styled with class "text-success"
.text-info Text styled with class "text-info"
.text-warning Text styled with class "text-warning"
.text-danger Text styled with class "text-danger"

Add meaning through background-colors with the classes below. Links will darken on hover just like text classes:
Class Description

.bg-primary Table cell is styled with class "bg-primary"
.bg-success Table cell is styled with class "bg-success"
.bg-info Table cell is styled with class "bg-info"
.bg-warning Table cell is styled with class "bg-warning"
.bg-danger Table cell is styled with class "bg-danger"
Read more
Resolved: Yii 1.1 Relation to same model relations HAS_MANY BELONGS_TO error
posted by admin on October 12, 2016
I have this error
Trying to get property of non-object
php code

($model->creator_id) ? $model->creator->firstname . ' ' . $model->creator->lastname : 'Нет',

model relations:

public function relations()
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
return array(
'creator' => array(self::BELONGS_TO, 'User', 'creator_id'),
'creator' => array(self::HAS_MANY, 'User', 'creator_id'),
Read more
Resolved: Yii 1.1 How to get attribute from model attributeLabels function in CDetailView custom field
posted by admin on October 12, 2016
I have this CDetailView

<?php $this->widget('zii.widgets.CDetailView', array(
'label' => Yii::t('translation', 'Created'),
'type' => 'raw',
'value' => app::datetimeUserFriendly($model->created),
. . .
)); ?>

I want to read label from model attributeLabels.Read more
Resolved: PHP datetime to russian user friendly format converting. Дата и время на русский на дружественный вид
posted by admin on October 12, 2016
I have datetime from databse MySQL, in format
2016-10-10 12:34:33

By PHP datetime formats I can have string like this
07 October 2016, 04:11, Friday

But I want the3 same output, but in russian
07 Октября 2016, 04:11, ПятницаRead more