Please consider the following Dockerfile: FROM phusion/baseimage VOLUME ["/data"] RUN touch /data/HELLO RUN ls -ls /data Problem: "/data" directory does not contain "HELLO" file. Moreover, any other attempts to write to volume directory (via echo, mv, cp, ...) are unsuccessful - the directory is always empty. No error messages shown. I could not find anything in documentation or on stackoverflow regarding this problem. Is this something well-known or new? docker version returns: Client version: 1.2.0 Client API version: 1.14 Go version (client): go1.3.1 Git commit (client): fa7b24f OS/Arch (cl
I am using a Wowza's Gocoder application to live stream video from my iPhone to the Wowza server(version 4.0.4). From the server I was able to fetch the video to my Webpage as well. I used Video.js player to do the same. But all this works only for IOS (HLS stream). Now, I would like to know if I could support streaming from my Android mobile (RTSP) as well using the same player. Is there something I could include to make the single player connect to the RTSP or HLS stream respectively? Thank you for the help ! :) Code: <head> <script type="text/javascript"> document.createElement('video');doc
Having the below issues using the TruClient Protocols. Any help would be much appreciated. Set Up: I have Loadrunner 12 installed in Win7 with IE 11 & latest version of Firefox (32.0) installed. Question 1: When I record a script using "TruClient Ajax IE" protocol I get an error as below: When I click on Develop Script I get this error: In order to edit an Ajax TruClient IE script you must have Internet Explorer 9,10 or 11 installed on your machine. VUGen could not start TruClient browser to enable you to develop your script. Question 2: When I record a script using "TruClient Ajax Firefox" I
According to this esdiscuss discussion, it is possible in ECMAScript 6 to define multiline strings without having to place subsequent lines of the string at the very beginning of the line. Allen Wirfs-Brock’s post contains a code example: var a = dontIndent `This is a template string. Even though each line is indented to keep the code neat and tidy, the white space used to indent is not in the resulting string`; Could someone explain how this can be achieved? How to define this dontIndent thing in order to remove the whitespace used for indentation?
I'm currently making a book with turn.js using Jquery of which is going well but I need a little bit of help. You see I'm trying to make a hard-backed journal-type book like the example shown here http://www.turnjs.com/#samples/html5/1. My question is, how can I get it so that the pages of the book are smaller than the front and back covers? Also how can I get it so that when I keep turning the pages, the number of pages visibly build up on the other side like in the example? Can someone please help edit the code of my main page below so that I can get the effect I'm after? <!doctype html> <ht
I'm trying to make a js app that reads and checks HTML/JS code inserted by the user. I'm using document.[some div].outerHTML to retrieve the full html contained in that element. But, I noticed that IE10 (and other versions of IE) modify HTML returned by .outerHTML property. In particular, it changes the order of parameters of any element. For example: Original code: <a id="test" class="myclass" name="test" href="mylink">link</a> Becames something like: HTML returned by .outerHTML <a name="test" href="mylink" id="test" class="myclass">link</a> As you see, the name and href params are reordered.
I have problem with position of div called reklama above footer. On this forum , I found a solution to my problem. I put two selectors into my div. position: relative; and top: -150px; But now the size of my footer changed by the size of the reklama's div. Thank you for help. html code: <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="css/main.css" rel="stylesheet" type="text/css" media="all" > <script type="text/javascript" src="http://code.jquery.com/jquery-1.11.0.min.js"></script> <script type="text/javascript" src="http
I'm using ruby and selenium to test a web page, with the two buttons below <div class="AVdis"> <span class="gwt-InlineHTML"/> <a class="AVcur" name="attendEdit"; font-size: 12px;">[edit]</a> </div> <div class="lineHeight"> <button type="button" class="pcbtn" style="display: inline-block;">yes</button> </div> I've tried to use driver.find_elements(:class, 'AVcur').click driver.find_elements(:class, 'pcbtn').click but it doesn't work, please advise. Thanks updated the full HTML code(the part code of class 'pcbtn' ONLY, it doesn't include the part with class 'AVcur'.): <body> <iframe src="javascr
How to hover over an item in the dropdown list in selenium webdriver? I knew about clicking, however I need to moverOver on each and every item and check the url is a secured one. Thanks
I've a problem with importing excel sheet data to work with Java. I've a Table that look likes the following. Image Name Order 1011V Holly ON-10121 As you can see, I've column Headings , Image Name Order I want to get the Column Name like A , B or C in Excel, given that I've provided the Column Headings ( Cell Values ) Image , Name or Order. For Example Something like :- getExcelColumnName("Image") , getExcelColumnName()
I'm new in vb and crystal report so please help me from my problem. I'm assigning values using vb codes to a formula field from my crystal report. Here is my code: Dim report As CrystalDecisions.CrystalReports.Engine.ReportDocument report = New report_Student() report.DataDefinition.FormulaFields("student").Text = "Slone" & Chr(13) & "Thompson" frm_print.viewerReport.ReportSource = report frm_print.viewerReport.RefreshReport() frm_print.Show() i place this in button click event. Now i have an error on running this, before it loads the crystal report from viewer this error shows: The remaining
My delete function doesn't work when I try to delete node with only right child. It works when node has left child only or has both left and right. I would like to know if this is a valid approach to this problem. I know how to write this in C++ but I need it to work in C# also. //Private method, with args: root node, node to be deleted private Node DeleteN(Node root, Node deleteNode) { if (root == null) { return root; } if (deleteNode.data < root.data) { root.left = DeleteN(root.left, deleteNode); } if (deleteNode.data > root.data) { root.right = DeleteN(root.right, deleteNode); } if (deleteN
I am trying to get the stdout of 7zip when it processes files and get the percentage in nodeJs, but it doesn't behave as expected. 7zip doesn't output anything to stdout until the very end of the execution. Which is not very helpful.. especially when I have large files being compressed and no feedback is shown for a very long time. The code I am using (simplified): // 7zip test, place the 7z.exe in the same dir, if it's not on %PATH% var cp = require('child_process'); var inputFile = process.argv[2]; if(inputFile==null) return; var regProgress = /(\d{1,3})%\s*$/; //get the last percentage of t
I'm attempting to set up a project using the libGDX project generator. What I have done is this: I double-click the gdx-setup.jar. All the fields in the UI are left at their default values, except "Destination" (C:\Users\Robert\Development\libGDX\test) and "Android SDK" (C:\Users\Robert\Development\android-sdk). I select "Desktop" and "Android" for sub projects, and deselect all extensions. Finally, I click "Generate". After a while the build stops, and it informs me that "Build failed". I have also tried to run gradlew from the command line like this: gradlew.bat clean --refresh-dependencies
I am using SQL-server 2012. I have a large excel file about 200 MB in size. I normally Import data from excel file to sqlserver by using sql-server management studio (by selecting database->Tasks->Import data) then selecting microsoft excel as datasource. I have noticed several times whenever i use any excel file more than 100MB I gets this error TITLE: SQL Server Import and Export Wizard The operation could not be completed. ADDITIONAL INFORMATION: Unexpected error from external database driver (ڟ珉⒀珉Ɇ 䠠⁖). (Microsoft Office Access Database Engine) BUTTONS: OK here are technical details which
Is there a requirement that the ears must show on photos used for US visas? This is specifically about women with long hair. There are several example photos of women on official sites where the ear does not show. See for example at the bottom of this page: (There was another official site with many examples of "good" and "bad" photos. I used it as the reference when taking the photo. I can't find the page now but I clearly remember it also had "good" example photos where the ears didn't show.) However, on the final checklist auto-generated by the visa application website there is this item: I
I am using a $(window).scroll event triggered function on my website, all is well only that it doesn't work on mobile devices. This is the code I am using: $(window).scroll(function(){ var wh = $(window).height(); var scrolledFromtop = $(window).scrollTop(); if( scrolledFromtop > wh ){ $('html').addClass('scrolled'); }else{ $('html').removeClass('scrolled'); } }); I also tried this code but with no success: document.addEventListener("touchmove",aaa, false); function aaa(){ var wh = $(window).height(); var scrolledFromtop = $(window).scrollTop(); if( scrolledFromtop > (wh) ){ $('html').addClass
I am looking for a help in converting a IBM Tivoli script to Autosys since we have migrated from Tivoli to AUtosys. Below is the script in Tivoli - SCHEDULE SX On RUNCYCLE YEARLY VALIDFROM 02/01/2015 "FREQ=YEARLY;INTERVAL=1;" UNTIL 0550 +5 DAYS CARRYFORWARD ... ... I need to convert this same script so that it can work in Autosys. Not sure, what Tivoli script means and what this Tivoli is doing and how I can convert it in run_calendar in AUtosys script What about UNTIL and carryforward option ? Thanks.
I'm trying to import an Excel file (.xls) with 18 columns; the first row has column names. The file contains 3718 rows of students personal data. This is the error I receive importing the file into a SQL Server database: - Copying to [dbo].[masterlist$] (Error) Messages * Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "Invalid character value for cast specification". (SQL Server Import and Export Wizard) *
I have the following piece of code to open a .tgz file, but I'm getting tarfile.ReadError: file could not be opened successfully. fp = tarfile.open('file.tgz', 'r') print fp.list() fp.close() I can extract this archive using "tar -xvzf file.tgz." Apparently it has something to do with the way the file was created because when I compare two different .tgz files using file, I see a difference; file2.tgz works with this piece of code. $ file file.tgz file.tgz: gzip compressed data, from FAT filesystem (MS-DOS, OS/2, NT) $ file file2.tgz file2.tgz: gzip compressed data, was "", last modified: Tue
My datatable plugin is not working and i dont know why please help... when trying to debug the javascript on Google crome i found this error and i know if they are clashing Uncaught ReferenceError: jQuery is not defined localhost:49769/Scripts/main.js:1 Uncaught Error: Graph container element not found localhost:49769/Scripts/Template/js/plugins/morris/morris.min.js:1 'Range.detach' is now a no-op, as per DOM (http://dom.spec.whatwg.org/#dom-range-detach). Am using MVC5 to develop the application this is the main Js jQuery(function ($) { $(document).ready(function () { var table = $("#customer
I am in a serious confusion since this morning after the project meeting .. I am very much new to java, I have worked as Application Supporter before, but java seriously ruffled my mind. My Question: I am developing a web based application using Servelts/MYSQL, and my boss wants me to develop another application which was already developed before and he has lost the code, I have to develop that app again, But I don't want to use servlets for my 2nd project.. I think I can do that application using Swing or GWT, or AJAX, now that problem is have to integrate my application with my first applica
I am getting LazyInitializationException while using createQuery(), load() or get() methods. Configuration is based on annotations. This is exception which I am getting: Method threw 'org.hibernate.LazyInitializationException' exception. Cannot evaluate lt.package.to.Setting_$$_jvstfff_0.toString() Schema structure: CREATE TABLE IF NOT EXISTS `Settings` ( `key` varchar(255) COLLATE utf8_lithuanian_ci NOT NULL, `value` varchar(255) COLLATE utf8_lithuanian_ci DEFAULT NULL, PRIMARY KEY (`key`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_lithuanian_ci; PersistenceConfig.java @Configuration @
CREATE FUNCTION insertrecord(@id int, @location varchar(20)) RETURNS INT AS BEGIN INSERT Into [dbo].[Location] (Id,Emploc)values(@id,@location) RETURN SCOPE_IDENTITY() END GO Above code gives following Error Msg 443, Level 16, State 15, Procedure insertrecord, Line 11 Invalid use of a side-effecting operator 'INSERT' within a function.
>>> class B(): ... pass ... >>> class C(object): ... pass ... >>> b = B() >>> b.__len__ = lambda: 7 >>> len(b) 7 >>> c = C() >>> c.__len__ = lambda: 5 >>> len(c) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: object of type 'C' has no len() It is mentioned in Python's documentation, but I still don't understand how it works.
>>> class C(object): ... pass ... >>> c=C() >>> c.__reduce__ <built-in method __reduce__ of C object at 0x1ae734> Does this __reduce__ do anything if I don't implement it? Normally we add methods only when necessary, e.g. add __getitem__ to implement self[key], add __sub__ to implement x-y... So I guess it must do something by default? Otherwise it should be omitted..
I have a web site which continuously reads data from another site and plots that information on a map. I have a socket started as client.BeginReceive(state.buffer, 0, StateObject.BufferSize, 0, new AsyncCallback(ReceiveCallback), state); ReceiveCallback reads the data and dumps it in a Queue for another thread to analyse and then sets the waithandle to start that thread. readBytesWaitHandle.Set(); Very rarely I am getting the following error System.Threading.ThreadAbortException: Thread was being aborted. at System.Threading.WaitHandle.WaitOneNative(SafeHandle waitableSafeHandle, UInt32 millis
I applied a custom date format to a column in excel (the format yyyy-mm e.g. 2014-01) But when I create a graph out of three columns of data (date-in above format |heading|value) the graph shows the date as 2014-01-31 2014-02-28. How do I get the graph to display the date as I have formatted it 2014-01 only without changing the data type to text and pasting values?
How do you deal with svn vendor branches when releases from the 3rd party vendor come out-of-order in their version number. eg, consider releases in this order: 1.0.0 2.0.0 alpha 1.0.1 (minor point release) 2.0.1 beta 1.1.0 (new features added) 2.0.2 final We merge to the trunk various versions from any of the above, depending on what stage the project is in. What's the best way to handle this in svn for vendor branches? Should each release be committed to \current? Would the history be preserved properly? Also, depending on the amount of changes, a lot of space would be wasted going back and
I am looking to implement a calendar with month view & to be able to add appointments to day, as in attached image. Suggest me with some example to approach this, Thank you in advance!