I have done master master replication . I want to do multi master master replication. I research and found mostly master master replication in circular topology. But I want to do one supermaster who reads and update other masters. Is it possible? Is anybody did this?

Member Avatar
Member Avatar
+0 forum 9

Hi again guys please forgive my unknowing, i tried but simpply got errors. I downloaded this upload script ( [Click Here](http://www.phpkode.com/scripts/item/es-simple-uploader/) ), it works great except it's for single file uploads, not multi-file uploads The website I'm working on requires the ability to upload multiple files at the same time, can anyone please help me convert this file to be able to support multi-file uploads. (code cleaned so just the neccessary code is showing, for full code (styles etc) see the link above This is the index.php file, config file sinply sets the directories and passwords and size limit. <? …

Member Avatar
Member Avatar
+0 forum 2

I have assigned to create a multichat application that require to public message to all client, private message to certain client and show the user list, anyone can tell me which part should i do to implement private msg and online user list (where will show the name after client access the server, and remove the name when client close) This is Server public class MyChatServer { private static final int PORT = 3367; private static HashSet<String> names = new HashSet<String>(); /** * The set of all the print writers for all the clients. This set is kept so * …

Member Avatar
Member Avatar
+0 forum 18

First things first, the story about this article. Recently I've created an Wordpress Plugin [WordPress - WP - Keywords To Tooltip | CodeCanyon](http://codecanyon.net/item/wp-keywords-to-tooltip/6513598) After a few days, somebody asked me if it's working with Wordpress Multi Site, initially scared, I didn't expect it to be so easy, I've achieved the transition and make it compatible in under an hour. Why ? Because all the code written was OOP, so it was a piece of cake to modify where needed public function _activationHook() { global $wpdb; $query = file_get_contents($this->scriptBasePath . 'model/install.sql'); $query = str_replace($this->database->_table_prefix , $wpdb->base_prefix . $this->database->_table_prefix, $query); $queries = …

Member Avatar
Member Avatar
+2 forum 3

I want to do in French (By default) & seconadry option is English. I have a *two image flag* on login.php page. It should **ALWAYS** visible in the site. I created two files lang_FR.php and lang_EN.php. *How one set French as default language and translate it according user choice ?* Any help by correction or example would be great. //login.php <div id="imageflag"> <a href="?lang=fr"> <input type="hidden" name="lang" value="lang_fr" /> <img src="images/france.png" alt="FR" width="16" height="16"> </a>&nbsp; <a href="?lang=en"> <input type="hidden" name="lang" value="lang_en" /> <img src="images/english.png" alt="EN" width="16" height="16"> </a> </div> <?php echo WELCOME; ?></p> //lang_EN.php <?php define('WELCOME','Welcome to your business Expenses …

Member Avatar
Member Avatar
+0 forum 12

I need help trying to figure out how to insert into a multi linked list. I know how it works with a linked list with only one piece of data but not 2 pieces with 2 pointers. Essentially what I want to be able to do is creat a multi linked list where each node stores x and y co ordinate values and I also want to be able to find the midpoint of 2 nodes and insert that into the list. Thanks in advance!

Member Avatar
Member Avatar
+0 forum 3

I really don't know where to ask something like this, so sorry for this. I have an issue and I really don't know how to solve it. I have php "file upload script", which users uploading files all the times, now the server is nearly full an I want to link another server with my script, so when users upload files, every time its uploaded to another servers and all information stored in one main database, and this is my second problem. can someone to show me the salvation way to solve this ?

Member Avatar
Member Avatar
+0 forum 4

Hi all Just looking a creating a possible java or jsp based messenger for a web site. I have tested java based lan messengers, p2p messengers and even openfire+spark+smack instant messaging, XMPP (also called Jabber) which I admit I liked a great deal. They say dont try re-invent the wheel ect but if I wanted to go global and my messenger program was popular then I would prefer that it was mine to do with as I pleased. Its a general question and I am basically thinking aloud but would welcome any input in how to create such an application …

Member Avatar
Member Avatar
+0 forum 1

Hello, I'm new to C# development. I've been working on a C# project (management system). Depending on the requirements i may have to build further versions of software. I want to know how to build the database such that even when i install next version of software, it would load the previous database records? I'm not sure about this because i think that if i make an updated version of software and install it on machine, the database would also be created from scratch and it would load the new blank database (removing all the previous records). Regards.

Member Avatar
Member Avatar
+0 forum 3

Hi to all, I'm using the WIA Aut. Library [url]http://www.microsoft.com/downloads/details.aspx?familyid=a332a77a-01b8-4de6-91c2-b7ea32537e29&displaylang=en[/url] , trying to capture photos from 5 digital cameras (Nikon D90) USB-connected to my pc. Now, I partially achieved my goal, what I do is: - loop through the attached devices, connecting to every camera; - fotocamera.ExecuteCommand (WIA.CommandID.wiaCommandTakePicture) ; - other image processing operations... Everything works fine but... the workflow is camera1 -> connect -> grab pic. => camera 2 -> connect -> grab pic. => camera 3..... What I'd like is to make them shoot all at the same moment (...why? well, D90 waits around 1 sec. after a …

Member Avatar
Member Avatar
+0 forum 6

Hello guys! Please help me with a little problem. I have one table(Person) where are some values. My current syntax is: SELECT Status, COUNT(Name) AS Number FROM Person WHERE Status = 'Married'; Result: Status_________Number --------------------- Married__________3 But I want to get the result for each status. That would be something like this: Result: Status_________Number ------------------- Married__________3 Divorced_________2 Single___________4 Widowed_________1 How to conclude my SQL syntax and get this result? Any help is the most welcome.

Member Avatar
Member Avatar
+0 forum 1

Good afternoon everyone. I need to write out a simple validation. It needs to validate only if a user enters certain keywords. Here what I have so far: if(!preg_match("Indiana, Ohio", $state)) { $errors .= "You have entered the wrong state."; } What would be the correct preg_match function to only validate for Indiana and Ohio?

Member Avatar
Member Avatar
+0 forum 3

Any body of you guys knows or have a link of a multi column combo box? A recenty used this combo box [Click Here](http://planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=71617&lngWId=1) but it crashes when 2 the same combo box is created on the form especially MDI form. Thank you!

Member Avatar
Member Avatar
+0 forum 1

Hi, I have a program that deals with stacks and queues in python. Part of the program compares items in 3 stacks that contain objects. The loop will run and compare all items in the top of the stacks and pop the item that has the highest value and appends to a queue. The problem I am haveing right now is the best way to set up my conditional while loop to have the block of code keep running untill all 3 stacks are empty of objects. Currently the loop ends as soon as one of the stacks become empty …

Member Avatar
Member Avatar
+0 forum 3

Hey everybody, I'm working in a project where we need a multi agent platform like Java Agent Development Environment(JADE). I'm sorry if this is already posted, I searched for it and couldn't find it, and I'm kind of in a hurry right now =) I hope you understand. Thanks in advance, you have always helped me.

Member Avatar
+0 forum 0

Hey there! So I have am writing a multi-chat client for my college course. I have completed most of it, however there is a problem which I am unable to identify. When I conect multiple clients to the server only the the last client to connect is able to send messages. All the other ones can receive but cannot send a message. When they do (for some wacky reason) the server prints the message output on the screen. [ICODE]pid_t pid; pid=fork(); if(pid<0){ fprintf(stderr,"Fork Failed\n"); } else if(pid==0){ while(1){ bzero(buffer,256); n = read(newsockfd[temp],buffer,255); if (n < 0){ error("ERROR reading from socket\n"); …

Member Avatar
Member Avatar
+0 forum 3

I am currently developing a small site to keep me amused in the nights I can't sleep. I have decided to create a forum with php and sql using databases to store posts etc. I have been experimenting with different ways of having the forums get to certain point and then cut into another page. Needless to say none have been effective. Any basic methods of achieving this would be perfect. Regards Ryan Cosans

Member Avatar
Member Avatar
+0 forum 2

Good day! I am a newbie in jquery. I want to create a multicolumn select box that may look like this. [IMG]http://www.codeproject.com/KB/combobox/multicolumncombo/comboOpen.jpg[/IMG] I am planning to do it in a table that work just like a standard select box but the problem is I dont know how. could anybody show me some codes thanks in advance!!

Member Avatar
Member Avatar
+0 forum 2

hi all, i have two three dimensional array like this [CODE] $array1 =Array ( [0]= array ( [0]=array ( [name]= praveen [id] = 20 ) [1]=array ( [name]= kumar [id] = 25 ) ) ) $array2 =Array ( [0]= array ( [0]=array ( [name]= pandu [id] = 21 ) [1]=array ( [name]= praveen [id] = 30 ) ) ) [/CODE] i want to merge these arrays such that i will get an array like this [CODE] $merged= array ( [0]= array ( [praveen]=array ( [id1]= 20 [id2] = 30 ) [pandu]=array ( [id] = 21 ) [kumar]=array ( [id] = …

Member Avatar
Member Avatar
+0 forum 3

I have a file, "multi.ico" which has four images of different sizes (16x16, 24x24, 32x32, 48x48). Each sized image is a different color, to make it easy to tell which size we are dealing with. This file has been inserted into a resource file "Multi.resources" using Lutz Roeder's .NET Resourcer. I need to be able to extract the ico from the .resource file in such a way as to keep all four sizes of images. Ideally, I would like to have a wrapper class around the .ico object which allows selection of the image of the proper size. I have …

Member Avatar
Member Avatar
+0 forum 2

Hi, I want to write thread function myself and don't want to use boost or AfxBeginThread(). Oh, and it works in /MD[d], /MD, MFX. Thanks a lot DestinyChanger

Member Avatar
Member Avatar
+0 forum 5

Hi Guys, I am developing a VB application along with MS Access... When I initially load my form I need to put my application to sleep for 3 seconds or else data wont load properly. So for this 3 seconds I would like to show a progress bar displaying a message "Please wait..." I tried using background worker but did not find any success... I have gone through many tutorials but for some reason could not accomplish the task... Could you please help me ... Thank you Ashwin

Member Avatar
Member Avatar
+0 forum 4

Hi, I want to be able to sort a multidimensional array using its second dimension to sort the first. It is a list of sporting teams with points stored like this: [CODE]$teams[$teamnumber]['points'] $teams[$teamnumber]['players'] $teams[$teamnumber]['name'][/CODE] These teams are to be shown in a league table which is why they needed to be sorted in descending order of points, however the data must not be mismatched or teams may end up with the wrong name, players etc.

Member Avatar
Member Avatar
+0 forum 3

I am trying to use a search script i found online and i am having a problem with the query. I am trying do a query from multi tables. I have 12 tables, all have the same fields: name, phone etc. each table is a different category of items: appliances, art etc.. how do i go through each table and look for the field name? $value = "oven"; i tried "select * from table1, table2 where name = {$oven}" It did not work. Please help with some suggestions. Thank you!

Member Avatar
Member Avatar
+0 forum 1

Hi, I have started a new app in my current Django project and I want to make the new app use its own database. I have found this solution on the web: [URL="http://www.eflorenzano.com/blog/post/easy-multi-database-support-django/"]Django Multi-Database support[/URL] but it seems more like a hack than a supported solution. Do you think this is the best possible solution? Or should I rather connect to the database manually via the MySQLdb module? Any help will be greatly appreciated.

Member Avatar
+0 forum 0

Hi, I have some questions about multi pipe. First of all, What I should do is making 6 child processes and each of child process reduces a global value (by 1) which is saved in malloc concurrently until the value reaches 0. All I could find from google was about read and write a message in buffer between a parent and a child processes. How do I have to implement it? Where do I have to write such code as "global_value--;"? And some examples used "command" like linked list (next=command->next) what does linked commands do in multi pipe environment? please …

Member Avatar
Member Avatar
+0 forum 1

Hi I m thinking about combined key system. say i have mysql table having field 1. user_name 2. father_name 3. mother_name 4. Address Now I can mark [B]user_nam[/B]e field as key for u[B]nique value[/B]. But I dont want that. I want that same user name is possible but same [B]user name, father name and mother name[/B] combine is not possible. combined they must unique. mor easily 1. [B]name01, father01,mother01[/B] 2. [B]name01, father01,mother02[/B] 3. [B]name01, father02,mother01[/B] above data entry may be allow But I want that 1. [B]name01, father01,mother01[/B] 2. [B]name01, father01,mother01[/B] above data entry will not be allowed

Member Avatar
Member Avatar
+0 forum 3

Hello, I need to create a service application which can be started X times as a service. I used the following code: procedure TMyService.ServiceBeforeInstall(Sender: TService); begin if ParamStr(1)='-install' then IHotel := ParamStr(2) else IHotel :=ParamStr(1); IHotel := TRIM(AnsiReplaceText(Copy(IHotel,2), ' ', '')); if Length(IHotel) = 0 then begin Showmessage('Hotel name not specified.' + #13 + 'Service can not beinstalled'); Abort; end; DisplayName := 'Opera IFC8 AliveCheck for ' + IHotel; Name := 'MyServiceAliveCheckfor' + IHotel; end; Problem is that service freeze on startup when I change service name with last line of the above procedure. If I comment last line service …

Member Avatar
+0 forum 0

Ok, so I wrote a very simple programme, just to practice multithreading. I know it can be coded better, but I'm still learning about this, so please be lenient. This is my code so far: [CODE]package threads; // Create a thread import java.io.File; class threads implements Runnable { // This should scan the directory every 2 minutes Thread masterThread; threads() { // Create a second thread - this thread will handle the files found in the folder masterThread = new Thread(this, "first child"); masterThread.start(); } // Entry point for second thread public void run() { // TODO:: Make more threads …

Member Avatar
Member Avatar
+0 forum 2

Write a program to print * / * / * / * / * / * / * / using two child thread. One thread responsible for printing * and another for /

Member Avatar
Member Avatar
+0 forum 4

The End.