Posts

javax.net.ssl.SSLException with Facebook SDK, Android -

is working fine in my device default Facebook app, but when I tried to login with Facebook and its application I give error down. javax.net.ssl.SSLException: SSL handshake is returned an invalid session. Socket State (off, connected, bound, Input_open, Autput_open, Grafkfesbuk. Com / 31.13.79.81) I do not do any work with very little to find me, but the solution to it. Any help on this is really appreciated.

Whitelist http: content for Django application running SSL? -

I have added SSL security to my DNS web application. Now I have integrated the external API in the demo application, which is http : // running on. This is the error that I get after making external API calls. [Blocked] '' Page '' was loaded over HTTPS, but '?' Unsafe content ran away: This content should also be loaded on HTTPS. Can someone take me out of here so that I'm running a whitelisting external domain and an application on the Apache server so it has to do in Apache settings or Django. Unfortunately this is doing something that is not in the browser, Can control from the web server. Here is an explanation of this behavior: Websites that ask for sensitive information, such as usernames and passwords, to transmit content from the computer you are using Often use secure connections. If you are going to a site via a secure connection, Google Chrome will verify that the contents of the webpage have been transmitted securely if it detec...

html5 - CSS Not working On Chrome -

I'm trying to create a cool looking checkbox. I have found a checkbox after a hidden input. When the checkbox is checked, then change the font size of the label. code "> lang-html prettyprint-override"> gt; top & gt; style type =" text / Css "> Input [type =" checkbox "]: check + input [type =" hidden "] + label {font-weight: bold;} & lt; / style & gt; & lt; / head & gt; Input type = "checkbox" id = "1" /> Input type = "hidden" /> gt; label = & lt; "1" & gt; My Labels But I can not work it on chrome. But if I try it on jsfiddle with chrome Anything that works? = "Text"> changed its CSS and it works fine input [type = "checkbox"]: check + input + label {font-weight: bold; }

html - Sublime text 2 auto wrapping -

I'm surprised that I have seen a tutorial in video tutor types. In Sublimetext 2, the class name and tab will be pressed as it will appear in Form.formclass [roll = "form"] and this will be How could this be possible? Can anyone help me? For what you probably saw excellent text It provides many cool features while writing HTML or CSS, you can add more information about these to the Jithub repo.

intellij idea - pycharm auto unstashing changes after rebase -

