2,720 Recommended Topics
Remove Filter | |
I'm trying to get Memcached persistent connections to work. We currently have a cluster of four Memcached servers each with 2GB of RAM, and four web servers. My code looks like this: public function __construct() { global $config; $this->cache = new Memcached('daniweb'); if ($this->cache->isPristine()) { $this->cache->setOptions(array( Memcached::OPT_NO_BLOCK => true, Memcached::OPT_BUFFER_WRITES … | |
I am trying to use wxPython (the version that ships with Fedora 11 - I'm not building it from source). I am seeing: [code] from wxPython.wx import * File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wxPython/__init__.py", line 15, in <module> import _wx File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wxPython/_wx.py", line 3, in <module> from _core import * File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wxPython/_core.py", line 15, … | |
Can someone please give me tips on how to accomplish generating a random number within a random range. See 'roll_dice' #include <iostream> #include <limits> #include <ctime> #include <iomanip> #include <cstdlib> using namespace std; using std::cout; using std::cin; struct Sanity { unsigned int turns = std::numeric_limits<int>::max(); unsigned int sanity = std::numeric_limits<int>::max(); … | |
For a given array of integers, reach to the end of the array from the 0th index with minimum number of moves. Moves possible at each index: Move from index i to index (i+1) Move from index i to index (i-1) Move from index i to index j, if a[i] … | |
In C# ArgumentException is an existing class that derives from Exception; you use it when one or more of a method’s arguments do not fall within an expected range. Write the application SwimmingWaterTemperature containing a variable that can hold a temperature expressed in degrees Fahrenheit. Within the class, create a … Programming c# | |
Hello, I know the safest way to write a pagination section with php is to use the http_build_query(). Like so: $i = 0; while($i<$total_pages) { $i++; if($_GET['bool']=='null') { //Page Format: $_GET List. $array = array("tbl"=>"$tbl","col_1"=>"$col_1","bool"=>"$bool","input_1"=>"$input_1","lmt"=>"$limit","pg"=>"$i"); } else { //Page Format: $_GET List. $array = array("tbl"=>"$tbl","col_1"=>"$col_1","col_2"=>"$col_2","bool"=>"$bool","input_1"=>"$input_1","input_2"=>"$input_2","lmt"=>"$limit","pg"=>"$i"); } $serps_url = $_SERVER['PHP_SELF'].'?'.http_build_query($array); if($i==$page) … | |
Good day every body. I want to develop a database program that will be used in school to input information about students and all the staff of the school. I want the program to be able to retrieve any required information and also display the total number of students in … | |
Hi! I'm here to ask for an opinion as someone who want to develop an Android app for the first time. Can someone suggest to me whether I should use Java or Kotlin to write my code? My app will constantly need to fetch and submit data to phpmyadmin which … | |
Hi, $page = 10; echo 'page ' .$page; //echoes: 10 echo 'backward ' .$backward = $page--; //echoes: 10 echo "<br>"; echo "<br>"; echo 'forward ' .$forward = $page++; //echoes: 9 echo "<br>"; echo "<br>"; Strange! Why is the decrement failing ? Since $page = 10, then decrementing that ($backward) should … | |
Hello All, We have designed our system and integrate lots of opensource code into a single use system. All the inter connectivity are through APIs. Problem is, it's getting messy each day. We have been looking into Kong and Apigee. Anyone has experienced into situation like such? We have over … | |
I designed each server and client as seperated projects but they both has the classes in same namespaces When I try to deserialize i get this: Unable to find assembly 'RentACar, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.' Here is my class i want to send objects as packets using System; using System.Collections.Generic; using … Programming c# | |
I came across this [article](https://developer.ibm.com/articles/messaging-protocols/) from IBM. It states that a **protocol** describes the **format of the bytes** that are transferred over the wire. > A protocol is sometimes referred to as the wire protocol, and it describes the format of the bytes that are transferred over the wire, and … | |
how do i see the youtube aglorythm?. i dont know how i see it. | |
In my [previous tutorial](https://www.daniweb.com/programming/computer-science/tutorials/538512/finding-inter-annotator-agreement-between-three-annotators-in-python), I explained how I implemented heuristic approaches for finding inter-annotator agreement between three annotators. Heuristic approaches are excellent for understanding the degree of agreement between multiple annotators. However, you should back your analysis with statistical evidence. This is where statistical techniques for inter-annotator agreement come into … | |
## Introduction ## **AMQP** (*Advanced Message Queuing Protocol*) is a popular protocol used for communication between messaging middleware and clients. At the time of this writing, the latest version of the AMQP is 1.0, but we will focus on version **0-9-1** instead. 0-9-1 is the *default* version shipped with the … | |
Parse error: syntax error, unexpected T_IF in H:\xampp\htdocs\login.php on line 74 i don't see any mistake here? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- --> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="keywords" content="" /> <meta name="description" content="" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Yakity Yak</title> <link href='http://fonts.googleapis.com/css?family=Oswald:400,300' rel='stylesheet' type='text/css'> <link … | |
## Introduction ## In the last tutorial, we learned [how to send messages to a RabbitMQ queue](https://www.daniweb.com/programming/web-development/tutorials/538621/how-to-send-messages-in-rabbitmq). In this tutorial, we will learn how to consume those messages in Kotlin. ## Goals ## At the end of the tutorial, you would have learned: 1. How to use the RabbitMQ Java … | |
## Introduction ## In the last tutorial, we learned [how to set up our own RabbitMQ exchanges and queues](https://www.daniweb.com/programming/web-development/tutorials/538620/how-to-create-exchanges-and-queues-in-rabbitmq-server). In this tutorial, we will learn how to send messages to our custom **daniweb-exchange**. ## Goals ## At the end of the tutorial, you would have learned: 1. How to send … | |
## Introduction ## In the previous tutorial, we learned how to [set up our own RabbitMQ server](https://www.daniweb.com/programming/web-development/tutorials/538619/how-to-set-up-a-rabbitmq-server-in-docker). In this tutorial, we will learn how to create our own exchange and queue. ## Goals ## At the end of the tutorial, you would have learned: 1. How to create your own … | |
Create a java application that will convert unit length from Metric to English system. The user will be asked to enter a Metric unit and then it will display the equivalent value to unit of English System. Use metric system like centimer, diameter, meter, etc. while use English system such … | |
Does someone know how to download a file in c++? A simple way. i just need it to download and save it to a specific directory. | |
hi im new to c# and am looking for a way to radomly shuffle an array and split it into 2 groups. i cant find a way to do this so far :( any steps in the right direction would be gratefully recieved many thanks z | |
How to pass the linkbutton text to the modal popup. Now Im only getting a empty popup <script type="text/javascript"> $("#linkbutton1").click(function(){ var text =$("#linkbutton1).val(); $("#modal_body").html(text); }); function openModal() { $("#myModal").modal('show'); } </script> <div> <div id="myModal" class="modal fade" role="dialog"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title"> Modal Title</h4> </div> <div class="modal-body"> … | |
I have an application that opens up Excel, reads some information, then closes Excel. I developed this application using Microsoft Office XP 2007. A few weeks ago, my company upgraded to Microsoft Office 2010. The applications still works fine, but I can not compile in VS 2008 anymore. I get … | |
I have this form where users are adding their sessions: ![week.png](https://static.daniweb.com/attachments/4/ec419c458d6ed1f8c7b2bde71ac330e6.png) What I want to do is to show the week number in the input "week" id. My HTML tag for the service date that is on the image is: <div class="row mt-2"> <div class="col-lg-3 col-sm-6"> <div class="form-floating"> <input id="serviceDate" … | |
HI GUYS I'M DEEPLY DESPERATE TO KNOW HOW TO CONVERT THE CODE FROM PHYTON TO JAVA, MY TASK IS DUE TOMORROW PLEASE HELP MEEEEE T_T | |
My code is this. Dim strSQL As String, strSQL2 As String Dim db As Connection, rst As ADODB.Recordset Set db = New Connection db.CursorLocation = adUseClient db.Open "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=C:\River Syde RMS\RiverSyde.mdb;" strSQL = "SHAPE {SELECT * FROM Sales where Date1=#" & DTPicker3.Value & "#" Set rst = New ADODB.Recordset If … | |
I have a question about encryption. So I have a code sample that has a key size being chosen, something like 32 bits or something, and I am basically either filling the key size buffer with the password and then zeroes, or null bytes, or a word repeated over and … | |
I am a novice in assembler programing, I will will appreciate if someone could review these NASM assembler code for me. Is about encoder decoder. The encoder performs the following: 1. pads the shellcode with NOP opcodes so it is 4 bytes aligned 2. a random byte is generated for … | |
Hi, On this link: https://www.php.net/manual/en/function.mail.php It states: // To send HTML mail, the Content-type header must be set $headers[] = 'MIME-Version: 1.0'; $headers[] = 'Content-type: text/html; charset=iso-8859-1'; Is the charset modern or out of date or old version ? Should it not be 'utf8mb4' ? |
The End.