Posts

python - PsychoPy reopen window -

I have done a dot probe paramaem program using standalone psychopathic v1.80.03. After the dot inquiry I need a revised work that looks like dot probe. So I use the window again and pass the dot probe object to the container of the stimuli attached to this window in the manufacturer of the second task. Before starting another task, however, some information needs to be input (eg condition) using a gui.DlgFromDict . In the fullscreen still with dot-screen window, the dialog box can not be reached. I tried to change the fullscreen to false by dotProbe.window.fullscr = False one dotProbe.window.flip () but once the window is turned on There is no effect by changing this attribute. Closing the window with dotProbe makes window.close () dialogue accessible but there is no such task which opens the window to proceed in the other job. Of course I Only a new window can be created, but as I said that I need equal setup with excitement on exact same posts and all the other param...

javascript - Regex expression is not working? -

I am trying to create a regex expression with this requirement. Requirement: Maximum Length - 5 (inc decimal point if decimal number is) Decimal Accession - Maximum 2 digits (if it is a decimal number). Number - no need to be a decimal number (not mandatory) Code: & lt; Script & gt; Function myFunction () {var regexp = / ^ (????? \\.? $) \ D {0,5} (\. \ D {0,2})? $ /; Var num = 12345.52; // I will test indifernt methods var n = regexp.test (num) document.getElementById ("Demo") here. InnerHTML = n; // returns true or false} & lt; / Script & gt; The output should look like: 12345.52 - & gt; It should be returned to false because length is 8 inc dot but this return true 123456.52 - & gt; false . I found out d {0,5} looking for decimal before 12.45 - & gt; truth . Correct One (Length 5, Precision 2) 12345 - & gt; truth . I am hoping to make a Rizax expression, I satisfy all the above situations. Re...

mysql - Selecting the data that isn't in a query -

I want to select all those posts that are not marked as read by the user. pre> user_id post_id 3 1 3 4 I want to select all the data that is not selected in this query SELECT p. post_id, p.post_message FROM tbl_post as p LEFT JOIN tbl_mark_as_read AS r.post_id = p.post_id and r.user_id = 3 I want to be like output post_id post_message 2 goodnight 3 good morning cool you can not not in op RATER: SELECT * fROM tbl_post Do not post in the WHERE (SELECT post_id FROM tbl_mark_as_read); If you want to exclude only the post whose user has read 3, you can add a where section to the internal query: SELECT * fROM tbl_post WHERE do not post_in (SELECT post_id FROM tbl_mark_as_read WHERE user_id = 3);

python - Can lambdify return an array with dytpe np.float128? -

I am solving a large non-linear system of equations and I need a higher number of numerical precision. I am using sympy.lambdify to convert the system of equations and its Jacobian to vector work, which take inputs as inputs and return a ndarray as outdated. By default, lambdify numpy.float64 returns an array with dtype. Is it possible to return an array with dtype numpy.float128 ? Maybe the dtype of numpy.float128 for input is required Output only shows input: import from imported sympy.utilities from float 128 imported from float 128 imported from lambdify f = lambdify (x, x ** 2) result = f (Float128 (2)) result # & gt; & Gt; & Gt; 4.0 Type (results) # & gt; & Gt; & Gt; & Lt; Square 'numpy.float128' & gt;

c# - Trying to override CreateAsync function on ClaimsIdentityFactory -

A few days ago, I found a great tutorial about MVC, Identity and Owen by Ben Foster. Tutorial is I have completed the tutorial, and I have had a problem overriding the 'CreateAsync' function. Visual Studio does not allow this. This code is: public class AppUserClaimsIdentityFactory: claim commandfile Nobody knows how can I solve this issue? Solution Thanks to @ Ator, this is the last code! Public Class AppUserClaimsIdentityFactory: Claiming Factory & lt; AppUser, string & gt; {Public Async Override Task & Lt; Identity of the claim & gt; CreateAsync (UserManager & lt; AppUser, String & gt; Manager, AppUser user, string authentication type) {var is waiting for the identity = base. CreateAsync (Manager, User, Authentication Type); Identity.AddClaim (new claim (type of claim. Country, user country)); Return identity; }} Can you try to view the version? Microsoft files on GIT. Espenet Ident.coredll uses version 1 and now it's ...

How to swap link for text in div with Javascript of jQuery? -

मुझे निम्नलिखित HTML को चालू करना है: & lt; div id = "myText" & Gt; एक और तूफान आ रहा है & lt; एक डेटा-संख्या = "23" & gt; यहां & lt; / a & gt; और चित्रों की जांच & lt; एक डेटा-संख्या = "43" & gt; यहां & lt; / a & gt;। & Lt; / div & gt; इसमें: & lt; div id = "myText" & gt; एक और तूफान आ रहा है [23]। और चित्रों की जांच करें @ [43]। & Lt; / div & gt; मैं मूल रूप से प्रत्येक "डेटा-संख्या" -विशेषता लाने की कोशिश कर रहा हूं और उसे चौकोर ब्रैकेट में डाल रहा हूं, जबकि एक टैग में पाठ को छोड़कर। उपयोग करें $ (दस्तावेज) .ready (function () {$ ('# myText a [data-number]')। प्रत्येक (फ़ंक्शन () {var text = '@ [' + $ (this)। डेटा ('number') + ']'; $ (यह) .replaceWith (text);});});

pjsua for android error (cannot locate symbol...) -

I have downloaded the latest version pjsip (2.3) source on the official website and installed it correctly, then I have Android PGSUN Build sample without any error (with swf 2.0.12 installed! Swig 3 ... results with other errors) I now import sample projects in eclipse ADT from Google site (download this week and with the ndk-build command Installed). Eclipse does not show any problems in the code but when I download it on the phone (Nexus 5) it shows an error message on the screen. unsetted link error: dlopen failed: can not detect the "rand" symbol referenced by "libpjsua.so". The project build path is equivalent to the Android version of my phone. I have no idea how to solve this problem ... How do I solve the problem? Step 1: Install new NDK (for 32 bit) Step 2: Reinstall pjsip (with Android settings) Step 3: Ndk . >