Posts

Showing posts from May, 2012

Count images with jquery and then output the # -

I am looking to calculate the number of images with the name of a certain div square and then display that number That is calculated to display, it is on one page. Any advice about how to achieve this will be used to inform the user how many images are there in my image scroller. I finally think that 1/10, 2/10, etc. Dashash How L'list ... depending on whether the user is on what image. Here's the page so that you can see if I'm talking about scroller. I have a scholar who draws images from the custom field in the bug, I can add as many images as I like, I like. I'm using ScrolltoJS.Jquery to scroll images, I'm looking to get the count of the image and I would like to see that output You can use this code: var numImgs = $ ('div.myClassName img'). Length; Warning (numImgs); . $ ('Div # Count') Text (numImgs); Unlike other examples, it searches for the number of images in the class given in a single category.

php - Get Image Height and Width as integer values? -

I have tried to use the PHP function, but I want to extract image width and height as an integer value Was unable to. How can I get it? Try this way: list ($ width, $ Height) = matching ('path_to_image'); Be sure to: You specify the correct image path there Read the image 755 Trying to preface the path also with help of $ _ server [DOCUMENT_ROOT] When you are unable to read the files

ajax - Is it possible to force a buffer refresh in JAWS 9 or 10? -

To force JAWS to refresh its virtual screen buffer, there is no way through YahooS scripting or HTML (usually + esc )? I am working on an AJAX heavy web application that requires swivel support, but after taking any action specifically to users "Hit ins + esc Do not like to grab potential changes. " This is the only way I know to do this JOS is through scripting. According to script documentation refresh (1) will emphasize the refresh of the screen and refresh 0 ) If necessary, there is also a refreshdond (handle) that refreshes the window with the given handle, but I do not know how well it is in an internet browser Will work because I'm not sure that all the weather content is in a window.

How do I add a CAPTCHA to my PHP form? -

My knowledge of php is not good and I need help I have it, but I do not know how to add captcha mechanism. How do I get it? I really like working really well and the third party's external service or Javascript is not required (unless you enable the new image feature) Additionally, it can be configured to provide audio captcha for accessing it.

Best practice for installing multiple versions of Ruby, apart from rvm? -

I am running both Ruby 1.8.7 and Ruby 1.9 for a few weeks. I install Ruby 1.9 with Prefix 19, so that the commands include "Ruby 19", "IRB 19", "Rake 1 9", "GM 19" etc. There is no suffix of 1.8.7 counterparts and thus default. I think the easiest and most transparent way to manage two versions of Ruby is. I can just replace #! My Ruby scripts line one version or the other to use. I have read about the solution of the hanging, which is a full-blown solution like changing the simplex or RVM on the fly but I like the simple and transparent approach. I am just surprised that there are serious drawbacks with it. RVM rocks! give it a chance. "Full Developed Solution" does not mean it's really complicated to switch to Ruby versions.

hashtable - What's the point of a hash table? -

I have no experience with the hash table outside of arrays / dictionaries in dynamic languages, so I have recently discovered That internally they are using it to create a hash of keys and store the value. Why I do not understand why it is not the key (string, number, whatever) as well stored values ​​with the key, instead of creating a hash and storing it instead This is a close duplicate: Long story short, you can check Whether or not a key is already stored very quickly, and store a new mapping evenly, otherwise you will have to keep a sorted list of keys, which is very slow to store and retrieve mapping.

cookies - Windows Identity Foundation: How to get new security token in ASP.net -

I'm writing an ASP.net application which uses the Windows Identity Foundation. My ASP.net application uses claim-based authentication with passive redirection in a security token service. This means that when a user accesses the application, they are automatically taken to a security token service, where they receive a security token that they recognize in the application In ASP.net, the security token is stored in the form of cookies. I have to do something on which a user can click into my application that will delete the cookie and redirect him to the security token service to get a new token. In short, logging out and logging as another user I try to delete the token in the code, but it remains in some way. How do I delete the token so that the user can log in again and get a new token? I found the solution to put it in: Dim smartWs as the Federation Authority Module _ Microsoft.IdentityModel.Web.WSFederationAuthenticationModule = _HttpContext.Current.Applica...

c# - How can I determine the length of an mp3 file's header? -

