Posts

Showing posts from July, 2010

reverse engineering - How do I change a process's socket connection -

A process is connecting to a certain IP or domain, but I do not know what it is. Process can not connect to server How can I find and replace it? TCPView and netstat are the best work for already installed connections, which is the 'original poster's No status A better tool for this task is a packet sniffer, which can see the connection effort. I recommend, which is available for all major platforms. Description: Install, then start VirusHark Press Ctrl-K to start capturing Network Select the interface that you expect to use the program "tcp [tcpflags] & amp; (tcp-syn | tcp-ack) == tcp-syn" No quote) Start the capture, try connecting your program, and then stop the capture. If you do fast in the final step, without any other network activity on one machine, you will only have one captured packet Otherwise, you will need to open a list to find that list This packet will show you the TCP port which you want, which is trying to use the prog...

vi - How can I open another vertical window (:vsp) on the left in vim? -

The : vsp of the Vim opens a window to the right What to open it on the left side of the screen Any way You have to : wrightby vs . Or : bel vsp . rightb and bel [owright] stands right below you can keep any division command after this and it will be divided in that direction if we Is in split command. : lefta vsp and : abo vsp , if you want to make sure that you are split in the other direction and work the same way from above Are there.

java - Functional programming applied -

I have been interested in programming throughout my life, and for the last 6 years I have worked with Java almost exclusively I just finished with my university studies and the company has worked as a Java developer. The programming of all these years has been a hobby and a favorite last time, but this has little negative impact on its meaning that I became so accustomed to Java that I never came forward as a programming language. . I tried to increase my knowledge of things by learning regular expressions, SQL and studying XML, but I could not include it adequately with a new language so that it could be used properly in the party. Because they all look alike on their origin, I have the state of learning to harass every new language. I felt like I should have gone to complete the whole process, I was introduced because I felt like I did not have to do anything else in other mandatory languages ​​(I know that this statement can start fighting, it is mine Do not intend). So I de...

sql - Is it possible to effect a join against a table of consecutive dates without having to maintain an actual table of consecutive dates? -

I have a table with dated record I want a query that will show the number of records for each date. Not hard, just by a group, is not it? Sure. But I also want to show such days where no record was there. In this case, I will need to constantly go against the one-column table of the date, because a group BY is not showing a date which does not exist. Is there a better way to do this? Or do I have to prepare a date table, so that I can go against it? For example, if you want all dates from January 1, 2009 to date, Can work: DECLARE @ start date DATETIME, select @AAS datetime, @start = '2009-01-01', @and = detat () DECLARE @Dates TABLE (dt DATETIME) WHILE (@start & lt; @end) BEGIN INSERT @ Select Date @ Start SELECT @start = DATEADD (Day, 1, Start @) Select from End * Date to @ Every day of the day will have a record @ from @ end.

.net - C#: Any difference whatsoever between "(subtype)data" and "data as subtype" typecasting? -

Assuming that I have an example of something that I know is a sub-class of a specific subtype A supertype in C #, I used to see typecasting like this kind of way (assuming "reference" is supertype): if (reference is subtype) { Subtype t = (sub-type) reference; } But recently I have come in the examples of examples which have been done with the same thing in this way: If (context Subtype) {subtype T = references in subtype; } Are these two completely equal? Is there a difference? These are used in the same way, but are not the best choice. You should only be typing once: subtype t = reference as subtype; If (t! = Null) {...} The tap is more efficient than checking the type of check.

actionscript 3 - AS3: ByteArray and BitmapData -

I'm doing a simple test, I want to write bitmap data in a byte array. I'm trying to write it with object () and readObject (). There is a problem understanding bitmap data for reading the object. var bytes: bytere = new bytere (); Var _cache: bitmapdata = new bitmap data (640, 480, true, 0x000000); Var _blank: bitmapdata = new bitmap data (640, 480, true, 0x000000); ByteArray.writeObject (_blank); Byteurer.edification = 0; _cache = byteArray.readObject () as Bitmapdata; Trace (_cache); // mark zero Can anyone clear this for me? I can not understand what is going wrong with the object I read (s) I know that I can get this getPixels () and setPixels (), but I can see the object as an object I want to be treated here You use the BitmapData :: getPixels and BitmapData :: SetPixels should ... Write a class example to a byte such as never expected to work completely ... Try with the Sprites ... :) ... This is mostly due to the fact That is, by default, in any way...

c# - (.net) Configuration Settings basic question -

I am obliging the text value of the text box in a variable in my configuration file I only input from this text box I think if it is larger than 1. It's okay to write what I'm doing in the box whatever I want in the box, and let me save the settings after I call it is a verification function problem that my binding variable update in the settings class There is a possibility that the text box is being edited, and it is a behavior that I want to leave. How can I do this? You can use on valeting events to verify your verification code , And set the e.Cancel to true if the verification is not valid (and inform any other way, possibly a MessageBox ).

Use jQuery tabs as a site navigator? -

I want to use the jQuery tab as a navigator, that means nothing in the tab should actually be in the Instead, when the user will click on all the other tabs then the current, it should navigate to another page. Also, when reaching that page, I want the second tab to be visible. Example: Page1.aspx: Page1 | Page 2 | Page3 | Page 4 Page 1 Materials | Empty | Empty | The tab titles for pages 2, 3, and 4 should only be linked to the appropriate page. Page2.aspx: Page 1 | Page 2 | Page3 | Page 4 free | Page 2 Content | Empty | Blank Tab titles for pages 1, 3 and 4 should link to just the appropriate page. And so on. I want to have a tab pager in a master page, then fill the contents in each page in its related tab and leave the rest blank. Are you certain that you do not want anything like this? & Lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "somepage1.aspx" class = "selected" & gt; Link 1 & lt; / A & gt; ...

dns - Tools for finding domain names -

I have made a pet project, and now I am looking for a better domain name. Which devices do you use when searching for a good domain name? There are some suggestions for filtering the wheels: A few letters are provided that prefix / suffix / infix searches for available domains Suggests another word from a thesaurus Shows you less available domains And of course, another requirement is that the device is not shady And quickly registers the domain name, while it searches for you. I would recommend that this tool help you to come up with some creative.

hyperlink - jquery link tag enable disable -

I want to disable the link during loading for the code below & Lt; Span id = "addlink" & gt; " $ ("# addlink") et ("disabled", "disabled"); and $ ("a.add"). Hide (); function disableLink (e) {// event e.preventDefault (); return false;} When you want to disable it, $ ('# addlink'). Bind ('click', disableLink); When you unbundle 'Click on "Disable link);

Should I get Visual Studio 2008 or skip it for 2010 beta? -

