Member Avatar

hi there i have some python coding which i need to convert to java can ne1 help me please email me back if you can help then i will show you the coding much appriciated

Member Avatar
+0 forum 10
Member Avatar

Hi. I just installed Code Blocks. I want to just get started with programming. It seems that I have to configure Code Blocks therefore, setting up a compiler. How should this be done? Help Leon

Member Avatar
+0 forum 4
Member Avatar

I am trying to get the usernames of users to appear in the url so that I can use $_GET['username'] to grab the username to create a link to the user's profile which can be viewed by any logged in user. So far I can only the logged in user's username to display in url. So I did a loop/queried the database and selected usernames of all users and created a link of the usernames to appear in the url. So any logged in user can go to the users.php and click on any username to see the detailed information …

Member Avatar
+0 forum 3
Member Avatar

I have a long/register system working . Each user see their own profile details when they login. Now I want to users to see other users profile by clicking on a link to their profile. How do I do this? I need advice

+0 forum 0
Member Avatar

I'm trying to use CSS as so: <link rel="stylesheet" media="screen and (max-width: 991.98px)" href="/files/mobile_css/daniweb.css" type="text/css"> <link rel="stylesheet" media="screen and (min-width: 992px)" href="/files/css/daniweb.css" type="text/css"> I want to load one CSS file for our mobile layout and a different one for our desktop layout. The problem is the web browser always downloads both files, which completely eliminates the performance advantages of having a more lightweight mobile CSS. What I'm thinking of doing is using a `<link rel>` to download all of the CSS that's common between mobile and desktop. Then, conditionally, via javascript, injecting CSS via @import (I guess?) to load the …

Member Avatar
+3 forum 16
Member Avatar

A client would like me to implement spreadsheet-style form traversal using the arrow keys on a keyboard, i.e. left arrow would submit the entry for that field and then move left by one field on the form. The form is managed by my PHP code. Does anyone have a [U]browser-independent[/U] method of doing this please? All input fields in the form are single line text fields.

Member Avatar
+0 forum 4
Member Avatar

Hello all. I have a funtion in MYSQL to substruct days from a date. This function seamsto work but some dates it times out. This is my function CREATE DEFINER=`root`@`localhost` FUNCTION `Calculater`(intrval int, req date) RETURNS date DETERMINISTIC BEGIN declare calculated date; declare added int default 0; Lbl_Loop: Loop IF added=intrval then leave lbl_loop; End IF; set calculated = DATE_SUB(req,interval 1 day); IF weekday(calculated)<5 then set added= added+1; End If; end loop; RETURN calculated; END If I do **select Calculater(1,"2020-02-04")**; it works, but **select Calculater(1,"2020-02-02")**; it runs for a few seconds and My SQL times out. Thanks in advance.

Member Avatar
+0 forum 1
Member Avatar

Hello guys, i've the following table in database : IdCity int CityName nvarchar(20) it has the data like this in it : IdCity CityName 1 Абакан 2 Азов 3 Александров 4 Алексин 5 Альметьевск 6 Анапа when i try to run the following view SELECT IdCity, CityName FROM dbo.City WHERE (CityName = 'Абакан') i get the results null, althought that record in the table i tried to add a record with cityname= 'abc' and ran the view with this parameter, it worked fine so it only doesn't get results written in russian any ideas? SQL query problem with any language …

Member Avatar
+0 forum 5
Member Avatar

I've just started working with PHP and MySQL, and I'm trying to create a table in MySQL. If I've got this right, I'm trying to do so by going to my host's SQL MyAdmin page and typing in mysql_query("CREATE TABLE example( id INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(id), name VARCHAR(30), age INT)") in the query tab. I get an error saying that my syntax is wrong. Any advice?

Member Avatar
+0 forum 4
Member Avatar

How important is Unit Testing taken by employers, is it something that every developer should have as one of their skills, do some jobs require it more than others or is a simple test like handing out a piece of software to be used by friends family etc sufficient enough.

Member Avatar
+0 forum 5
Member Avatar

This page keeps crashing on my iPhone, both in Mobile Safari as well as Chrome. https://www.daniweb.com/connect/developers/endpoints

Member Avatar
+2 forum 6
Member Avatar

I'd like for my page (https://fiftyallstars.com/tour.html) to load, and for the TOUR to start automatically. Right now visitors must click a button with id "starttour" Here's what I've added so far, but it doesn't do the trick: <script> $(function () { window.onload = $('#starttour').click(); }); </script> <a class="start-tour" href="#" id="starttour"><span class="two skinny" style="margin:10px 5px; width:290px; font-weight:bold; letter-spacing:4px;"><i class="fa fa-photo animated faa-pulse faa-slow"></i> Take a Detailed Tour</span></a> Thanks for any help whatsoever.

