Vote count: 0 i was able to mount volume between ~/share at my mac/host and opt/abc inside container. However upon doing so both appeared empty. Even though container had whole app in it. But it worked i created files and it showed up on both places. What can i do to kind of fetch all file from the container and put it into the folder at the side of host/mac. Again. It coects and sync on fine from point onward. But stuff already present there inside container isn't not showing up. asked 22 secs ...
ادامه مطلبVote count: 0 We have a code for creating folders from within database (java / PL/SQL combination). CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "rtp_java_utils" AS import java.io.*; public class rtp_java_utils extends Object { public static int mkdir (String path) { File myFile = new File (path); if (myFile.mkdir()) retu 1; else retu 0; } } CREATE OR REPLACE FUNCTION mkdir (p_path IN VARCHAR2) RETU NUMBER AS LANGUAGE JAVA NAME 'rtp_java_utils.mkdir (java.lang.String) retu java.lang.int'; Rec...
ادامه مطلبVote count: 0 So I have an SQL file with data inside of it. Which libraries do I need to import and what do I need to write in order to export that data into an Excel file? asked 2 mins agoNasif Rob Let's block ads!...
ادامه مطلبVote count: 1 I'm having trouble converting to float. Here is the code: DECLARE @USRATE as varchar(10); SELECT @USRATE = BulkColumn FROM OPENROWSET(BULK 'file.txt', SINGLE_NCLOB) rate_from_file; PRINT @USRATE; PRINT CAST(@USRATE AS float); PRINT CONVERT(FLOAT, @USRATE); The txt file is simply a decimal value (i.e 0.8000 followed by carriage retu) but both of the above commands retus: 0.7883 Msg 8114, Level 16, State 5, Line 9 Error converting data type varchar to float. So both CAST and CONVERT ...
ادامه مطلبVote count: 0 Mandrill app retu this : [{"email":"steven@gmail.com","status":"sent","_id":"234we4fvba4a3e8517d7a9","reject_reason":null}] I need to get only the value of "status". How can I do it in PHP? asked 40 secs agopinkAngel Let's block ads!...
ادامه مطلبVote count: 0 This is related to Not able to retrieve the column names correctly with memcached. I have a scala code to cache the MYSQL data using memcached. Below is the code. import java.sql.DriverManager import scala.collection.mutable.ArrayBuffer import java.sql.ResultSet import java.security.MessageDigest import java.security.NoSuchAlgorithmException import net.spy.memcached.MemcachedClient import net.spy.memcached.AddrUtil import net.spy.memcached.BinaryCoectionFactory import com.sun.rowse...
ادامه مطلبVote count: 0 I have some records in SQL Server management studio and I want to index them to my ES index. At present I'm indexing them individually which is taking a long time. I would like to bulk index them. I tried using the Bulk Descriptor it is throwing an error saying > the object to index, if id not set manually it will be inferred from the object below is my code. string coectionString = ConfigurationManager.CoectionStrings["MyDbCo"].ToString(); using (cn = new SqlCoection(coectionStrin...
ادامه مطلبVote count: 0 This is my database: Am trying to get all from_id which to_id is 4 to a json object where ill be able to show all messages from a from_id in a stack sorted by their different time_sent I have tried: CODE: PHP STATEMENT THAT GETS DATA FROM DATABASE IS AN OBJECT ORIENTEND: public function getadminMessage(){ $sql = "SELECT group_concat(messg, time_sent, from_id) as from_id from messages where to_id = 4 group by from_id"; retu $this->db->fetchAll($sql); //db is in my dbase class } THE ...
ادامه مطلبVote count: 0 I have problem. In my visual studio project I have 2 data grid's As you can see one is for receiving data from serial port and another is for displaying database table. I need somehow run cell change event or something similar. I mean I need serial port data row after row from port dgv to database dgv. But what i'm finding if i'm binding dgv to database I can't import data to database. Now my question is how to insert, update .... from port dgv to database and display in real time ...
ادامه مطلبVote count: 0 I want to get XML data from the web server https://ruralfire.qld.gov.au/bushfirealert/bushfireAlert.xml However, I can't do it because my codes always have an error "javax.net.ssl.SSLHandshakeException: Coection closed by peer". And my InputStream is always null, so I can't do anything with it (such as parsing). I ensure that the problem is in my coection but I don't know how to solve it. This is my code in coecting to the web server: private InputStream downloadUrl(String urlStrin...
ادامه مطلبVote count: 0 I need to implement a table like this: I'm hoping to add more functionality to the table like editing etc., so I'd like to use something like Angular UI Grid. The data for the table cells and headers comes in the form of a JSON from an API endpoint. [{verticalHeader: "vertical", horizontalHeader: 'horizontal', value: 0.9}, ....] The values for verticalHeader and horizontalHeader are unique. Is there a way to have both type of headers? And how do I efficiently populate the table usi...
ادامه مطلبVote count: 0 I have a DataGridView in C# coected with a SQL Database table. I simply want to visualize data from last inserted in the table. The association between dataGridView and Database are made through the visual object functions. For example if the table row are: Richard 1 Susan 2 Carl 3 I want to dispaly data in my DataGridView as: Carl 3 Susan 2 Richard 1 Thanks to all asked 51 secs agoAle Let's block ads!...
ادامه مطلبVote count: 0 I am facing a problem in jQuery Datatable, is that I have a dropdown and a datatable with pagination enabled. If I checked few rows from 1st and 2nd page So the Total number of Rows selected should be binded on Datatable. Is it possible or some other alteative concept is there? View All Layer View selected Layers $(".user-select").change(function () { var arrSelLayr = []; }) So what can we do to resolve this problem. It should bind say 5 rows from 2 pages of jquery datatable. asked...
ادامه مطلبVote count: 0 In my controller I have a $http call which retus a json string which I then want to pass to a directive to be added to a map. The string is being passed from the controller to the directive fine but not from from the $http function within the controller to the directive. wmm.controller('wapMapClr', ['$rootScope', '$scope', '$window', '$http', function ($rootScope, $scope, $window, $http) { $scope.geobj = {}; $scope.geobj.geoprop = "" // Search by postcode // create a blank object t...
ادامه مطلبVote count: -1 Hi Everyone I am newbie to web development so can you help me to solve below questions Questions to be solved 1) suggest me best UI design to implement in web as above in image. 2) And From the database,I need to display data as above image in html by using any one of the scripting language JavaScript and Jquery. if there any other scripting language that can be used to optimize performance please suggest me with a code Thanks in advance. edited 1 min agojcubic asked 4 mins agoRaj...
ادامه مطلبVote count: 0 Basically there is a google like search bar, once they submit, I need to store it in a variable. There is more to the jQuery than below, but all it is is document.ready. The reason I need the data in a variable is because after that, I will use $.post and send it to my api. the jQuery: ("#form").submit( function(res) { var id = $(this).JSON.parse(data); //Other attempted ways of getting input. //$(this).data //$(this).data('button') //document.getElementById('id').value //$(this).g...
ادامه مطلبVote count: -2 I am working on a class assignment which requires me to dynamically make buttons dependent on database information. The array value [i,0] is what pulls the name value for each of these created buttons. My next step is to cause each of these buttons to pull from a different array location in the database, [i,1], and when clicked, set a text area to that text. I am having issues tying the array location to a button to repeatedly call this array location as I have a series of buttons...
ادامه مطلبVote count: 0 I am new to Lua and C++-Lua binding and currently I have weird problem. This works: I can pass std::vector of custom, complex, type and get the size of it in Lua I can access any element of above std::vector in Lua and execute a method on it also: I can pass std::vector of POD type (like int) and get the size of it in Lua (size of std::vector) However I am unable to get given int from the vector, entire app crashes when trying to do. The irony is, all bindings for std::vector is ma...
ادامه مطلبVote count: 0 I try to make a simple JSON file get it using XMLHttpRequest. I've debugged all I observed, but it still can't run, what's the problem here.. var getData = function() { var xmlhttp = new XMLHttpRequest(); var url = "battletheme.json"; xmlhttp.onreadystatechange = function() { if(xmlhttp.readyState == 4 && xmlhttp.status == 200) { var themeinfo = JSON.parse(xmlhttp.responseText); showField(themeinfo); } }; xmlhttp.open("GET", url, true); xmlhttp.send(); } var showField = function(in...
ادامه مطلبVote count: 0 I am trying to archive a data from onClick method of RecycleAdapter class to Fragment Class and that fragement class have interface which I used in MainActivity to get that data. I create a method onButtonPressed() in Fragment class which I called in recycleadapter onclick method for get data. Here is my code 1) Main Activity class public class MainActivity extends AppCompatActivity implements Fragment_main.OnFragmentInteractionListener{ private Realm realm; private Results results...
ادامه مطلب