I have been running Visual Studio 2005 on Windows 2003 server VM for the past few years and I'm just a visual studio Professional MSDN Professional Subscription With ($ 300 off!) I plan to set up a Windows 2008 server VM on my primary development and I was thinking that I should get Visual Studio 2008, or because I have never used it, 2010 beta Skip forward? edit In VS 2005 I mainly use C # and the original web form ASP.Net. I am hoping to upgrade some of those projects, but if others who collaborate with other people do not have to upgrade, then they have to be left behind. I have to select beta from 2008 to 2010. In the past a service pack has been released, and many other hotfixes, so lots of kick-ups have been prepared. The latter is in beta quality (which means that many small issues are wrong, and maybe some are big) and there is not too much performance tuning. Also, I think that for the release of Visual Studio's Beta Upgrading to can be painful (this i...

c# - New string added to .resx file in VS2008 cause compilation error that it doesn't exist -

I recently upgraded my projects from VS 2005 to VS 2008. I created a .resx file And it works fine with VS 2005. Now, with VS2008, I added a new string in the string.rex file and used it in my code (C #). But I have received a compilation error that my new string is not present in the string. I asked my colleague to check on his machine and he got the same problem. I found out that VS2008 adds new string to the .resx file, but not so. Designer.cs file. Is this a known problem? Is there any way to fix it? (In addition to manually adding code). Thanks in advance. Turns out that the problem occurred because my .resx and .esigner.cs files were read It was because I was checking them out of StarTeam. I was asked in VS 2005 whether I should write both files and when I answered yes The Designer.cs file was also modified, so I could use a new member from my code. But in VS 2008, it does not ask if I want to make it. Designer files are writable, so it remains only for reading ...

xslt - Generic Xml Document manipulation -

We have xml documents that have many flagged nodes in which isProduct, isActive, isMandatory where node text is true or false Could. It is necessary to manipulate documents and keep their structure, but change the above mentioned nodes in the oral representation as below: & lt; IsProduct & gt; True & lt; / IsProduct & gt; === & gt; & Lt; Type & gt; The product's & lt; Type & gt; & Lt; IsProduct & gt; Wrong & lt; / IsProduct & gt; === & gt; & Lt; Type / & gt; And for other flag nodes too. We are seeking an extensible and scalable solution that can be configured with minimal friction after deployment. by extensible; We mean there will be more cases; Like 2 flags that represent a situation; That is, employees and customers are used in the document to represent 4 different designated things; Therefore, 4 possible combinations should only be translated into a string such as "employee", "custom...

excel - Jasper Reports JExcelApi Exports Numbers As Text -

I have a Jasper report which is being successfully exported to Excel, although all numeric columns (currently type java .math.BigDecimal) appear in the form of "normal" in Excel, making it possible to perform numerical operations on columns (like adding additional 0) - even if you first convert the format of cell into a number Are i different for the column Try using Awa types, but to no avail. Does anyone know that any numerical cells should be numerically sorted in Excel to specify in Jasper? It has been found that you need to set the following parameters on the JExcelApi Exporter JExcelApiExporterParameter.IS_DETECT_CELL_TYPE True

Writing a "raw" HTTP client in C# -

I am trying to write a "raw" HTTP client in C #. Why can you ask? My goal is to implement an HTTP client in J2ME (which can only POET GET and limited), but first I have to understand the HTTP protocol better (hence the C # effort). My first attempt is failing: var requestBytes = encoding.UTF8.GetBytes (@ "GET / HTTP / 1.1 User-agent: CSHRAP host: www. Google.com "); Var Socket = New Socket (Address Family.Inter Network, SocketType.Stream, ProtocolType.Tcp); Socket Connect ("www.google.com", 80); Socket.Send (requestBytes); Var feedbackbits = new byte [socket. Resave Buffer Size]; Socket.Receive (responseBytes); Console.Out.Write (Encoding.UTF8.GetString (responseBytes)); The socket opens, but then the received call blocks. After a few seconds the remote host closes the connection. Any thoughts? This is what happens when I try to connect using Raw mode in PiTi. If you are testing this, then it may be best that IIS or Apache Locally i...

asp.net mvc - Linq to SQL Entity Splitting -

I have recently started playing with the ASP .NET MVC NerdDinner sample, and as part of it you It can look good with Linq from SQL class, so I tried to remove (probably a boy before time!) And tried to create my own MVC application, but this time Linq to SQL Modeling your own simple database with. This is going to be Traveler Traveler Table Carpooler There is a mapping table between Em> car and person (it has two columns: CarId, PersonId). In SQL, in SQL, I get a square for each table. But, what I really want is a class for the car , whose property is carpasizer , with each child person , the actual FK Rather (to select the result is OK, but to update the car with the new person objects, I have to first build them - I can only add an entity set of carpasors without installation of only the person's person objects) . I'm looking around and I have seen that the ADO The Net Entitie Framework will allow me to use unit splitting to get it, but I'm ...

winforms - Is it possible to avoid Focus on SplitContainer? -

The firefighter does not, while WinForm SplitContainer gets focused when it is pulled or clicked. On the contrary, it is that SplitContainer will ignite / leave the fire on other controls, and I need to avoid this. I have already tried to make tabs and reasons valid, but without success Is there a way to prevent Split Container from focusing? (Not a big deal, I can still use the old splitter, but I lose some good VS properties ...) Remove SplitContainer control and manually change it with panel and splitter control. A little more effort, but very clear results.

c - what is the unsigned datatype? -

I've seen this unsigned "typeless" type for a while, but never Notice that for an explanation I think there is a compatible signed code here is an example: static unsigned long next = 1; / * RAND_MAX is considered 32767 * / int minor (zero) {next = next * 1103515245 + 12345; Return (( unsigned) ) (next / 65536)% 32768); } Zero mysrand ( unsigned seeds ) {next = seeds; } Whatever I have collected: - On my system, sizeof (unsigned) = 4 (signal on a 32-bit unsigned int ) This can be used in the unsigned version as a short story for other types of foundations: long end int = -42 signed; Printf ("% u \ n", (unsigned) i); Is this ANSI C, or just a compiler extension? unsigned for the actual unsigned int There is a short story, and is defined in standard C.

Installing a VBA macro in Excel 2007 -

I have found a VBA macro in the Excel 2003 spreadsheet and I want to run it on the machine Excel. I created a 'trusted place' on the local machine, and I know how to copy the module into the existing workbook and provide a key combination to implement it, but I do not know how the macro Automatically appears when an Excel starts with the simplest solution to copy your XL with macros (for both xl2003 and xl2007) The path from its client machine can be made to = Application.StartupPath (a simple VBSScript installer that gives this information excellence and retrieves). The XLS file located in the startup path is loaded on Excel startup after this will be available in any workbook.

MySQL Lowercase Table Names in Windows Uppercase names on Unix -

I have a problem from which my production server runs Unix and my dev server runs MS Windows The problem is that Windows is case sensitive Is not and is unix. Therefore, on my production table, my table set uses uppercase table names like "client" and the table name on Windows is in lowercase "customer". It's all right until you need to get data from a box, second and put your SQL export into "customer" in "lowercase", and "clients of uncountable table" succeed . Because the production server is currently on a shared hosting plan, I can not change the setting and can install a key that ignores the case. So my question is, is there a way to change the table back in the right case or there is some setting I can include in the exported SQL file so that I can upload the data without this problem. Thanks UPDATE Here's what I've been searching for someone else with this problem. If you have already set up your tabl...

How to import excel files in asp.net to any database? -

I have a set of Excel templates that will be entered by the user, to me the data entered in this template in the database Have to import. The problem with the templates is that they are not in table format. With your question, I assemble you 'To access spreadsheet data, OLEDB has refused to use, which only works with tabular data. Therefore, you have any need to reach individual cells, etc. You can open excel files (via interop) because I'm sure someone will give suggestions but, if you can avoid doing so, then You need - it has all kinds of problems (this is uneven, and you will not get any help from Microsoft because they do not do it originally). If you can save excel files as XML, then you can avoid doing so. If you are using Excel 2003, you can save as "XML spreadsheet", which is functionally equivalent to a normal XLS file, except that It can not contain charts or macro codes In addition, it looks like a user - and processing it in the code is v...

.net - Castle Windsor: Registering Generic Classes with a Non-Generic Interface -

itemprop = "text"> I have a class multiple dependencies that is: public class ThirdPartyDataSearchCoordinator & lt; TItem, TSearchCriteria, TrashTouch & gt; : IThirdPartyDataSearchCoordinator where TItem: class, ITHDRTITIM {public thirdparty data searchordinator (IDataMiner & lt; TSearchCriteria, TResult & gt; [] miners, ITHDTRTTMRipotory & Lt; TITIM & gt; stores, IPAPNIGN Mapper, IUpdater & lt; TItem, TResult & gt; Updater) {this.miners = miners; This.repository = repository; This.mapper = Mapper; this. Updater = updater; }} and relevant castle registrations look like this: container Kernel Resoler. AdsusbarSolar (New ArraySolver (Container Kernel)); Container.Register (Component.For & lt; IMappingEngine> () example (Mapper.Engine).); Container.AddComponent & LT; IThirdPartyItemRepository & LT; ThirdPartyPackage & gt ;, ThirdPartyPackageRepository & gt; (Typeof (IThirdPartyItemRepository & lt; ThirdPa...

asp.net mvc - Make a Linq-to-SQL Generated User Class Inherit from MembershipUser -

I am currently creating a custom subscription provider for my ASP.NET MVC website. I have an existing database with a user table and I am using lin-to-SQL so that this class can be automatically generated for me. What I would like to do, this consumer class will be obtained from the passing of the class, for the class, I can easily use it in methods like GetUser in my custom subscription provider. I have all the necessary columns already in the table. Is there any way to do this? Or am I going to go completely wrong about this? Thank you! Generally code generation tools create such a so-called partial classes, such as: public partial class user {// class definition here} This means that you can increase the definition of that category somewhere within the same name: Public Partial Category Users: Membership Users {// If the Subscriber is not a Parameterless Producer with a User, then you are here Need // to Odne} And then you have subscribed user to user groups. ...

testing - Does anyone have any rules of thumb for esimtation of UAT effort - like what's a rule of thumb for number of scripts as compared to the number of business requirements? -

I'm trying to guess the numbers or testers needed to test a project, the number of those scripts To determine which should be necessary and wondering if there was a rule of thumb for the number of scripts compared to the number of numbers. I'm assessing 2-3 1 for a sunny day type test 1 for a negative test Atleast 1 for at least 1 combination Examination Required With Others But this is just my first guess if there are some best practices, then I have all the ears. Again, this unit is not for testing or system testing, this user is for an acceptable test. The best estimate you will get from testing by the testers. Out of that type of estimation from the tester, you may be able to come up with a percentage of the test compared to the time of development. Say you had 100 hours of development work. You spend 20 hours on design, 80 hours on build. You may be able to reach the conclusion that the test will take 15 hours or 15% of the time for the test. You can t...

How do you clone a path resource in Silverlight? -

I have the resources defined in an XAML file, as follows: Lt; Path x: key = "Mypath" data = "M14.773241,18.080208 c12.373256,18.080208 10.239 936,19.30687 10.239 936,27.573483 L10.239 936,36.106766 C10.239 936,45.440037 12.586588,46.506699 14.986573,46.506699 C 18.613216,46.506699 19.359879,42.400059 19.359879, 35.3601 L19.359879,27.733482 C19.359879,20.05353 17.386541,18.080208 14.773241,18.080208 Jade M 14.879907,11.786915 C17.973221,11.786915 22.293194,13.013573 24.906511,17.920212 C26.773167,21.386856 27.519829,27.093487 27.519829,32.213455 C27.519829, 34.506775 27.306496,41.706726 24.906511,46.453365 C23.626518,49.013351 20.906536,52.799992 15.199905,52.799992 C2.1333201,52.799992 2.1333201,37.600086 2.1333201,32.160122 C2.1333201,28.05348 2.1333201,22.666847 4.4266391,18.453541 C5.8666301,15.840225 8.639946,11.786915 14. 8,7 9, 9 07, 11.786 915 Z. "/> I want to add more than one "example" of this path (and many others) to a stackpack. Of...

.net - Infragistics Clickable PieChart -

I try to create clickable piechar in ASP.NET 2.0 with the use of version 7.1 of InfraGivics software. I am doing The chart looks as though it should, but the function marked in the OnChartDataClicked event is not called. From .aspx: & lt; Igchart: UltraChart ID = "UltraChart1" runat = "server" on ChatDatched = "Datagrain Tweet" & gt; & nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Lt; Piechart & gt; & Lt; / PieChart & gt; & lt; / Igchart: UltraChart & gt; and in .aspx.cs: Safe Warning Detectioned (Object Sender, Infragistics.UltraChart.Shared.Events.ChartDataEventArgs e) { & Nbsp; & Nbsp; & Nbsp; & Nbsp; Session ["block"] = "some rough random text"; } Fidler files one of the infrastructures JS files Recovering the 404 error on the recovery. The solution to the problem by copying the infrastructures directory structure directly into the ...

sql server - Grouping/aggregating SQL results into 1-hour buckets -

Similarly, I need to record a large number of "buckets" in 1 hour. For example, suppose I have a specific order table with the detrite attached to each order, and I want to see the total number of orders per hour. Therefore, I am using SQL in this way: Datapter (HH, order_date) of order group from date (hh, order_date), sum (order_id) The problem is that if there is no order in the given 1 hour "bucket", then there is no row in the result line. I want a line for every 24 hours as a result, but if no order has been made during any particular time, then simply record the number of orders as o. Is there any way in this one question? Also see. You get a pre-populated table (or the result of joining a table by a function), in which Your results will be all 1-hour slots. Then you make an additional participant with it, and you will be able to attach a number of additional couples to DATEPART (hh, Order_date) = SLOT_HOUR by SLOT_HOUR group

c# - Why does IEnumerable<T> derive from IEnumerable? -

डुप्लिकेट: ऐसा लगता है कि IEnumerable , आइकलिंग , IList और उनके सामान्य समकक्ष अलग शाखाओं में हैं। यह ऐसा करता है कि सभी पुराने विधियों और कोड जो जानता है कि कैसे एक IEnumerable को नियंत्रित करने के लिए आपके संग्रह के साथ काम करने की गारंटी है। लागू करना IEnumerable & lt; T & gt; परस्पर रूप से आप IEnumerable को कार्यान्वित कर सकते हैं। शाखाओं से, क्या आप नामस्थान का मतलब है?

c# - How to refactor a class with overloaded constructors -

Text after "div class =" itemprop = "text"> I have a class with overloaded creator (C #) that can be started in some ways, and some parameters are optional The result - So there is a misleading bunch of manufacturers. New object (stra, STRB, ObjA) New object (stra, StGB, ObjB, STRC) New object (stra, STRB, New object (stra, STRB, stre, ObjB) new object (stra, STRB, stre, ObjA, and obsolete new object (stra, STRB, ObjB, STRC, StrD) STRC) New object (stra, STRB, stre, ObjB, STRC, StrD) In case I To make a two-way correction, to hold the optional parameter, create a structure new config (stra, STRB, strd, stre) New object (config, obja) new object (Config, ObjB, STRC) b) Optional parameter set as property A = new object (Obja) A.StrA = some; a. SRB = Something; a. STD = some; A tre = some; Which is the best way? And such code is necessary restructuring - the last code maintainer says that "while IntelliSense used, the complexity of the manuf...

c# - Adding buttons to a Tool Window Title bar -

How do I add another button to the title bar of the tool window next to the closed window button? For example, the Auto Hide and Window Status buttons that you see in a View and Studio Tools window I 'I'm not sure that it can be done more purely with pure C # , But generally I do not set up a window with the border style, and use the standard button to create my own fake title bar, which is a bit of a normal Windows title bar, but when I actually This is the easiest way if you want something like this.

javascript - Extending a DOM element with jQuery -

I want to extend a DOM element without expanding all of them. That is, I want a custom class with my custom methods and properties, but it can also be able to treat it as a div. E.g. MyClass = function () {this.foo = "waaa"; } MyClass.prototype.changeText = newtext {// If this extended $ (document.createElement ("div")) some // This is possible as html (newtext); } MyClass.prototype.alertFoo = function () {alert (this.foo); } Var m = new MyClass (); . $ ("Body") attached (m); M.changetext (); Is this possible? You have a class of Jquery generated DIV element class to your class: Function Myclass () {this.foo = "waaa"; } MyClass.prototype = $ ('& lt; div / & gt;'); MyClass.prototype.changeText = Function (new text) {this.html (new text); } MyClass.prototype.alertFoo = function () {alert (this.foo); } Var m = new MyClass (); . $ ("Body") attached (m); M.changeText ('Appletree');

php - facebook application update -

I have developed a simple application on PHP on PHP and I want to know how people can add this app, And the application is generated in an update (such as VPIN is included in this application). Thanks Users no longer add applications, they can bookmark the closest , Which does not receive notice of your application. The closest thing to check is being investigated as a developer. When a user rejects / rejects permissions (which is usually the precondition to seeing your application) you do not even get a notice. In fact, for user action and in direct response (unless they have provided you with a continuous session). The old model of actually adding applications is all the user experience point of view, so Facebook basically pulled the plug on it.

compiler construction - What is Symbol Resolution? -

This is one of the things that talks about every conversation but nobody defines ... It does not seem to have any information on this topic, what is the symbol resolution? I have found that the best thing is: Is your program compiled, what is there to do with it? OK, now when you refer to the NM of Unix, I can specify the symbol resolution Can i Executable files can be done in the context of those entities which are not defined in themselves. For example, variables or processes on shared libraries Those institutions are identified by external symbols. Executables can also have internal symbols that can be referred to by external files - as is also in case of libraries. The symbolic resolution, in this context, once the program is loaded into memory, will tell the appropriate address to all external institutions, which refers to it, which means that every situation in the weighted program is to change, where A reference was made to the outer symbol. These addresses will...

cocoa touch - How do I create an HTTP connection and log in on the iPhone? -

I am trying to log in to my website (www.trailbehind.com) and then upload a file I am sending a post request for. I tried to apply some code to request a home page without authentication, which I found here: However, even that code is not working Does, and I'm not sure what to do next. Here's the code that I tried to request for home page: CFRringRF URL = CFRR ("http://www.trailbehind.com/"); CFralArfMyral = CFLCriteWithString (kcfalokter default, url, noise); CFStringRef request method = CFSTR ("GET"); CFHTTPMessageRef myRequest = CFHTTPMessageCreateRequest (kcfaloceter default, request method, myURL, kcfttp wers1 1); CFStringRef bodyData = CFR (""); // Generally used for data data CFHTTPMessageSetBody (myRequest, bodyData); CFStringRef headerFieldName = CFRR ("X-My-Favorite Field"); CFStringRef Headerfield Values ​​= CFR ("Dreams"); CFHTTPMessageSetHeaderFieldValue (myRequest, HeaderFieldName, headerFieldValue); CFD...

c# - How do I split an mp3 file into smaller files? -

I want to create a program that takes an MP3 file and it can take several small MP3 files based on 1-2 seconds Does not break any sound (silence) in C # What is the easiest way to do this? In Bass you need it to use, record and edit media streams like MP3 , From which you can sample the quantities at different time points. It has a pure API, so you can use it in C #. Unfortunately, if you are using it for commercial applications, but they provide a free non-commercial license, then its cost is low. is a command line tool in which you can always use the system command to call CX from C # to silence an MP3 silence. Other related links. This code shows a way to create a CD saw in C #. There are APIs from some of the vendors who allow audio CD tracks to be read, but it is also possible to do this by using the API, which allows Adiptech or ICTL control code from ADPI to reach a lower level of CD drive. The latter method is used in this case, because there is no need to...

oop - What exactly is the model in MVC -

I'm a bit confused about the model is quite limited. I think it works with data from the database and so on. Can it be used for something else? Take for example a certification system that sends an activation email to a user when they register. Where is the most appropriate place to place the code for the email? Is a model suitable ... or can it be kept in better view, controller, etc.? The model is how you represent the data of the application. This is the state of the application, the data that will affect the editing of the application (view: visual presentation), and the variables that can be tweaked by the controller. To answer your question specifically The content of the email, the person sending the email, is the model. This code that sends email (and verifies email / registration verifies first place) and email content is set in the controller. The administrator can also generate email content - you probably have an email template in the model, and the con...

visual studio 2005 - Read USB Device Serial number in C# -

Is there any way to use USB device serial numbers and data in USD in Text Studio 2005? Try this: USBSerialNumber usb = new USBSerialNumber (); String serial = usb.getSerialNumberFromDriveLetter ("f: \"); MessageBox.Show (serial); The USBSerialNumber class is internal to: using the system; Using System.Collections.Generic; Using System.Text; Using System.Management; Namespace USBDrive SerialNumber {PUBLIC SQUARE USSS ArielNumber {string_surialnumber; String _driveLetter; Public string getSerialNumberFromDriveLetter (string drive liter) {this._driveLetter = driveLetter.ToUpper (); If (! This._driveLetter.Contains (":")) {this._driveLetter + = ":"; } MatchDriveLetterWithSerial (); Turn it back. } Private Zero MatchDriver Letter with Serial () {string [] diskArray; String drive number; String drive liter; ManagementObjectSearcher searcher1 = New Management Object Search ("Select * from Win32_LogicalDiskToPartition"); The forerunner ...

Configurable persistence in Java EE5+ -

दृढ़ इकाई , कोड या एनोटेशन का उपयोग करने के 2 तरीके हैं। कोड [..] EntityManagerFactory emf; emf = Perseverence.createEntityManagerFactory ("SOMEPU"); [..] या ANNOTATION [..] @ प्रस्तुति कंसटेक्स (नाम = "दृढ़ता / तार्किकनाम", इकाई नाम = "SOMEPU") [.. ] प्रश्न: यदि आप दृढ़ता इकाई (या अलग जेडीबीसी स्रोत को इंगित करते हैं) को बदलना चाहते हैं, तो मैं कुछ सेटिंग्स फ़ाइल से या फिर जो भी कुछ भी पढ़ सकता है, वह आसानी से स्रोत कोड संस्करण को अनुकूलित कर सकता है। लेकिन मैं वैरिएबल्स को एनोटेशन में डाल सकता हूं। क्या समाधान है? हां, मैं हमेशा एक ही पु रख सकता था और बस अनुप्रयोगर में कहीं और के jbdc संसाधन को इंगित करता था, लेकिन मैं किसी को एएस की व्यवस्थापक सेटिंग्स में बदलाव नहीं करना चाहता। चीयर्स स्वेन यदि आप बिल्कुल है अपनी दृढ़ता प्राप्त करने के लिए एनोटेशन का उपयोग करें, तो मुझे लगता है कि आप कुछ वर्ग में EntityManager के निर्माण को लपेट सकते हैं और उसके बाद उस बीन में इंजेक्ट किया गया है जिसके लिए इसकी आवश्यकता है? सार्वजनिक...

wpf - Problems with data binding in ItemContainerStyle in Silverlight 3 -

I use data bindings in ListBox for item code in itemcontainerStyle Unable to in Silverlight 3 This works fine in WPF. It is an example to showcase my problem. I really want to be tied to the IsSelected property, but I think it is easy to follow this example. I have ListBox observable Items & gt; of items objects: public class items {public string name {get; } Public brush color {get; }} Here is the relevant Silverlight XAM: & lt; ListBox x: name = "list box" itemsource = "{bound.}" & Gt; & Lt; ListBox.ItemContainerStyle & gt; & Lt; Style TargetType = "ListBoxItem" & gt; & Lt; Setter property = "background" value = "{binding color}" /> & Lt; / Style & gt; & Lt; /ListBox.ItemContainerStyle> & Lt; ListBox.ItemTemplate & gt; & Lt; DataTemplate & gt; & Lt; TextBlock Text = "{binding name}" /> & Lt; / DataTemplate & gt; &...

any code conversion tool for converting borland c++ to visual studio C++ -

I have an old Windows application in Borolade C ++ 5.0. It uses the OWL library much more in its code. It should be ported to Visual Studio 2005/2008 (C ++ or C #). Search in Google shows lots of links but nothing is quite solid or not useful Can anyone show the right direction to start it? Share any losses or best practices? This is going to be a painful process, you can rewrite the whole application. Before considering OWLNext in SourceForge. PS: I have no experience in doing this.

c# - Isn't a generic IList assignable from a generic List? -

bool isTypeAgenericList (प्रकार सूची प्रकार) {typeof (IList & lt; & gt;)। IsAssignableFrom (listType.GetGenericTypeDefinition ()) } जब typeof (list & lt; int & gt;) । दिया जाता है तो मुझे गलत लगता है क्योंकि यह दो प्रकार के पैरामीटर अलग हो सकते हैं , सही? असल में, यह काम करता है: सार्वजनिक स्थिर बूल IsGenericList (प्रकार प्रकार) {यदि (! Type.IsGenericType) वापस लौटाता है; Var जेनेरिक ऍग्रॉग्ग्ज = टाइप। गेटजिनेरिक ऍग्रीग्यूमेंट्स (); यदि (जेनेरिकअर्जेंट्स। लांघ! = 1) गलत वापसी; Var listType = typeof (IList & lt; & gt;)। MakeGenericType (जेनेरिकअर्जग्राम); वापसी सूची type.IsAssignableFrom (प्रकार); }

sql server - Syntax check all stored procedures? -

I want to make sure that all stored processes are still valid syntax. (This can happen when a person designates / removes the table / column). Now to check the syntax of all stored procedures, I have to go to Enterprise Manager, select the first stored procedure in the list, and use the process: Enter Alt + C Escape Escape Down Arrow Goto 1 it works, but it is very tedious I have a stored procedure that Syntax Czech Sbistresprokdrs No Of the other stored procedures would like the same thing that he thought what I wrote: RefreshAllViews All For the benefit, RefreshAllViews: RefreshAllViews.prc Processing Deborah. Refresh Elviz AS - This will refresh all the views in the SP Catalog. - an analysis seen it all, and select runs sp_refreshview for each ABC cursor declaration TABLE_NAME ViewName the INFORMATION_SCHEMA.VIEWS Select declared open ABC @ViewName varchar (128) - Create a string declared nvarchar ( 2048) Next access from @SQLString ABC INT...

Chunked HDF5 DataSet and slabsize -

We are evaluating HDF5 performance about chunked datasets. Especially we try to understand that is it possible to read in different parts and how this performance is affected? Like we have a dataset with a size of 10 digits, want to read a dataset with 100 data and 23 to 48 values. Will there be a big loss of performance? Many thanks! I do not know how to answer your question in particular, but I'm going to give you 1024 (or Some of the high power two). I do not know the interior of HDF 5, but with my knowledge of filesystem, and we had 1024 right from some benchmark.

java graphics - a shape with two colours -

(This is Java) I have an oval, which represents an entity. If I want the color of oval to represent the health of the unit, then a perfectly healthy unit will be all green and the oval starts red color with the health of the decreasing unit. Therefore, 50% of the oval on health will be in the bottom half and red in the top half in green, and completely red when dead of the unit. I'm sure the solution here should be clear and trivial, but I can not see it. Thank you very much You can draw a red oval in the background, then an oval and a rectangle, Where the rectangle starts under the oval, then the bottom of the bottom increases upward to reveal the red oval. You can read how to create complex shapes of ancient shapes

c# - Regex matching tags -

I have a text of the following text, out of which I have all the & lt; Td ??? Want to remove? & Gt; ??? & Lt; / Td> Tags & lt; Tr id = row509 & gt; & Lt; Td id = serv509 align = center class = 'style1' & gt; Z Deviazion Techniko Home Verso S 24 [Non-USAT]] & Lt; Td align = center class = 'style4' & gt; 23 & lt; / Td> & Lt; Td align = center class = 'style10' & gt; 22 & lt; / Td> & Lt; Td alignment = center class = 'style6' & gt; 0 & lt; / Td> & Lt; Td alignment = center class = 'style2' & gt; 0 & lt; / Td> & Lt; Td id = rowtot509 align = center class = 'style6' & gt; 0 & lt; / Td> & Lt; Td alignment = center class = 'style6' & gt; 0 & lt; / Td> & Lt; Td alignment = center class = 'style2' & gt; 0 & lt; / Td> & Lt; Td alignment = center class = 'style6' & gt; 0 ...

iphone - indexPath.row is returning null in tableView didSelectRowAtIndexPath -

indexPath.row तालिका दृश्य में शून्य रिटर्न करता है SelectionRowAtIndexPath: indexPath मैंने सोचा था कि यह पंक्ति वापस लौटना चाहिए था जब मैं इंडेक्सपैथ को डीबगर में देखता हूं (मुख्यतः) देता है: "2 इंडेक्स [0, 0]" क्या मुझे कुछ याद आ रहा है? अच्छा null है 0 । पंक्ति संपत्ति प्रकार int - शायद आप गलत तरीके से इसे एक वस्तु या संकेतक के रूप में प्रयोग कर रहे हैं। आप का उल्लेख है कि आप वास्तविक " पंक्ति "का चयन किया गया था यदि आप का मतलब है कि आप सेल जिसे चुना गया था, तो यहां बताया गया है: UITableViewCell * cell = [tableView cellForRowAtIndexPath: indexPath]; ध्यान दें कि यदि आप किसी प्रोग्राम को एक पंक्ति चुनते हैं जो वर्तमान में दिखाई नहीं दे रहा है, तो यह शून्य वापस करेगा।

subsonic3 - Subsonic 3 - Update NullReferenceException -

I am using Subson v3.0.0.3 with lincoln templates. I am trying to update a record in a SQL Server Express database with the following: var db = new MyDB (Constants.Database); Db.Update & lt; Contacts & gt; () .set (d = & gt; d.FirstName == contact.FirstName). Where (D => DID == contact.Id) .Execute (); I get a NullReferenceException when this line is executed. The stack trace is as follows: at SubSonic.Query.Update.GetCommand) SubSonic.Query.Update.Execute () Any chance that someone has it Can you suggest what is the problem? Hmm - I will say to ensure that the connection string is present (I will have connections in the coming weeks The error message needs to be fixed to lose the string) - it looks like a problem - do you want to post to github?

ruby - How do I test a file upload in rails? -

itemprop = "text"> I have a controller who is responsible for accepting JSON files and then to maintain some user for our application JSON is responsible for processing files. Users have been tested to upload file and processing tasks, but of course I want to automate the process of user maintenance testing in our test. How can I upload a file to an administrator in the functional testing framework? searched for this question and did not find it, or found the answer on the stack overflow, but It got somewhere else, so I'm asking to make it available on SO. There is a function fixture_file_upload () in the Rail Framework, which will search your fixtures for the specified file and provide it as a test file for the controller in the functional test. To use it: 1) Keep your file for testing to upload in the test in your fixtures / files subdirectories. 2) In your unit test, you can get your test file by calling Fixture_file_upload ('path', 'mime-ty...

html - Javascript that automatically sets font-size on element so that text doesn't overflow? (autofit) -

Do you know what I mean? As we say: & lt; Div style = "width: 100px; font-size: 10px" & gt; Some text & lt; / Div & gt; But then we may also have a longer text string in that div, in that case I would like the div to have font-size: 7px or whatever, so that the entire string overflow Fits without I'm sure something like that has already been written, I do not want to search it again. Preferably a jQuery plugin? Any suggestions would be appreciated! Thanks Based on the answer to the question of Nick: $ (Function () {$ (". ShrinkByWidth"). Each (function () {var targetWidth = $ (this) .Parent (': first') width (if; isNaN (parseInt ($ (this) ("Font-size")) $ (this) .css ("font-size", '24px'), while $ (this). Wide (target); {$ (this) .CSS ( "Font-size", (parseint ($ (this). Css ("font-size") - 1) + 'px');}}};}); Works great for me!

sql - Stored procedure to table variable issue -

What I'm trying to do is take the result from a stored procedure and put them in a temporary table ... looks like this: DECLARE @Table TABLE ([ID] int, [costA] real, [costB] real, [costC] real INSERT @Table EXECUTE [DBO] [Costprocedure] @ RoutID = 123 @ rate = 20 - from: Select * to Settable - Gives me: ID Costa Cost B Costs 10 0 - However Expert [DBO]. [Costprocedure] @ Root id = 123 @ rate = 20 - GVEEEE ID Costa Costbolic Cost 1.0 1.0 9 8 9 0.9837 0.65463 So my question is, because the stored procedure is clearly visible Reasonable results are returning from, so when I insert them, insert only the first column of the result in a table variable and give all the zeros in the later column? Is there a known problem about this which I do not know? I also tried: INSERT @Table ([ID], [Costa], [Costbie], [Costs] execute [DBO]. [Costprocedure] @ RoutID = 123 @ rate = 20 This same result was found ... ... I also tried a throwback, and tried a temporary table (table # Too)...

html - XPath to Parse "SRC" from IMG tag? -

अभी मैं सफलतापूर्वक इस के साथ HTML तत्व से पूर्ण तत्व पकड़ा: / / Img [@ class = 'photo-large'] उदाहरण के लिए यह इसे वापस करेगा: & lt; img src = "http: // Example.com/img.jpg "class = 'photo-large' / & gt; लेकिन मुझे केवल SRC url () की आवश्यकता है कोई भी मदद? आप अपने आप का जवाब देने के लिए इतने करीब हैं कि मैं आपके लिए इसका उत्तर देने में कुछ अनिच्छुक हूँ । हालांकि, निम्नलिखित XPath को आप जो चाहते हैं प्रदान करना चाहिए (स्रोत प्रदान किया गया है एक्सएचटीएमएल, बेशक)। // img [@ class = 'photo-large'] / @ src आगे की युक्तियों के लिए, जांचें उनके पास ऐसी चीजों और उत्कृष्ट संदर्भों पर उत्कृष्ट ट्यूटोरियल भी हैं।

asp.net - User control (ascx) and properties -

The only way to continue the property value within a user control is to use Vostate. Public String Title {get {return Convert.ToString (ViewState ["title"]); } Set {viewstate ["title"] = value; }} I can not say that I am really impressed with it, because more properties are more nonsense in the user control, which will paste you into the viewtest. Is a Better Way? It depends if you need property values ​​that remain beyond a post-back So you have to use ViewState or session. Since those controls have been rebuilt on each post, so you can not retain that status otherwise.

How do I convert an HTML page to a PDF using Classic ASP VBScript? -

There are a lot of paid components and accessories for .Net, but any free way to convert Is PDF PDF Using Classic ASP VBSScript? Can anything be from adobe? I have done some work related to such things. If you ask me then espdf is the only way from websupergoo. If you link them back, they will give you a free license and the best performance and the easiest setup to use their kit so far is that I have completed. If you can go with the .net version but they also do an ASP version. Can not make them mistake This is a difficult task to do the right thing, you may have to modify your HTML pages to look right as HTML, where there are pages per PDF. We make separate templates for us or pass in the flag that connects a CSS class selector to the body tag, which allows us to modify the page layout if called from our PDF generator (ie do not set the width, Hide banners etc., search forms, change fonts, background images, etc.)

reporting services - RDLC filtering nested tables -

I am creating an RDLC report where there are several databases in the dataset, a parent table and several child tables. What I would like to do is display data relevant to each child's table for each row in the original table. Here is a simplified example: table1 = "purchase" in the column back case, purchase number, buyet table 2 = "purchased item" column has purchased IitemID, PurhecaseID, ItemDescription my RDLC I have been grouped on the date of purchase and I would like to display it. Purchase is for every purchase. The current solution uses a subreport, but I do not like it because it leaves an ugly empty place. Patience There is no data for the report display. (I would be fine with using a subreport if I can safely hide it without leaving the blank space.) I can not re-write the stored procedure to return a table I am How are other people dealing with this scenario? I left my dream of Nested Parents with data sources tables Using a sub...

Dynamic Data with Entity Framework... using [ScaffoldColumn(true)] to show a public property via metadata -

... it does not work at all, of course. I have tried for the day, frick'n stuff with all the different combinations and it will not move. There are definitely people who blog about blogging to see a glimpse of this kind of things without any glare. "We all know that you have the public qualities of expanded EF classes Can show up ... "and" If you want to expand your data model to show your math field, then just ... "- It's not so easy for me - please! So, typical example, my EF partial class looks like this: [display column ("name")] [metadata type (typef (salesproductmatatedata) ))] Public partial class sales product {public string test {get {return "blah"; }} Public Segment SalesProductMatData {[ScaffoldColumn (true)] Public String Test; }} My global.asax looks like this: Meta model model = new meta model (); Model.RegisterContext (typef (Sales.models.SitesEntities), new reference configuration () {ScaffoldAllTables = t...

arrays - JQuery hover() possibilities? -

I am using the hover () as suggested in the document: $ ("#div"). Hover (function {$ (this) .addClass ('cie_hover');}, function () {$ (this) .removeClass ('cie_hover');}); Is there any way that I can use more functions on other objects? And if so, will there be a syntax for presenting the function in the array? What I would like to do with it, I can change the class of the board which I am moving and sildeDown () elsewhere with the other hover ( ) action. These are just the main function of the call back function function you want: $ ('# Div') Hover (function () {$ (this) .addClass ('cie_hover'); $ ('sliding ();}, function () {$ (this) .removeClass (' cie_hover '); $ (' #otherdiv ').

Does minified javascript improve performance? -

I am creating an air app (hence there is no major impact of download time), all attach javascript file display Affects? How disorder will affect performance By improving the performance of your page by reducing the minimum loading load (even up to To reduce the execution time, or omitted in any form for any vast amount of javascript code by I would recommend for minifying those reasons and more Edit: As stated, on constrained equipment and / or many large codebesses May produce a remarkable result to low.

Converting large set of word documents automatically into xml, modify them and than convert them into latex, pdf, html -

A word about quality that is part of the quality management system word, is very sad for me because a ) It corrupts images in large doctors. B) Layouts are sometimes dissolved c) It is cumbersome to configure documentation for different clients. I convert them to XML / html or text and latex, but it is not possible for 400 documents. I know that I can print word documents directly on pdf such as primo pdf, but it is not flexible enough because i need to modify the content. Does the structure of the document change into plain text, titles, tables, images and XML? Later, I would like to convert XML to HTML, Latex and PDF in accordance with the preferences of our customers, and can I modify the content too? Is there a way to go to Xslt to convert xml into other formats? Thanks for any advice. You can convert your documents to Word 2007. Office 2007 documents are XML documents: just change the file extension to .zip and upzip. Additionally, Microsoft Office 2007 publishe...

Database design: multiple "options" tables vs. a single table -

I believe that all of us have seen this design requirement in one or another form. The software needs to be offered for a variety of different queries / settings. Many such questions can easily cross 50 in a big project. Now. Do you have to fix 50+ tables with similar designs? ] [setting 1] ([ID] is not unique identifier, [name] varchar (max) no) create faucet [dbo]. [Settings 2] ([ID] is not a unique identifier, [name] varchar (max) tap) etc. And then these tables are linked through foreign keys like this: [tab] [user's settings] ([user id] not unique identifier null , [Setting 1aid] is not a unique identifier, [setting 2 id] is not unique identifier) ​​or is it more sensible to create a "master" option table? create table [dbo]. [Settings] ([ID] is not a unique identifier, [name] varchar (max) faucet [SettingCode] INT not zero) In addition to multiplying tables with similar structure in F What are the advantages and disadvantages of Irst matters ...

c++ - sqlite db2 error for symbian -

After I am getting the error for the statement tint err1 = stmt.Prepare (db , _L ("MyContacts (ServerContactID, Username, First Name, Last Name, Country, IsBlocked, RequestStatus, MarkForDeletion) values ​​(enter: ServerContactID ,: Username, First, LastName, Country ,: IsBlocked ,: RequestStatus ,: MarkForDeletion) ")); / ** SQL database specific error: Type the return code on SQL API with a call from class = "text after" itemprop = "text"> -311 sqldb.h This is a normal SQL error Or indicates missing database @see RSqlStatement @see ESqlDbError @see TSqlRetCodeClass @publishedAll @prototype * / constant tint KSqlErrGeneral = -311; If you are making the first question: RSqlDatabase db is properly connected Does the database have a table called MyContacts ? This is also a good habit of ending your semicolon ; SQL statement with though they are not strictly necessary (the device for testing is not here, whether it...

vb.net - Need to draw to 800*800 pixel box on screen efficiently -

I need to attract 100 lines between 100 semi-random points in the 800x800 pixel square on the screen. I'm using built-in drawals & amp; Drags the inside work into .NET, but my picture erases every type of colors. So, I was probably thinking about drawing on an in-memory bitmap, but I'm not sure it's a good solution. Not only this is a good idea, but it also has a name (Double buffering) make your drawing on the form-level bitmap, and then in the paint event of your form (actually it would be better to do this on the form with the picture box, and it will be used to paint the event) the graphics object's drive method Bitmap in your Picturebox using A simple way is to simply draw your bitmap, draw it on it, and then set the bitmap as the image property of your picturebox. It will continue to automatically image the image once your image is repainted.

xaml - "inherit" style of theme in wpf -

I am using a theme in CodePlex and I want to add some modifications to the style but do not want to change their code. Am How do I get a theme style? & lt; Style x: key = "style1" & gt; & Lt; Setter property = "control.background" value = "yellow" /> & Lt; / Style & gt; & Lt; Style x: key = "style2" based on = "{StaticResource Style1}" & gt; & Lt; Setter Property = "Control.Foreground" Value = "Blue" /> & Lt; / Style & gt; MSDN Reference: Another example (a style based on a style with no clear key): & lt; Style x: key = "Style3" basedOn = "{static resource {x: type combo box}}" & gt; & Lt; Setter Property = "Control.Foreground" Value = "Blue" /> & Lt; / Style & gt; Just load the extension resource dictionary after the base resource dictionary via xml or code.

vb.net - .NET multi-threaded variable access -

मेरे पास 4 धागे के साथ एक आवेदन है। (जीयूआई, नियंत्रक, निर्माता, उपभोक्ता) जीयूआई आत्म-व्याख्यात्मक है। कुछ प्रारंभिक सेटअप के बाद नियंत्रक उत्पादक और उपभोक्ता धागे शुरू करता है। निर्माता आइटम बनाता है और उन्हें एक "रिंग बफर" में एक मुक्त स्लॉट में रखता है उपभोक्ता "रिंग बफर" से आइटम लेता है और उन्हें डिस्क पर लिखता है। निर्माता बनाता है उपभोक्ता की तुलना में अधिक उच्च दर पर आइटम। उपभोक्ता IO भारी है और IO बाध्य है। वर्तमान में मैं यह निर्धारित करने के लिए प्रत्येक रिंग बफर स्लॉट में एक चर को देख रहा हूँ लिखित में। अगर स्लॉट फ्री। तो लिट स्लॉट.डेटा डिस्क से समाप्त हो गया है अगर मैं लॉक / सिंकलॉक का उपयोग नहीं कर रहा हूं इसके बजाय मैं स्लॉट के मूल्य को पढ़ रहा / लिख रहा हूं "मुफ़्त" चर मुझे विश्वास नहीं है कि यह सही है, हालांकि यह एक अस्थिर पढ़ा / लिखना है। क्या इस चर को पढ़ने / लिखने के लिए एक बेहतर तरीका है? वेरिएबल "पूर्णांक" प्रकार है और या तो 0 या 1 है। आप एक अंगूठी बफर लेकिन एक (ठीक से कार्यान्वित) अंगूठी बफर यह नि...

c# - Learning to create Windows MCE plugins -

I am currently a Java developer, and would like to know whether Windows will be able to make Windows MCE plugins for any popular services. Using a language like #? Where can I find resources to learn how to write MEE plugins using C #? In fact Get started with SDK as suggested by Dawood M above Check it also, Perhaps you are going to be easy if you want to work, then try to write the entire plugin instead of searching a specific area or asking specific questions. What to do if it needs to be done Since you come from the background of Java, C # can not already be difficult to know. Quick Google Search also gives some good results for 'writing windows MCE'.

iphone - in which situations does it make sense to create only an lighteight CALayer rather than a fat UIView? -

The only thing that comes to my mind is displaying simple images. But if you want to animate them, will not it be right? So is it useful to create a single cylair instead of a UIView, which comes with all those things (all trees ...) When you are not availing the benefits of using UIView and when you are not able to do this, then you use CALayer. After this line, if your requirement is not using any UI controls and / or you want to create your own custom animation (2D or 2.5D animation) then this core Animation makes sense to drop at the level and create your own CALAYER Your point is there. If you are only interested in original animation performance and it can be done through UIView, then the API is usually simple, so it means to use UIView to save your time Will happen. / P>

Filter C++ through a perl script? -

I have a Perl script, which I would normally show GCC processes before filtering the CCP / H files - Basically an additional preprocessing step is there an easy way to do this? I realize that I can feed the CPP files on the script and the GCC has read the output from stdin, but it does not help header files. The classic way of handling such process is to source code as a new language with a new file suffix (Input in the Perl filter). After this, you can tell make how to compile the C ++ source file with this new file type with the Perl script. For example: New suffix: .ccp New rule (value .cc suffix): ccp.cc: $ {FILTERSCRIPT} $ & lt; Add a new suffix to the suffix list - with the preference of general C ++ rules. The last thing is most difficult if you simply add the .ccp suffix to the list, then create actually .ccp file will ignore the changes in the .cc file that exists, you must either remove the intermediate .cc file or make sure th...