Android - Resize UI widget created dynamically - تاریخ: 1396/6/27 ساعت: 1:53
Vote count: 0 I try to create a button dynamically with in Java and add it some constraints to position it in the center of my constrainLayout. So I write this code: import android.app.Activity; import android.os.Bundle; import android.support.constraint.ConstraintLayout; import android.support.cons...
Jupyter not recognizing objects - تاریخ: 1396/6/27 ساعت: 1:53
Vote count: 0 This is my first time using Jupyter in class. We are doing a few short problems on an array. The csv file for this array has already been imported and read. When I run my code, I get an error that certain objects have not been defined even though they were defined in the skeleton code....
Webpack define plugin causes: Module build failed: Error: "extract-text-webpack-plugin" loader is used without the corresponding plugin - تاریخ: 1396/6/27 ساعت: 1:53
Vote count: 0 I am trying to define a global variable to define config driven flows in my react app. To do this i add below definePlugin snippet in my webpack plugin section new webpack.DefinePlugin({ 'MODE': JSON.stringify('SERVER_DEV') }) As soon as i do this my build starts to fail complaining of...
EF: Why this Model Validation error - تاریخ: 1396/6/27 ساعت: 1:53
Vote count: 0 In ASP.NET MVC Core 1.1.1, Individual User Accounts mode, VS2017 Ver 15.3.3, I added some users using Register.cshtml. Later I created an interface to add two roles to ASPNETRoles table. Then I decided to add these users to one of the two Roles. But when I tried, for example, to add Ad...
libx264 encoded video lags by few seconds in comparison to audio - تاریخ: 1396/6/27 ساعت: 1:53
Vote count: 0 Below is the code i am using for reading a .3gp file encoding it using libx264 and writing it to .mp4 container. Code is working but when i play .mp4 file then video is not in sync with audio. Video is few second slow in comparison to audio. // Read all packet from context while( av_re...
Audio not in sync while concat ffmpeg - تاریخ: 1396/6/27 ساعت: 1:53
Vote count: 0 I have followed other stackoverflow question and came up with following code , Still audio and video are not synching $cmd = 'ffmpeg -i video/1.mp4 -c:v copy -af apad intermediate1.ts ffmpeg -i video/2.mp4 -c:v copy -af apad intermediate1.ts ffmpeg -i "concat:intermediate1.ts|intermedi...
jQery function fires unexpectedly from alert OK button - تاریخ: 1396/6/27 ساعت: 1:53
Vote count: 0 I've got radio buttons with class="cb". Click any .cb button and a little function clears the outlines on the buttons. Here's the function: It works correctly. $(".cb").click(function(){ $('.cb').css({'outline-color':'none','outline-style':'none','outline-width':'none'}); }); If I also...
Javscript scrollTop not working - تاریخ: 1396/6/13 ساعت: 16:28
$(document).ready(function() { var list = document.getElementsByClassName('list'); list.scrollTop = 110; }); .list{height:100px;background:wheat;color:white;overflow:hidden; overflow-y: scroll; } <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div class="lis...
Is there a general I2C command to see if a device is still present on the bus? - تاریخ: 1396/6/13 ساعت: 16:28
Is there a general I2C command to see if a device is still present on the bus after it is initialized once? For example an OLED display. The reason I ask this is to avoid the main program will freeze (when a device is disco ected) because of infinite loops present in the library code, in for example...
can't store the login &logout correctly - تاریخ: 1396/6/13 ساعت: 16:28
so here is what i've got so far mysqli_query($co ection, "INSERT INTO user_stat(use ame, logout) VALUES ('$_SESSION[use ame]', NOW())"); // the query for storing the logout at logout.php and mysqli_query($co ection, "INSERT INTO user_stat(use ame, logintime) VALUES ('$_SESSION[use ame]', NOW())"); /...
executor.map and named parameter passing - تاریخ: 1396/6/13 ساعت: 16:28
I have a case of a function which must be run with a large number of parameter types # generic function with named parameters def genericFn(X, y, a_fn ='t', o_fn ='a', l_fn='b', dim=2): ... retu accuracy I have a list of parameter types a_fns = ['t', 's', 'r', 'l'] o_fns = ['s', 'a'] l_fns = ['m', '...
Disable anti-aliasing on Android Imageview - تاریخ: 1396/6/13 ساعت: 16:28
I'm showing 96x96 pixel art sprites in imageviews and can't get it to display without applying anti-aliasing, which ruins the sharp edge of the sprites. How can this be done? I've tried the following methods I've picked up from around the inte et, but none work. METHOD ONE creating an xml resource f...
Regex to find values within a string - تاریخ: 1396/6/13 ساعت: 16:28
I am new to regex.I have a string like following. need to get the values between [{# #}] Ex: "Employee name is [{#John#}], works for [{#ABC Bank#}], [{#Houston#}]" And i Need to get the following values John, ABC Bank and Houston
Data structure for CAD program. Mouse picking and rendering with one data - تاریخ: 1396/6/13 ساعت: 16:28
I try to implement my little CAD and wondering how to organize data for Bezier cubic surface primitives. My primitieves, for example a box, will contain six cubic Bezie patches, which constructes apartelly each other by own data for convenience. Any patch has 16 points. My primitieves will stitched ...
CodeDeploy on Windows EC2 Permission Denied - تاریخ: 1396/6/13 ساعت: 16:28
Just looking for some advice on doing CodeDeploy on Windows. I've used it for a year on Linux boxes, this is my first Windows Server on EC2 and I can't seem to get past "Permission Denied" errors. I've changed the permissions in Windows on the folders, but the Deploy is failing on the Install step o...
Pepper Robot Wheel Control - تاریخ: 1396/6/13 ساعت: 16:28
Is there a way to control the individual wheels of the Pepper in a fashion similar to how you can control the legs of the NAO? We would like to use our own motion controller for the base of the robot, but it seems that any commands send to the wheel via DCM are automatically overwritten by ALMotion.
Two column join between tables, one column with equal to and other columns with not equal to - تاریخ: 1396/6/13 ساعت: 16:28
Two tables each with 6.4 million records in SQL Server 2012. Let's say A and B. I have to join two tables based on two columns. Lets say A.C1 = B.C1 and also A.C2 <> B.C2. Both C1 and C2 are nvarchar columns. Table B does not have cluster index. I have the query as show below: Select B.C1...A.C12, A...
How to hire click function in Google timeline Chart - تاریخ: 1396/3/3 ساعت: 22:05
I am using Google Timeline chart and want to hire a click function. Simply when I clicked on the colored rectangles or text I want a bootstrap Modal show up. google.charts.load("current", {packages:["timeline"]}); google.charts.setOnLoadCallback(drawChart); function drawChart() { var container = d
pass both php variable and input form values for two other pages at a time using ajax - تاریخ: 1396/3/3 ساعت: 22:05
page1.php <?php echo $first; echo $secound; echo $third; echo $four; ?> <form> <input type="text" name="five" value=""></input> <input type="text" name="six" value=""></input> <input type="text" name="seven" value=""></input> </form> <button class="button">Submit</button> I want to pass all this 4 p...
Outlook - Pass variable to be displayed in temporary Popup - تاریخ: 1396/3/3 ساعت: 22:05
In Outlook I have setup the following code to temporarily display a message. However I ca ot work out how to pass a variable (aMessageLabel) containing the text to be displayed. Sub Test() Dim aShell Set aShell = CreateObject("WScript.Shell") aMessageLabel = Chr(34) & "No Emails to be Forwarded!" & ...

برچسب‌های مرتبط

how can i check serial numbers on guns | how can i check premium bond numbers | how can i check my powerball numbers | how can i check my lottery numbers | how can i check license plate numbers | how can i check old premium bond numbers | how can i check my premium bond numbers | how to convert pdf to word | how to convert pdf to jpg | how to convert degrees to radians