Posts

Showing posts from March, 2015

internationalization - Internationlization Java -

Is there any way to overwrite basic values ​​for internationalization? Example If I get a date in the EEEE format, then it will give me Sunday , but I need something like Saturday . "EEE, DD MMM, YYY" gives me Sunday, March 27, 2011 I "EEEE, MMM dd, yyyy" Give me the sun, the string used by DateFormat is defined by DateFormatSymbols an object of the object , which contains the setXXX methods, then you can try: dateformsmolds englishSomboles = dateformsimbols.getstation (locale.NGLISH) ; Date formatsmables MySmalls = (DateFormatSmumbles) EnglishSombols Clone (); String [] Days of the week = mySymbols.getWeekdays (); Work day [calendar] UNDA] = "Sunny"; MySymbols.setWeekdays (working days); Date Format F = New SimpleDormat ("EEEE, DD MMM, YYYY", MY SYMBOS); System.out.println (f.format (new date ())); This shows for me: Sun, March 27, 2011 .

Is it possible to roll your own syntax sugar (like do-notation, or arrow-notation) in Haskell? -

Well, the question is self-prudish. Suppose I want to implement some special syntax for fun. Is this possible? What equipment should I use? There is no such meta-syntax in the Haskell standard, but in GHC you can use GHC "semi-syntax" Quotes "features (which are different from the GHC's" Template Haskell "feature) and create almost any notation. This is quite low, and mainly for both Viki and Implementer, both of these points for original publication: People have used quasi-quotes to embed XML syntax, regular expressions, special string and text forms, and "JMacro is a library for programmatic generation of JavaScript code."

iphone - When to subclass UIViewController for custom subview? -

I have applied a custom code as the UIViewController subclass, but this could possibly be implemented As could be the UIView subclass. When should I subclass UIView instead of UIViewController for a subview? UIViewController ? There are any drawbacks for subclassing, when I need something to go on important logic, I In addition to this, if I am looking for some behavior that you get from the UIViewController , it is presented in the original or in the navigation controller, in addition to a UIViewController subclass. do. If you are doing something quite simple or light, then UIView subclasses is usually enough. I think that the custom buttons and table view cells make me the most often use is done. In my experience, I can see the UIViewController from UIView subclasses, but this may not be the best, it just happens to me straight-up Instead of using scene controllers, it feels a little more comfortable.

python omnicompletion in vim not working -

