I have just confirmed my DS-160 (U.S. Online Nonimmigrant Visa Application) and so the electronic visa has just been submitted to the chosen consulate in my home country. However, I just realised that I the photo I uploaded doesn't meet the dimension requirements that it should have (head is too small in the photo). What should I do? Should I just fill another DS-160 application or contact the consulate or not do anything? (I have confirmed the DS-160 application but I do not have paid the application fee nor take the appointment in the consulate yet).
I created one report, and created a parameter with dimension column, my requirement is when I enter one parameter report should filter with that value when I enter two parameters report should have two pages based on the two parameter values. Any section related thing available in SSRS? I referred here, something can be done through list, but list is allowing only test boxes, My report has too many tablixs to show
I'm trying to replicate, roughly, the dplyr package from R using Python/Pandas (as a learning exercise). Something I'm stuck on is the "piping" functionality. In R/dplyr, this is done using the pipe-operator %>%, where x %>% f(y) is equivalent to f(x, y). If possible, I would like to replicate this using infix syntax (see here). To illustrate, consider the two functions below. import pandas as pd def select(df, *args): cols = [x for x in args] df = df[cols] return df def rename(df, **kwargs): for name, value in kwargs.items(): df = df.rename(columns={'%s' % name: '%s' % value}) return df The f
I'm using NASM to learn x86 assembly, running my code in qemu on linux. I am trying to draw a pixel on the screen. Why is it that mov bx,0xA000 mov byte [bx],0x0A doesn't seem to do anything, but mov bx,0xA000 mov es,bx mov byte [es:di],0x0A is able to draw a pixel? A second question: Why do I have to use [es:di] rather than just [es]?
Im recently studying c# and want to create a 'simple' console app poker game. Ive created classes: player, hand, deck, dealer. Dealer gets cards out of the deck and assigns it to player instances. What I'm struggling with now is how to progress further? I need to make some gameplay possible. This is what i have coded thusfar: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication10 { class Program { static void Main(string[] args) { //Deck d = new Deck(); Player[] players = new Player[2]; Dealer dealer =
I created a custom Library in CodeIgniter, and positioned it in application/libraries/VarMatrixSpecanimal.php <?php defined('BASEPATH') OR exit('No direct script access allowed'); class VarMatrixSpecanimal { protected $variabiliMatrix; public function __construct() { $variabiliMatrix['cat']['no']=1; $variabiliMatrix['dog']['a']=2; $variabiliMatrix['bird']['b']=3; } public function get_matrix() { return $this->variabiliMatrix; } } ?> Then in one controller (application/controllers/certificate.php) method I added these two lines of code: public function save1() { //..... some more code before $t
In Matplotlib, I want to draw a sphere with a mesh on its surface, divided into 30 degrees steps in spherical coordinates. The code: from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import numpy as np fig = plt.figure() ax = fig.add_subplot(111, projection='3d') u = np.linspace(0, 2 * np.pi, 13) v = np.linspace(0, np.pi, 7) x = 10 * np.outer(np.cos(u), np.sin(v)) y = 10 * np.outer(np.sin(u), np.sin(v)) z = 10 * np.outer(np.ones(np.size(u)), np.cos(v)) ax.plot_surface(x, y, z, rstride=1, cstride=1, color='w', shade=0) plt.show() Produces the figure: However, I want the co
In localhost my projects works perfectly but every time I deploy to heroku I receive Something went wrong..... I also ran Heroku run rake db:migrate. Any idea what is going on here? 2015-11-01T23:27:52.203020+00:00 app[web.1]: bin/rails:8:in `require' 2015-11-01T23:27:52.203020+00:00 app[web.1]: bin/rails:8:in `<main>' 2015-11-01T23:27:52.203072+00:00 app[web.1]: [2015-11-01 23:27:52] INFO going to shutdown ... 2015-11-01T23:27:52.203127+00:00 app[web.1]: Exiting 2015-11-01T23:27:52.532296+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 41390 -e production` 2015-11-01T2
I'm using third par .jar files in my project. When I start my application my standard output is full of log messages. I try to show some informaion to user, but now it's impossible. How can I disable logging?
As an alternative to flying, I'm considering to cruise from the east coast of Australia or somewhere in New Zealand to anywhere in North America. The dates are flexible, but my preference is to depart in December 2016 or January 2017 and routes with island stops are superior. Most cruise line sites are pretty bad for searching and they don't really have an easy way to search for just ocean crossing cruises and each line is a bit different. Is there a directory, list, or other way to search all cruises departing around those dates across all cruise lines?
I have this daterangepicker runs on my local PHP site. Here is the code for HTML part <form role="form" class="form-inline" method="post" action=""> <div id="reportrange" class="form-control"> <i class="fa fa-calendar"></i> <span></span> <b class="caret"></b> </div> <button class="btn btn-white" type="submit">Search</button> </form> Javascript part: $('input[name="daterange"]').daterangepicker(); $('#reportrange span').html(moment().subtract(29, 'days').format('MMMM D, YYYY') + ' - ' + moment().format('MMMM D, YYYY')); $('#reportrange').daterangepicker({ autoApply: true, format: 'MM/DD/YYYY',
I need to execute a .cmd batch file on a remote machine using WMIC. I cannot use SSH or PowerShell. I tried executing the code below and following was printed on console: C:\>WMIC /node:"remote-server01" process call create "cmd.exe /c C:\test.cmd" Executing (Win32_Process)->Create() Method execution successful. Out Parameters: instance of __PARAMETERS { ReturnValue = 0; }; However, nothing is executed on the remote machine.
I have a working on a project in which we have to parse a nested json array and display it in a expandable listview with 2 level, now I have get only first item of group and their child item. I am new to Android development please help me achieve this. This is my code: import java.util.ArrayList; import java.util.HashMap; import java.util.List; import org.apache.http.NameValuePair; import org.apache.http.message.BasicNameValuePair; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import android.app.Activity; import android.app.ProgressDialog; import android
public function getIncomeBranches() { return $this->db ->select('t1.subject_name, t2.payment_grand, t2,.payment_date, t3.level_id') ->join('groups AS t3', 't1.subject_id = t3.group_id', 'left') ->join('payments AS t2', 't1.subject_id = t2.payment_id') ->group_by('t1.subject_id') ->get("subjects AS t1") ->result(); } Problem Error Number: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' t3.level_id FROM subjects AS t1 LEFT JOIN groups AS t3 ON t1.`sub' at line 1 SELECT `t1`.`subject_name`, `t2`.`payment_
I am reducing the dimensionality of a Spark DataFrame with the PCA model with PySpark (using the spark ml library) as follows: pca = PCA(k=3, inputCol="features", outputCol="pca_features") model = pca.fit(data) where data is a Spark DataFrame with one column labeled features which is a DenseVector of three dimensions: data.take(1) Row(features=DenseVector([0.4536,-0.43218, 0.9876]), label=u'class1') After fitting, I transform the data: transformed = model.transform(data) transformed.first() Row(features=DenseVector([0.4536,-0.43218, 0.9876]), label=u'class1', pca_features=DenseVector([-0.33256
I want to use mv to rename a file: mv src.txt dest.txt If the file doesn't exist, I get an error: mv: cannot stat ‘src.txt’: No such file or directory How do I use mv only if the file already exists? I don't want to redirect stderr to dev/null as I'd like to keep any other errors that occur
Pulling my hair searching from last 4 hours this simple code for socket connection and getting error. I have changed port as well but nothing works. //create a new WebSocket object. var wsUri = "ws://localhost:9000/demo/server.php"; websocket = new WebSocket(wsUri); websocket.onopen = function(ev) { // connection is open $('#message_box').append("<div class=\"system_msg\">Connected!</div>"); //notify user } $('#send-btn').click(function(){ //use clicks message send button var mymessage = $('#message').val(); //get message text var myname = $('#name').val(); //get user name if(myname == ""){ //
I know machine language and assembly are specific to the hardware and different hardware involves different machine and assembly code, so Higher-level languages were invented to solve of these problems. It might be very basic but i want to know, should a high-level language be translated to each assembly language to support it's related hardware?
I have the following query for creating a table, CREATE TABLE IF NOT EXISTS company ( id uuid CONSTRAINT companyid PRIMARY KEY DEFAULT gen_random_uuid(), name varchar(128) NOT NULL, db_uri varchar(255) NOT NULL, c_uri varchar(255) NOT NULL, date_c timestamp DEFAULT now(), date_m timestamp DEFAULT now() ) WITH (fillfactor=90); I am getting the following error when I run it through pgAdminIII. ERROR: function gen_random_uuid() does not exist HINT: No function matches the given name and argument types. You might need to add explicit type casts. ********** Error ********** ERROR: function gen_rand
I have a live RTSP stream that i have managed to transcode to HLS via VLC. Now it works perfect on Android and on desktop browsers (via flash). But not on Apple (i can test it on iPad and desktop Safari on my virtual machine). I can see the player but when i press the 'play' button all i see is a black rectangle inside the player. On desktop Safari there is also a text 'Loading...' near the play/pause button and nothing else happens. My HTML: <video id="player" controls style="width:100%; height:100%"> <source src="http://178.79.164.114/playlist.m3u8" type="application/x-mpegURL"> </video> The
I am encountering the error '0xC000041D: An unhandled exception was encountered during a user callback', when I run the OpenGL code. Th debugger indicates that the error occurs here: The function where the error occurs and calling functions are given below. Could you please help me identify the cause for this error. double maxDistance(Point_2D* bez, int deg) { int i; double maxheight; double height[30]; // Computing baseline vector and its magnitude Point_2D baselineVector; baselineVector.x = bez[deg].x - bez[0].x; baselineVector.y = bez[deg].y - bez[0].y; double baselineMag = sqrt((baselineVe
While running Jmeter jmx script from Jenkins command line I am getting the below error. Error in NonGUIDriver java.lang.IllegalArgumentException: Problem loading XML from:'/Users/msn/apache-jmeter-2.13/bin/testMsn.jmx', conversion error com.thoughtworks.xstream.converters.ConversionException: org/apache/commons/lang3/CharUtils : org/apache/commons/lang3/CharUtils I have all the plug-in installed in my Jmeter/lib/ext. Can someone help me point out which jar is missing to resolve this issue Building in workspace /Users/Shared/Jenkins/Home/jobs/Jmeter-First/workspace [workspace] $ /bin/sh -xe /Us
I'm trying to automate SAP GUI export to an Excel file, which in turn is then used by another Excel file with some VBA code to automate filtering and formatting the data. I've got it all running, except for one (seemingly minor) problem: SAP GUI always opens the exported Excel file automatically and there seems to be no way of stopping this as it seems to happen AFTER the subroutines to import the Data in Excel VBA have finished (they contain the SAP GUI script). If I only run the sap_export subroutine, then the Excel file opens, which is simply annoying. But if I run refresh_sap(), which call
I'm trying to install Spark1.5.1 on Ubuntu14.04 VM. After un-tarring the file, I changed the directory to the extracted folder and executed the command "./bin/pyspark" which should fire up the pyspark shell. But I got an error message as follows: [ OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c5550000, 715849728, 0) failed; error='Cannot allocate memory' (errno=12) There is insufficient memory for the Java Runtime Environment to continue. Native memory allocation (malloc) failed to allocate 715849728 bytes for committing reserved memory. An error report file with more in
Is there a direct way to calculate the mean of a dataframe column in pandas, but not taking into account data that has zero as a value? Like a parameter inside the .mean() function? I was currently doing it like this: x = df[df[A]!=0] x.mean()
It is a good news that Windows 10 assigned access support running Desktop Application(Win 8.1 only support running universal apps). I want to run Chrome's kiosk mode using --kiosk in command line. The bottom of this article have a tutorial. https://technet.microsoft.com/en-us/library/mt219051(v=vs.85).aspx However, I am very new to Powershell. Can anyone explain how to launch Chrome's kiosk mode by powershell? My command line is "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --kiosk http://my.website.com how to use the script at the bottom of the article? Thanks.
I tried the following command in RStudio version Version 0.99.441 in Linux system: X11(width=800,height=600,pointsize=12) But it gives me the error: No protocol specified Error in .External2(C_X11, d$display, d$width, d$height, d$pointsize, : unable to start device X11cairo In addition: Warning message: In X11(width = 800, height = 600, pointsize = 12) : unable to open connection to X11 display '' I am not able to find out the problem here. ADDITION capabilities() It gives the following output: jpeg png tiff tcltk X11 aqua http/ftp sockets libxml TRUE TRUE TRUE TRUE FALSE FALSE TRUE TRUE TRUE
I am trying to implement an Application fee on all transactions sent through a Stripe charge. I have created a stripe platform and connected an account to it however whenever I add the application fee to the charge it doesn't come up in stripe dashboard. The following code works and makes a charge to the platform. Stripe::setApiKey("sk_test_#platformcode"); Stripe_Charge::create( array( "amount" => 10000, "currency" => "usd", "source" => $_POST['stripeToken'], )); This code also works. It sends the entire charge to the connected account and charges the platform the stripe fees. Stripe::setApiK