After the Rebase (git plugin) Pycharm stashed past the past. Disputed files merge. I Also do not get related settings. How can I turn it off? VCS -> Update Project in the main menu In this area, updates from When cleaning your work tree, first specify the method for saving your changes. Changes will be restored after the update is complete. Among the available options are: Using Stesh (GIT Native) and Using Shelves (Idea Native) Then to avoid problems related to staceing data using stell (I have used for my files I'm not using Stretch, so no conflicts)

android - MediaPlayer inside SurfaceView only shows a little peace in Tablet bq 10 inches -

As you can see in the next link: This was shown only part of my SurfaceView is. The next XML I have defined is SurfaceView: My Java code to make it works is:. sv.getHolder () addCallback (new callback () {@Override public void surfaceDestroyed (SurfaceHolder holder) {mediaPlayer.release ();} @Override public void surfaceCreated (SurfaceHolder holder) {mediaPlayer .setVolume (0, 0); playVideoDelay (MediaPlayer, SV, path);} @Override public void surfaceChanged (SurfaceHolder holder, brick format, brick width, brick height) {}}); // method is called: private void playVideoDelay (Last MediaPlayer videoView, last SurfaceView sv, Uri uri) {try {videoView.setDataSource, (getActivity () getApplicationContext (), uri.). Sv.getHolder () setFormat (PixelFormat.OPAQUE); VideoView.setDisplay (sv.getHolder ()); VideoView.prepare (); If (Build.VERSION.SDK_INT> = 16) videoView .setVideoScalingMode (MediaPlayer.VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING); If (currentPositionVid>...

c# - UnhandledExceptionMode.ThrowException for AppDomain.UnhandledException -

I want to set unhandledExceptionMode.ThrowException for current AppDomain and not only for application threads. An exception from the second thread should also be handled by my current Donan_Unimated exception handler. Is it possible? Here's my code: Fixed class program {/// & lt; Summary & gt; Main entry point for the application /// & lt; / Summary & gt; [STAThread] static zero major () {applications Set unhandled exception mode (unwanted exception. Throws up); AppDomain.CurrentDomain.UnhandledException + = New UnrestrictedExceptionEndception (CurrentDomain_UnhandledException); Application.EnableVisualStyles (); Application.SetCompatibleTextRenderingDefault (wrong); Application.Run (New Form 1 ()); } Static Zero CurrentDomain_UnhandledException (Object Sender, UnhandledExceptionEventArgs E) {File.AppendAllText ("Log.txt", (Exception) e.ExceptionObject). Message + environment. Newline); }} Maybe you search for the behavior provided by Applic...

Vertically center an element on the page with CSS? -

I have to center an element of an unknown height vertically on the page. I can set it relative to the one containing division: .one {background: gray; Width: 50%; Status: Relative; Top: 50%; Conversions: Translator Y (-50%); Margins: Auto; } .cont {background: blue; Height: 300px; } Although I can not find it in vertical center on the page: .one {background: gray; Width: 50%; Status: Relative; Top: 50%; Conversions: Translator Y (-50%); Margins: Auto; } .cont {background: blue; Height: 100%; } keep this CSS :) .one {background: gray; Width: 50%; Status: Relative; Margin Top: Auto; Margin-bottom: auto; Vertical-align: medium; } .cont {display: table-cell; Background: blue; Width: 100%; }

sql - Return column name with coalesce -

I do not want to select zero value before several columns in my table. Normally I use the SELECT COALESCE (col1, col2, col3) from the table to , but this time I do not need the price , But the name of the column is an example: Table: col1 | Col2 | Call 3 tap. Empty | 3 tap 5 | 8 2 empty | 2 should come back: col3 col2 col1 to do this with a single SQL statement Any way? Note: I am using PostgreSQL. I would suggest using case statement Select when call 1 is not 'call1' when call is not 2 '2' when call 3 or else 'call 3' tap ends from table;

java - Cant mock objects on my android project -

I can not duplicate any object on my test cases. That's why I should do something wrong. I can run matters without my trial, and it works fine but as soon as I try to duplicate an object, I get the following error when I try to run the trial case. Java.lang.ExceptionInInitializerError I org.mockito.internal.creation.jmock.ClassImposterizer.createProxyClass (ClassImposterizer.java:85) > Android Studio and this is how my Gradual file appears Apply the plugin: 'android' Dependency {compile fileTree (dir: 'libs', includes:' * .jar ') Project (compilation': Google play-services_lib ') Project (compilation': Facebook-sdk_lib ') compilation' de .greenrobot: greendao: 1.3.7 'compilation' org.mockito: mockito-core: 1.9.5 "} Android { out of 'META-INF / ASL2.0' to 'meta-INF / license' outside 'meta INF / notice'} compileSdkVersion 19 buildToolsVersion "19.1.0" lintOptions {abor...

javascript - How to create one time event when the app opens? -

I'm working on an iPhone app using PhoneGap. When the user opens the app and goes to the main page, I want the database with a live call to synchronize a sync app. This function should be called only once. That is, if the user clicks on the main page again, that function should not be called because it has already been called. I want to call this function on the OnDeviceReady () function. minus on device (if (test.called) {return false;} and {test ();}} function test () {test.called = true;} I used the above concept but the function is called again when I click on a different page and then if I click on the main page, that is because this page values ​​the set value false. / P> Which event should I use to call only once in the app? I suggest that you use sessionStorage: Function on Device Repair () {if (sessionStorage.getItem (" isynync ") ===" true ") { Return false;} and {test}; SessionStorage.setItem ("isSync", "true...