I'm trying to use vim on my dragon journey I think my The problem is the same but because he did not find any solution, which I am posting again. For some reason I can not get an integer to work in Python, with Python. I have set fabolous and made tag list. So I get an integer with R But not some observation for dragon: : echo & amp; Omnifunc print pythoncomplete # complete . the . There are r tags in the Vim / doc / tags> file, but there is no python (but the reason is that python is supported by default?) If I use import math I can auto-complete my .py file eg Ma to math But no method is found? So in conclusion I'm really surprised: - / - and if anybody can help ... It appears that the default objectification for the dragon ( pythoncomplete # Complete ) is not known about the build / keyword. When you type math on Ctrl-X Ctrl-O . (If you have imported "Math") you should see the available math. You need a plugin to do th...

python - Django IntegrityError -

I have a small project that I'm working on. I am writing a DJenga database to keep some data. I have a lot of people I am using my own manager and am adding ways for the committee. I have one that connects various tasks to the users in the list. These items can be assigned to many people and so on. When I do this, I am getting a Integrity error , what is the main reason? I'm getting the correct error ... items_id can not be tapped I appreciate the answer to fix it. There is an explanation about how this exception is thrown. I have been asked to catch it. But I do not dabble like those things until they should be there. Please thank you! What I need to do is clear my database to a python manage. Py sqlflush everything was fine right afterwards, then I added South to help with migration in the future. I will give careful advice because sqlflush will return your database back to the last sync_b status.

spring - j_spring_security_check not available. Please help with Spring3 login -

I'm trying to write something with safety in Spring 3. I'm trying to use the default login screen That's what everyone says that spring will be displayed for you. But two days after trying and receiving the error: / Spring-security-login was not found I left my code and changed it Given: & lt; Http auto-config = "true" & gt; & Lt; Intercept-url pattern = "/ friends / **" access = "ROLE_USER, ROLE_ADMIN" /> & Lt; Form-login login-page = "/ login.jsp" default-target-url = "/ friends / add.html" authentication-failure- url = "/ login.jsp? Authfailed = true" /> & Lt; / Http & gt; And I've added my code to login.jsp which I think I made right. I am getting this error now: HTTP status 404 - / MySpring / j_spring_security_check message / MySpring / j_spring_security_check Description The requested resource (/ MySpring / j_spring_security_check) is not available. ...

php - APACHE mod_rewrite change variable name in query string -

I am trying to change a variable name in a query string, so it is usable by my PHP code. The query gets a post from the external system, so I can not control that it is posting a variable name with one location in it. And it makes it impossible for me to use the PHP $ _ GET function. Change me from variable% 20name to ? New1 and I need to convert variable 2 to new 2 Many variables have been passed in the query, but only these two need to be changed . ? Variable% 20name = abc and variable2 = xyz need to end as ? New1 = abc and new2 = xyz In addition, they will not be in this order and can be more variable then? Variable% 20name = abc & blah = 123 & amp; Blah2 = 456 & amp; Variable 2 = xyz ? New1 = abc and new2 = xyz or ? May end as new1 = abc & blah = 123 & amp; Blah2 = 456 & amp; New2 = xyz Will be cured in any way! Please pars me the query mod_rewrite The string with mod_rewrite is a bit of a pain, it should be done...

c# - Listview Details view not displaying anything -

I am trying to use the description view mode in a list view's winforms, but none of the items displayed Not happening The list view is increasing itself because the objects are added, but nothing is being displayed. This item displays items in list mode, but not in description mode. I got the following code, any thoughts? forms_listView.Columns.Add ("URL"); Forms_listView.Columns.Add ("status"); and ListViewItem lvi = new ListViewItem (); Lvi.Tag = form; Lvi.Text = form.URL; Lvi.Name = "URL"; ListViewItem.ListViewSubItem subItem = New ListViewItem.ListViewSubItem (LVI, "Status"); SubItem.Name = "status"; SubItem.Text = "" + form.Position; Lvi.SubItems.Add (All Items); Forms_listView.Items.Add (LVI); I found my problem I listview.Clear () Calling the method that says in the documentation that it removes all the objects and all the columns, which were not producing any items to display.

xml - How to select an attribute using nodesForXPath (NSXMLDocument) -

I want to select XML element using Xpath in an XML document. My XML document is an example of NSXMLDCast. Here is an example of an XML document: & lt; Rootnode & gt; & Lt; Mynode myattrib = "getMe" & gt; & Lt; / Mynode & gt; & Lt; / Rootnode & gt; My XPath is something like this: // mynode @ myattrib this value is "getMe" according:). When I try to: [xmlDoc nodesforx path: @ "// mynode @ myattrib" error: & amp; Error] ; I get the following error: NSLog (@ "% @", error); Output: XQueryError: 3 - "Invalid token (@) - // mynode @ myattrib" in line: 1 What should I change to do this work? Is the @ symbol used in any other way? Add the first slash @ as: // mynode / @ Myattrib

coffeescript - Check nested objects with an array of keys -

I have got an array with keys for a series of nested objects, I need to make sure that First, I set a value after that, there is an object. This code is working but only that I can be bothered to repeat it. How can I do this again without the number of keys in the array n without switching this pomegranate? Goal [1]] = {} When 3 Objects [Goal [0]] [Goal [Target] [Target] [Goal [1] [Goal [1]] [target [0]] [target [0]] [target [1]] [target [2]] [goal] [4] if object [target [0]] [target [1] [Target] [target] [target] [target] [target] [target] [target] [target] [target] [target] [target] [target] [target] ] [Goal [1]] [goal [2]] [goal [3]] [goal [4]] is undefined object [goal [1]] [goal [2] [] [Goal [3]] [Goal [4]] = {} When 6 Object Objects [Goal [0]] [Goal [1]] [Goal [2]] [Goal [4]] [Goal [5] ] Undefined object is [goal [0]] [goal [1]] [target [2]] [target [3]] [target [4]] [target [5]] = {} warning unwanted code from top of my head but should work (currently [T]? = {}) ...

Content Assist not working in applicationContext.xml with Java Project with 'Spring Project Nature' in eclipse -

I have a simple Java project using Spring 3 and Hibernate 3. I use the "Spring Project Nature" Spring IDE application.context.xml file in the src folder of the project. Material Assist feature of Eclipse 3.5 does not appear to work in applicationContext.xml: The square attribute of the Bean tag inside of my Java project includes packages and sections Can not find. This can not be assisted with any attributes, such as searching for existing beans in applicationContext.xml for special Ref. Project properties & gt; Spring & gt; Bean Help & gt; Config set & gt; Add new group (contains all configuration files). Then open applicationContext.xml. If content support does not work, try opening the file related to Spring Conflict Editor. If the project properties & gt; Spring does not exist in step 1, install: Springs ource Tool Suit: Core / STS & gt; SpringSource Tool Suite (Required) Additional Extensions if needed, e.g. AOP, Auto...

javascript - jquery lightbox issue -

I use and I get an error: $ ("# slider") .easySlider is not a function Any idea, what can this be? All the files have been loaded correctly, I think that when I click on a picture, I get a bigger version ... any ideas? The issue you are describing comes from the file included on this line: & lt; Script type = "text / javascript" src = "js / customslide.js" & gt; & Lt; / Script & gt; Because JavaScript has been disabled due to your jQuery error in adding lightbox, so .lightbox () has never been added. When you remove that line, see it. Optionally adding a plugin if it is really necessary: ​​ In addition, in your comments for the lightbox code, you know That you can see the in the lightbox with anchor & lt; A ... & gt; & Lt; / A & gt; Adding Lightbox to , Rel is attribute, but you are not just adding your Lightbox to all anchors in your code !! Due to your existing HTML, you can call it $ ...

iphone - How Do I Add Social Features To App? -

This question may be slightly broad, so it is important that the answer will not be as specific as I ended up developing almost a basic app, but I want to add a social aspect to it. Specifically, I want a follower / follower type feed system which is seen in instagram, intonow, etc. I looked at Google but could not find more information about adding this kind of functionality to the app and you were hoping that people can tell me in the right direction First select a social feature and apply them at one time. Do you want your app twitter? Do you want to update Facebook status? Do you want Foursquare? Once you choose one, you can ask a question on this issue.

ASP.net image editor with layering -

I need an image editor that I can add to my ASP.NET project, an image editor for DMS In the form, so that the user can open the selected image with the desired editor and then edit and add the new layer (i.e. its signature). I need something like this, but the problem is only going online with the latter! Pixel now offers to work with which you can use in your site. They are also hosted on YouTube which you can see.

ruby - How do I avoid trailing empty items being removed when splitting strings? -

मैं कर रहा हूँ: "b :::: c :::"। परिणाम (':') परिणाम: ["b", "", "", "", "c", "", "" यहाँ वास्तविक समस्या क्या है? "# वास्तविक मैं कैसे प्राप्त कर सकता हूँ मुझे क्या उम्मीद है। सीमा कोड> .split (पैटर्न = $ ;, [सीमा]) । अगर सीमा को छोड़ दिया जाता है, तो शून्य क्षेत्रों को पीछे छोड़ दिया जाता है आपको एक नकारात्मक सीमा "b :::: c :::" split (':', -1,) प्रदान करने की आवश्यकता है लेकिन ध्यान रखें कि यह सरणी के अंत में तीन "" मान वापस करेगा। परिणाम: ["बी", " "," "," "," C "," "," "," "]

html canvas text size not accurate -

I am trying to center the text in a box, but ctx.measureText () Not returning the exact value when the code is run down, the text is not centered correctly. It runs under Google Chrome for me, but I could not find it to run under jsfiddle (sorry) You accidentally use the string instead of font Text every time! There is only one argument in the measurement text and you are giving it two. It should only be width = ctx.measureText (text). Wide; Here it is in jsfiddle:

Tail call optimization for fibonacci function in java -

I was studying about cell call recurrence and mentioned some documents that came in. Sun Java does not apply tail call optimization. I have written the following codes to calculate Fibonacci numbers in 3 different ways: 1. Erectorative 2. Head recursive 3. Tail recursive Public class Fibonacci {public static zero main (string [] args throws an interrupted expression {int n = integer. Pierce (Argos [0]); System.out.println ("\ nn's value:" + n); System.out.println ("Using \ nchanges:"); Long L1 = System Nano time (); FibonacciIterative (n); Long time l2 = System.nanoTime (); System.out.println ("Running Time =" + (L2 - L1)); Println (fibonacciIterative (n)); System.out.println ("Use of Tail Riction:"); Long L3 = System Nano time (); FibonacciTail (n); Long L4 = System Nano time (); System.out.println ("tail recursive time =" + (L4 - L3)); Println (fibonacciTail (n)); System.out.println ("Using \ n Recurring:"); Long ...

dojo - Why jQuery gains much more popularity than other JavaScript libraries? -

संभव डुप्लिकेट: मैंने हाल ही में jQuery, प्रोटोटाइप और डोजो के बारे में कुछ पढ़ा है मेरे लिए, jQuery का $ उपयोग करने में वास्तव में सुविधाजनक है हालांकि, अन्य पुस्तकालय बहुत समान API प्रदान करते हैं। तो मुझे थोड़ा आश्चर्य हुआ जब मैंने पाया कि 70,000 से अधिक स्टैक ओवरफ्लो पर जेपी के बारे में प्रश्न हैं, जबकि दोनों डोजो और प्रोटोटाइप 2000 से कम हैं। क्या इन पुस्तकालयों की लोकप्रियता में इतनी बड़ी अंतर है? सीखना जैसा कि लेकिस ने कहा, निडर तथ्य यह है कि अधिक लोग jQuery का उपयोग बहुत ही बड़ा लाभ है। जब सीखते हैं कि jQuery में अधिक संसाधन ऑनलाइन हैं, और जब आप इसके लिए पूछते हैं तो अधिक सहायता प्राप्त होती है। फिर कई प्लगइन्स हैं, जिन्हें आप या तो इसका फायदा उठा सकते हैं या इसके बारे में अधिक जानने के लिए उपयोग कर सकते हैं। , jQuery के पेज में स्वयं का एक बड़ा सौदा है का पालन करना आसान दस्तावेज़ यह एक महत्वपूर्ण विशेषता है, यह सचमुच प्रत्येक संपत्ति / पद्धति की रूपरेखा के माध्यम से प्रभावी ढंग से चला जाता है ... और दस्तावेज़ीकरण पर समुदाय की टिप्पणी में उपयोगकर्ता ...

objective c - How to write a cydia app -

I'm thinking about hooking some iphone feature in the form of a cydia tweak that runs on iPhone startup and SMS or call Was there. So I wanted to know where I should start: How to write a cydia application (xCode? Toolchain? Which Toolbox? How to Install it? ) Where can I find a document about the hooking methods of mobile substrate? How can I star my application on iPhone startup? I would be happy if someone Itemprop = "text"> I know there are other ways to do this, but if you have a licensed iOS developer, then you can just sign the code in your app and put it in one of your registered test instruments. Those who follow the jailbrokes and follow the steps given below: Download iFile from the Cydia Store. I would suggest paying for it, but you can find other sources where you can get a broken version. Then use iFile on the device and go to the following directory: var / mobile / applications / YourAppName Select yourAppName.app folder Zip fil...

jquery - I need a number of different full-page DOM samples for my qUnit test suite -

I have a small amount of JavaScript to test, but it runs on the entire page, for example, numbered Finding elements based on IDs like "# T34" I need to create several different pages to test various possible configurations. I think I used to make a DOM tree for testing to use Use of kinet-fixtures Can do, but each page configuration should be a full page, because it will get the elements based on the id. Various qUnit tutorials seem to focus on simple arithmetic performance simple examples of pure JavaScript functions. I need help understanding how to create a real test suite using many different files. Update with more information: I am the owner of the Python Code Coverage tool. This HTML report generates jQuery in order to add some interactivity to these reports in them. I'm adding too much, and want to automate the test. HTML looks like no servers are included, these are files written in just a local directory, so there is no chance for Ajax. I would like to r...

javascript - class as an element in an object -

Hi, I'm trying to read html to get some data from Yahoo stock, and I want to read it What is that class? So what do I have here? data.query.results.span [0] .strong.class My problem Javascript does not like class there and takes it as a special Key word or something when I do data. Some .results.span [0]. Strong content works fine. Strong first class has 2 elements inside the second material. Is there any way that instead of looking at JS in the classroom instead of a keyword in that JSN object? Thanks data.query.results.span [0] .stong ['class'] class in a reserved future The keyword is, and now most modern browsers will bomb me, I know Safari does not like it.

visual studio 2010 - NuGet + Package Manager Console -

How do you obtain documentation on packages that you install / uninstall? On every site I know that there is some information about NuGet or Package Manager console that shows you how to install / uninstall the package. It looks trivial, but you may think that some console commands that say something like a description-package or something, or maybe the author can leave a link in the description on the newsletter website, but no one else. Nothing, nada, zip Can someone take me out of my misery and tell me that there is no official document structure for the package or there is a command where I can see available commands? This will give you a list of the commands available in NuGet: Get- Command - Module Newsletter. Visualistio This is a parsed command returning to a type of list. Then you can help with a special order: Go-Command -Module Newsletter. Visual Studio |% {Help-Received $ _ Name | Choose name, summary. Format-Table-Auto You can make a nickname for...

math - Reflection? How do I do it? -

Image
It's on my head, can someone tell me better? I am making a game of 2D Breakout Fighting, so I need the ball when it will be able to display the wall, paddle or enemy (or kills any enemy). All their formulas are like this: x_1 ^ '- x_0 = v-2 (v · n ^ ^) n ^ ^ And I can not fall it (What does it mean or x_0? Or ^^?) It is easy to understand the formula for reflection if you Think about the geometrical meaning of the "dot product" operation. Dot product is defined mathematically between two 3D vectors But there is a good geometric interpretation in it a and B If two vectors are pointing in the opposite direction, the length of the launch of a is b with a negative signal, b is multiplied by the length. something like The thing which is clearly explained by using this definition and it is not clear that you are only looking at the formula, for example, that the dot product of two vectors does not change if the coordination system ...

Is there a parsing program that can verify my C code is documented clearly with proper comments? -

What language is a parsing program that checks any code even if it is clearly documented with proper commentary or not? is a useful tool that will parse your code, remove comments, and create HTML. In response to your question, it produces warning for non-documented symbols and standards, so that it can be used to verify that you have correctly documented your source. You can also include the headings of the headings, sections and sub-sections to provide dot files, for example (all doxygen comments start with / ** ): / * * This is the description of this variable * / variable variables; / ** This is a description of this function. * @Ruran * = 0 Success *

datetime - PHP time ahead by one day -

I have some functionality that depends on whether or not it has happened a while ago. Currently, I do something like this: $ hike_time = strtotime ($ month. '' '$ Day.' / '. $ Year.' '. $ Start_time); ($ Hike_time & lt; mktime ()) {// Do stuff :)} But as long as I do not change the functionality, I have to wait a day or twelve hours (now Not sure yet) How can I make an ammium (1) +1 day or 12 hours? In the context of UX, how is this kind of incident-based UX Quirks usually controlled? You strtotime () . $ yesterday = can use strtotime ('+1 days'); Var_dump (date (DATE_RFC850, time ()), // string (30) "Monday, 28-March-05 05:48:47 UTC" date (DATE_RFC850, $ tomorrow) // string (31) "Tuesday, 29- March-11 05:48:47 UTC "); .

dataset c# datatable -

A stored procedure returns several tables, the result set is applied to a dataset. Can I access tables in the dataset with the names of each table? For example: - Dataset DS = Selection (despatch_Packing_ID); 4 tables in the dataset. Let me know dtSales = ds.Tables [0]; As is done to reach the table How can I use DataTable as DataTable dtSales = ds.Tables ["Sale"]; // is the sales table from which I get the data Thanks in advance. By default, the table name generated by the dBDataAdaptor in the table, "Table 1", "Table 1," and " Table 2 ", ... You can override names. For example: DBDataAdapter adapter = ... ... adapter. Table mapping Add ("table", "sale"); Adapter.TableMappings.Add ("Table 1", "Customer"); ... adapter. Filled (myDataSet); ...

linux - emacs cut paste -

In emacs, when I copy / paste (kill and yank) in other applications, it often does if I do this through keyboard shortcuts, but do not work, but if I By using the mouse and selecting the command under the Edit menu, then works. Is this a bug, or is it intended? By the way, interestingly, emacs works in drag and drop but emacs is not working out. I am using GNU emacs 23.3 under gnome at Ubuntu Linux 10.04. This was the same from previous versions of emacs and Ubuntu Linux. You should probably read this Emacs Wiki: I think the most important is! In short: (setq x-select-enable-clipboard t)

.htaccess - redirect http to https via htaccess only for few pages -

I have an SSL-enabled website Problem: I want to Http will redirect only to https for checkout pages. I am using the following code for redirection: at RewriteEngine RewriteCond% {HTTPS}! (. *) Https: //% {HTTP_HOST}% {REQUEST_URI} on RewriteRule but all this redirects http to htaccess. What do I want: I would like to put some conditions on the hattage so that only checkout pages will be redirected or else there will be no redirection. You must capture requests for your checkout pages on port 80 RewriteEngine On RewriteCond% {SERVER_PORT} 80 rewrite% {REQUEST_URI} your-checkout-uri-pattern RewriteRule ^ (. *) $ Https: // your-sslized-site / $ 1 [R, L]

testing - Is it unwise to fuzz-test with a cryptographically weak pseudorandom generator? -

While working on a large software project, I often used fuzzy testing as part of the test test only shown When the input reaches a certain size or size I have most commonly done using standard random number features which are being bundled with programming language that I am using. Recently I started to wonder, to ignore the advantages or disadvantages of fuzzy tests, whether it is good to use a non-cryptographographie safe pseudoracom number generator while fuse testing. Weak random number generators often display those samples that separate them from true random scenes, even though those patterns are not clearly obvious. It seems that using a weak PRNG, a fuzz test will always have some hidden bugs May fail to trigger, which are shown only in some circumstances because the pseudora random number It may be related to each other that do not trigger those situations at any time. > Is this undoubtedly the use of PRNG for the EFZ test? If it is theoretically wrong to do this, is ...

c# - CF UI design - How best to display validation failures -

I'm thinking of using a message box to display verification failure messages in the Windows Mobile app. My thinking is that I am currently working here that there is such a limited screen rest that I am mainly struggling to dedicate one area to display the failures of these beliefs for a specific area. I'm a bit worried about the applicability factor because the user will force the verification message to close the verification message box after failure. Does anyone have any ideas on this approach or experience that will suggest that there is a better way of doing this? I know that the compact structure is not available within. But it may be a starting point on how to do it. Like Errors I show a simple icon next to the input box, which shows something incorrect because of the fact that you do not have a mouse cursor for it, In the case of clicking on, I show a solid error message in the text box below which will hide again if you just click it. Then the user gets ...

javascript - Async requests in PHP -

I need to generate a request for several APIs, get answers from them, and then create a report. Something like this: foreach ($ api_array $ api) {echo $ api; $ Responce = file_get_contents ($ api); If echo ($ responce) echo 'lt; Br / & gt; '; Else Echo 'failed & lt; Br / & gt; '; } It is clear that when going continuously with each other, it will take a lot of time to answer each service. Is it asynchronous, like in javascript? Thanks a lot! You can use it for

asp.net - asp .net 4.0 membership with facebook login -

We are going to develop web applications in asp .net 4.0. In this, we have to apply the application to the AP. Using a net subscription provider. We want to integrate Facebook login with this application. Users can log in to this application using Facebook credentials and it will be certified in our application. The app will allow you to invite Facebook friends from this web site. Please give me a suggestion on this! Is there any Facebook API available in this or any other way? You can use this library to fully integrate your ASP.NET application with Facebook. Do: Some articles start with:

html - jquery checkbox like gmail -

Image
I'm searching for a component like this (from Gmail) Can I do something with jquery? Result This "probably" checkbox here is probably surrounded by a div or span with a navigator inside. When clicked on the surrounding container, it is triggered to show the drop down.

Execute JQuery Validate on Given Condition -

If it meets certain criteria, is it possible to call the JQuery validate function? Like I have some radio buttons If yes, then I want to validate. If someone can tell me how anyone can get will be greatly appreciated. There are jQuery form validation plugins, but if you need something simple, this is all form input Validate: $ ('# myForm'). Submit (function () {if ($ ('$ btn yes', this) .is (': checked')) return true; else {displayError (); return back; // stop form from submitting}} );

github - Remove references of physically removed files from remote Git repository -

I have removed many files from my GIT repository (from many different directories) physically I can still see their references and if I commit to Geethhub, the old files are still there I am from a remote repo server (GitHub) as well as from my local PC I need to remove references I How do I get these references from the repository Can i You need to create a "comma" (git's glossary for a new version) The files have been deleted, and then press GitHub. I think if you type git status , you will see something like this: # MasterCard # has changed but not updated: # (What will be done for "git add / rm and lieutenant; file & gt; ... ') (# GIT checkout - to discard changes in the work directory. . ") # Deleted: old- file.txt # deleted: another old file.txt #deleted: unneeded.c if git is located If there is no other change listed in the output of T , then it will be safe to: git add -u git commit -m "delete old files" ......

r - Keeping trailing zeros -

In R, I want to keep behind zero. For example, if I type round (5.2, 3) I should output the output to 5.200. Can you help me if it is for printing purposes , sprintf is what you are doing later: & gt; See sprintf for formatting details. "

sharepoint - Deployment steps takes much time -

I develop a sharepage project on win 7. My computer has 4 GB RAM and a powerful processor. But the deployment steps take a lot of time. Overall, it takes around 7 minutes to deploy the solution. Nobody knows what can be the problem in it? What is your Windows Experience Index for your computer? (Get started - click on "Windows Experience Index", then run Appraisal) Please list all the numbers. This can help you find out which parts of your system may be slow. If this is your disk (which is likely - this is usually a barrier to SharePoint), then you run SharePoint from SSD. You can try to shut down some SharePoint services from central management (if you are running everything including search, visit services, Excel services etc., but you are not using them , It can help stop people who are not using them). What other applications do you run on a computer? What other services are running on the computer? You can try to stop something to see if it helps in spee...

c# windows service process.start -

मैंने एक विंडो सेवा बनाई है मैं ओन्स्टार्ट (स्ट्रिंग [] आर्गेंस] विधि में प्रक्रिया। स्टार्ट - दूसरे एक्जिक्यूटिव को खोलने के लिए इस्तेमाल कर सकता हूं। क्या यह काम करेगा? मैं एक विंडोज सर्विस एप्लीकेशन बनाना चाहता हूं जो एक निष्पादन योग्य फ़ाइल खोलता है (खराब उदाहरण सीएमडी जहां मैं नोटपैड फ़ाइल खोलने के लिए अपना खुद का आदेश जोड़ सकता हूं। आपको सेवा को डेस्कटॉप (सेवा एमजीआर में सेवा प्रॉपर्टी के अंतर्गत) के साथ इंटरैक्ट करने की अनुमति मिलनी होगी, लेकिन कभी-कभी इसे बुरा माना जाता है। ध्यान दें, इसके कारण विंडोज 2008 और इसके बाद के संस्करण में इसे मुश्किल बना दिया गया है।

java - Is it possible to exec a command from an applet? -

मैं यह करना चाहता हूं: रनटाइम आरटी = रनटाइम.टाट टाइमटाइम (); {Rt.exec ("नोटपैड") का प्रयास करें; } पकड़ (IOException ioe) {io.printStackTrace (); } एक ऐपलेट के अंदर (जिसे स्थानीय एचटीएमएल वेबपेज से फोन किया जाता है) क्या यह संभव है? मुझे जावा में एक सुरक्षा मॉडल के बारे में कुछ याद है लेकिन मुझे यकीन नहीं है। कृपया इस क्यू एंड amp; ए: आपके प्रश्न के उत्तर के लिए।

analytics - MongoDB For Trending Data -

I have an app in which by adding customer field Are there. We are considering tracking data for these custom areas. I was thinking about storing data in a format that contains the changes listed on the object. {_id: "id", custom1: 2, changes: {'2011-3-25': {custom1: 1}}} It should be clearly below the maximum document size (16 MB) which I feel is within the amount of changes that we have to make. Another option will have several records for each object change : {_id: "id", custom1: 1, changeTime: '2011-3-25'} There is no document restriction, but To get the full change set for the record More work will be required, but more will be recorded. Who would you like to choose? I would like to go down a document root if this will stay within the 16MB limit like this , To read this record, only one is read and all its changes are made, which should be darn very quickly. Changes listed in the document seem to be a nat...

c# - How to build a new NUnit constraint -

I have an extension extension that gives a given value to one of the values ​​in the list. Public stable zero IsEither & lt; T & gt; (This T value, parameter T [] permitted value) {EqualConstraint isInAllowed = null; Foreign currency (allowed in allowed value) isInAllowed = isInAllowed == Faucet? Is.EqualTo (allowed): isInAllowed.Or.EqualTo (allowed); Responsibility That (value, is in). } I am surprised that there is no other better / elegant way to do this, especially NUINT restriction makers, restrictions, expeditions, restriction operators, etc. NUnit has a collection shape that should help. If you are stressing that there is one more item in the collection of items, then you can try to do something like this: Public static zero IsEither & lt; T & gt; (This T value, parameter T [] permitted value) {CollectionAssort.Customized (acceptable value, value); }

php - How to generate a line graph based on results within a MySQL database -

I have to generate a line graph based on the results of a MySQL database, any thoughts? I should also point out that I do not have the authority to set things like jigraph. You can use the GD library, right? You should be able to use that to graph a line in the form of an image, you must define a scale and everything and find out how to map the X and Y coordinate of the image, And then to plot that number on the data graph and imageline () to draw the line for it. This will be the most consistent method. Java can be turned off and the flash is not universally supported.

visual studio - How to change the Icon of a MFC-Application without changing each sub-image? -

When I open the MFC-project's app icon with Visual Studio 2008, 13 images (different sizes, different sizes, Different color palette). Thank you! I like to use it with you when you open the .ICO file, you will be prompted to Which image to open - only select the largest / high-bit image Make your changes, and then save. You will be prompted for which size and interviews are saved - Select the same list which was present in the original icon. Using this method, you will automatically get a scale and detahide icon on small sizes. A designer will actually tweak the mouse in every shape to get the best shape, but for most applications this technique makes some useful.

activerecord - Rails find_or_create_by where block runs in the find case? -

गतिशील खोजक विधि द्वारा ActiveRecord find_or_create_ मुझे एक ब्लॉक निर्दिष्ट करने की अनुमति देता है I दस्तावेज़ीकरण इस पर स्पष्ट नहीं है, लेकिन ऐसा लगता है कि ब्लॉक केवल बनाने के मामले में चलाता है, और नहीं ढूँढ मामले में। दूसरे शब्दों में, यदि रिकॉर्ड मिल गया है, ब्लॉक नहीं चल रहा है। मैंने इसे इस कंसोल कोड के साथ परीक्षण किया है: User.find_or_create_by_name ("एक मौजूदा नाम") क्या करें | u | "मैं एम ब्लॉक में" एंड डालता है (कुछ भी नहीं मुद्रित किया गया था)। क्या दोनों ही मामलों में ब्लॉक चलाने का कोई तरीका है? जहां तक ​​मैं समझता हूं ब्लॉक हो जाएगा निष्पादित अगर कुछ भी नहीं मिला इसके उपयोग का उपयोग इस प्रकार दिखता है: User.find_or_create_by_name ("पेड्रो") करना | u | U.money = 0 u.country = "मेक्सिको" डालता है "यूजर बनाया है" एंड अगर उपयोगकर्ता नहीं मिला है तो यह नया उपयोगकर्ता "पेड्रो" नाम के साथ आरंभ करेगा और यह सब सामान ब्लॉक के अंदर और नए बनाए गए उपयोगकर्ता वापस आएंगे I अगर उपयोगकर्ता मौजूद है तो ब्लॉ...

firefox - XUL: How to edit popup's position -

I am developing a simple Firefox addon: a button with popup that shows an event with a classical mouse. Does anyone know if it is possible that the status of the popup is determined? ex: top right to bottom thanks Have you seen? Also, see a glance. This is also an example.

c# - how to read TextArea value and model in HttpPost in MVC2 -

I'm new to MVC2, so sorry for the stupid question. I saw a good answer, but I could not find it. So my question is: I have seen: & lt;% @ page title = "" language = "c #" masterpagefile = "~ / view / share / Site .Master "Inherits =" System.web.mvc.view page & lt; IEnumerable & lt; MyProject.MyDB.MyProducts & gt; & gt; "& Gt%; & Lt;% @ Import Namespace = "MyProject.MyDB"% & gt; & Lt; Asp: Content ID = "Content1" content placeholder id = "content" runat = "server" & gt; Use of & lt;% (Html.BeginForm ()) {%> & Lt; Table & gt; & Lt;% foreach (Miscellaneous items in the model) {%> & Lt; TR & gt; & Lt; TD & gt; & Lt;%: item.name% & gt; & Lt; / TD & gt; & Lt; TD & gt; & Lt;%: string.format ("{0: g}", itemdate)% & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt;%}% ...

Deselecting rows in table using jquery -

In this, if I press shift + down key, then he selects several rows and if I press the up key , Then this is unselected. But if I suppress the shift then only the dissection should be done. Normally, using the up and down keys, I can navigate up and down. Example: If there are 10 rows in the table and Shift + Downarrow, I select 3 rows, and after that I press the down arrow down 6. This should enable me to select the rows again with the selection of the previous selected rows. In my code you can see if (code == 13) {// enter the keycode warning (done); If (done! = Undefined) {window.open ('keyboard.php? Q =' +); }} Here, if I press the Enter key, I should take it to another page, but for some reason I get an undefined error. What am I doing wrong? This problem appears how the script / code> $ (document) .keyup (function (e) {var current = rows.filter (".ui-selected"), selected = $ (); // An empty JQuery object ... Case 13: var code = (E.keyC...

I want to open another form based on another form value in Access -

Hello, I have a list that is a drop list value. "Transparent", "Promo", and "New" if the user selects the transfer or promo, then another form call will open the old information and in that form it will move the same ID, the user who entered the first time did. Anyone can help me please dcmd OpenForm strMyFormName, "ID =" & amp; IntMyID You can use the value by using code in intMyID . OpenArgs .

c# - EF object property changing - MVVM -

I have a view model in which EF is an object because one of its properties is the number of text boxes in the view to that property Wired by text = "{binding path = myEFTable.Column1}" . I am using the MVVM Light Toolkit so that my view modules inherit the Warhambasebase and after each property call RaisePropertyChanged () has been changed. I have seen, although this is changing, MyEFTable column 1 does not set any change in view-model. I thought EF objects tracked any change, so I have assumed that changing the column value in the EF object would have to change the EF object itself. Does it now track changes because I'm essentially copying the query result to a new MyEFTable object? Do your obligations apply INOTifyPropertyChanged or is it container, such as ObservableCollection? Are you growing this event? The use of a visual model is just the beginning. You should first see whether the column 1 property is being updated after editing. If a text box,...

Rails ActiveRecord Data Profiling -

I am looking for a railway activated record based gem to provide data profiling so that I can change the data changes. Imagine: class report & lt; ActiveRecord scope: overdue, lambda {where: due_date & lt; = Time.now} profile_counts overdue,: frequency => end of night It would be thought that the "profile_counts" method please gems, best practices etc. Please advise on Maybe I do not understand the question, but will not have a simple cron job, run daily, you What do you want to do? 42 2 * * * CD $ home / app; Rail runner 'trends Create! (: Overdue => overdue quote) ' Where are the only date (date) and overdue columns in the trend table? I think you can roll a plugin which will use Rufus :: Scheduler or whenever the gem, but it looks like an overkill for me.

sql order by - wordpress query with custom fields help -

My post contains a bunch of custom fields and is currently being ordered by "over-length" I have another custom field called "Over-Langtin". I want to continue to rank my posts as much as possible, but if two posts have the same values ​​for this post, then I would also like it I am thinking How can I modify my query or add function to execute it? The current question $ loop = new WP_Query (array ( 'post_type' = & gt; 'new', 'orderby' = & gt; 'meta_value_num', ' meta_key '= & gt;' over-length = 'Meta_kweri' & gt; array (array (= 'key' & gt; 'over-made', 'value' = & gt; compare "Dall ' '= & Gt;' like '))); OK, I've rewritten the query to use $ wpdb- & gt; get_results, but I still have I'm a little confused about how to go about ordering 2 different custom field orders. This is my new query: $ wpdb-> get_res...

html - have hyperlink behave link display:block but also have image on same line? -

I have found the following ... I want to extend my hyperlink like to the end of the line Display: block ; But I want the image on the same line as display: in-line; Is there a way to get a hybrid and what do I need? Edit: Just to clarify .. I would like the image after the left and hyperlink text, but after that the hyperlink spans the entire line I set the link just like a block and use the image as a background image for the link. Something padding left and it should look exactly like what you want to do. a: link {display: block; Background: URL (http://www.w3schools.com/images/compatible_chrome.gif) No-rimit left center; Padding-left: 30px; / * Whatever you need / line / height: 30px; / * Whatever you want * /} edit: changed from height to line-height Text Center vertically

Failure in Rails Tutorial (Hartl) -section 7 - "unkown attribute: password" -

I have searched this issue on the forum and have solved the " It has got to load and run and still it constantly pops up the error. I have also run it without sparks, I have read further on a bunch of RSPC information and have said that Spark is dug through the information, but nothing is yet. I have also run a check for typos, indentation, encoding ... and still on the other issues, I am able to fix it, but if I have any suggestion then here is the following: Failure: 1) Is the user password encryption has_password? The password should be false if the password does not match the failure / error: @ User = User. Create! (@true) ActiveRecord :: UnknownAttributeError: Unknown Attribute: Password # ./spec/models/user_spec.rb:94:in `1 example ending in 0.836 seconds, 1 failure & lt; - Slave (1) completed! post-text" itemprop = "text"> Are you certain that you have a virtual feature on your user model Is added in? It is easy to remember but you must inc...

gcc - DYLD_LIBRARY_LOAD_PATH vs LD_LIBRARY_LOAD_PATH -

निम्न के बीच अंतर क्या है: DYLD_LIBRARY_LOAD_PATH LD_LIBRARY_LOAD_PATH LIBRARY_LOAD_PATH क्या यह प्लेटफ़ॉर्म विशिष्ट है? क्या केवल डीवायएलडीएल * ईएनवी है डायनेमिक लिंकिंग के साथ चर सौदे? हाँ वे ओएस-विशिष्ट हैं डायल लाइब्रेरी लिंकर LD_LIBRARY_PATH सामान्य लिनक्स लाइब्रेरी लिंकर के लिए है

Open PDF and print to PDF programmatically C# -

I am developing an application that is capable of opening and displaying PDAIDs and using any of the PPDF After printing to other PDFs, but the original are not viewable. I am exploring a way to open a PDF file to a program, and to print any other PDF file (not necessarily using the lovely PDF, just want to print another PDF. Has functionality). This will be integrated into a C #NET project. Have any suggestions on how to do this? Thank you. You can use it when you say "print other pdf" I think that you mean only that? Or you are spooling them for a PDF print driver that will only create one PDF to be saved.

jsp - JSF HelloWorld The requested resource () is not available -

I am trying to create a HellowWorld app with JSF. I create dynamic web products, choose JSF v 2.0 for configuration , Then disable the library configuration then I add jsf-api.jar, jsf-impl.jar, jstl-api.jar and jstl-impl.jar to my lib folder. Then make simple japp and when trying to start it, I'm not available to get the requested resource (). I think this web. There is something with the mapping of Faces Servlet in Xml. You must ensure that FacesServlet is passed to web.xml and the request URL (which appears in the browser address bar) & lt; Url-pattern & gt; Matches to FacesServlet . For example, if you have a simple.jsp file present in the webcontent and FacesServlet to & lt; Url-pattern & gt; * .jsf of , then you have to open it. & lt; Servlet & gt; & Lt; Servlet-name & gt; FacesServlet & lt; / Servlet-name & gt; & Lt; Servlet category & gt; Javax.faces.webapp.FacesServlet & lt; / Servlet catego...

sql server - Comparision between A select statement and Multiple select statment that act as batch -

I have a stored procedure that contains a few selected statements that return union results from them. I'd like to do than to choose a selection rather than an execution plan from them (SP and a select statement). The problem is that when it is run twe statement (SP and select) the SELECT statement plan their execution in SP. I have an execution plan of SP as a unit. I have another question. Think of the execution plan attached to this post. The cost of execution plan for all statements should be 100%? But the amount of all the statements in this execution plan should not be 100%? Thanks > If you have two logic If you are trying to compare versions, then with these lines of script: Exec will allow you to do this. Yes, the execution plan will show you all the questions inside the stored proc. Find out the plan for SP queries if they have a total cost and gt; 50% then SP performed better. As a side note, if your SP takes parameters, make sure that you c...

encryption - How decrypt SAML token -

This is a desktop application, it seems that work but in the end, the token return encrypted shell will let you know how to decrypt it class program {static zero major (string [] ARG) {ServicePointManager.ServerCertificateValidationCallback + = RemoteCertificateValidationCallback; Var samlToken = GetSamlToken ("@ domain", "@login", "@password"); Console.WriteLine (Uri.UnescapeDataString (samlToken)); Console.ReadLine (); } Private Static Hair Remote Curtain ValidationColoback (Object Sender, X509 Certificate Certificate, X509 Chen Chain, SSL PoliciesErshServerArtists) {Return to SSL Policy ERROR} SSL Policy IRRORS NON || String Eulouls (Certificate: ISOUUUR, "CN = Name", String Companion. Inverralial Culture Ignore Seas); } Private Static String GetSamlToken (String Domain, String Username, String Password) {var acsUrl = "@RPURL"; Var stsUrl = "@ssurl"; WSTrustChannelFactory TrustChannelFactory = NewWSTrustChannelFactor...

make location fields made visible in solr -

मेरे पास solr (schema.xml) में निम्न फ़ील्ड परिभाषित है & lt; field नाम = "स्टोर" प्रकार = "स्थान" इंडेक्स = "सच" संग्रहित = "सच" /> अगर मैं यह कहता हूं - और amp; fq = {! Geofilt pt = 45.15, -93.85 sfield = store d = 5} फिर मैं खोज परिणाम में स्थान निर्देशांक देख सकता हूं। लेकिन क्षेत्र "स्टोर" सामान्य परिस्थितियों में एक छिपा हुआ क्षेत्र लगता है सामान्य खोजों के लिए खोज परिणाम का एक हिस्सा बनने के लिए मैं निर्देशांक कैसे प्राप्त करूं? (उदाहरण के लिए q = *: *)! [छवि विवरण यहां दर्ज करें] [1] मैं बस सत्यापित है कि यह उदाहरण Solar 3.1 और Solr 4.0-dev दोनों उदाहरण डेटा के लिए ठीक से काम करता है। उदाहरण: [...] "प्रतिक्रिया": {"numfound "," "": "," "," "": "," "प्रारंभ": 0, "दस्तावेज़": [{"id": "SP2514N", "store": "35.0752, -97.032"}, {"id": "6H500F0", ...

Is there a way of finding the length and width of a JPanel and/or JFrame in Java? -

मुझे यह एक विज्ञान मेला परियोजना के लिए जानना होगा। हाँ दोनों से और विस्तार करने के बाद, वे दोनों विधि को लागू करते हैं, जो रिटर्न देता है, जिसमें "चौड़ाई" और "ऊंचाई" के लिए पूर्णांक गुण हैं।

java - @ModelAttribute annotated method WITH @ModelAttribute in method signature -

I was thinking that @ModelAttribute is annotated due to series @ model attribute methods, but no request for map Another model attribute in the method used to sign the method, has been done. It will be in a controller. i.e. @ Modal Unbreakable ("Attien") Public AttrOne getAttrOne () {return service.getAttOne (); } @ModelAttribute ("Attito") Public Attoo Two Atto Two (@model attribute ("Attien") AtronOuton) {return another service. Atreuben (Atrium); } Then, according to some mapped method it was done: @RequestMapping (method = RequestMethod.GET) public string doSomething ( @ModelAttribute ("AttrTwo") AttrTwo attrTwo) Will this work? I am getting a blank object for AttrOne in the second comment method ... the first comment is not called by the other ... Cheers I took part in the same situation by learning from Spring Document: @ModelAttribute The method is also used at the level [..] . The method signing for this use ...

c++ - Passing a Functor as a param to a method -

I have the following two classes that display the command pattern (unfortunately, both have a unique method name.) // pseudocode class member {virtual zero (cost event & amp;) = 0; } Class Dissertation {virtual zero dispatch (Const event & amp;) = 0; } I have a class template that has some sort of list with a method to iterate on this list. // pseudocode template & lt; Typename T & gt; Class registry {typedef list & lt; T & gt; ObjectList; Objectitist_baze; Zero iteration (const event and event) {for_each (_objects.begin (), _objects.end (), ...); // is not sure what to do here}} I would like to use mem_fun to create a function that calls As appropriate, I am able to make a simple use case, where I invoke a method without any parameter Ie // pseudocode class is simple {zero simple} {/*...*/}} and then I repeat: Fo R_each (_objects.begin (), _objects.with (), mem_fun (& simple :: simple); Unfortunately, I do not know how it look...

Replace a hibernate persisted class with its sibling class -

I am working on a project using Hibernate to continue my organizations (Straits 2, Spring, JPA and Hibernate). I have two classes list and pie , and both get from a widget class ( InheritanceType.JOINED ). I can not find my head around this situation: I have maintained a list in the database but now I want to change it with the Pie unit How do I do this? Can i The only thing that I am making another unit, I can copy the general properties, delete the old one and the new one (with a different ID) is a transaction Do you know this in any other way? Thank you very much. One option is to use the original query to modify the stored unit directly. If you are using a discriminating pillar, you can modify the stored value in the column for Class A and change it to the value required for Class B. You will also need to modify existing data to match the new category. I am referring to this as an alternative approach, but I am not saying that this is a recommended appr...

mysql - Ask for really nasty PHP query (distinct dates from unixtime both in future and past) -

I have 1 table (s) that hold some unsuccessful Unix timestamps (dates); To: ID.1 30-3-2011 (Wednesday) - Future id.2 31-3-2011 (Thursday). - Future On the other hand, there is another table (schedule), in which the column (date) also contains Unix timestamps - but in the past. For the above example, sessions are being conducted every Wednesday or Tuesday every week. Although the dates have been written in the past, using date_format (w), PHP aggregates them by the date of work ("W"), as there is no problem "for today". Meaning ID .44 15-3-2011 (Tuesday) - Past (3 weeks ago!) id.45 25-3-2011 (Friday) - last Now, the problem is to show them all that are added in future as "different dates and days"! Today is Monday 28/3/2011 and the output should look like this. ++ Tuesday (29.3) ID .44 ++ Wednesday (30.3) ID.1 ++ Thursday (31.3.) ID.2 ++ Friday (1.4) ID .45 In fact, any thoughts? :) Different questions of different dates are ...

mysql - trying to take sql data and then define just one of the rows in a php variable -

Hello, I have a description of two car drivers that draws from the database but then I just want to catch one of the two I can take the details of both the drivers by echoing it in Php and using the one-time loop they resonate both of them, but not just targeting one of them: The code below I repeat the two records using I Is there any way to catch one? while ($ row = mysql_fetch_array ($ result)) {dumb "a driver: "; Echo "name:" $ line ['first name'] "" $ line ['last name']. "& Lt; br / & gt;"; Echo "Latitude:" $ line ['CoordLat'] "& Lt; br / & gt;"; Echo "Longitude:" $ line ['CoordLong']; $ Driverlat = $ row ['CoordLat']; $ Drylang = $ line ['coord long']; } // End of the loop simply remove while Loop? $ line = mysql_fetch_array ($ result)) echo "A driver: "; Echo "name:" $ line ['first name'] "...

using python join to join first element of each list -

sql - Need help coming up with a query -

For each name in my table, I want to add the amount that appears next to each name for each name. The names of the columns are au_fname, au_lname, and qty what this table looks like Johnson White 5 Marjorie Green 5 Cheryl Carson 5 Michael O'Leary 5 Dean Straight 5 Minder Smith 5 Abraham Bennett 5 N Engl 5 Burt Glinglesby 5 Charlene Loxley 5 Morningstar Green 5 Reginald Blocht-Hall 5 Ekicho Yokomoto 5 Ins Dell Castillo 5 Michael Defrance 5 Dirk Stringer 5 Starnes McFether 5 Livia Carcen 5 Sylvia Penty Le 5 Sheryl Hunter 5 Repeat some names many times. Actually you need a group by au_fname and au_lname, so to get your answer, SUM ( Qty). Below is how you will do it. SELECT au_fname, au_lname from sUM (qty) yourTableName GROUP by au_fname, au_lname

cocos2d iphone - Multiple cpShapes (chipmunk) -

So I have made two shapes (shift is to be accurate) and I want them to have the same CCSP print / image, I have to live in what I have made them. Is there any way to do this? So in short, I am trying to get it. I have a tire (CCSPream / image) and I have made 2 poly / CPhops, one for top and one below the tire so that when the user throws the football only its center Go through. I need to add the top shift on the top of the tire and lower poly in the lower part of the tire I am also able to use a collision on the tire, for example if the user Throws it and kills it in the bottom of the tire, so I should be able to use the tire in front and back with both moving sizes. The question really is how can I add two CPhapes in an image / CCSpress? I have created my own shapes like this: cpshape * upperspace = [game.spaceManager addPolyAt: CPV (70195) Jan: STATIC_MASS Rotation: 0 Points: 6 Numbers: CPV (2,12), CPV (28,8), CPV (33,0), CPV (36, -10), CPV (-33, -10), CPV (-20....

network programming - Is it possible to send non POST data with javascript? -

I am trying to submit a postScript print job directly to the printer on port 9100. I tried to submit a form directly to the IP and the port, but it contains many header information that clearly spoils it. Is there a way to do this jQuery or AJAX (or any other word I do not know about)? Once the websetkett becomes more widespread, you can use those people and send arbitrary data without HTTP overhead / payload, but at present, it is only in the 'bleeding side' browser is . This means that you are currently stuck using a flash or Java applet.

java - AspectJ: parameter binding with 'args()' for methods with multiple parameters -

I am facing a problem that would make a aspect before for a method containing multiple parameters Are there. Public class sample {public boolean myCall (string s, string s 1, string s3, bytebuffer bytes, int i, int g) {System.out.println ("real sample calling "); }} This aspect does not match. I need to use only the bitbuffer parameter in the override code. Bidctate sample call (bytebuff bytes): Execution (Boolean com.example.Sample.myCall (..)) & amp; Amp; Arg (byte); First (Bytebuffer Bytes): SampleCol (Bytes) {System.out.println ("Before the Sampler"); } Actually call it point (Bytebuffer Bytes): Execution (Boolean Comm. Example Sample Michael (string, string, string, bitebuffer, ..)) & amp; Amp; Args (string, string, string, bytes, ..); First (Bytebuffer Bytes): SampleCol (Bytes) {System.out.println ("Before the Sampler"); }

Plone 4.0.4 and Postgresql Encoding -

I am using Plone 4.0.4, Postgresql 9.0.3 and RelStorage 1.5.0b2. Currently Im "Da_DK.ISO8859-1" is using encoding in PostgreSQL - will "Da DaK.UTF-8" be better because Plone is using UTF-8 internally? Both PS "encoding, collation and CTOP" are set in postgrascape. Thank you. Nicholas G. The relastowage only holds the python pickle in the blobs, the balance is the metadata as the integer and the boolean flags at any time gives you the contents of the raw object in the database. And any column column will not be in the relaystorage schema. In this way, it does not matter whether you use encoding for PostgreSQL.

database - Converting MySQL to MS Access -

Image
I have a large amount of data in MySQL, which can not actually be copied manually into MS Access How do I change the table from MySQL to MS Access in words? Thanks in advance! s Using an option Odbc to draw data from MySQL Use Access. Install. Create a system DSN for the MySQL database Create a new Access database Find the Approttet Access menu command to import the external data This is your version of Access Will depend on. A2010 has a ribbon menu called "External Data". Select the ODBC data source (machine data source) using the DSN you created. Select the required tables and continue to import.

facebook - Modify text color in Facepile? -

I am trying to change the face color of the face because my site has a black background and thus black text of Facebook ' I tried to set the "color metadata_with_margin" parameter, but it was not working. P> attribute colorscheme = "dark" Use / strong>

ruby - Rails model: validates_uniqueness_of doesn't remove trailing spaces not leading ones before unique check? -

Suppose that I implement validates_uniqueness_of in the name of the user if the name 'madi' already exists, then the value 'Madi' will accept it as a unique value, but not 'Medie'. This blank space should be removed from both sides. How is this behavior done? before person_validation class: strip_blanks protected def strip_blanks self.name = self.name.strip End of End There is some discussion in the source of this snippet why it is not the default rail behavior

sql - Oracle: query against value of user defined type -

I have a user defined type: Type the object as my_message_type Whistler 2 (50), payload clobe); I have put a program in the program that SQL Developer translates the inserted object as: SYNESSO.MY_MESSAGE_TYPE ('abcdefgh', 'oracle .sql.CLOB @ 1dae16a ') How can query against this data using SQL? For example, the following is intuitive: Select from count_ (1) to table_of_my_messages where user_data.relatedid = 'abcdefgh'; but the result is ORA-00904: "USER_DATA". "RELATEDID": invalid identifier . Then I have to create the right syntax for creating the message type and using similarity check but how to prepare an example of type with some fields that match any Go: Select from table_of_my_messages * where user_data = my_message_type ('abcdefgh', *); - ORA-00936: unavailable expression * select from table_of_my_messages * where user_data = my_message_type ('abcdefgh'); - ORA-02315: Choose the wrong nu...

ip - Is there a way to trace the "real" route of a packet if i am behind a VPN? -

I am behind VPN, when I want to find a way to find a server to answer an actual path For example, stackoverflow.com's first hop tracing from my PC is my router. When I dial VPN, the first is the VPN server. My question is, if there is one way to find out (although I am behind VPN) first "ViPN" route of the package reach the VPN server If so, you can disconnect that DNS name from VPN and Tracerout ... This traceroute takes your packet before going to the VPN server. If you do not know the DNS name that is connecting it, then ask those IT people for that DNS name. To run traceroutes from the same machine, make sure you have problems (if they keep DNS load balancing ... then the DNS name resolution is a better chance of being compatible) I usually use I have a lot of other tools for troubleshooting or for troubleshooting.

c# - ConfigurationManager.AppSettings or only AppSettings? -

मुझे सवाल है: जब मैं & lt;% = ConfigManager.AppSettings ["xxx"]% & gt; और & lt;% $ AppSettings: xxx% & gt; । कभी-कभी जब मैं & lt;% = ConfigManager.AppSettings ["xxx"]% का उपयोग करता हूं & Gt; और मुझे निम्न त्रुटि मिली: "सर्वर टैग में & lt;% â ?? |% & gt; निर्मित हो सकता है"। इस उदाहरण की तरह: त्रुटि: & lt; एएसपी : लिफाल रनैट = "सर्वर" आईडी = "लिटरल 9" टेक्स्ट = "& lt;% = कॉन्फ़िगरेशन प्रबंधक। ऐप सेटिंग्स [" xxx "]% & gt;" & gt; & lt; / एएसपी: लीटरल & gt; वर्किंग: & asp: literal runat = "server" id = "literal9" text = '& lt;% $ app सेटिंग्स: xxx% & gt ; '& gt; & lt; / एएसपी: शाब्दिक & gt; त्रुटि इसलिए नहीं होती है क्योंकि आप ConfigurationManager.AppSettings और ऐप सेटिंगिंग , लेकिन & lt;% के बाद प्रयुक्त प्रतीक के कारण। आपके पास एक सर्वर-साइड नियंत्रण के अंदर कोड रेंडरिंग मार्...