How To Split Test For Profitable Campaigns for $1

Learn How to Setup the Right Split Testing and Make More Profit from it! Split testing is a method for comparing two different versions of a landing page to determine which version performs better. Split testing should NEVER be a one-time experiment. It’s important to keep running new split tests, so you can continue to improve your sales and profits. Setting up a split test is very easy to do. You simply need to determine what element you wish to test on your landing page first. Always be sure you only test one element at a time for your split test. Otherwise, you won’t be sure which changes you made resulted in a specific improvement. For example, start by testing the headline. Using your current headline as the control, duplicate your landing page and create a new headline variation for the test. The headline is the single most important element to test and can result in HUGE improvements in your conversion rate. Other important elements you can test one by one are your landing page layout, website colors, images, call to action, price, guarantee, etc. The list goes on and on, but those are some important ones to consider first. In order to gain statistical confidence in your test, it’s advised that you send at least 300 unique visitors to each landing page. Some marketers even prefer a higher baseline number, such as 500 unique visitors to each landing page. However, it should be noted that some split tests may produce an extreme difference in the results and if one page is performing very poorly, then you may consider ending the split test early. Nobody likes to waste traffic. If you have a clear winner early, then you may choose to end the split test, so you can maximize your ROI. This is especially true if you’re using paid advertising to generate traffic. Once your split test has achieved statistical confidence, it’s time to analyze your results. The essential metrics you’ll be tracking and analyzing are unique visitors, conversions and conversion rate.

by: jordanng
Created: —
Category: Tutorials & Guides
Viewed: 191

Does Tarjan algorithm fail for this test case ? references :gfg and Tushar roy’s tutorial

The test case is : There are 3 vertices 1,2,3 such

edge: source-destination

1-2 1-3 2-3 

As dfs proceeds from 1 to 2 and then to 3 . Following are the discovery and low times :

1 discT:0,lowT:0;  2 discT:1,lowT:1;  3 discT:2,lowT:2; 

Since 2’s disc time is less than 3’s low time . 2 becomes the articulation point due to the theorem which should NOT BE.

Am i doing something wrong . Kindly explain. Below is my dfs function->

