w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Using HTTPS or SSH with GitHub
https is easier to use than ssh. With ssh, you need to: generate a public/private key publish it on GitHub launch (if you really want security) an ssh-agent to enter the passphrase you would have associated to your private key. https just reuse the GitHub credential you already have. If you don't want to enter your GitHub password for each git command, you can store those credentials in an encrypted ~/.netrc.gpg (or %HOME%/_netrc.gpg on windows). See a full step-by-step example at "Is there a way to skip password typing when using https:// github". I store that way several credentials (to GitHub, BitBucket, internal repos, ...) in one (encrypted) file, and I type one password (the gpg passphrase) once in the morning. I can then access all those repos without having to enter my creden

Categories : GIT

could not read Username for 'https://github.com': No such device or address
I think you need to set the git config via the command line. See the github setup documentation: https://help.github.com/articles/set-up-git#platform-all $ git config --global user.name "Your Name Here" $ git config --global user.email "your_email@example.com" Etc.

Categories : GIT

Why does git fetch fail with "Could not resolve host: (nil)..." with https://github.com/mxcl/homebrew origin?
You remote URL is incorrect, it should be https://github.com/mxcl/homebrew.git (.git postfixed) instead of https://github.com/mxcl/homebrew. You can copypaste URLs from Github UI to prevent such typos.

Categories : GIT

Ember 1.0.0: Ember.State has been moved into a plugin: https://github.com/emberjs/ember-states
According to this pull request Ember itself does not use Ember.State internally anymore, and as of this Ember Data commit Ember Data did not depend on the Ember.State implementation (a new/better way to handle internal state in Ember Data was used instead). Since neither library has a dependency for Ember.State they moved it to its own package, which can be included manually if you still require it. Github repository for Ember.State can be found here Using this table you can see that when using Ember Data 0.13 and Ember 1.0.0, Ember Data 0.13 tries to use Ember.State, but Ember 1.0.0 does not provide it and causes your error. +-------------------------+------------------+----------------------+ | Library | Uses Ember.State | Provides Ember.State | +--------------------

Categories : Ember Js

Github, Github for Windows, on every commit generates us.stackdump
This is similar to the msysgit issue (in progress) 25, with one only suggestion for now: replace msys-1.0.dll by a new one in "documents and settingsadministratorlocal settingapplication datagithubportablegit_xxxx..." Try first to commit with the msysgit included in GitHub for Windows, and see if the issue persists. Launch a session through C:UsersYourUsernameAppDataLocalGitHubPortableGit_93...git-cmd.bat Or through the icon "Git Shell", which launches: C:UsersYourUsernameAppDataLocalGitHubGitHub.appref-ms --open-shell

Categories : Github

Does it make a difference to use the GitHub app when integrating Xcode with GitHub?
You can still have conflicts. If somebody makes a change to the project file and you make a change to the project file and you try to commit it at the same time as (or soon after) the other person, there's a good chance you'll see conflicts. Thankfully, the "project.pbxproj" project file is text which can you can open with your favorite editor (vi or emacs or whatever) and you can resolve the conflicts rather easily.

Categories : Xcode

Facebook like button https issue: protocol mismatch from http and https
Reviewing the js code on Facebook there are multiple urls containing hard coded strings for http://static .../rsrc.php it's possible those are the files triggering the error. This may be something Facebook needs to update. On a side note, it may be possible to download that js file from Facebook and store it on your server and remove the hard coded http string. I would test this further but I am on my phone at the moment.

Categories : Facebook

when using https, https can't find codeigniter controllers. Running Centos
Change this line : RewriteRule ^(.*)$ index.php?/$1 [L] to : RewriteRule ^(.*)$ /index.php?/$1 [L] The .htaccess would otherwise be redirected relatively to a index.php in the join folder, which off course is not there.

Categories : PHP

Once https page is visited, all subsequent pages are served from https
ok I think I found the reason. The links I am visiting are relative, so "/forum" for example. Once https is in the browser it seems like visiting a relative address is leaving the root as https:// and appending the relative path. I believe the fix here will be to use the full path for the link instead of relative.

Categories : Htaccess

How do you enable https and http->https redirects in ring / compojure
It's possible to serve HTTPS with clojure, but it's much more popular to put nginx or something like that in front of your ring server. If you can figure out how to configure jetty, though, run-jetty clearly supports SSL.

Categories : Http