haskell - defining a State' monad which counts the Gets, Puts, Bind and Returns done on it -

I am trying to define a state monad state in Haskell newtype State 's = state' {runState ':: (S, calculation) - & gt; (A, S, Count)} tracks the number of counts, gives returns and is done on it data calculation = count {Binds:: int, return :: int, gets :: int, put :: int} deriving (one, shows) installation monoid cats where mempt = count 0 0 0 mappend (count x 1 x 2 x3 x 4 ) (Calculation y1 y2 y3 y4) = calculation (x1 + y1) (x2 + y2) (x3 + y3) (x4 + y4) I have been able to define return And for this new mondo = return x = state 'f jah A. F = \ (s, count) - & gt; (X, s ', count') = runState 'st (s, count) (x, s, count & lt;> a return card ST> gt; = k = state' (\ (s, Count) in Runstrat (KX) (s, gin ' However, I am unable to get it and this state has received the' state ' And to do the same as getting it, still they need to increase the number one by one and the number one (the constant in which one gets a...

php - Ajax error when retrieving data from JSON -

I am trying to send data to my PHP file which includes values ​​in DB (this part is fine) And then send back JSON. Encoded data in a javascript file, so that I can display them, but this is not working. I do not know what's actually wrong. I'm looking at many work examples and mines are not working $ AZ ({type: "post", datatype: "jason", url: "requete.php", data: data, breakthrough: function (data) {if (data. Success == true) {warning (data. ;}}, Error: function (error thrown) {warning ('error');}}); The data is correctly sent to PHP and inserted in DB but the following JSN will not be displayed: if (isset ($ _ POST) ['Action']) & Amp; $ _POST ['action'] == 'add_attribution') {$ nom = $ _POST ['name']; $ Date = $ _POST ['date']; $ Montant = (int) $ _ POST ['montant']; $ Type = utf8_decode ($ _ POST ['type']); Enter $ Sql ​​= "BO_DEPENCE (Montant, date, place, desc...

.net - How to send SOAP request from a specific IP address with Service Reference -

Text after " Our machine has multiple IP addresses and the server only accepts requests from a specific IP address. I am looking for a way to send a SOAP request from a specific IP address. This question is for an extension, but it has been done for web context, I am using a service reference. I am using Visual Studio 2013, this proxy sections are generated from WSDL and as it uses WCF / it seems to send the request the customer's The generated proxy class looks like this:. & lt; System.Diagnostics.DebuggerStepThroughAttribute (), _ System.CodeDom.Compiler.GeneratedCodeAttribute ("System.ServiceModel", "4.0.0.0") & gt; _ Partial Public Class Implements Consoto.TestActivitySoap Public Sub New (the System.ServiceModel.ClientBase (Consoto.TestActivitySoap got TestActivitySoapClient heritage)) MyBase.New () End Sub Public Sub New (ByVal endpointConfigurationName as string) MyBase.New ( endpointConfigurationName) end sub public all new (ByVa...

tcl and gnuplot interaction -

Currently, I have to handle the data processing part. Assume that the data is stored in a TCL list variable. If I want to use Gnuplot to show data, what is the best way to do this? Based on my study, the data file provided to Gnuplot is required. So I can not pass the list variable directly to the gnuplot command I think with the string operation, create the gnu command inside TCL and then print all the commands in a file, for example, "command.dat "Give Name And call gnuplot in tcl like this: exec gnuplot" command.dat " Any other method? Or good references

c# - How to set DataContext in a Dialog Window to its parent's DataContext -

itemprop = "text"> I created a new window which I call after using the following code: NieuwSimulatie NiewSimulatieWindow = New Investigation () {Master = this}; Bool? SimulatieAangemaakt = NiewSimulatieWindow.ShowDialog (); In the window "NieuwSimulatie" I want to do the same DataContext as in my MainWindow, or I try using RelativeSource I want to DataBind directly to Geuss DataContext, Ive tried Key: & lt; Control: SplitButton X: Name = "ProjectNaam" DisplayMemberPath = "ProjectNaam" ItemsSource = "{Binding Static.Projecten, RelativeSource = {RelativeSource Mode = FindAncestor, AncestorType = Control: MetroWindow}}" /> But it does not work. Please help me fix my databanking or set the datacentax of my window in the data contact behind Meteindo. I have access to your datacentech, from which you create your own window How to: NeivaSlimatity News Simulativindo = New New Evaluation () {Owner = this, Dat...

java - How avoids SonarQube major issues, while using LinkedList method? -

I wonder how I can avoid the SonQuebeck issue: Announcements to Java The archive interface should be used as a "list" rather than special implementation classes such as "linkedlist" , so I want to use the specific method of linkedlist in this way: LinkedList & lt; String & gt; Item = new linked list & lt; String & gt; (); // add someitems string elem = items.removeFirst (); The only solution I have to get is to convert to Qi, but then I have to use the methods of the interface: qi I can remove the object before using this method. Is there any other solution? In this case, the method must be used to recommend this method, As mentioned in the javadoc of: removeFirst comes from the interface and this is the interface you should use instead of working directly with the implementation.

php - Exclude Products from loop using woocommerce -

I have to exclude some products in the category loop product page using woocommerce. Only that product will be given a specific value in the meta table. I have written the code below but it is not working for me. Please help me. add_filter ('pre_get_posts', 'custom_pre_get_posts_query'); Function custom_pre_get_posts_query ($ q) {if (! $ Q- & gt; is_main_query ()) returns; If (! $ Q- & gt; is_post_type_archive ()) returns; $ Q- & gt; Set ('meta_query', array (array (array ('key' = & gt; '_auction_closed', 'compare' = & gt; 'does not exist')))); Remove_filter ('pre_get_posts', 'custom_pre_get_posts_query'); } Try the following code: Add_filter ('Pre_get_posts', 'custom_pre_get_posts_query'); Function custom_pre_get_posts_query ($ q) {if (! $ Q- & gt; is_main_query ()) returns; If (! $ Q- & gt; is_post_type_archive ()) returns; $ Meta_query = $ q- & gt; ...

php - Using Encryption (Hash Algorithm) On Variables -

Currently, I am encrypting data in a database that uses the code found on the web and the introduction of the subject in the form of. My question arises from here, two Wiki Hoo articles (and is special for these articles): one on encryption; On the other, both articles appear quite good; However, there is a significant difference between the two: the JavaScript definition of hashing algorithms used in the former states ( $ password = hash ('sha512', $ password. $ Salt) is required for PHP itself To work. Php hash () With the addition of the method (found in both articles), the authors of the first states, which are the By reading the PHP documentation, my impression was that hash (sha512) encrypts the external form (Writer suggests Javascript). () was able to handle a series of pre-defined hashing algorithms recognized by an identifier, such as whirpool , sha512 , etc. These PHP identifiers can be caught by hash_algos () (or you can just read the document)....

ios - "Scan Response" not available in advertisementData -

I have a configuration problem with a BLE 112 module: I can not display the contents of the scan response. I am attempting to use this method through adadata dictionary: - (zero) Central Manager: (CBC Central Manager *) Central discounter Peripheral: (CBParyFerral *) Peripheral AdData: (NSDRIED *) AdData RSSI: (NSN * *) RSS {NSG (@ "AdvertisingData:% @", AdData); } I use the code given by BlueGiga as an example: Here is the URL for the zip file What do I get in the ad here? : adv: {kCBAdvDataIsConnectable = 1; KCBAdvDataManufacturerData = & lt; Ffffb1b2 b3 & gt; KCBAdvDataTxPowerLevel = 3; } But I almost do not display the contents of the scan response, i.e. the local name CBSdvertisementDataLocalName on iOS. Using sniffer, scan response is available, though ... The following scan response was used for formatting. Bgs is part of the script: # Flags for Searchable / connectable ad_data (0: 1) = $ 02 # Ad field length = 2 bytes adv_data (1: 1) = ...