I am writing a program for the difference, and both files or segments are either copied on the basis of the change on the closing ( Rsync-esque .. but more similarity). The main idea is to keep my music folder (all MP3) up to date in many places. I want to send updates with segment if only a small part of the file has changed, as opposed to copying the whole file, I want a way for different segments of the file. I initially tried to create a hash for every file block (every n bytes I want to hashed this block). I saw that when I changed an attribute (id 3v2 tag on MP3) then all palm blocks will change. It makes sense, because I thought the headers are rising because it is getting new information. This leads me to my real question. I would like to know how to determine the length of the MP3 header, so I can make 2 comparable hashes. 1) Metadata of file (header) 2) I am missing anything Thanks! Typical mpeg stream with audio (this hash should remain unchanged if I cha...

latex - Change \parskip only inside enumerate & itemize environment -

Is there any way that I can change a different value within some environment \ parskip , I.e. enumerate and itemize . Let me paragraph ( \ setlength {\ parskip} {1em plus 1pt minus 1pt} / Code>), but do not itemize or evaluate inside. Yes you can; But you have to copy enumerate and itemized environment from your class file (by copying them and adding your \ parskip ), or Redefines \ @ listi , which works for all lists: \ makeatletter \ def \ @listi {10% for base Latex classes %% default settings: \ parsep 4pt plus 2pt minus 1pt \ topsep 8pt plus 2pt minus 4pt \ itemsep 4pt plus 2pt minus 1% your settings: \ parskip 1em plus 1pt zero If you want different settings on nested, change list level, \ @ listii , \ @ listiii etc.

java - Handling self-refreshing pages from selenium -

I am running intermittent errors with some Java selenium-RC test which I think relates to a page in which An AJAX survey and automatically refreshes when certain conditions reach the server. In this scenario, there is no way to ask Selenium to wait for the page to load, and so I went into a bunch of errors, "Can not use the body of the document." So, is there some way I can handle Selenium in this situation beautifully? If not, can I find that the user is selenium from JavaScript on the page and can disable auto refresh? If it does help, then JavaScript code looks something like this in the page .. var ajax = new Ajax (URL, {update: state, method: 'received', absolute function (message) {if (some condition) {window.location.replace (unescape (Window .location));}}}); One solution is to always use waitForCondition Before trying to interact with the application under the exam, you can put the following method in a superclass to keep your tests more re...

javascript - How to Stop Gmail from maximizing an iFrame? -

I am trying to create a webpage with embedded Gmail in an iframe. However, Gmail has some JavaScript code that applies even when it loads. I believe the following is the reason for the JS code snippet that causes Gmail to kidnap the window and maximize itself, your parents destroy the iframe: If (top.location! = Self.location) {top.location = self.location.href; } Preferably, I'm looking for a solution that does not include cross-browser (and greasemonkey, or some other browser-based hacks). If jquery has some applicable functions / plugins, then it would be nice. As Gmail uses code it's hard to stop it from running in a block. An article about this may contain some useful information.

iphone - How to save states using an application delegate -

I have an application that displays some graphics based on the properties of the object. I want the position of the object to remain in place when the application will start. I know that the app representative has an "endless functionality" function that I can use, but the problem is that I do not have a way to catch an object's pointer. I'm trying to make it iPhone application follows the MVC principles, and I have the proper view and controller. How do app representatives fit into the picture, and how do I use them Can i Does anyone give me some literature or can give me a hand? Thank you! See my answers if you need more help, just let me know.

On-demand publishing api? -

Lulu.com is a "self-publishing service" It appears that they were one, but no longer offered Is performed. I was thinking that there are any such services in which I can use script language to produce book documents (PDF, XML, whatever), and separate programs for custom books - Offers different orders. There is probably no API that automatically converted a non-ebook format into an e-book format To do I recently participated in the discussion on the publication at Software Development Conference. There has been a lot of discussion about the process of creating / changing pub-format and other e-book formats. Obviously, clicking on "convert" is not as simple as it is. There are so many manual typesetting and tweaking to get the PDF (or .OC, or whatever) to look right in e-book form.

file io - Need basic help parsing a string in C++ -

C ++ is not my favorite language. I have a file in which it is: I want to separate E, 225, 370, 35 and 75 from each other but I'm having trouble. Whatever I found online and tried to do in my C ++ book and still is not working, please help. I will have an easy time doing this in Java. #include & lt; Iostream & gt; # Include & lt; Fstream & gt; using namespace std; Int main () {ifstream f ("a.txt"); // Check the errors of four f, dummy; Int i1, i2, i3, i4; F & gt; & Gt; Ch & gt; & Gt; I1 & gt; & Gt; Dummy & gt; & Gt; I2 & gt; & Gt; I3 & gt; & Gt; Dummy & gt; & Gt; I4; The court's & lt; & Lt; Ch & lt; & Lt; Endl & lt; & Lt; I1 & lt; & Lt; Endl & lt; & Lt; I2's & lt; & Lt; Endl & lt; & Lt; I3's & lt; & Lt; Endl & lt; & Lt; I4 & lt; & Lt; Endl; Return 0; }

iphone - Can I use the "free" sound files from this website? -

For free iPhone applications, can I use sound files from these websites? Can I download WAV files and use them in my app, without any problems ? I just need a little less chance (less than 1 second). If you want to be actually safe, record your own sounds Do - in this way, you know that the copyright holder has given you permission to use them unless you have a blanket of copyright on those (or other) files, or for the use of them for any purpose There is a clear license for you, you may still be upset. And I mean nothing - nostalgic kind: To do the best of our knowledge, blah blah blah ... This law is unlikely to be held in a court :-) The main problem with digital copies is that they are the correct replicas, which means that the copyright holder can easily say this You have stopped your work. It is not that I would suggest this as an option, because it is still probably a derivative work, but if you can not record your sounds actually So you might want...

C puzzle: Output of printf should be '5' always -

I found this puzzle in Qualification Paper. zero change () {write something in this function so that output of printf output should always be in the main function 5.You can not change main function}} int main () {int I = 5; Change(); I = 10; Printf ("% d", i); Return 0; } Any solution.? This is a actually cheap answer: zero changes () {printf ("% d", 5); Exit (0); } : - P

php - How do I set up an inbound mail controller so users can post to unique email address? -

Tumbler (small form blogging platform) is a feature where you are given a unique email address (for example, F3sf16a @ tumblr.com) is that you can email text or images and it can automatically format it for you in a post (unless the sender's email address matches the email address of your account.) I will set up something similar but completely presenting pictures As a method for the Ideally, when a user signs up on my site, I can create a unique address for them and store it in my DB (MySQL) if the user uses that email address to send an email to that address Email, then I want to move it to a PHP function that breaks it and uploads content to my account. How would I go about doing something like this? Will this be anything at the DNS level, or the Apache level? Will it already need to create a "secure list" of all "real" email accounts on my domain to pass it? In addition, I am using Google Apps for email on this domain, will I need to make some sort o...

How to check already running exe in c#.net? -

What is the process of knowing that when the user starts the application every time it will check that an example is already running Whether or not it is If it is not running then it will be launched or else it will focus on the existing one. I have tried to code for the singleton app already, but many of its errors are not running properly. Do you want me to mute x ? Code> class, as explained: Edit: In my code it is: class program {public const string AppName = "..."; Only mute x mute x = new mutes (true, program. AppName) for private static reading; Public event () {if (! Mutex.WaitOne (timespace.zero, true)) throwing new application exceptions ("Another example is already running"); }}

php - Add more output smarty html option -

{html_options मान = $ row.milestone_id आउटपुट = $ row.title आउटपुट = $ row.title} हाय दोस्तों, कैसे smarty html विकल्प में अधिक $ आउटपुट जोड़ने के लिए? ड्रॉपडाउन को पॉप्युलेट करने के लिए आउटपुट को एक सरणी होना चाहिए। उदाहरण देखें PHP कोड $ smarty- & gt; असाइन करें ('myOptions', सरणी (1800 = & gt; 'जो स्म्मो', 9904 = & gt; 'जैक स्मिथ ', 2003 = & gt;' चार्ली ब्राउन ')); $ Smarty- & gt; असाइन करें ('mySelect', 9 9 04); फिर टेम्पलेट {html_options name = foo options = $ myOptions selected = $ mySelect} और आउटपुट & lt; चयन करें नाम = "foo" & gt; & Lt; विकल्प लेबल = "जो श्मो" मान = "1800" & gt; जो स्म्मो & lt; / option & gt; & Lt; विकल्प लेबल = "जैक स्मिथ" मान = "9 9 4" चयनित = "चयनित" & gt; जैक स्मिथ & lt; / option & gt; & Lt; विकल्प लेबल = "चार्ली ब्राउन" मान = "2003" & gt; चा...

php - Zend Framework: What are the differences between init() and preDispatch() functions in controller objects? -

I think the order of execution is init (), preDispatch () and then the verb () is called. Should I initialize my variable, which is common in all functions, init () or preDispatch ()? I have seen people using both functions for initialization, probably as the name indicates that it should be done init (), but what type of content will be in predispatch ()? What is the function call between init () and preDispatch ()? ago preDispatch () to Zend_Controller_Plugin_Abstract . Here you have the request and feedback object, so you can make the filter or some preparation using the information from the request. Init () 's Zend_Controller_Action has been given the name as part of the constructor. The signature of the constructor ( Zend_Controller_Action :: __contract () ) is to assist you in initializing your controller without overriding and repeating. Controller's preDispatch) The method here is called $ request-> to leave the current code. Set despa...

java - How can I read contents from Spring Messagesource within a Enum? -