Member Avatar
+0 forum 4
Member Avatar

Hi DW. I'm developing an App that uses the FCM notification, but the problem is that my code doesn't seem to get the actual data like when I extract the `message` or `body` it shows just the icon only if the notification was received when the App is open, and it shows the `title` and `body` if the notification is received when the App is not running. Basically what I'm trying is to get the `message` and put that on a textView so that it is seen on the actual App when you click the notification. Here is my `FirebaseMessagingService` …

Member Avatar
+0 forum 1
Member Avatar

Hi all at Daniweb, I'm quite new to PHP and I'm banging my head over this... query 1 WORKS: **$query = "CALL procedure_is_a_great_way_to_let_db_do_some_work('1','6')";** //both 1 and 6 are IN parameters! query 2 DOESN'T WORK: $id_pictures = 1; $id_names = 6; **$query = "CALL procedure_is_a_great_way_to_let_db_do_some_work('".$id_pictures."','".$id_names."')";** //both 1 and 6 are IN parameters!

Member Avatar
-1 forum 2
Member Avatar

I come across this problem every so often and end up having to do work arounds when I would prefer to keep it in the database. I have a query where the data in the query updates frequently so the query won't stay in the cache but I don't need the query to be accurate. I was trying to avoid adding an extra step of storing the data in a temp table and having to update it on a timer. Does anyone know of a way to get MariaDB or MySQL to Keep the result set for a period of …

Member Avatar
+1 forum 11
Member Avatar

How can I minify my code in here, I am giving each 23 total imageview a eventhandler. code works, but I like to make the code shorter. I tried to use for loops to shorten the code. here is a example what I tried to do: for (int i = 0 ; i < imgArrayList.size() ; i++) { imgArrayList.get(i).setOnMouseClicked(new EventHandler<MouseEvent>() { @Override public void handle(MouseEvent event) { selectedTile = i; } }); } but it can't because, the "i" inside the handle method is final. I can't pass the "i" inside the handle method. my goal is, that a specific …

Member Avatar
+1 forum 4
Member Avatar

Hi Dani, I'm new to Python . I started working on an automation project where i need to connect to a SunOS server through a windows jump server and run commands to get output on my local machine. I checked this existing module on python called jumpssh but not sure if it's the right one for me or if there is a better alternative by using subprocess or any other modules. To accomplish this manually, I'm doing an RDP to the jump server and then connecting to target server through putty. Any help would be appreciated. Thanks in advance.

Member Avatar
+0 forum 1
Member Avatar

Hi, I have been trying to code an timetable which allows timeslots to be booked. What I am finding difficult is the schedule settings. So three things, "schedule settings", "find common slots" and "make booking". The "find common slots" and "make booking" seems to almost work. But "schedule settings" is more difficult. The idea: The timetable is a typical one with days of the week on the top and hours of the day on the left side. Ofcourse bookings should be possible by choosing month and year also. There are three paricipants. Two of these have a schedule. The third …

Member Avatar
-1 forum 10
Member Avatar

Hello, I'm quite nub in web development, so be gentle please. If this place is wrong for such problems point me to a more appropriate resource please. To became more familiar with web-programming I found good (as I thought) area for self-improvement. One of my friends owns web project. This project was developed during last 15 years with one programmer who seems to be slightly tired and probably is needed for backup. I've tried (for the very beginning) copy all stuff to the new development environment and found that project consists of several tens of sites: site1.domain.name, site2.domain.name, etc. So …

Member Avatar
+0 forum 2
Member Avatar