Can https fallback to http and security level of https
No, HTTPS never falls back to HTTP automatically. It would take deliberate action by the user. If you're just going to a web page by putting its URL into the address bar, this is easy; for form submission it's harder. Yes, sending plain text over SSL is fine. In fact, sending a hashed password doesn't really increase security much at all -- if someone manages to sniff the connection and gets the hashed password, that's all they need to be able to login to the site. It has one small advantage: if the user uses the same password at multiple sites, learning the hashed password for one site doesn't help them get into another site that uses a different (or no) hash. And it's not likely to be feasible to send salted hashes, since the client doesn't know the salt. A cnonce adds an extra level

Categories : Asp Net

Redirect all http AND https non-www URLS to https://www.xyz.com via htaccess
In case anyone from the future (HELLO PEOPLE OF THE FUTURE) stumble across this, I asked the same question and had it answered over at Server Fault. Short version: impossible. Long version: http://serverfault.com/questions/523199/redirect-all-http-and-https-non-www-urls-to-https-www-example-com-via-htaccess

Categories : Htaccess

How can i convert links to https when server providing https?
If you remove the http:// portion and use instead: <script type="text/javascript" src="//static.monstermmorpg.com/js_files/jquery-1.9.1.min.js"></script> It should request based on the current scheme being used.

Categories : C#

github for windows, cloned repos don't put in github tab
According to github support, "Currently the 'github' tab only shows repositories that are under your account or under an organization that you belong to." Maybe requested feature will be added later

Categories : Misc

HTTPS GET request to https://www.googleapis.com/plus/v1/people/me
Create a Google_Oauth2Service object (put it under the $plus initialization), like: $client = new Google_Client(); $plus = new Google_PlusService($client); $oauth2 = new Google_Oauth2Service($client); and after succesfully authenticating the client use: $userInfo = $oauth2->userinfo->get(); $email = $userInfo['email'];

Categories : PHP

Where is GitHub Flavored Markdown (GFM) actually used in GitHub?
It's used when you display your README.md file on your repository front page, for example. Also, when you add comments it's GFM.

Categories : Github

GitHub - failed to connect to github 443 windows/ Failed to connect to gitHub - No Error
Well I did following steps Google the error Got to SO Links(here, here) which suggested the same thing, that I have to update the Git Config for proxy setting Damn, can not see proxy information from control panel. IT guys must have hidden it. I can not even change the setting to not to use proxy. Found this wonderful tutorial of finding which proxy your are connected to Updated the http.proxy key in git config by following command git config --global http.proxy http[s]://userName:password@proxyaddress:port Error - could not resolve proxy some@proxyaddress:port. It turned out my password had @ symbol in it. Encode @ in your password to %40 because git splits the proxy setting by @ git config --global http.proxy http[s]://userName:password(encoded)@proxyaddress:port B

Categories : GIT

IHttpHandler to redirect "https://example.com" to "https://www.example.com"?
If you use IIS7, you might want to try URL Rewrite Module. http://www.4guysfromrolla.com/articles/072810-1.aspx http://www.jppinto.com/2010/03/automatically-redirect-http-requests-to-https-on-iis7-using-url-rewrite-2-0/

Categories : Asp Net

Migrating code away from Github to Google code back to Github
Apply a Cost–benefit analysis to forking the project. Cost forking could dilute the project and create confusion Benefit could renew interest in the project and result in more issues being fixed In my opinion it is worth it, you could alleviate some confusion by having a detailed README on your homepage decribing the situation and/or linking here.

Categories : Github

How to redirect from url: https://myfavourite.test.com/Account/LogOn?ReturnUrl=/ to url: https://myfavourite.test.com/ using IIS7.5
I followed the steps mentioned in the below mentioned article and it helped me. http://www.trainsignal.com/blog/iis7-url-rewrite-extension-on-windows-server-2008 I used the Redirect option and then added a Blank rule with the following regular expression: account$|account/(?!LogOff) and that helped me to resolve the redirection issue.

Categories : Asp Net Mvc

Cloning a repo from someone else's Github and pushing it to a repo on my Github
Taken from Git push everything to new origin basically you have to associate a new repo to your folder git remote add origin <address> git push origin <branchname>

Categories : GIT

apache redrict 301 from https://www.domain.com to https://domain.com
If you request https://www.meinedomain.de/ and your cert isn't authorized for www.meinedomain.de, then you'll get a security warning regardless of how you redirect. The redirect can only happen after they accept the security exception. Make sure you've put those rules in the SSL vhost's config, not the non-SSL one. Apache usually has them separate. If that still doesn't work, you can try just putting this in an htaccess file in your document root: RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www.meinedomain.de$ [NC] RewriteRule (.*) https://meinedomain.de%{REQUEST_URI} [R=301,L]

Categories : Apache

