Keeping a view at the bottom with the SlidingUpPanel library
◷
تاریخ انتشار: 1395/3/14 | ساعت: 5:38
Vote count: 0 I am using the SlidingUpPanel library in one of my Media Player apps. In the slide panel, I have the media controls and I would like to display the track's artwork on top. The problem I am having is that I would like the media controls to always stay at the bottom of the screen. Maybe ...
how to specify column as a range in a excel macro
◷
تاریخ انتشار: 1395/3/14 | ساعت: 4:32
Vote count: 0 I am trying to write a macro to compare two columns and if value are equal then it should copy value of another cell into a new cell. I wrote below macro : Sub Value() Dim g1 As Range Set g1 = Worksheets("Sheet1").Range("L2:L11860") Dim g2 As Range Set g2 = Worksheets("Sheet1").Range("...
What tool does Google use to uglify their web pages?
◷
تاریخ انتشار: 1395/3/14 | ساعت: 4:32
Vote count: 0 All the pages related to Google have their Html5 docs uglified, to make them hard to copy (I think so). The problem with most tools online, is that they only receive the Html5, and, after the process, the javascript and css don't work anymore. Google published their Javascript compiler...
Handsontable: Create records with rails
◷
تاریخ انتشار: 1395/3/14 | ساعت: 4:32
Vote count: 0 Using handsontable, I want to create a record for each line. By my current setup, my .getData() retu s an array. Of course, rails expects this to be an object with the keys being my attributes. What is the best way to attack this problem? Does this require formatting client-side via jq...
Python Locals update not working
◷
تاریخ انتشار: 1395/3/14 | ساعت: 3:14
Vote count: -1 Why below is not working inside function but working outside? def foo(): common = {'abc' : 'xyz'} print(locals()) locals().update(common) print(locals(),abc) foo() Error : NameError: global name 'abc' is not defined If i run it outside function, it works common = {'abc' : 'xyz'} print...
Symfony2 and Doctrine: One-To-Many with Join Table Orphan Removal
◷
تاریخ انتشار: 1395/3/14 | ساعت: 3:14
Vote count: 0 I have an entity, "A ualReport", which accepts a collection of entities, "A ualReportStaffing". An a ual report has four different Staffing sections and hence four of these collections (ArrayCollection). Since I can't use a traditional one-to-many relationship, I have to use One-To-Man...
ANTLR3 grammar unusial behaviour
◷
تاریخ انتشار: 1395/3/14 | ساعت: 3:14
Vote count: 0 all I have grammar and when I parse file have following exception on line 113. [document, program, programs]>>token:[@285,1521:1526='N20G91',<126>,113:0] line:113 charPositionInLine:0 e.token.getText():N20G91 But, when I see on the grammar I suppouse that line N20G91 will be parsed wit...
How do I make sure the value is set on the line that I am on in Netsuite Onfieldchange
◷
تاریخ انتشار: 1395/3/14 | ساعت: 1:11
Vote count: 0 In netsuite I am trying to automatically calculate the margin on the item sublist on a sales order and set a price level based off of the nearest margin and then show the cost and price level to the user. I have everything working except if the user enters in a margin, and then clicks ...
Spark 1.6 dependencies cross compiled with scala 2.11.0
◷
تاریخ انتشار: 1395/3/14 | ساعت: 1:11
Vote count: 0 I am looking for maven dependency details for Spark 1.6. Here are the maven dependencies. <dependencies> <dependency> <groupId>org.scala-lang</groupId> <artifactId>scala-library</artifactId> <version>2.10.6</version> </dependency> <dependency> <groupId>org.apache.spark</groupId> <artif...
sql selecting the newest order date
◷
تاریخ انتشار: 1395/3/14 | ساعت: 1:11
Vote count: 0 i want to retrieve the newest order and the name of the customer who ordered it: Select fname, lname, orderdate as newestorder from customer, cusorder where customer.cid = cusorder.cid group by fname, lname having orderdate = max(orderdate) ; the error is ORA-00979: not a GROUP BY expr...
Xampp - can't read PHP, MySQLi at the browser - Fatal error with PEAR
◷
تاریخ انتشار: 1395/3/14 | ساعت: 0:05
Vote count: 0 I don't know what exactly happens because I have a page ready to handle-up a login system but it's only programmed in html and css yet. Why? Because when I try to program something in php like this to start making the login system works; Document called Co ections <?php $con = mysqli_c...
Access 2010 Search Form Using Combo box
◷
تاریخ انتشار: 1395/3/14 | ساعت: 0:05
Vote count: 0 I am trying to filter my table with combo box(https://www.youtube.com/watch?v=8N1hRBdsI1s) like this tutorial but i am having trouble with the Code Builder. Private Sub cboCustomerType_AfterUpdate() Dim myCustomerSummary As String myCustomerSummary = "Select * from Customer where ([Cus...
TemplateAssertionError "no filter named", filter confusion mixing Angular & Flask
◷
تاریخ انتشار: 1395/3/14 | ساعت: 0:05
Vote count: 0 I am trying to use the code in the link here within Flask, but it seems that Jinja2 is trying to interpret the json filter. I have edited the code slightly by encapsulating flask variables with startSymbol [[ and endSymbol ]]. This has been done by adding the following code to my contr...
ComminJS: setting the 'this' at file level
◷
تاریخ انتشار: 1395/3/13 | ساعت: 22:41
Vote count: 0 I have been trying to get this to work for the last week with no joy :( I am loading modules dynamically using var req = require.context("../jobs", true, /.js$/); req.keys().map(req).forEach((worker) =>{ /*do stuff*/ }); Now I want to expose a Config object with in all the files I am i...
js datatables.net delete row from table base on rowIdx
◷
تاریخ انتشار: 1395/3/13 | ساعت: 22:41
Vote count: 0 Hi I want to delete rows from table according to its rowidx but its not going on! I want to delete all rows with status 777 I writed the following js code for deleting the row refreshTableByName: function (table) { $(table).DataTable().rows().every(function (rowIdx, tableLoop, rowLoop)...
Can a value be moved by taking a mutable reference?
◷
تاریخ انتشار: 1395/3/13 | ساعت: 22:41
Vote count: 0 Playpen pub trait Skip<I: Iterator> { fn skip(&mut self, steps: usize); } impl<I: Iterator> Skip<I> for I { fn skip(&mut self, mut steps: usize) { for _ in self { steps -= 1; if steps <= 0 { break; } } } } fn main() { let s = "abc123def"; let mut chars = s.chars(); chars.skip(2); print...
moment.js add does't add time
◷
تاریخ انتشار: 1395/3/13 | ساعت: 21:39
Vote count: 0 when I do someMoment.add(30, 'minutes') I don't seem to get any result. console.log(start); -- Moment {_isAMomentObject: true, _i: "6:30 PM", _f: "h:mm A", _isUTC: false, _pf: Object…} console.log(start.add(inc, 'minutes')); --Moment {_isAMomentObject: true, _i: "6:30 PM", _f: "h:mm A"...
Trying to get Resource ID dynamicly
◷
تاریخ انتشار: 1395/3/13 | ساعت: 21:39
Vote count: 0 I'm trying to fill imageViews dynamicly with this code: inventorySpace[i].setImageResource((getResourceId(testimg, "mipmap", getPackageName()))); but it doenst work, if I do this it does work: inventorySpace[i].setImageResource(R.mipmap.testimg); this is the getResourceID method: publi...
log4j2 RollingFile Error renaming file
◷
تاریخ انتشار: 1395/3/13 | ساعت: 21:39
Vote count: 0 I have this appender <RollingFile name="Application" fileName="/home/user/log/abc.log" filePatte ="/var/log/mylog/abc-%d{yyy-MM-dd}-%i.log.gz"> <Patte Layout> <Patte >%d{yyyy-MM-dd HH:mm:ss.SSS} abc %-10level %class{36} %L %M - %msg%xEx%n</Patte > </Patte Layout> <Policies> <TimeBasedT...
indeed api search for particular company
◷
تاریخ انتشار: 1395/3/13 | ساعت: 20:26
Vote count: 0 I am develping job portal and using indeed API. In indeed API I am using following params to get searched $params = array( "q" => $query, "co" => $country, "jt" => $jt, "salary" => $salary, 'start' => $start, 'limit' => $limit, "userip" => $ipaddress, "useragent" => $user_agent ); $res...