Posts

git svn - git-svn pushing existing repository mapping usernames the other way -

My team and I am currently working on a university project. We were given the project but it was not officially started, so we started working in GIT to start the head. The project coordinator has forced us to use SVN, so I am trying to use git-svn to interface two treasures. I can move my earnings in the svn repository in .git / info / grafts so this is not an issue. My problem is that in our course we are given the marks of participation which are based on our history. Although obviously all our commands have my SVN username because I had transferred them (which is not sure my teammates will be very happy) I have seen in the file of git authors, but where As far as I can tell, it is used for reverse lookup. Now I understand that with SSH + SVN I clearly for the summary: P> I need "git svn dcommit" to map git writers to my gsyn user names and if possible (less important) date information is correct. There is a warning on that that some writers on git ha...

serial port - Hyperterminal quick question -

I need some help using this pre-historic application: Hyper-Terminal I get some commands from a COM port I need to send in: I'm doing this: New Connection> Enter a name and an icon> Choose COM3 port and type 115200kbaud> OK> type some text and press enter. I have a loop-back circuit, so what I hope to receive is what I mark. However, when I enter the press and I do not see anything. Any suggestions? "I debug my skills" using the C # app with Hyperterical Im I even sent a while back and received Dada from the COM portals I have no problem with this application That's why I think I am doing something wrong in hypertensional. Thank you! I think the "hyper-terminal is messing up" to click on the icon Launching it in the first place involves launching. But it should be able to loopback this type. Make sure that you do not have any type of flow control enabled, and make sure that before you change any settings click on disconnect but...

c# - How to receive multiple tasks at the same time in a single com port in c sharp -

I'm a novice fast and IM stuck with this task I need to, I am creating many threads and ask to communicate with this thread (using COM1) to a serial port, COM2 will send all threads using a single COM port (received using COM2). Say "Send 1 Thread 1" (using Thread 1) and "NarcorWald 2" (Thread 2) by using Com 1 and Hyper-Terminal in Compi2. So I need to look at both the hellfire at Harper-terminal at the same time. Please help me You would like to start. You can instantiate SerialPort class 2 instances for each comm port you want to send / receive. I have used 2 variations to obtain a serial port class: 1 You can "read" on the port manually on a certain interval (like you can read each thread as needed). 2. The SerialPort class exposes a DataReceived event that can be subscribed (an error is also available). Option 1 may be the best fit. Edit After reading your comment, option 2 can be a better fit so that you can get a "threa...

When and Why to use abstract classes/methods? -

I have some basic questions about abstract classes / methods. I know the basic use of basic classes is to create templates for future classes. But do they have more uses? When and how should you like them on the interface? Besides, when are abstraction methods useful? I know that the basic use of basic classes is to create templates for future classes. But is there any more use of these? Not only can you define a template for children, but abstract classes have offered an added benefit to defining your functionality, which your child will use later on You can not provide an implementation for an interface. When should you like the interface and when not? Abstract classes are a good fit if you want to provide implementation details to your children, but do not want to allow an example of your class directly to the institute (which allows you to partially Allows to define a class) If you want to define a contract to follow only the objects, then use an interface. ...

database - What kind of application would CouchDB be most useful/performant for? -

I am messing about the UK Postcode / Coordination Ordinance Survey dataset. Since a free hosted CouchDBi instance was offered, I thought I would put my geographic data in one of them, in the process, there would be a little bit to learn about Cochchadi. The idea was that since Cochindi is considered to be good, handling large datasets (postcode data is approximately 1.7 million records) and works basically with REST / JSON, it can be used for Google Maps applications. Client-side for use with jQuery will tie well with jQuery My initial purpose is to withdraw only a single XX object with a postcode as a parax, with a latitude / lawn properties, to withdraw a single JSON object, I have successfully completed it, but coming from the relational DB background, I thought that it was very complex; As I have read more about CHDB and playing with it a bit I think that this will not really be the right tool for this job, I am actually using it for a real world project. Am I right to ...

language design - What is the point of having $this and self:: in PHP? -

Why do you need to explicitly write $ this ? I used to understand that you had to use $ this : function fu ($ bar) {$ this- & gt; Bar = $ bar; } But you should explicitly write it in the verbose code which looks like this: $ this-> Var3 = globalFun ($ this-> var, $ this-> var2 [$ this-> activation], $ this-> method ()); Contrary to : $ var3 = globaFun ($ var, $ var2 [$ anotherVar], method ()); So what does $ this mean? Additional Bonus Question: Why do we have to do this to isolate static references and examples? Why do we need: static function getValue () {returns self :: value; } Can not know on PHP / runtime if the query in the variable / method is static? Now if I want to change one method to static by non-static, then I have to replace all those self :: with $ this-> / Code> (and vice versa). It would not be better if we have $ this which behaves like this in Java? OK, we remove the need to type $ this ever...

random - Algorithm for picking thumbed-up items -

I have software like pandora where a user can thumb a song or a thumb over a song. The software, called Silverlight + C #, is a language and platform-neutral question. My software must choose a song based on the user's preferences. I need a good algorithm for this I want my software to choose one song to run the following requirements: Should be preferred, and regular Is played in the form The undefined song (Neither up or down thumb) should still be played; The songs below must hardly be played. Whatever the algorithm, the song should not be repeated again. Looking at these design decisions, is there some good algorithm here? I have some code that catches all the songs, songs liked, and dislikes song: var allsongs = ... var likes song = all song. Where (S => S.LikedByUser (...)); Var dislike songs = all songs Where (S => s.DislikedByUser (...)); Any simple idea to choose a good song for the user? You can weigh the songs; It is said ...