I understood that it is not possible to run C code with gcc for a file in sdcard directories, sudo is required. But I see that it's possible to run Ruby files with Ruby. I don't understand why. Can someone say me what languages can be run in sdcard in the terminal?

Member Avatar
Member Avatar
+0 forum 6

from tkinter import * import time root = Tk() root.title("Testing System") root.geometry("900x600") def main(): def tick(): time_str1= time.strftime("%H:%M:%S") clock.config(text = "Current Time:\n" + time_str1) clock.after(200, tick) def date(): date_str1 = time.strftime("%A, %d %B %Y") date2.config(text = date_str1) date2.after(200, tick) frame = Frame(root) clock = Label(frame, font = ("times", 14, "bold"), bg = "light pink") clock.place(x = 260, y = 60) tick() date2 = Label(frame, font = ("times", 13, "bold")) date2.place(x = 40, y = 560) date() button1 = Button(frame,text = "Test", height = 2, width = 10, command = frame.destroy and menu) button1.pack() button1.place(x = 370, y = 150) def …

Member Avatar
+0 forum 0

Task 2: Write a program that simulates an unbiased coin flip. Your program should print true if the coin flip results in a head and false if the coin flip results in a tail. Hint: any value greater than 0.5, represents Head otherwise it represents Tail

Member Avatar
Member Avatar
+0 forum 1

write a C program to sort a csv(student.csv)file using QSORT on LINUX .. please help.. student.csv file containing(student name, percentage)

Member Avatar
Member Avatar
+0 forum 1