I have an anime that has three different status types These conditions should be displayed and displayed in emails sent to users String with occurrences is stored in messages. Read the properties (using the spring class org.springframework.context.messageSource's implementation). It works well in the normal spring controller. However, I like to receive the "performance status" within the enum (containing the logic in one place). However, message resources in the form of the following code do not seem to automatically wiring, to work, the source is always empty as a message. public enum InitechStatus {OPEN ("open"), closed ("off"), broken ("broken"); The name of the public last string; @ Removed private message source message source; InitechStatus (string name) {this.name = name; } @ Override public string toasting () {String display StatusString = messageSource.getMessage ("Page. Systemadministration.broadcastmail.status." ...

linux - Boost::Python: Passing custom arguments to gcc when building python-extension -

मुझे -Wl, -rpath, \ $$ ORIGIN / lib / से जी ++ के पास करना होगा लिंकर () क्या जम्मूट फाइल में इस तर्क को पारित करने का कोई तरीका है? एक अन्य विकल्प यह परियोजना के गुणों में जोड़ना है अपने जेमरूट के शीर्ष पर, निम्नलिखित नियम जोड़ें (या पूर्व-मौजूदा परियोजना नियम को संशोधित करें।) प्रोजेक्ट: आवश्यकताएं & lt; toolset & gt; जीसीसी: & lt; Linkflags & gt; "- Wl, -rpath, \\ $ ORIGIN / lib"; यह केवल इस प्रोजेक्ट पर जीसीसी को प्रभावित करेगा, और काम करता है भले ही मौजूदा जीसीसी का उपयोग कर; कमांड जेमुरॉट से (उबुंटू की डिफ़ॉल्ट कॉन्फ़िगरेशन के अनुसार) से कहा जाता है। Python-for-extensions alias को संशोधित करने का कोई बेहतर तरीका हो सकता है जो Boost.Byild लिंक को अजगर एक्सटेंशन पर कॉल करते समय, लेकिन मुझे यकीन नहीं है कि यह कैसे करना है, या यहां तक ​​कि अगर किया जा सकता है।

iphone - Categories vs Informal Protocols -

I think I understand the difference between the (formal) protocol and the categories. Now, if I have found this right, then there should be informal protocol categories (usually defined on NSOBIES) which are used for some purposes (as opposed to the formal protocol, to give only a part of the method listed in it). is done. I need to make sure about it: can someone confirm that an informal protocol is just a category (or interpretation of difference)? An extension category for class functionality - This is the implementation of some methods: @ Interface NSObject (MyCategory) - (zero) doSomething; @end ... @ Implementation NSObject (MyCategory) - (zero) doSomething {// do something ...} @end Formal protocol is completely different if you have any If you are familiar with other object-oriented languages, then it's like the interface (Java, C ++, C # etc). The protocol can be linked to the implementation of any class like this: @protocol MyProtocolrereired - (zero) doS...

c++ - Custom ComboBox for SearchBox -

I have a custom Kanbaboks to have been applied to behave like a search box is an edit control, a button And have been created from a listbox. I'm trying to open the listbox to click the mouse button, it can be easy, but seemed to be complicated. Most First I tried to manage mouse click on "BN_CLICKED", but then I found out that it is too late and I want to open before the listbox on "WM_LBUTTONDOWN" (and "WM_LBUTTONDBLCLK"), problem that is, when I try to open a list box on the 'm the message "WM_KILLFOCUS" the listbox and being right off after being opened for a moment, and the button "WM_SETFOCUS" message Is, I "WM_SETFOCUS" List was thinking of opening the box "receives a button, but because I can not trust the message to click each button (for example, when I will not be sent to click on the button). Would not it be easier to just start with a tell to a window class that wndproc comboboxwndproc? ...

linux - which one is recommended: using static lib vs dynamic lib (shared object) -

I am working with an application in Linux. It supports both stable and dynamic (.so) versions From the perspective of performance, which version should the user use? This application performs computational functions which require several hours of CPU time. Any other advantage of using a lib on the other? Thanks From the pure display point: Shared objects are compiled as PIC (status independent codes), in theory the general code on some architecture (including x86) may be reduced. However, I do not think there will be any real difference from this. From any other point of view Use the shared object, it has many advantages over its static library that it is still better alternative.

Why am I leaking memory with this python loop? -

I am writing a custom file system crawler, which passes millions of globe to process through sys.stdin goes. I think that when the script is running, its memory usage grows on a large scale over time and the whole thing practically crawls to a stop. I have written a minimum case that shows the problem. Am I doing something wrong or did I get a bug in the Python / Globe module? (I'm using Python 2.5.2) # / usr / bin / env dragon import globe import sys import gc previous_num_objects = count for 0 in line, calculation (sys.stdin) !: Glob_result = glob.glob (line.rstrip ('\ n')) current_num_objects = lane (gc.get_objects ()) new_objects = current_num_objects - print previous_num_objects "(% d) is:% d, new:% d , Garbage:% d, counts the collection:% s "\% (count, current_num_objects, new_objects, lane (gc.garbage), gc.get_count ()) previous_num_objects = current_num_objects It seems: (0) It: 4042, New: 4042, Python Trash: 0, Python counts: (660, 5, 0) (1) I...

iphone - What are these Strange 'rogue characters' at the end of my NSString? -

I have a text file (songlist.txt) that retrieves my app from the server and stores locally when If I try to use the contents of the file in my app then I am getting unexpected results. When I looked into the issue, I came to know that strange characters were sometimes appearing at the end of the text file's NSSTING content. Why are these funny characters? (Below is my source): Example of Strange characters at the end of the string: 1) I 2) upp † ) Mul † 4) ID // Text file exact content (songlist.txt) Song Forest. Mp3 two songs MP3 Three song MP3 song four.m.pe. P. Downloading a list of songs from the Internet, saving it to the Documents folder - (zero) Download Songlists {NSString * songlistString; NSString * URLString_list = @ "http://et.bicdoss.com/app/songlist.txt"; NSURL * URL_list = [NSURL URL YouthString: [URL string_style stringbadingproperAsspuping encoding: NASCitit encoding]]; // Get the data of content (for writing on disk) NSData * so...

internet explorer 8 - Css Sprites and IE8 problem -

I'm working on a site that has around 30 background images, so I decided to make a "phantom image" And use background-position attrib in CSS. The entire design looks perfect in FF and Opera, but I have a problem under IE8. It seems that IE8 does not keep the image correctly, in some places I see a thin line between the images. Sometimes, when I zoom in by scrolling the mouse then the line disappears, it shows again ... for example, I use some such sprites: #index {margin-left: 0px; Margin top: 0px; Width: 327px; Height: 57px; Margin-bottom: 0px; Swim left; Display: inline; Background Image: URL (images / sprite / sprites_left.jpg); Background-position: 0x340px; Hidden flurry; } Is this an IE8 bug? What should I do? Generally speaking I will be (or more) between each tile in my phantom image.

cocoa touch - iPhone text input with rounded edges -

Is there a clear way to create a text input box that has made edges round? I do not want to talk about setting the limit of UITextField by UITextBorderStyleRoundedRect it only gives me round corners. I am talking about style text area which is used as an SMS app (before sending input), or as input in UISActbarbar. I have also seen that it is used in third party applications (for example, Comment Box in the Facebook app) Is it possible to use standard cocoa touch? Or did I bring my own background image into the table? You can also set the vertices of the radius on TextField, which is enough to look at your desired look Can give control: textField.layer.cornerRadius = 10; To access it, #import & lt; Be sure to include Quartzcore / Quartzcore H & GT. A better answer, this can be just easier)

c# - Issue connecting to SQL Compact Edition on Windows Mobile 6 Emulator -

I am developing an application for Windows Mobile 6 using an emulator. When I try to open the database connection in the SDF file, it is throwing an exception that it is not able to connect or search the file. My questions are: Where is the SDF file to be deployed on a mobile device? When I create the project, the SDF file is automatically positioned on the emulator (such as a windows app) or do I have to do manually? Any help would be appreciated. "where" is set by you want you to have it on the emulator, file system In, place your connection at the place of the string. Remember that CE paths are completely qualified. It depends. How has the SDF been added to your project? If SDF files itself in the project? If so, what is "build action" set (content should be if you want to deploy it)? Is "Copy to Output Directory" set? It should be "always" or "copy if new," if you want to self-deploy it. If you use this mechanism ...

Reacting to User Interface events in Visual Studio during a processing loop -

I am developing C ++ in Visual Studio, in all managed code. I have a tight processing loop, which can theoretically run for about 30 seconds. During that time, I want the UI to be responsive to any user activity, such as by pressing the "stop" button, or clicking on a scroll bar. I know that the technique is peeking on UI qi (in a non-blocking way) and then, if there is something, the reaction to it, but it is disappointing, because I broke it before the problem, But it was almost 4 years ago and I no longer have the code base for reference. / P> Can anyone help me? Thank you in advance You need to process in the background thread. For example check the class.

content management system - are there easy to customize/extend forum web apps? -

Assume that I want to create a platform that has all the functionality of a specific high end platform, such as phpBB2, but I want to add some more features here and there too. Maybe I want to add a button to sort the thread or post based on the user's reputation (as on the stack overflow) and on a few pages. There is no need to say, I want to do this without rebuilding bicycle or rebuilding pyramid from scratch ... What is the professional approach to this? What would you do if you originally wanted a little tweaked, advanced web forum? I would suggest that you take a look at the vanilla forums:

r - Reshaping data.frame from wide to long format -

I have a problem with changing my data.frame in a long table from a large table At the moment it looks like this: wide & lt; - read.table (textConnection ("Code Country 1950 1951 1952 1953 1954 AFG Afghanistan 20.249 21.352 22.532 23.557 24.555 ALB Albania 8.097 8.986 10.058 11.123 12.246 Which Production Data. Frame Detailed Looks like this: Code country 1950 1951 1952 1953 1954 AFG Afghanistan 20.249 21.352 22.532 23.557 24.555 ALB Albania 8.097 8.986 10.058 11.123 12.246 I want to change wide in a long for example. for example: code country year value AFG Afghanistan 1950 20249 AFG Afghanistan 1951 21352 AFG Afghanistan 1952 22 , 532 AFG Afghanistan 1953 23,557 AFG Afghanistan 1954 24,555 ALB Albania 1950 8097 ALB Albania 1951 8986 ALB Albania 1952 10,058 ALB Albania 1953 11,123 ALB Albania 1954 12,246 In the form of 2016, options are included reshape2 :: melt () , as well as tidyr :: assemble () and data.table :: melt () solution and old Resha...

Testing your databases via C# tests -

I have been tasked to test our database. This is a test database and we can do anything we want and easily roll it back. I have been given this work because we are still in the design phase (which means that any change can be made at any point during the project ... change the person's name [first_name] for first name column and later I changed my name to [first name]. My goal is that when we make changes, then we need to set some estimates for the kind of pain that we do, so that we can plan ahead of time We can expect these types of changes even during production. / P> There are items I have on my list and there are written tests for it: Never before did this, I know all this that the accident can occur. Other ideas out there? Users can log in while trying to emulate e data. Edit 1: Our problem is that we have a search screen with about 25 fields that they can search. Some of these search fields are simple (e.g., first name) Somewhat less simple (With a date less t...

c# - Wpf User Control scale problem -

I have a user control in which it has 5 rectangles when I use it, then I resize this control I would like to, but when I keep it in designer and resize it there, the revenues are not on the scale with control, they are only covered or do not expand. It seems that it should be very simple, but it has to tempt me & Lt; /UserControl.Resources> & Lt; UserControl.Triggers & gt; & Lt; Event Trigger Routing Avent = "Framework Element. Loaded" & gt; & Lt; StartStoryboard Storyboard = "{Static Resources Anne}" /> & Lt; / EventTrigger & gt; & Lt; /UserControl.Triggers> & Lt; Grid margin = "0,0,8,8" D: layoutoverride = "horizontal alignment" & gt; & Lt; Grid.ColumnDefinitions & gt; & Lt; ColumnDefinition / & gt; & Lt; /Grid.ColumnDefinitions> & Lt; Grid X: Name = "Grid Con" margin = "14,13,8,8" & gt; & Lt; Rectangle x: name = "rectangle...

problem connecting to Active Directory server in C# .NET -

I am currently writing some software in C #, connecting to an AD server and getting some user details is. When I connect using the code given below, it works against most AD servers which I connect but there are a couple where it is accompanied by an error of "logon failure: unknown user name or incorrect password" Fails The server name / credentials I am using are definitely correct because I have tested them with the LDAP browser and the AD server is using standard security (port 389 etc.). Can anyone offer any advice? Cheers Tim DirectoryInterityD = new directoryInterity ("LDAP: //" + domain, administration_design, admin_password); Try {object x = d.NativeObject; } Hold {throw; } " I have programming in the past .net / AD similar problems. I have found, is useful to use an LDAP viewer to see if I can connect to some servers, etc. In this way, I can at least decide that this one. NET error (probably my code), a credential error etc. I use th...

c# - Bundle ActivSync 4.5 With Visual Studio 2005 Setup Project -

How do you bind ActiveSync with your C # .NET application? I have an installer and it works fine for SQL Server 2005 Express and .NET 2.0 frameworks when I chose them as something else. I would also like to set up Active-Sync as a pre-requisite. If you want ActiveSync to appear in your Visual Studio Setup project's list of available items After you have to create a custom bootstrap package. Here is a very intense blog post on the subject:

zend framework - Issues with PHP, PDO and pgpool -

I have two computers with two postgre databases, I am using PPO with PDO and working with pgpool I am Often I get this error ERROR: Pappal has detected the difference in number of tuition inserted, updated or removed. Or I get an error saying that the connection has been exhausted. Everything works okay without spaghetti. Is this a known problem? The problem was in various views of the table

ruby on rails - how to define a named_scope to roll up a has_many with nested models? -

पहले डेटा मॉडल: class फ़ोरम & lt; ActiveRecord :: बेस है has_many: विषय,: निर्भर = & gt; : नष्ट करें, आदेश = & gt; 'बनाया_एट डेस' एंड क्लास उपयोगकर्ता & lt; ActiveRecord :: बेस है has_many: विषय,: निर्भर = & gt; : नष्ट है has_many: टिप्पणियाँ,: निर्भर = & gt; : नष्ट है has_many: उत्तर, आश्रित = & gt; : अंत वर्ग विषय को नष्ट करें & lt; ActiveRecord :: बेस is_to: मंच belongs_to: उपयोगकर्ता has_many: टिप्पणियाँ,: निर्भर = & gt; : एंड क्लास को नष्ट करें टिप्पणी & lt; ActiveRecord :: बेस is_to: उपयोगकर्ता is_to: विषय has_many: उत्तरः, निर्भर = & gt; : अंत वर्ग को नष्ट करें & lt; ActiveRecord :: बेस is_to: उपयोगकर्ता के संबंध में: टिप्पणी समाप्ति तो उपयोगकर्ता विषय को मंच पर पोस्ट कर सकते हैं। वे फोरम में विषय पर टिप्पणियां भी पोस्ट कर सकते हैं। और वे टिप्पणियों के उत्तर पोस्ट कर सकते हैं। मैं उन फोरमों की एक सूची प्राप्त करने में सक्षम होना चाहता हूं, जिन्होंने विषय या टिप्पणियां पोस्ट कर या भाग में भाग लिया है। आप फोर...

rss - How to ping pingomatic.com with XML-RPC from a Rails app -

I want to automate sending ping to rpc.pingomatic.com but I can not find anywhere Sends RPC documents to send. I'm not worried about a fancy RPC generator. I'm just happy to link in a constant string for # {...} I need to know what to put it in. No problem, found this link:

c# dll not found -

I am writing a small AOL IM application in C #. I have all the DLLs I need and I am able to compile and run my app. However, when it runs, I get an error which says "Unable to load DLL 'Acccore.dll': The specified module was not found. (HRESULT: Exception from 0x8007007E)" I understand that this means that the acccore.dll file was not found, but I do not know why I tried to put it in C: \ Windows \ system 32 and it was also created in the debug directory when Project Visual Studio Is built in. Can anyone tell me how to apply this, where is this DL located? Thank you! I did some research and it seems that acccore.dll is a COM DLL file. This means that you need to run: regsvr32.exe C: \ Windows \ System32 \ acccar.dll In this registry, the COM DLL You will register your own You can use that DLL in the NET code. Check the link: So you will need to use P / invoke to use DL / DLL (I think there is some example code of AOL SDK Which you can use). ...

c - getchar() and putchar() -

उदाहरण में: #include & lt; stdio.h & gt; मुख्य () {लंबे एनसी; एनसी = 0; जबकि (getchar ()! = EOF) ++ एनसी; Printf ("% ld \ n", nc); } मुझे काफी समझ में नहीं आता। Putchar () ने चरित्र को बाहर रखा होगा, लेकिन यह क्यों है कि ईओएफ के बाद यह सभी पात्रों को बाहर रखता है, और यह इन सभी पात्रों को याद कहां है? धन्यवाद। इसे बफरिंग कहा जाता है और यह ऑपरेटिंग सिस्टम द्वारा किया जाता है। आम तौर पर यह लाइन बफरिंग करता है, जहां यह हर वर्ण को याद रखता है जिसे आप स्मृति में डालते हैं, और फिर इसे फ़ाइल में लिखते हैं, जब यह लाइन ब्रेक का सामना करता है यह संसाधनों पर बचाता है क्योंकि फ़ाइल संचालन अन्य कार्यों से ज्यादा समय लेता है। इसलिए हर एक चरित्र के साथ आउटपुट करने के बजाय, यह बफर में एकत्र करने के लिए वर्णों का एक गुच्छा का इंतजार करता है और एक बार में उन्हें लिखता है। यह ओएस द्वारा किया गया एक चालाक पैंतरे वाला है जो आप, प्रोग्रामर, को इसके बारे में चिंता करने की जरूरत नहीं है बस अपने पात्रों को एक-एक करके फेंक दो और ओएस को अपने तरीके से बाकी तरीके से संभालें। ...

ado.net - what are the OleDbTypes associated with Oracle Number and varchar2 when calling a function -

I am trying to map the OleDb parameter to the Oracle function. I was able to do this using the System.Data.Oracle Namespace, but found that it is depricated, so I thought I would rewrite it as OldDb to avoid installing the Oracle provider. I have defined the following Oracle function as an example: function getImagePath (AIRSNumber in number) returns varchar2 returns' \\ aiimg524 \ images \ Ofndrtrk \ 2010 \ 01 \ 0kvrv1p000lcs74j '; End; And I'm calling it using the following code: using (var command = new normal command ()) {command.Connection = Con; Command.CommandText = Configuration Manager. App settings [OTRAK_PHOTO_FUNC]; Type the command. Type command = command type Stored procedure; String Perm = Configuration Manager App settings [OTRAK_PHOTO_PARM]; Command. Parameter. Add (Parm, Olendi Type DCIL); // Map for Oracle number command. Parameter [parm]. Direction = Parameter Direction Input; order. Parameter [parm]. Value = ARSNumber; order. Parameter. A...

java - Displaying an IFrame over an Applet? Bad idea? -

In the code I'm working where an IFrame partially puts it on a Java applet I thought this approach There was a "hack" and it was not guaranteed to work correctly in the browser but no approach stops till now, but even today I still have an applet on Firefox 3.6 Do we have an iframe on an applet Should it display or is it a bad idea? Thank you! Yes it is a hack but it is not necessarily a bad idea. Of course this is best if the page can be designed to avoid the requirement of this hack, but this is not always the case *. This is a very well supported hack, which has been examined by many people by a large number of different browsers. If what you are saying is true then it seems that this hack is by now Is not as reliable. * Note: It is not possible that your boss / client does not use Java / to break the vision of flash / silverlight or designer, how the page should work.

sql - MySQL - Limit the amount of rows in a join? -

Not sure here for some guidance ... I have the following applause: site_text id site_id text date_added 1 1 ... 2010-02-02 10:01:00 2 1 ... 2010-02-02 10:01:20 3 2 ... 2010- 02 -02 10:01:00 4 1 ... 2010-02-02 10:01:40 5 2 ... 2010-02-02 10:02:00 Sites ID Site 1 Name 1 www.a.com 2 Www.b.com .... I am trying to select the last 2 rows in site_text for each site (ordered based on date). Can you do it with a question? Something like that, but does it only get 2 rows of each site? Select from sites_text include sites at st.site_id = s.id WHERE st.date_added & gt; '2010-02-01 23:32:04' by command s.id, st.date_added DESC Edit: Finally, I'm searching for lines 4,2, 5, 3. There is a clever solution with CTE, and rank () PG 8.4 in DATE_ADDED but because you are using mysql, the only thing I can think of is that it contains a very computationally complex query: - Select the top date for each site_id, site_ect by site_id, site_id by date_ added ORDER, ...

c# - WPF WebBrowser Mouse Events not working as expected -

I have a WebBrowser object in the WPB page and whenever I interact with the page I am trying to do something I am I have freely tried to use events associated with web browser objects, but they are not looking for frying. Below is a simple example of what my code is doing: webBrowser.MouseDown + = New MouseButtonEventHandler (webBrowser_MouseDown); with event handler: zero webbrowser_MouseDown (Object Sender, MouseButtonEventArgs e) {System.Windows.MessageBox.Show ("pressed"); } But when I click on the page and click inside the webbrowser, no message box is displayed. Forgiveness, basically I had said that it was a system. Control web browser instead of a form browser mouse event WebBrowser control, You need to hook the handler to the DOM event provided by the document displayed in the control by using the WebBrowser.Document property. An example of this is how to do it.

wpf - which tools to use for designing cooliris type applications? -

I want to use cooliris's 3dwall feature, to design an app to create an image, To see the effect more intuitive and interactive, I do not want to use Flash because it will slow the interaction speed on the desktop. At the moment someone can tell me about the choice 1). Physics Engine - Geox or ODE for physical effects like Bomtop 2. OpenGL or Direct 3D 3.) WPF (Windows Presentation Format) - What is the use of it Flash with ActionScript 3 is best for things like checkout for examples of coolierus application in Flash

c# - Need help for a more beautiful LINQ to SQL query -

साहसिक कार्य डेटाबेस के लिए एक T_SQL क्वेरी है: SELECT Name उत्पादन से प्रोडक्ट - WHERE ListPrice & gt; = किसी भी (चयन करें MAX (ListPrice)) उत्पादन से। उत्पाद / ग्रुप द्वारा उत्पाद सोशल सर्विसेज आईडी) मैं एक LINQ लिखने की कोशिश करता हूं इसके लिए क्वेरी: var groupMaxPricesquery2 = उत्पाद में उत्पाद से d.Products समूह उत्पाद द्वारा उत्पाद। ProductSubcategoryID में उत्पाद समूह उत्पाद समूह चुनें। मैक्स (प्रत्येक उत्पादक समूह = & gt; प्रत्येक उत्पाद IGroup.ListPrice); Var query = उत्पाद से dc.Products में जहां groupMaxPricesquery2.Any (listPrice = & gt; listPrice & lt; = product.ListPrice) उत्पाद का चयन करें। नाम; मैं इसे और अधिक सुंदर कैसे बना सकता हूँ (यानी उन प्रश्नों को एक साथ जोड़कर, या अधिक कुशल दृष्टिकोण)? बहुत बहुत धन्यवाद इनमें से कोई एक प्रयास करें: var query = उत्पाद में dc.Products को समूहमॅक्सप्रोसेसिस = dc.Products.GroupBy (p = & gt; p.ProductSubcategoryID) दें। चयन करें (g = & gt; g.max (item = & gt; आइटम ListPrice)) जह...

php - problem with imagecreatefromstring function -

मैं एक स्ट्रिंग को " imagecreatefromstring "फ़ंक्शन (मैंने नीचे कोड संलग्न किया है)। यह सबसे अधिक छवियों के लिए काम करता है, लेकिन जब मैं बड़ी छवियों को बदलने की कोशिश करता हूं, तो छवि का एक छोटा सा हिस्सा परिवर्तित नहीं होता (छवि का निचला भाग सिर्फ भूरा है) मेरा कोड है Php.net उदाहरण): $ data = base64_decode ($ रिकॉर्ड ['टेक्स्ट']); $ Im = imagecreatefromstring ($ डेटा); अगर ($ im! == गलत) {हैडर ('सामग्री-प्रकार: छवि / जेपीईजी'); imagejpeg ($ im); imagedestroy ($ im); } मैं भी स्ट्रिंग डिकोड करने के लिए एक पाइस में नहीं, बल्कि स्ट्रिंग को विभाजित करने का प्रयास करता हूं और फिर इसे डीकोड करता हूं। के लिए ($ i = 0, $ len = strlen ($ रिकॉर्ड ['पाठ']); $ i & lt; $ len; $ i + = 4) {$ डेटा। = Base64_decode (substr ($ रिकॉर्ड ['पाठ'], $ i, 4)) ; } ऐसा लगता है कि आपके डेटा को छोटा कर दिया गया है, भंडारण या पुनर्प्राप्ति पर या तो। सत्यापित करें कि आपके पास अपनी दुकान में संपूर्ण छवि है।

Facebook connect, FBML: How do i get the user id? -

I have a dead simple Facebook Connect app, which is actually nothing more than obtaining a name and profile picture from the user Does that link to my website but to show profiles to other users and the name of the user taken from Facebook and Facebook's name to their own database in their own database in the Facebook profile id Need to Tor - but how do I get the currently logged in user's user ID? Can it be done in a pure FBML? I should be as easy as possible for this; -) FBML is deprecated but XFBML is not. The easiest way to EXFBML and & lt; Fb: profile-picture uid = "logger" size = "squire" facebook-logo = "true" & gt; & Lt; / Fb: profile-picture & gt; Alternatively, the API / me? Fields = id, name, picture

c# - Databind InkCanvas Children -

In a WPF application, I have an object collection of objects (the area on an image) that I want to display and edit (size and status) at runtime I represent my objects with a rectangle I would like to use Ink Convav in selection mode, but it does not directly support data binding. Is it possible to tie a child an archive of an observation of an ear to Kanvava? Have you tried using the items control with the canvas set as the items control. ItemsPanel? After that you can tie the item's property to your Observable Collection. Then you can use ItemsControl.ItemsTemplate to move an item's property to the canvas. Left (right) property for full placement.

Publishing my WCF Service to my webhotel provider -

I created a small log service that I want to publish on a subdomain at my web site. But I do not have any problem - I then go to the [Build] menu and select [Publish], type in your FTP location and publish it in place no problem. The problem occurs when I have to use it, I try to navigate to the .svc file but get this error: This plan already contains the scheme Http There may be up to one address per scheme in this collection. Parameter Name: Item What am I doing? This is because of you IIS configuration has already been discussed:

linq to sql - Help with LinqtoSql -

I am using the repository pattern and I want to write a method that receives a role and the user's Iqueryable Returns to that role (I'm not sure if it will be the right way to get the right object or roll_id ...) In any case, how can I do this? I do not like the query structure, I like the Linux method structure. Users and roles There are many people in the table joining Users_roles. Personal Classes Datacontex DB = New Class Datacente (); Public IQueryable GetByRole {Return db.Users.Where ();} Maybe try something like this: Public IQueryable & lt; User & gt; GetByRoleId (role role) {returns db.UsersRoleJoinTable.Where (ur = & gt; ur.Role == role). Selection (ur = & gt; ur.User);} Where UsersRoleJoinTable Update : Selection (ur => ur.User ) Is saying linq. For each line "db.UsersRoleJoinTable.Where" (ur => ur.Role == role) "came back" by the user we are connected to the ErsRoleJoinTable object If you want a list of ...

.net - How to close the input stream of an IronPython engine executing a script? -

मैं एक IronPython इंजन को बहुत कम या तो बना रहा हूँ: var इंजन = IronPython .Hosting.Python.CreateEngine (); Var स्कोप = engine.CreateScope (); // System.IO.stream var स्ट्रीम के मेरे कार्यान्वयन = नए ScriptOutputStream (इंजन); इंजन। रेंटाइम.आईओ एससेटऑटपुट (स्ट्रीम, एन्कोडिंग.यूटीएफ 8); इंजन। रेंटाइम.आईओएससेटएररऑटपुट (स्ट्रीम, एन्कोडिंग.यूटीएफ 8); इंजन। रेंटाइम.आईओएससेट इन्पुट (स्ट्रीम, एन्कोडिंग.यूटीएफ 8); Var स्क्रिप्ट = engine.CreateScriptSourceFromString (स्रोत, SourceCodeKind.Statements); script.Execute (गुंजाइश); चर स्रोत निम्नलिखित सामग्री (अजगर बयान) के साथ एक स्ट्रिंग है: आयात कोड code.interact (कोई नहीं, कोई भी नहीं, {'__name__': '__console__', '__doc__': कोई नहीं,}) स्ट्रीम को एक विंडोज़ फार्म पर होस्ट किया जा रहा है। जब वह प्रपत्र बंद हो जाता है, तो मैं दुभाषिया को छोड़ने के लिए चाहता हूं। जाहिर है, मैंने पढ़ें विधि में धारा को बंद करने की कोशिश की: /// & lt; सारांश & gt; /// _inputbuffer से पढ़ें, जब तक कि कोई नई पंक्ति...

why Can't I save page from my ASP.net MVC website -

I created an asp.net mvc website, when I used to "file-> save page" Clicking the button in I try to save the browser and the page as a local HTML file, there is no response and failed to save. Why is this happening? This is almost certainly a problem with the web browser, do you have right click - & Gt; View source on page ?

deployment - How to set user account to run build runner in Team City -

I have a different build configuration, which used to deploy the created files. This configuration uses the command line build runner. I have a bat file that copies the output files into another computer share. Output files are prepared by other build configurations. The problem is that when the team city executes the Windows XP copy command, I get an access denied error. How can I set up a user account for the selected build runner? Or what is the correct way to deploy build files? You can configure TeamCity service account to change / write a share in a suitable privileged domain account Access Alternatively, roll your own copy of MSBuild function which impersonates on some additional parameters. , you can get it from work and then apply the executed () method.

.NET (C#) events - custom EventArgs question -

I have several C # custom events that are associated with the items selected in a tree, and then a context menu selected items Some triggers on the trigger I started building a separate EventArgs-based class for each custom event, to package the data needed for this event. Although in the previous view, I have realized that most of my custom event (probably all) must be given a list of the underlying items presented by at least the tree selection. Keeping this in mind, I wonder if any of the following is an acceptable practice? Use same custom events for many events; RGS-based classes (they only require an object list) Obviously, it should work, but some events from naming conventions It appears to break which event is used for machinery wires. Create a base class that is often needed by the object list, and then get additional classes because additional data is required. Maybe something else completely? Currently, I only have some custom events, but need to add...

android - Never got full 480*800 when using 2D orthogonal projection in opengl-es -

I'm experimenting with OpenGL E on Nexus One, there is a problem with full screen resolution. I could never get the absolute resolution of the Nexus One, which is 480 × 800, I am using an orthogonal projection and want to make a simple triangle with only the model model view matrix: @ Override public zero size perm It does not happen when we are attracted (GL 10GL, int width, intensity height) {/ * * set, our projection matrix, but changing the viewport size usually requires a new launch. * / Gl.glViewport (0, 0, width, height); Gl.glMatrixMode (GL10.GL_PROJECTION); Gl.glLoadIdentity (); GLU.gluOrtho2D (GL, 0, width, 0, height); } The coordinates for the triangle are: float [] coords = {// X, Y, Z. 0.0 F, 0.0F, 0, 200.0 F, 200.0 F, 0, 100.0 F, 0.0 F, 0,}; And I get the following results: This result is similar to emulator (480 × 800 race) and 1 Nexus. Obviously I did not get the full resolution (because the top peak of the triangle is already close to the right ...

c++ - Detect Window Move in Property Page (win32) -

I implemented a wizard using the property sheet. If a user enters something invalid then I show tooltips. This is a tracking tooltip, so I have to manually turn it on and off. Now I want to transfer the tooltip when the wizard page continues. It seems that the property sheet window only receives the WM_MOVE event from the Windows page is not there when there is a way to be notified in the page window, when the wizard is gone? property page is not related to its original window, property sheet - that's why He can not find the WM_MOVE message You can set a WM_MOVE handler in the property sheet and send it another message on the property page with postmassage or sent message. I suggest a message in the WM_APP category.

asp.net - Web Platform installer and sql express database setup -

I tried to install an amplifier with a web platform installer today. When I have database setup, I have to fill some information such as "DB Admin User / Password" and user user name / password. Using SQL Express I do not have a username / password (neither administrator nor user). How should I be able to install applications with WPI and SQL Express 2008? Actually I had this error while trying to install the log: DownloadManager error: 0: MS deployment exception: Microsoft.Web.Deployment.DeploymentClientServerException: Database 'AmpliFeederDB' could not be created. --- & gt; System.Data.SqlClient.SqlException: User failed to login for 'sa' User is not associated with a trusted SQL Server connection. I finally got it through command line and regd fix. HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Microsoft SQL Server \ MSSQL10.SQLEXPRESS \ MSSQLServer Login Mode should be Restart SQL Server Express Service. Then: In the comman...

security - Restricting WCF configuration in code -

We want to put WCF in the configuration file. At the same time we want to reject a request code to send the data on the unencrypted net if the data will be sent. Something like this: If there is a request that without the hassle of bidding https, then remove the exception. Is the service code aware of how it is being called? Edit The observations suggest that the question was not clear. What I am trying to do is "fix" the following statement: We install a service with basicet binding and https, then the administrator changed it to not use https The effect is that the data is unencrypted on the net. Are you self-hosting ?? The simplest approach would be: servicehost servicehost = new service host (typef (service1), "http: // localhost: 1234 / myserv / xml"); Foreach (serviceEndpoint sep in serviceHost.Description.Endpoints) {if (sep.Binding.Scheme! = "Https") {// just delete that endpoint, or an error signal}} Of course, when you ...

Zend Front controller -

My website (a single server) is using the front controller pattern as a single entry point and I think that Only one instance is this controller at any time (singleton pattern) $ frontController = Zend_Controller_Front :: getInstance (); I wonder if I have a concurrent request / traffic (some large number of eclipses) present at peak time, this single example of the controller will not allow the customers to have all the requests on a large scale without affecting the Times Times. Handle and handle. Why can not a pool of examples of controller be made possible by traffic? Thanks As I think, PHP is a new one for every request Creates the environment, so each request will be received in the sandbox within its own environment, for its own single single-front front controller.

embedded - Consuming a USB HID device in Windows CE 6.0 using c# -

I am working on embedded Windows CE project and accessing a USB HID device through one of the USB host ports I'm interested in I really need to read all the raw hidden wheel packets on the windows computer, I have a program using hid.dll, but as far as I've researched, there is no equivalent on the CE. I know that usbhid.dll is but I'm not sure that it is applicable to this situation. I do not like to write kernel level drivers because I want to do my coding in C #. Does anyone have the experience of consuming HID devices on Windows CE? I have no concrete experience with hiding, but USB port as a COM port You may be able to access the appropriate driver with DLL (device maker may have). In principle, you should be able to get the device's raw data packet with SerialPort class .

sql server 2005 - Designing Database for File Structure -

We are using the file system to store in the file. Now we change SOL2 to 5 to store it as Blob according to its requirement. Now, we need advice about the design for the table. I start with: FileID, ParentFileID, should be a folder in the same as file system, file, size, last date modified, etc. In the form, it is actually a good system for it already, and it is called file system - my first recommendation will be to see your needs again whether it is really required . However, you may have your reasons, so here's how I create a table: Filesystem (id, / / ​​fold field: 1 = file, 2 = folder, 3 = symlink, if necessary (?) Parent_id, // a folder file name id, modified, created, modified, created, file_data // blob) You will need a unique i (parent_id, filename) on Ndex if you want to emulate a real system They were If you require per-file permission, then I just duplicate the Unix approach with the owner / group / each permit - you also have to track the...

java - Jersey Resource class interaction? -

Therefore, I'm coming to the speed of jersey and there is a "best practice" question. How hard the resources contained in a file should be An example: I have an individual resource and an appointment resource. (I.e.: / person / 1 & amp; / appointment / 12345). For the list of all the appointments for the person, I can do anything like / person / 1 / appointments. So, my question is, should I implement any method getPersonAppointments () in the person resource category, or just get a reference for an appointment resource class and call that method, all of which The methods are said to return "appointments" together. I do not know whether it's right or wrong. Since there are many people in an appointment, and one person has many appointments, the situation is symmetric and You have to pierce the barrier between individuals and appointments.

c - How to correctly define char array -

Anyone should know that ASF_OBJECT_GUID_TEST to avoid compiling error in the line given below , Or where can I find more information about this? #define ASF_OBJECT_GUID_TEST {(four) 0x75, (four) 0xB2, (four) 0x00} zero test function (four * testChar) {int} int argc, char * argv []) {Char test [] = ASF_OBJECT_GUID_TEST; TestFunction (test); TestFunction (ASF_OBJECT_GUID_TEST); // & lt; - Code returns fails to compile this line of 0; } {(four) 0x75, (four) 0xB2, (char ) 0x00} is an initial list and does not itself have an array (or an indicator) in C8 9. You can use instead: #ff_obbcccidit idef "\ x75 \ xB2" defined Do

c# - Debugging .NET dll from script component (SSIS) -

There is a way to debug Net Del from SSIS scripts components that are being referred. Thanks You can add Visual Studio to any local process ( Or if the remote process.) > Open the DLL project in Visual Studio Select the attach process from the debug menu (or tools menu). Select the ... button next to the box labeled "Attach" to ensure that the code type / managed code is checked. Find the SSIS process in the Available Process list, I do not remember the name of the process by hand, but it should be x86, managed in type column. Check "Processes to show from all users" might be. Click Attach. Now you can break into debugger like you should usually hit the breakpoint if the debug symbols can not be loaded for any reason, open the module window, manage DLL Find, right-click and find "Load symbols"

javascript - Change dragging object and restore it after dropping it -

Please help me, I know how to use draggable and doppable classes, but I have no way to get it It can be found: I have a large image that I need to pull and drop. 1) Instead of roaming around a large-sized image By dragging, I want to use a small-sized image (I already have it, just change the bus. Rurt the src). 2) Once reaching the target div, I would like to hide the image of that drag and would like to show the large image again in its original location. The only restriction is: "Return: invalid" should apply. This is my code: $ ("# big_img"). Change the large image with draggable ({back: 'invalid', drag: function (e, ui) {//} with a small version of this small ($) .attr ("src"). Replacement ("/ large /", "/ Small /"); // Thanks. I think I have solved it: instead of using "help", I Instead I can get another image to use: $ ("# big_img"). Replacement ("/ large", "...

Mac vs. Ubuntu for C/C++ development? -

I am looking to buy a personal machine for development and I'm sure Mac or a PC on which I will run Ubuntu). My plans for the next year either I want to participate as much as possible in C / C ++ and networking. Should there be any disagreement between two OSs regarding C / C ++ system libraries and should go like this? If you have too much cash laying, then consult with the choice of Mac running Ubuntu a VM Otherwise a PC just gives about such flexibility. As far as the atmosphere of real development, will both equally good, but Ubuntu is just one and could be adapted to more Developer: Definitely definitely easier to get additional libraries, etc. These are also the IDE or tool series you want to use

sql server - insert in dymanic update - linq to sql -

I am developing a dynamic data app, in which I am trying to request an inclusion request during the update of the request I (Logging Change Request, Anything) Public Partial Category ProjectDataContext {Partial Zero UpdateRequest (Request Example) {RequestRevision RV. = New request request (request. GETOriginalEntityState (example)); This.ExecuteDynamicInsert (RV); This.ExecuteDynamicUpdate (example); }} This code error can not be done for the operation unit because this track is not being changed. " When I added code for conversion tracking public partial class ProjectStatusDataContext {partial zero UpdateRequest (request example) {bool tracking = ObjectTrackingEnabled; Object tracking enabled = true; RequestRevision RV = new request request (request. Getalative Antitistat (example)); //instance.RequestRevisions.Add(rv); - It does not work. Accelerate Dynamic Insert (RV); //this.RequestRevisions.InsertOnSubmit(rv); - Object tracking is not working; Enabled = tracki...

python - how to use array in django -

I have a DB table that has an integer array but how can I add this model to my model? Trying to write it using IntegerField but giving this error when saving it int () the argument should be a string or a number, not the 'list / Pre> How do I add this model to my model? I am using this field in my views.py so that I have to add it to my model. any suggestion? You may be interested in using They found a list of integers in this way: my_ints = [1,2,3,4,5] And such a model: class MyModel (models.Model): Value = CommaSeparatedIntegerField (max_length = 200) Then you my_ints can be saved in MyModel like this: m = MyModel (value = ',' .my_ints)) m.save ()