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 Please, I've been having the challenge of picking the best choice database, for my xamarin.forms and winform app. Having done some research, i discovered that localdb would be suitable, but is restricted to only the winform app, unless I make use of Json object*(which i don't want to use, because my xamarin.forms app would be ruing almost 80% offline)*. Please, this question might seem weird, but please, I've been searching all night for a perfect solution. I'll be grateful if i ge...
ادامه مطلبVote count: 0 im a begier programmer and im writing a C# application that make query to a database.However I am wondering how could I check that a ID exist(ID is entered by user in the console application) and if it doesnt,display a message.Heres my code: Console.WriteLine("enter ID"); try { var userid = Convert.ToInt32(Console.ReadLine()); var aquery2 = from test in context.BusinessEntityAddress where test.Address.StateProvinceID == userid group test.BusinessEntity.Person.LastName by new { test...
ادامه مطلبVote count: 0 I start using GCM on a android device when i send data via CURL and PHP from my server to the GCM on my android app only get a null on the onMessageReceived i think that it was my code on the app but if i call the curl via terminal it shows the data hope you can help me with my php script to see what is wrong with this, by the way the in both i got the petition of GCM but only via terminal it displays the data and the log from android terminal 05-07 06:34:48.694 14037-14239/mx.com....
ادامه مطلب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: -3 Please the form is to upload videos to the table 'videos' in the 'video_system' database but mysql retus an empty result set success message runs asked 3 mins agoNewbie Coder Let's block ads!...
ادامه مطلبVote count: 0 I have been recently working on WordPress and trying to create sessions however I'm facing the following issue: I have created my own PHP file, where I will get the POST data and assign it to session variable. I have created the following function in Theme Footer file: if(document.getElementById("size")) { var sizeSelect = document.getElementById("size"); sizeSelect.addEventListener("change", function(){ var size=document.getElementById("size").value; if(size=="Custom Size") { docu...
ادامه مطلبVote count: 1 I am new to Couchbase database can anyone please guide me to how to install this software and refer some documents...so that i can understand the basics of this Database... asked 5 mins agoharish babu 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 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 know this might be a duplicate questions but I checked all the answers provided and none of them worked for me. My applications (both winform and asp.net) were working fine with the way I worked with them but now all of a sudden none of them will coect to the local sqlserver database. I am using this coection string (both hard coded or using the web.config in asp.net applications) : Data Source=.;Initial Catalog=;Integrated Security=True; but now I get this SqlException since thi...
ادامه مطلب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 So im trying to make a script so i can mail all users in my database mailing them about updates etc the problem i have i can send a email to one user but not muti would this work? $sql = 'SELECT email FROM users ORDER BY id'; foreach ($db->query($sql) as $row) { $to = $_row['email']; $subject = $_POST['subject']; $txt = $_POST['comment']; $headers = "From: admin@myemail.com" . "" . "CC: admin@myemail.com"; mail($to,$subject,$txt,$headers); } I off course set the posts in a form bef...
ادامه مطلبVote count: 0 i have 2 tabs in my web page. i have one model,2 repository folder in which i am calling stored procedures from back end,one view and one controller.i am able to insert data from both the tabs.but when i insert from second tab it is inserting row with null values in first tabs's table.please help me out asked 2 mins agoShital Kashte Let's block ads!...
ادامه مطلبVote count: 0 hi i have an exercise on doing quiz in database. below is my requirement that has been done. -i have done retrieve question randomly from database -user can select answer *there is a problem when i have to compare the answer selected by the user with my database. in my database, i have created id_question, question,ansA,ansB, ansC, ansD and correctAns. so, i am stuck on doing the comparison, when i do the if-else statement, its going wrong as below my problem is : how to compare th...
ادامه مطلبVote count: 0 I'm doing some research on In-Memory databases and am wondering what type of applications would benefit the most from the predictable latency characteristic of In-Memory databases. I can imagine online gaming, such as first person shooter games. I'm just wondering what other type of applications. asked 1 min agoYolo49 Let's block ads!...
ادامه مطلبVote count: -1 i know this is simple..but i am unable to find the error..i have a login page where i take the input from user i.e. the useame and password.then another page i am checking whether the values are present in the database or not.but neither it is giving me an error nor its working..moreover its not entering the first if condition..if ($result->num_rows > 0) asked 2 mins agoabhi Let's block ads!...
ادامه مطلب