How to correctly watch for changes
The code you posted in the question isn't relevant to the problem you're facing, the problem is in your validator, you're calling preventDefault(). The default behavior of the input element is cancelled, and you aren't calling $digest manually, so there is nothing to trigger the digest loop. Two solutions: Remove the e.preventDefault(); Call scope.$digest() in your keydown handler http://plnkr.co/edit/HtjnNmored70rAPOOMg6

Categories : Javascript

watch.js is going nuts
FIXED! in the loop function wrap everything in this if(lengthsubjects.length!==0){} because if you do console.dir(lengthsubjects); you get: length: 0, __proto__: Array[0] here is the change in watch.js from lines 340-360: var loop = function(){ if(lengthsubjects.length!==0){ for(var i in lengthsubjects){ // var subj = lengthsubjects[i]; var difference = getObjDiff(subj.obj[subj.prop], subj.actual); if(difference.added.length || difference.removed.length){ if(difference.added.length){ for(var j in subj.obj.watchers[subj.prop]){ watchMany(subj.obj[subj.prop], difference.added, subj.obj.watchers[subj.prop][j], subj.level - 1, true); } } callWatchers(subj.

Categories : Javascript

Watch in AngularJS
How about changing it to an object (DEMO)? $scope.results = {}; You've used an array.

Categories : Javascript

need help to understand angular $watch
Firstly, you do not have to specify the scope object when referencing to a property of the scope. So, replace: $scope.$watch('$scope.albums', ...) with the following: $scope$watch('albums', ...) Now about your issue. $watch is triggered each time the value of the object / property being watched changes. This includes even those cases when the values are yet to be assigned, such as undefined and null. Thus, if you wish that the save should happen only when a new album is added, you can have code similar to: //Makes assumption that albums has a length property $scope.$watch('albums.length', function () { //Check for invalid cases if ($scope.albums === undefined || $scope.albums === null) { return; } //Genuine cases. //Proceed to save the album. }); With

Categories : Angularjs

How to $watch multiple variables?
$watch method accepts a function as first parameter (beside a string). $watch will "observe" the return value of the function and call the $watch listener if return value is changed. $scope.$watch( function(scope){ return {image: scope.image, titleImage: scope.titleImage}; }, function(images, oldImages) { if(oldImages.image !== images.image){ console.log('Image changed'); } if(oldImages.titleImage !== oldImages.titleImage){ console.log('titleImage changed'); } }, true ); Also you might observe a concatenated value, but that doesn't let you know which one of the observed values actually changed: $scope.$watch('image + titleImage', function(newVal, oldVal) { console.log('One of the images have changed'); } ); And you can also wat

Categories : Angularjs

How to watch a folder and subfolders for changes
A WatchService only watches the Paths you register. It does not go through those paths recursively. Given /Root as a registered path /Root /Folder1 /Folder2 /Folder3 If there is a change in Folder3, it won't catch it. You can register the directory paths recursively yourself with private void registerRecursive(final Path root) throws IOException { // register all subfolders Files.walkFileTree(root, new SimpleFileVisitor<Path>() { @Override public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException { dir.register(watchService, ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY); return FileVisitResult.CONTINUE; } }); } Now the WatchService will notify all changes in all su

Categories : Java

Watch instructions from executable?
Sure, but there are varying levels of difficulty. If you give them a debug build, it could be pretty easy for them to launch your executable in a debugger and then just use their debugging tools to watch the execution (just like programmers do when they develop). If you give them a stripped but not optimized build, then they don't have all the debug symbol names but they can still load your program in a debugger and watch it execute, instruction by instruction and map out what memory is being used and how. It's more difficult, but still possible. If you give them a stripped, optimized build, it's a bit harder (as the optimizer can produce some complex and hard to follow assembly) but still not impossible. It's always possible, in the end. Whether or not it's worth someone's time and eff

Categories : C++

two way data binding with watch
Please see this question. Here is your corrected code : return { restrict : 'A', link : function($scope, $element, $attrs) { $scope.$watch($attrs.ngModel, function(x) { console.log('this is model: ' + x); }); } }

Categories : Angularjs

this.watch not getting called in deferred.then()
watch handlers are independent of the context they are added. They are just hooked onto the respective Stateful objects. In the above code, the end-braces of the watch block - }) are missing. Maybe, that is the issue. Please refer a simple example below: <script type='text/javascript'> dojo.require("dijit.form.TextBox"); dojo.require("dojo._base.Deferred"); dojo.require("dojo.ready"); var def = null; dojo.ready(function(){ def = new dojo._base.Deferred(); var _this = dijit.byId('namefield'); def.then(function(resp) { _this.watch("value",function(a,b,c) { console.info(''+a+'-'+b+'-'+c); }); }); }); function func() { if(def) { def.resolve(true); console.info('resol

Categories : Javascript

compass watch error - Mac OS X
It looks like you might have a version of SASS that doesn't work with this version of Compass I found the answer here: https://github.com/chriseppstein/compass/issues/1514 The following worked for me: Look at the version of SASS you have installed (you said Sass 3.3.0.alpha.253) sass --version Uninstall sass: sudo gem uninstall sass Reinstall sass - you should get the latest working version: sudo gem install sass Reinstall Compass (I did this and it kept my working version of SASS): sudo gem install compass

Categories : Ruby

angularjs $watch is not working
You are watching in wrong way it should be string value like var Controllers = angular.module('myapp'); Controllers.controller('SignUpCtrl', function ($scope,$http,$location) { $scope.$watch('password', validatePasswordFun); function validatePasswordFun(newValue,oldValue,scope){ console.debug("Test"); } }); Internally watch is using $parse service available which expects the property name so you wrap inside a string 'password' so that $parse could work properly --edit working html <!DOCTYPE html> <html ng-app="Demo" > <head lang="en"> <meta charset="utf-8"> <title>Custom Plunker</title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.min.js"></scri

Categories : Angularjs

$watch inside a service?
You can add any expression to the set of watches by injecting the $rootScope and using a function a first argument to the $watch method. Pseudo-code: $rootScope.$watch(function() { return //value to be watched; }, function watchCallback(newValue, oldValue) { //react on value change here }); Don't forget about the third, Boolean argument to the $watch method. You need to specify true if you want to deep-watch an entire object for changes.

Categories : Angularjs

$scope.$watch, but just for ngChange events?
First, anytime I have tried to do something like this is turned out to be a bad idea - I was just working around design problems in my code or logic problems in my business logic. In general, the code should not care HOW the data was changed, only that it HAS changed. Second, $watch can give you both the old and new value - this has been enough for me. if the old value not equal to the new value, I want to update the related data model(s). If that old and new value are equal, I want to ignore the update. Finally, You may consider using resolve with your routes eliminate "database loading" as the fully located data can be passed into your controller (assuming you return a promise). .

Categories : Angularjs

Consistency of Watch position Phonegap
Timeout simply sets the maximum time that's allowed to pass from a call to get the current position to the time it's returned. This does not affect how often it sends the current position but does fire onError when it can't get a position within your timeout (3 minutes in your case). http://docs.phonegap.com/en/3.0.0/cordova_geolocation_geolocation.md.html#geolocationOptions As for background mode, it is possible on Android and iPhone. On Android, this seems to be the default behavior. For iPhone, in Xcode go to Targets -> Info -> Right click to add row. Choose "Required Background Modes" click the + sign, and for the value choose "App registers for location updates." Edit: if you're really set on checking the geo position every 3 minutes (and not as fast as the GPS responds), I sugges

Categories : Cordova

Get DOM element of watch event in Angular.JS
You can use the angular.element api. It uses jquery if present. But you shouldn't access the DOM inside the controller. If you can't do this without manipulating DOM, try to encapsulate this code inside a directive.

Categories : Javascript

Setting up interrupts to watch for pin change
*Updated answer, the hardware is an Atmega88. #include <avr/io.h> #include <avr/interrupt.h> ISR (PCINT0_vect){ /* This is where you get when an interrupt is happening */ } int main(void) { /*Assumes that you are using PCINT0. *It is also known as PB0 */ DDRB &= ~(1<<PB0); /* Set PB0 as input */ PORTB |= (1<<PB0); /* Activate PULL UP resistor */ PCMSK0 |= (1 << PCINT0); /* Enable PCINT0 */ PCICR |= (1 << PCIE0); /* Activate interrupt on enabled PCINT7-0 */ sei (); /* Enables interrupt */ /* cli (); is used to disable interrupts. */ for(;;){ } return 0; } The above example uses PB0 as input and activates a internal pull up resistor. This will have the effect that PINB is 1 until i

Categories : C

Make a video "watch page"
<?php $videokey = $_REQUEST['key']; $connect = myqli_connect('localhost,'dbusername','dbpassword,'dbname'); $SQL = "SELECT 'videoname' where videokey = $videokey "; $query = mysqli_query($SQL); $result = mysqli_fetch_array($query, MYSQLI_ASSOC); ?> <html> <body> <video width="320" height="240" controls> <source src="<?php echo $result["videoname"];?>" type="video/mp4"> </video> i hope it will do the basic job of getting video from mysql table containing two coloumns named videokey and videoname.

Categories : PHP

Iterate in a watch for a SQL Parameter List
It seems to be not possible (see), but here could be the solution.

Categories : Dotnet



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.