Compare 2 files on 2 different branches on GIT
◷
تاریخ انتشار: 1395/4/13 | ساعت: 14:45
Vote count: 0 I have to compare 2 files on 2 different branches on GIT.After that I need to merge it to master. I saw this : git diff branch1:full/path/to/foo.txt branch2:full/path/to/foo-another.txt Can you tell me how to fill the full path and branch1 and branch2 ? asked 29 secs agoSampath Let's b...
Why is for loop variable visible outside the loop in JavaScript?
◷
تاریخ انتشار: 1395/4/13 | ساعت: 13:16
Vote count: -2 for(var i=0; i<10; i++) { } console.log(i); Output: 10 Why am I able to use the variable initialized in for loop outside the loop in JS? This doesn't work in, say, Java. edited 1 min ago asked 1 min agoKakaji Let's block ads! (Why?)
Google map infowindow position on right side
◷
تاریخ انتشار: 1395/4/13 | ساعت: 13:16
Vote count: 0 How I can show InfoWindow with arrow on the left side like on screen? infowindow asked 1 min agoMisha Kav Let's block ads! (Why?)
Break an array to array of arrays based on the some of item's property
◷
تاریخ انتشار: 1395/4/13 | ساعت: 13:16
Vote count: 0 I am using lodash, I wanted to group an array of objects according to the sum of it's property width. I have this data set [ {id: 0, width: 2}, {id: 1, width: 2}, {id: 2, width: 4}, {id: 3, width: 1}, {id: 4, width: 3} ] Actually this is to build rows and columns, and the maximum width...
Codeginiter PHP developed site shows this message
◷
تاریخ انتشار: 1395/4/13 | ساعت: 12:07
Vote count: 0 When i request a specific url then a message shows this: This attachment was removed because it contains data that could pose a security risk I have not encountered yet with this message, don't know why occur and what is the reason, how i could solve that ? asked 1 min agojones Let's b...
index out of bounds; value 1 out of bound 0 in matlab
◷
تاریخ انتشار: 1395/4/13 | ساعت: 12:07
Vote count: 0 "hi This program in Matlab read two input file (file.txt and file2.txt) which has 80000 random number. when I execute the following program It has error(index out of bounds; value 1 out of bound 0 in Matlab). I am unable to fix this error. kindly I need i your help." .....................
Column borders to fill the entire table even if not enough data
◷
تاریخ انتشار: 1395/4/13 | ساعت: 12:07
Vote count: 0 Im making a dynamic table and i dont know how many trs i will have: <!-- language: lang-html--> <div style="height: 20cm"> <table cellpadding="0" cellspacing="0" style="border-spacing:0;border-collapse:0;font-size:12px;width: 100%;text-transform:uppercase;"> <thead> <tr style="font-wei...
Angular2 - How to Condition Import, Does More Import Slow Down the Performance?
◷
تاریخ انتشار: 1395/4/13 | ساعت: 10:47
Vote count: 0 I have this: import {StepOnePage} from '../../pages/step-one/step-one'; import {StepTwoPage} from '../../pages/step-two/step-two'; import {StepThreePage} from '../../pages/step-two/step-one'; import {StepFourPage} from '../../pages/step-two/step-one'; import {StepFivePage} from '../../...
.htaccess does not always rewrite urls
◷
تاریخ انتشار: 1395/4/13 | ساعت: 10:47
Vote count: 0 I have modified my .htaccess file to rewrite urls. My code needs to rewrite .../view_cat.php?cat=1 into .../11klassniki. It works totally fine when it goes right in the end. However, when another page uses the same part of url in the middle, .htaccess ignores it (correct me if I am wro...
Store count of each letter in array in php
◷
تاریخ انتشار: 1395/4/13 | ساعت: 10:47
Vote count: 0 I am new to PHP Development. I want to be able to store each of the character count of a word in an array. so if word is "test". I want something like arr[t] = 2 arr[e] = 1 arr[s] = 1 In terms to ASCII I would actually want something like: arr[116] = 2 arr[101] = 1 arr[115] = 1 Below i...
Would it be possible to do lazy loading in Relay?
◷
تاریخ انتشار: 1395/4/13 | ساعت: 9:13
Vote count: 0 I have a Parent component which contains many Child components as an array. Each child component contains a huge amount of data. So, I decided to not load all of them when Parent get loaded. The data fetched from Parent container is as following: { ... childs: [childId1, childId2, ...]...
Not sure why the output is printing $ instead of
◷
تاریخ انتشار: 1395/4/13 | ساعت: 9:13
Vote count: 0 So I have this program that analyzes a file that has entries of coordinates and then puts them in to an array of structs and then prints out a map of either blank spaces represented by "." or a character if there is a corresponding set of coordinates in the input file. Currently the ou...
How do I combine two subsequent "if" statements into just one if statement?
◷
تاریخ انتشار: 1395/4/13 | ساعت: 9:13
Vote count: 0 I'm using wordpress, don't think that's relevant since this is just php but just putting that out there. I have two subsequent if statements, and I wondered if there is a cleaner way to do this rather than nesting them. <?php if(is_category('3')){ ?> <?php if( get_field('the_field') ):...
Wi-Fi Direct for wifihonk in VANET without connections
◷
تاریخ انتشار: 1395/4/13 | ساعت: 8:04
Vote count: 0 Recently I'm doing a project about broadcast my location infos (latitude, longitude, bearing and speed) from gps module in smartphone, then ppls or drivers who are closer to each other could get the distance and avoid the collision(actually part of the VANET). I wa a use the Wi-Fi Dire...
SQL Server gets Access Denied when attempting to delete old log shipping transaction log backups
◷
تاریخ انتشار: 1395/4/13 | ساعت: 8:04
Vote count: 0 I'm having a problem with old Log files not being deleted after the retention period expires in a Log Shipping Job (Error Message Below) The SQL Servers Service account obviously has access to the folder since it is able to create the backup files. I suspicion is that perhaps the delet...
Increment value in a MySql query using PDO
◷
تاریخ انتشار: 1395/4/13 | ساعت: 8:04
Vote count: 0 Why this code is not working: $bdd->prepare("UPDATE `articulos` SET `telVisto` = `telVisto` + 1 WHERE `ID` ='".$_GET['id']."' "); I'm using a PDO conection that works good because it works good with other queries. Here is my data base conection: $pdo_options[PDO::ATTR_ERRMODE] = PDO::E...
Mixed C++/CLI overlaoding
◷
تاریخ انتشار: 1395/4/13 | ساعت: 6:39
Vote count: 0 Is this a proper restriction on overloading behavior. I can't figure out how to replicate a similar issue in pure C++ to compare behavior. C++/CLI code: class A {}; List<int>^ g(A &) { retu gcnew List<int>(); } template<typename T> List<T>^ g(T &) { retu gcnew List<T>(); } void f() { g...
SBT eclipse command issue on multi-project
◷
تاریخ انتشار: 1395/4/13 | ساعت: 6:39
Vote count: 0 I imported an eclipse project from an sbt multi project. The sbt eclipse command did complete normally But the resulting eclipse project is full of errors as dependency between sub projects are not seen. I think the sbt plugin is failing on multi projects, or am I missing something. Th...
Implementing Firebase Cloud Messaging on Web server
◷
تاریخ انتشار: 1395/4/13 | ساعت: 6:39
Vote count: 0 I have a server ru ing a website. I need this server to be able to administer (only downstream) notifications to three separate device groups, Android, iOS, and a client-side web app. I am trying to use firebase cloud messaging. With FCM, I plan on using the http protocol to send json ...
How to create this kind of animation for a listview?
◷
تاریخ انتشار: 1395/4/13 | ساعت: 5:36
Vote count: 0 What I want to do I've got only the first animation: <set xmlns:android="http://schemas.android.com/apk/res/android" android:duration="1000" android:interpolator="@android:anim/accelerate_interpolator"> <scale android:fromXScale="1" android:fromYScale="1.0" android:pivotX="100%" androi...