I new in learning Object Oriented Programming... I face a problem that how to do this question for loop and if.... hopefully can get some help in this website...` this question is need to do from the previos question.. this is java need to do the question using NetBeans.IDE.. question:(at the link file) VehicleApp.java: package vehicleapp; /** * * @author asus */ public class VehicleApp { /** * @param args the command line arguments */ public static void main(String[] args) { Vehicle car; car = new Vehicle("car", "manual", "electric"); System.out.println("Accelerate: Current Speed = " + car.accelerate()); car.brake(); System.out.println("Brake: Current Speed …

Member Avatar
Member Avatar
+0 forum 1

HI everyone, _SBLOCK *allocateMemBlock(size_t size) [ _SBLOCK *block = (_SBLOCK*)sbrk(0); void *memadr = (void*)sbrk(0); void *allocate_mem = (void*)sbrk(BLOCK_SIZE + size); if(allocate_mem == (void*)-1) [ return NULL; ] else [ block->next = NULL; block->isfree = false; block->size = size; block->memoryAddress = memadr+BLOCK_SIZE; return block; ]

Member Avatar
Member Avatar
+0 forum 7

I'm doing an assignment for a class and I can't figure out what I'm doing wrong to keep getting the "illegal start of expression" error. Any help would be appreciated. public class Overloading { public static void main(String[] args) { public static int max(int num1, int num2) { if (num1 > num2) return num1; else return num2; } public static double max(double num1, double num2) { if (num1 > num2) return num1; else return num2; } public static int max(double num1, double num2) { if (num1 > num2) return num1; else return num2; { public static double max(int num1, double …

Member Avatar
Member Avatar
+0 forum 5

Hey everyone. I received this sql server error and I can't figure out where the trouble is: Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: 'Incorrect syntax near '​'.' Source Error: Line: 46 Error Line: cmdsql.ExecuteNonQuery() Dim connexcel As OleDbConnection Dim daexcel As OleDbDataAdapter Dim dsexcel As DataSet Dim cmdexcel As OleDbCommand Dim drexcel As OleDbDataReader Dim connsql As SqlConnection Dim dasql As SqlDataAdapter Dim dssql As DataSet Dim cmdsql As SqlCommand Dim drsql …

Member Avatar
Member Avatar
+0 forum 3

Hi guys, this is my first question here What useful plug-ins / debuggers for Visual Studio do you use (for Windows)? P.S. I know Visual Studio has a good debugger. Thanks a lot

Member Avatar
Member Avatar
+0 forum 3

Hello Everyone, I want to know about more binary search in C programming and their various variation and how its work? I am sharing sharing code. Can anyone tell me is it right? Requirements ask for using binary search on an unsorted array, then it needs to be sorted first before using the binary search algorithm on it or anyone tell me where i can explore more about binary search in C program. The code mentioned below assumes that the input numbers follow an ascending order! #include <stdio.h> int main() int c, first, last, middle, n, search, array[100]; printf("Enter number …

Member Avatar
Member Avatar
+0 forum 2

# I need a project# Hi, I am brand new to programming and was wondering if anybody had any suggestions of where/ how I could learn more python, and or a good project that would help my learn new elements of code as i learn them.

Member Avatar
Member Avatar
+0 forum 4

So, I created a program in VB.Net with Windows Form and I want the user to be able to create a new user, limited to 5 user accounts only. I also want to know if it's possible to change password and delete user accounts. Can I make it so that each User has their own MS Access database? For example, User 1 can only access Database1 but not Database2. And User 2 can only access Database2 but not Database1. Here is the log-in form that I created that can only have one user account: Public Class Form3 Private Sub Register_Click(sender …

Member Avatar
Member Avatar
+0 forum 1

Hi, I'm creating a project using VB.Net Windows Form and I want to create a Log-In form that can **Add New User (Limited to 5 User Accounts), Delete User Account, and Change Password**. I want to use Microsoft Access with it. What are the codes I should use to create it? I also want each User to have their own database. For example, User 1 can only access Database1 but not Database2. And User 2 can only access Database2 but not Database1. I am a beginner and I only see MySQL tutorials on YouTube but I don't have MySQL. On …

Member Avatar
Member Avatar
+0 forum 2

Hey! I am really stressed out about my TURBO CPP project. I wrote a program on periodic table using file handling. when i compiled it crashed and not the project is unusable. I want to submit it at the earliest. I was hoping some one might drop their out projects. Thanks.

Member Avatar
Member Avatar
+0 forum 1

Hi! I would like to know how to make a photo clickable to redirect people from my blog to my Facebook page. I'm not a computer science student nor do I have a heavy duty level of expertise in HTML, but I can follow simple instructions. I'd like to make the photo so that when people click on it, they are sent to my FB page. I tried making one on Easy Hyperlinks but they asked for information I did not have. This is what they wanted: 1- The target URL (I could provide that, my FB page URL) 2- …

Member Avatar
Member Avatar
+0 forum 14

I am trying to apply an automatic scrolling down and up in Datagridview Scrollbar. I've seen a related topic (using scrollbar panel) but I dont know how to convert for datagridview auto scrolling up and down. I'll be using Timer for autoscrolling. Here is the code from another topics forum. Please help. Private scrollUp As Boolean = False Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick If scrollUp Then Dim scrollY As Integer = -Panel1.AutoScrollPosition.Y - 1 If scrollY < 0 Then scrollUp = False Else Panel1.AutoScrollPosition = New Point(Panel1.AutoScrollPosition.X, scrollY) End If Else Dim scrollY As Integer …

Member Avatar
+0 forum 0

Hello Everyone. I am trying to create a code to decode an PostScript RLE image and save it. However, my output is always invalid (the raw image). I try to open it on photoshop but its always an invalid image or something like that. I've wrote at least three versions of it, all of them with the same result. So i'm asking for any help here. My code goes on the comments, and this is how it should be decompressed (i think my code follows what the book says). The method i created: public static List<byte> RLETest(byte[] input) { List<byte> …

Member Avatar
Member Avatar
+0 forum 2

I have an assignment to create a card game that compares to dealt cards between players to see who has the highest valued card. It must first be determined by the cards value, then only if it is tied, the suits value. The code below is what I have so far. It is working, but it isnt how I need to compare the two cards together. string card(unsigned int card) //Assigns suits to values { if (card >= 52) { return "Invalid"; } return values[card % 13] + " of " + suits[card / 13]; // where card ranges from …

Member Avatar
+0 forum 0

I have a class A like this: public class Article { public Tag Test1 { get; set; } = new Tag(); } public class Tag { public List<News> Test{ get; set; } = new List<News>(); } I have a list like this: News 1 Tag 1{ News 1 **Tag** { News 1 Tag {....} News 4 Tag {....} News 5 Tag {....} } News 4 Tag {....} News 5 Tag {....} } News 2 News 3 I want to set null "Tag" 2nd on that list = null to avoid loop infinitely. like this: News 1 Tag 1{ News 1 …

Member Avatar
+0 forum 0

The reverse program shown in the slides of chapter 13-1 (also present in the book) reads from a file/command line using system calls and outputs the lines in reverse order on the terminal. The last line is swapped with the first line , the second last is swaped with the second line and so on. It also has a -c option to run with. When used with -c option it reverse the characters of each line as well. For example, Lets say below are the file contents of your file. This is line 1 This is line 2 This is …

Member Avatar
Member Avatar
+0 forum 2

i want to remove a card from a randomly shuffled deck. so that each time a card is picked from the again shuffled deck. that card is eliminated from further play until all 52 cards are drawn. in python3.7

Member Avatar
Member Avatar
+0 forum 3

In this case I display values into datagridview from Projects table which it has only 2 columns: PROJECT_NAME VARCHAR ID INT // Which is hidden in datagridview, and as AUTOINCREMENT I have already done with editing values in this table and it works fine: `private void dataGridView4_CellEndEdit(object sender, DataGridViewCellEventArgs e) { string name_project = dataGridView4.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString(); string id = dataGridView4.Rows[e.RowIndex].Cells[0].Value.ToString(); MySqlConnection connection = new MySqlConnection("datasource = localhost; port = 3306; username = root; password = "); MySqlCommand cmd = new MySqlCommand("UPDATE projekt1.projects SET PROJECTS_NAME = @PROJECTS_NAME WHERE ID = @ID", connection); cmd.Parameters.Add("@ID", MySqlDbType.Int64).Value = int.Parse(id); cmd.Parameters.Add("@PROJECTS_NAME", MySqlDbType.VarChar).Value = name_project; try { …

Member Avatar
Member Avatar
+0 forum 1

Can anyone help me with my search engine. I need filter search in the system using PHP. The problem with the code: All the provided fields must be filled up..unless it will not work There were 6 fields such as Remark Status: Industry: Position: Location: Age Range: Min and Max I have to use these fields as the filters,but eventually all the fields must be filled up before it works..How if i provide just one field, let say i fill the position as HR Manager so i did not specify its age and location...Please Help me on this,,, if(isset($_GET['advance_searching'])){ if …

Member Avatar
Member Avatar
+0 forum 14

In mysql database i created "leave" table: CREATE TABLE `leave` ( `ID_LEAVE` int(11) NOT NULL, `ID_WORKER` int(11) NOT NULL, `BEGIN_DATE` datetime DEFAULT NULL, `END_DATE` datetime DEFAULT NULL ); INSERT INTO `leave` (`ID_LEAVE`, `ID_WORKER`, `BEGIN_DATE`, `END_DATE`) VALUES (1, 26, '2019-03-19 07:00:00', '2019-03-19 15:00:00'), (6, 26, '2019-03-22 07:00:00', '2019-03-25 15:00:00'); "Sickness" table: CREATE TABLE `sickness` ( `ID_SICKNESS` int(11) NOT NULL, `ID_WORKER` int(11) NOT NULL, `BEGIN_DATE` datetime DEFAULT NULL, `END_DATE` datetime DEFAULT NULL ) INSERT INTO `sickness` (`ID_SICKNESS`, `ID_WORKER`, `BEGIN_DATE`, `END_DATE`) VALUES (5, 25, '2019-03-19 07:00:00', '2019-03-20 15:00:00'), "Workers" table: CREATE TABLE `workers` ( `ID_WORKER` int(11) NOT NULL, `FNAME` varchar(20) NOT NULL, `LNAME` …

Member Avatar
Member Avatar
+0 forum 1

I am optionally display some content in the Unity Editor based on options chosen for a given component, this will be used when displaying a summary of options chosen on this current Component. How I can make a function inline that returns a string, I want this function to be inline because there will be many of these and they will only useful in the line they are used in. I have provided a code snippet that may clarify what I am trying to do. I have used lambda functions like this in c++ and JavaScript, but not in c# …

Member Avatar
+0 forum 0

I created a calculator only using the scripting commands in the video game Counter-Strike, bind (for input) echo (for output) and alias (for the logic). Bind is to connect keys to a command or string of specified commands, echo is to output text to the console, and alias is a command that allows you to create a new command out of a string of specified commands. Basically, I can do math without using math. This is pure connectionism, where there are no values, no logic operators and no measurements in the logic. It is purely making, breaking and using connections …

Member Avatar
Member Avatar
+0 forum 1

In desktop application used in technologies like C#, .Net and MySQL I import data from large file (which is about 37 MB) to datagridview. The table from Excel file is in below: ![B8UMq.png](/attachments/large/4/9bbe3c17922dd6159fbe781fae200a4e.png) After loading data from Excel to datagridview I'm inserting that data to MySQL database. Later when I executing this importing code, that problem is began. Despite of switching off ContextSwitchDeadlock exception (of only 1 table to insert) inserting this data takes about... 10 minutes. Despite of not calling any error or exception in program it inserts not all data. In that case I saw I have imported …

Member Avatar
Member Avatar
+0 forum 1

I have a C# project that creates a COM object for use with a POS terminal. Before I give it to the customer, I want to make sure that it will work as a COM dll. The RegAsm says it works. using System; using System.Runtime.InteropServices; namespace POS { [Guid( "0135bc5c-b248-444c-94b9-b0b4577f5a1a" )] [InterfaceType( ComInterfaceType.InterfaceIsDual )] [ComVisible( true )] public interface ITwoWay { // The Initialize method is called to establish the communications connection... [DispId( 1 )] void Initialize( String IPAddress, long Port, long MaxPacketSize ); // A convenience method that allows the POS to test the Third Party’s back-end... [DispId( 2 …

Member Avatar
+0 forum 0

hello everybody who can help with this task Now I will talk little about monoalpahapit cipher This is cipher is based on substitution the characters with another characters So in the encrypt.java file it counts how many the characters appeared in the cipher text , so in the picture that I sent to you it contains the statistics of most frequently characters, an example : suppose in the cipher text the character ( O ) appeared 16 times and it’s the most frequently character so you will back to the picture of the statistics and see what is the most …

Member Avatar
+1 forum 0

I have simple .NET Core 2.2 Web App that I have deployed to Azure App Service. App contains a simple HomeController with Index Action and Index.cshtml file. When I try to browse the page it gives me InvalidOperationException with message The view '~/src/Views/Home/Index.cshtml' was not found. I have verified the path of the file and build action (Content), but due to some strange reason it cannot find the view. However surprisingly if I change the name of the View to Index1.cshtml it works. Can anyone explain why this is happening? public class HomeController : Controller { public IActionResult Index() { …

Member Avatar
+0 forum 0

The End.