I am using magento for sending mail with condition, My code: <?php class Gta_MerchantNotification_Model_Observer { public function merchantremainder($Observer) { $order = $Observer->getEvent()->getOrder(); $order_details = $order->getAllVisibleItems(); $itemData = array(); foreach ($order_details as $list) { $incrementid = $order->getIncrementId(); $sku = $list->getsku(); $name = $list->getName(); $price = $list->getPrice(); $Qty = $list->getQtyOrdered(); $extra = $order->getIncrementId(); $message = " <tr> <!-- <td>$incrementid</td> --> <td>$sku</td> <td>$name</td> <td>$price</td> <td>$Qty</td> </tr>"; $itemData[$list->getId()] = $message; } $finalMessage = " <p>Order Id : $incrementid</p> <table border='1'> <tr> <!-- <th>Id</th> --> <th>Sku</th> <th>Product name</th> <th>Price</th> <th>Qty Ordered</th> </tr>"; if (!empty($itemData)) { foreach ($itemData as $data) { $finalMessage .= $data; } $finalMessage …

Member Avatar
+0 forum 2
Member Avatar

Does anyone have any experience using Ezoic to increase site speed? Namely ... * Is their site speed increase predictor accurate? * Does complicated Javascript still work perfectly? What are the trade-offs? * What is their pricing?! It says it's based on traffic, once the free trial ends, but I can't find anywhere that actually says what the actual pricing is

Member Avatar
+0 forum 4
Member Avatar

<?php include 'ProcessDAO.php'; $dest=""; if(isset($_POST['login'])){ session_start(); // i get an error in this line !! $_SESSION['status']='online'; $_SESSION['breadcrumb']='home'; $pro = new ProcessDAO(); $dest = $pro->LogIn($_POST['username'],$_POST['password']); }else{ session_start(); $dest ="Location: ../index.php"; session_destroy(); } header($dest); ?> guyss can you help me out because in my Login.PHP file when i login i always get this error . >** Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\IPMS\process\ProcessDAO.php:1) in C:\xampp\htdocs\IPMS\process\login.php on line 5**

Member Avatar
+0 forum 8
Member Avatar

I tried alot to print this arrow with random generated values which are 0101 , every time it should be differnt, please help me out thanks :) ![Untitled1.png](/attachments/large/4/c843d1e3a2cf1464dc1f1eb7c0d4a68a.png)

Member Avatar
+0 forum 6
Member Avatar

Hi. I was wondering if anyone could help me with checking for a valid move in Othello. I was thinking about hard=coding everything but that takes too long. this is what i have so far: 1. Check which direction is valid (adjacent piece is different from piece being placed) 2. Go in that direction(s) and if: 1. hit the end, or hit a empty space return false 2. hit another piece, keep going 3. hit my own piece, stop

Member Avatar
+0 forum 9
Member Avatar

Hi, I am ope and new to daniweb

Member Avatar
+0 forum 1
Member Avatar

Help me , Search data with dataGuidViewer and print that searching result (vb.Net). I am try verious Code thous are found youtube, but it not work...... Please Help me VB.Net (2010, 2012,2013,)

Member Avatar
+0 forum 2
Member Avatar

![net.jpg](/attachments/large/4/7ba3189ab11bd153b391c468177113e9.jpg) Please help how to code this on vb.net with SQL server database

Member Avatar
+0 forum 1
Member Avatar

This is my code. #include "pch.h" #include <iostream> #include <Windows.h> #include <string> #include <ctime> #include <fstream> using namespace std; std::string AppName = "League of Legends"; LPCSTR LAppWindow = "Riot Client"; std::string AppStatus; bool IsAppAvil; bool Update; int main() { //Start App ShellExecuteA(NULL,"open","D:\\Games\\Riot Games\\League of Legends\\LeagueClient.exe\\",NULL,NULL, SW_SHOWDEFAULT); //Checking if app is running HWND hGameWindow = NULL; int timeSinceLAstUpdate = clock(); int AppAvailTMR = clock(); int onePressTMR = clock(); int Timer = 0; DWORD dwProcID = NULL; HANDLE hProcHandle = NULL; while(!GetAsyncKeyState(VK_ESCAPE)) { Timer += 1; if (clock() - AppAvailTMR > 100) { AppAvailTMR = clock(); IsAppAvil = false; hGameWindow = FindWindowA(NULL, …

Member Avatar
+0 forum 3
Member Avatar

hello, i'm newbie here and also in programming world. so I would to request help from pros here. my question is, how to print out number entered in random in ascending order WITHOUT USING ARRAY AND FUNCTION? let say the user key in 4, 56, 31, 90, 11 and the output would be 4, 11, 31, 56, 90. hope anyone would help me. thank you.

Member Avatar
+0 forum 28
Member Avatar

Hi. I wanted to create a GUI application with C++ as a personal project. I am using that because I have done a lot of GUI personal projects in Java but never in C++, so I want to try using a new coding language I learned. I don't know a lot about GUI with C++ (only header files and some library components of C++) so I decided to look up some information on how to do this in C++. However, when I go to look up information about non-editable radio buttons in C++ and more, I don't get a lot …

Member Avatar
+0 forum 5

The End.