Vote count: 0 I am using Page factory model in my project. How I can identify drop down value in page factory. I know aother way : Select country = new Select(driver.findElement(By.id("SelectedCountryID"))); country.selectByVisibleText("UNITED STATES"); but how to do it in page factory. Thanks asked 1 min agosigma Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am building a twitter fetcher and from working with the prototype, I've realized that the scrolling is pretty clunky due to some large images. I'd like to restrict my images in the same way that Twitter does here: But I'm not exactly sure how to go about this. I know I will need to build my lightbox so images with a certain class are added into it, then append the class via JS. Is there an easier way to go about this? As of right now, I sort of have this working, except when clicking an image, I can't seem to make it close. I would like it to be "click anywhere to close". Right now I am using a button to close it, but this seems to be broken. Here is my HTML: × Title he...
ادامه مطلبVote count: 0 I have two tables: Posts id | title | content | user Users id | name and I want to have user name in Posts collection. What am I doing wrong here? Do I have to write custom query to do this? Right now I'm getting user's id in posts collection. class Posts { ... /** * @ORMColumn(name="user", type="text", length=250) * @ORMManyToOne(targetEntity="Users", inversedBy="posts") * @ORMJoinColumn(name="user", referencedColumnName="id") */ protected $user; ... asked 5 mins agoTomasz Szymanek Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have database with EmpNo(Int) and EmpImage(Image) columns. I am using HttpHandler to display the Images. I am storing Images both in database and folder. Now I want to change the names of Images in folder as names of EmpNo whose I didn't change while uploading. So need to fetch the Images names from database to compare them with the Image names in the folder and rename them. How can i fetch or extract the image names from the binary data that i get from database using generic handler. I have attached the code In handler for reference. using System; using System.Web; using System.Data; using System.Data.SqlClient; public class Lab_14___ImageFetchingHandler : IHttpHandler { pub...
ادامه مطلبVote count: 0 My task is to get all the properties from a class, find a specific one and associate that property in CSLA business rule as a primary property. However, I don't know how to associate it :( sorry for lack of my knowledge; I'm pretty new to programming. [Serializable] public partial class MyClass: BusinessBase { private static readonly ValuePropertyInfo MyClassIdProperty = RegisterValueProperty(x => x.MyClassIdProperty); private static readonly StringPropertyInfo MyClassCodeProperty= RegisterStringProperty(x => x.MyClassCode, new StringPropertyInfoOptions { IsRequired = true, MaxLength = 32 }); And now in my another class, I am only interested in MyClassCodeProperty which I've ex...
ادامه مطلبVote count: 1 I need add photos to a kml file however my coordinates do not have time/date fields. So far everything i've found suggests georeferencing jpegs for kml needs to link on time via a gpx file. I have a csv with the following fields: ID, X, Y, photo_id I would think this would be more straight forward than relying on a time stamp however it's proving difficult. Any advice appreciated. asked 1 min agocosi Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I'm developping a software with C and C++ code. I've recently added some code in c++11 standard. In configure.ac I wrote: for f in '-std=c++11' '-std=c++11 -stdlib=libc++' do AX_CHECK_COMPILE_FLAG([$f], [CXXFLAGS="$CXXFLAGS $f" stdpass=true], [], [], []) ${stdpass-false} && break done if ! "${stdpass-false}"; then AC_MSG_ERROR([Unable to tu on C++11 mode with this compiler]) fi With gcc I've no problem, everything goes well the option -std=c++11 is only applied to g++ and not on gcc. If I try to configure with: CC=clang ./configure I have the following error: checking whether C compiler accepts -std=c++11 -stdlib=libc++... no configure: error: Unable to tu on C++11 mode with th...
ادامه مطلبVote count: 0 I'm working in JqGrid with MVC 4.0 application. How to dynamically set the column names which comes from controller. I want to set the colModel and colnames dynamically. not with static values. kindly me on this. var grid = new JqGridObject() { Page1 = page, PageSize = 500, SortColumn = sidx, SortOrder = sord, Data = GetData("CRM-SALES"), ColumnAry = GetColumn("Input") }; retu Json(grid, JsonRequestBehavior.AllowGet); //json1 = json.toJson(grid); Here is my jqgrid i have tried by myself $.ajax({ type: "POST", url: action, data: {}, // contentType: "application/json;charset=utf-8", dataType: "json", // processData: true, success: function (data, status, xhr) { alert('hi'); var c...
ادامه مطلبVote count: 0 I have created one json Object Using java and it's values are given below {"result":[{"ID":7252,"Age":52,"Date":"2015-11-25","DAY":"Wednesday","Gender":"M"},{"ID":7252,"Age":52,"Date":"2015-12-05","DAY":"Saturday","Gender":"M"},....],"status":"ok"} I need to group data as per date,required format is given below {"result":[ {"2015-11-25":[{"ID":7252,"Age":52,"Date":"2015-11-25","DAY":"Wednesday","Gender":"F"}{"ID":7252,"Age":52,"Date":"2015-11-25","DAY":"Wednesday","Gender":"M"}]},{"2015-10-25":[{"ID":7252,"Age":52,"Date":"2015-10-25","DAY":"Tuesday","Gender":"F"}{"ID":7252,"Age":52,"Date":"2015-10-25","DAY":"Tuesday","Gender":"M"}]},"status":"ok"} Basically i need group all sam...
ادامه مطلبVote count: 1 http://redirector.googlevideo.com/videoplayback?mn=sn-p5qlsn6z&source=youtube&mm=31&gir=yes&ip=2a03%3A8180%3A1001%3A16a%3A%3A8ee1&ms=au&id=o-AEiBpwUwd7EB2B4es8OUfgw5YypWvkqIAm_GhcLfxJ&mv=m&pl=40&mt=1465011653&dur=244.994&gcr=us&mime=video%2Fmp4&itag=134&upn=Y1wsHAvpJUk&keepalive=yes&nh=IgpwcjAzLmlhZDA3KgkxMjcuMC4wLjE&ipbits=0&sver=3&fexp=9407610%2C9408210%2C9416126%2C9416891%2C9419451%2C9422342%2C9422596%2C9428398%2C9429585%2C9431012%2C9432363%2C9433096%2C9433380%2C9433425%2C9433858%2C9433946%2C9433999%2C9435058%2C9435466%2C9435527%2C9435876%2C9436085%2C9436118%2C9436213%2C9436606%2C9436846%2C9437066%2C9437552%2C9437956%2C9438141&initcwndbps=485000&key=yt6&expire=1465033346&cle...
ادامه مطلبVote count: 1 How to clean ruby on rails app if I've been infected with some virus that uses my DigitalOcean server to send outgoing traffic? Probably for ddos attacks. I just made new droplet with all security updates, but when I run budle install it started to spit large traffic. asked 3 mins agoDanielsV Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have the following regex (? It works as expected when there is no spaces between Ø and 4, but I am trying to make it work the same way when there are n number of spaces between Ø and 4. so the following shouldn't match Ø4 Ø 4 Ø 4 Ø 4 I tried using s* but I get Lookbehinds need to be zero-width, thus quantifiers are not allowed, whats the way to go? asked 1 min agoBread Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I want to play song using AVAudioPlayer. But this is does not work some time. I did not get what is the issue. I'm using this below code to play mp3 file from local. NSString *soundFile; soundFile = [[NSBundle mainBundle] pathForResource:@"notification_sound" ofType:@"mp3"]; NSURL *fileURL = [NSURL fileURLWithPath:soundFile]; self.playerAudio = [[AVAudioPlayer alloc] initWithContentsOfURL:fileURL error:nil]; [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil]; [[AVAudioSession sharedInstance] setActive: YES error: nil]; [[UIApplication sharedApplication] beginReceivingRemoteControlEvents]; self.playerAudio.numberOfLoops = -1; self.playerAudio....
ادامه مطلبVote count: 0 Having a common interface with a method signature as below. Function for long it is implemented as below Function getMapping () { retu JsonNode::longValue; } How this can be implemented for JsnonNode to Date .There is no direct api to get Date from JsonNode Function getMapping () { } asked 1 min agoRaj Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I need to parse and store data from this 2 tables in this link, after using "Inspect element" the network show me the request of tables : Request 1 to get the top table : request1 Request 2 to get the bottom table : request2 What I did: I send a get request to a link I store cookie and user agent I send another request to request1 with cookie and userAgent I send another request to request2 with cookie and userAgent it's not working, even If I try to open those 2 request in my navigator, it's not working, so How I can get data from those tables, and store data in java list ? this what I did : Button Rechercher = (Button) findViewById(R.id.button); Rechercher.setOnClickListener(...
ادامه مطلب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 ([Customer_Type] = '" & Me.cboCustomerType & "')" Me.CustomerSummarySubform.Form.RecordSource = myTransSummary Me.CustomerSummarySubform.Form.Requery End Sub which retus the error: The record source 'Select * from CustomerSummary where ([Customer_Type = 'Buisness'] specified on this form or report does not exist. If anyone can help that would be much appreciated asked 2 mins agoFidel Cashflow Let's blo...
ادامه مطلبVote count: 0 In R, I have two data frames A & B as follows- Data-Frame A: Name Age City Gender Income Company ... JXX 21 Chicago M 20K XYZ ... CXX 25 NewYork M 30K PQR ... CXX 26 Chicago M NA ZZZ ... Data-Frame B: Age City Gender Avg Income Avg Height Avg Weight ... 21 Chicago M 30K ... ... ... 25 NewYork M 40K ... ... ... 26 Chicago M 50K ... ... ... I want to fill missing values in data frame A from data frame B. For example, for third row in data frame A I can substitute avg income from data frame B instead of exact income. I don't want to merge these two data frames, instead want to perform look-up like operation. asked 3 mins agoAnwar Shaikh Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have two columns that I have changed in the database from varchar2 to clob. I'm now addind @ Lob aotations before the columns in the Entity class: @Lob @Column(name = "COL1") private String col1; @Lob @Column(name = "COL2") private String col2; But while trying to deploy the code through maven, I get the below compilation error: caot find symbol [ERROR] symbol : class Lob asked 1 min agoDona Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I can read/upload/download/delete files without issue with a System.Net.FTP FtpClient ftpClient; I won't have access to the production FTP site to enable MD5 or other hashing, so the only way I can think to validate my file uploads are comparing file sizes. Not 100% accurate, but for my purposes it will be close enough (just proving that a file was uploaded at a certain time). The reason I'm coming to SO is that I can't find a lot of Q/A on trouble with System.Net.FTP ... My problem is that in my application, whether I ftpClient.KeepSocketAlive = false; //or ftpClient.Discoect(); ftpClient.Coect(); //or Thread.Sleep( /* A While */ ); //or ftpClient.Dispose(); ftpClient = new Ft...
ادامه مطلبVote count: 0 how to get a 640*480 rgb picture into FPGA most efficiently, using verilog I am trying to write a verilog code for FPGA programming where I will implement a VGA application. I use Spartan 3E . At the moment, my aim is to get a 640x480 rgb image during compilation (method doesn't matter as long as it works and is efficient). The best solution I came up with is to convert the picture into rgb hex files using matlab and now convert it into .coe file to initialise Block RAM and to use $readmemh to get them into a register from BLOCK RAM. what is problem is this, 640*480 pixel required high memory (BLOCK RAM ) that is not available to board (fpga), how to store this image on BLOCK R...
ادامه مطلب