public void dfs(){              ArrayDeque<vertex> st=new ArrayDeque<>();              st.push(vertexList.get(0));              int pt=1;             vertexList.get(0).discTime=0;             vertexList.get(0).lowTime=0;             vertexList.get(0).visited=true;             int numberOfverticesCovered=0;              while(!st.isEmpty()){                  vertex v=st.peek();                  System.out.println("considering "+v.label);                  vertex p=getAdjacent(v);                  if(p==null)                  {                      System.out.println("left with no unvisited adjacent vertices "+v.label);                      if(v!=vertexList.get(0)){                          LinkedList<edge> le=adjList.get(v.label-1);                          for (edge e : le)                          {                                  if(v.discTime<=e.destination.lowTime)                                  {                                     artPoints.add(v);                                      System.out.println("new articulation point found "+v.label+" for edge "+e.source.label+" and "+e.destination.label);                                      System.out.println("disc time of "+v.label+"  is "+v.discTime+" and low time is "+v.lowTime);                                      System.out.println("disc time of adj "+e.destination.label+"  is "+e.destination.discTime+" and low time is "+e.destination.lowTime);                                     break;                                  }                                     v.lowTime=Math.min(v.lowTime, e.destination.lowTime);                                     System.out.println("new low time of "+v.label+"  is "+v.lowTime);                          }                      }                      numberOfverticesCovered+=1;                      st.pop();                  }                  else                  {                      v.children+=1;     //                 System.out.println("adding child "+p.label+" to parent "+v.label);                      p.discTime=pt;                      p.lowTime=pt;                      p.parent=v;                      st.push(p);                      pt+=1;                  }                  if(st.isEmpty()&& numberOfverticesCovered!=vertexList.size()){                      for (vertex object : vertexList) {                          if(!object.visited)                          {                              object.discTime=pt;                              object.lowTime=pt;                              object.visited=true;                              st.push(object);                              break;                          }                      }                  }              }               if(vertexList.get(0).children>1 ) //  put in check for back edge for the other children so that they are not connected to each other.              {                               artPoints.add(vertexList.get(0));                  System.out.println("added root as an articulation point and it has "+vertexList.get(0).children);              }           }       } 

Getting error while accessing the room database in instrumentation test cases – Android

I am using room database in my app. I have Login feature in my app, where after taking userId & password, on click of Login button I am calling API and storing the response data in room database table after getting a successful callback response from API.

Now I want to write integration test cases for database data, where I am using mockWebServer to mock the API response and storing that in the room database table.

And later I am fetching the DB values & testing whether those are stored properly or not but I am getting below error

java.lang.IllegalStateException: Cannot access database on the main thread since it may potentially lock the UI for a long period of time.

On this line authentication = authenticationDao.getAuthInformation();

Below is my test cases code:

@RunWith(AndroidJUnit4.class) @FixMethodOrder(MethodSorters.NAME_ASCENDING) public class TestLogin {  @Rule public InstantTaskExecutorRule mInstantTaskExecutorRule = new InstantTaskExecutorRule(); @Rule public ActivityTestRule<LoginActivity> activityTestRule = new ActivityTestRule<>(LoginActivity.class, true, false); @Rule public MockWebServerTestRule mockWebServerTestRule = new MockWebServerTestRule(); @Mock Application application; LoginViewModel loginViewModel; AppDatabase appDatabase; AuthenticationDao authenticationDao; Authentication authentication;  @Before public void setUp() throws Exception {     MockitoAnnotations.initMocks(this);     loginViewModel = new LoginViewModel(application);     ApiUrls.TOKEN = mockWebServerTestRule.mockWebServer.url("/").toString();      appDatabase = Room.inMemoryDatabaseBuilder(InstrumentationRegistry.getContext(),             AppDatabase.class).build();     authenticationDao = appDatabase.authenticationDao();      activityTestRule = new ActivityTestRule<>(LoginActivity.class, true, true);     String fileName = "valid_login_response.json";     mockWebServerTestRule.mockWebServer.enqueue(new MockResponse()             .setBody(RestServiceTestHelper.getStringFromFile(getContext(), fileName))             .setResponseCode(HttpURLConnection.HTTP_OK));      Intent intent = new Intent();     activityTestRule.launchActivity(intent);      loginViewModel.userName.postValue("Elon");     loginViewModel.password.postValue("Musk123");     loginViewModel.getAuthenticateTokenData();     mockWebServerTestRule.mockWebServer.takeRequest();   }  @Test public void a_testDbEntryOnValidResponse() {     authentication = authenticationDao.getAuthInformation();      String issueTime = authentication.getIssueDateTime();     String expirationTime = authentication.getExpireDateTime();     String refreshToken = authentication.getRefreshToken();      Assert.assertEquals("Tue, 16 Apr 2019 10:39:20 GMT", issueTime);     Assert.assertEquals("Tue, 16 Apr 2019 10:54:20 GMT", expirationTime);     Assert.assertEquals("e2b4dfd7205587745aa3100af9a0b", refreshToken);  } } 

Below is my AppDatabase class:

@Database(entities = {Authentication.class, UserProfile.class}, version = 1, exportSchema = false)  public abstract class AppDatabase extends RoomDatabase {  private static AppDatabase INSTANCE;  public static AppDatabase getAppDatabase(Context context) {     if (INSTANCE == null) {         INSTANCE =                 Room.databaseBuilder(context,                         AppDatabase.class,                         "myapp-database")                         .allowMainThreadQueries()                         .build();     }     return INSTANCE; }  public abstract AuthenticationDao authenticationDao();  public abstract UserProfileDao userProfileDao(); } 

What could be the issue? Is my test case right? Thank you in advance.

How to make best performance to test CPU time of my java program

I am using

ubuntu 18.04 lts.  Intellij Ultimate 2019  Oracle Jdk 1.8.0_211 

I have to test N-Queen solver with java of single-thread.It consumes a lot memory usage.I want to get fastest result of CPU time.

My benchmark machine is
i7 4th gen 3.6ghz with 8 cores.
Ram 8 Gb

I have changed the jvm options in intellij to xmx7000mb.And what ways I need to do to optimize best CPU time ?

Advanced SQL Injection Test [on hold]

As an assignment for my cybersecurity course, I’ve been tasked to execute a penetration test on a login form which is bound to be vulnerable to SQL Injection and if we can’t penetrate it like that we must run a brute force attack on the form. I’ve been unsuccessful with checking for vulnerabilities, even when using sqlmap. I was wondering if anyone could help me find a better tool or exploitation. Thanks in advance.

What test is made to deceive someone in Symbaroum?

As far as I have been able to find, there is no specific ruling made in the core rulebook on what attribute test is made when attempting to deceive someone. In the supplemental rules table, it is suggested that when trying to persuade a target, the active player should test persuasive<-resolute. In this same table, it is suggested that an attempt to confuse a target could be made with a test of resolute<-resolute. To me, it would follow that based on the attribute descriptions and the existing situations that a persuasive<-cunning test would be best for deception.

Is there a distinct ruling on what a proper deception attempt should look like or is my ruling an acceptable use of the persuasive<-cunning test?

Why is in a c# test class the Selenium Wait no longer timing out

I have a small extension method to find an element using the WebDriverWait

public static IWebElement FindElement(this IWebDriver driver, By by, int timeoutInSeconds)     {         if (timeoutInSeconds > 0)         {             var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(timeoutInSeconds));             return wait.Until(drv => drv.FindElement(by));         }          return driver.FindElement(by);     } 

It has worked reliably previously, but it is no longer working correctly. The problem is that the timeout is no longer being applied. It will keep looking indefinitely at least until the call to the web driver times out. This is a C# test program, and the driver is the chrome driver. It is fairly typically called using find by XPath but We use other find types as well. For example

var element = webDriver.FindElement(By.XPath(@"//h1[@class='m-t30'][contains(.,'My Profile')]"), 15); 

Any Idea why this is now failing>

CORS issue detected by Burp, but test code poc doesn’t work

Here the response afterchanging the Origin via Burp

HTTP/1.1 200 OK Server: nginx Date: Thu, 13 Jun 2019 12:29:07 GMT Content-Type: application/json;charset=UTF-8 Connection: close Vary: Accept-Encoding Access-Control-Allow-Origin: http://blablabla Vary: Origin Access-Control-Allow-Credentials: true Strict-Transport-Security: max-age=31536000; includeSubDomains X-XSS-Protection: 1; mode=block X-Frame-Options: SAMEORIGIN X-Content-Type-Options: nosniff Content-Security-Policy: default-src * data: 'unsafe-eval' 'unsafe-inline' Referrer-Policy: no-referrer-when-downgrade Content-Length: 2399 

But the test code poc, launched by my website, return code 403:forbidden

<script> function cors() {   var xhttp = new XMLHttpRequest();   xhttp.onreadystatechange = function() {     if (this.readyState == 4 && this.status == 200) {       document.getElementById("demo").innerHTML = alert(this.responseText);     }   };"GET", "", true);   xhttp.withCredentials = true;   xhttp.send(); } </script> 

How can I test that the antennas in Macs are all connected and working?

I’m a technician repairing Macs every day and I test the Macs after repair (laptops and desktops) .

So what I do is a functional test of the Mac by logging in to macOS and testing everything: camera, keyboard, WIFI, Bluetooth etc. My doubt is: how can I test that the 2, 3 or 4 antennas (depending on the Mac model) are connected?. I know that one of them does the Bluetooth while usually all of them add up to the WIFI bandwidth. I know how to check the Bluetooth connection, but, how can I check the WIFI antennas are all connected and detected by the wireless card?

I thought I may run some WIFI speed test able to test the download/upload speed to the router, but I’ve never used this. Any advice on a good WIFI speed test (free if possible)? Would this be the best way to check that the antennas are all connected and that the wireless card in the Mac is detecting all the antennas properly?

Here’s a post explaining how the antennas work (if that helps): What's the difference between the three wireless antennas in MacBook Pros?


Any help much welcome

Conjectured primality test for numbers of the form $N=4 \cdot 3^n-1$

This is a repost of this question.

Can you provide proof or counterexample for the claim given below?

Inspired by Lucas-Lehmer primality test I have formulated the following claim:

Let $ P_m(x)=2^{-m}\cdot((x-\sqrt{x^2-4})^m+(x+\sqrt{x^2-4})^m)$ . Let $ N= 4 \cdot 3^{n}-1 $ where $ n\ge3$ . Let $ S_i=S_{i-1}^3-3 S_{i-1}$ with $ S_0=P_9(6)$ . Then $ N$ is prime if and only if $ S_{n-2} \equiv 0 \pmod{N}$ .

You can run this test here .

Numbers $ n$ such that $ 4 \cdot 3^n-1$ is prime can be found here .

I was searching for counterexample using the following PARI/GP code:

CE431(n1,n2)= { for(n=n1,n2, N=4*3^n-1; S=2*polchebyshev(9,1,3); ctr=1; while(ctr<=n-2, S=Mod(2*polchebyshev(3,1,S/2),N); ctr+=1); if(S==0 && !ispseudoprime(N),print("n="n))) } 


Partial answer can be found here.