Posts

Showing posts from April, 2013

css - Styling input buttons for iPad and iPhone -

I use the input button on my website in CSS, but the default button on style Mac Is there a way of style buttons for iOS, or is there a way to create a hyperlink that behaves like a submit button? you -webkit-appearance: none; Mozilla Developer Network

iphone - MKMapView returns bad userLocation -

I checked the map in the Daterzer Builder to show the user's location and it works fine I zoom the map zoom Want to use area and user space as well as user location, but user latitude and longitude are 0.000, and the app center is zooming in the area with 0 and 0. Why is this? CLLocation * location = [[[CLLocation alloc] initWithLatitude: mapView.userLocation.location.coordinate.latitude longitude: mapView.userLocation.location.coordinate.longitude] autoreclass]; Use to obtain user space, and not map.

http status code 404 - iis 7 /asp.net doesn't obey error pages settings on .net4 web site -

I have just seen in my logs if there is a "." At the end of the URL that does not exist on a .NET 4 integrated AppPool, IIS 7.5 does not display its preset 404 URL, but does not get the page default. I have my custom 404 URL on both IIS and asp.net settings it works just fine with any other URL which does not exist. The site uses the .net 4 route with asp.net webforms. As far as I know it is in no way related to the result of a random url like in the result "site.com/djfdhfhgfhgfggfff." The behavior does not change. Anyone experienced something like this? eror looks like coming from asp.net. It reads Server error '/' No resource found in the application. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could be renamed, or temporarily unavailable, please review the following URL and make sure it is spelled correctly URL: / etc Update:. Only one of the trace enters and looks like Global.asax is throwing it...

Does it matter where I place the asterisk when declaring pointers in C++? -

I'm just learning C ++ and with the code of all the examples I have seen in the last few days that I understand the hard times Where the indicator should be kept. What is the difference between these 3? 1 four * x = / * ... * / 2. four * y = / * ... * / 3. four * z = / * ... * / or 1 ClassX * x = / * ... * / 2. Class Y * y = / * ... * / 3. Classes * Z = / * ... * / Thanks for your help. There is no difference they are exactly the same. You can choose to write it, however you wish. Typically, C ++ programmers place asterisks next to type , while C programmer is more common to star next to the name of variable . To be aware of only one misunderstanding, when you declare a number of multiple variables on a line (which you should not really do, if properly, not for). For example, in the following statement, only the variable x is declared as an indicator: char * x, y; Compare it with the following, which makes it more evident that there are extreme...

Dynamically build dropdown list using Jquery opens and closes immediately -

My dynamically-generated dropdown list opens immediately and closes, I have no chance to choose any option Here, the code function looks like what the list creates: function MoveItem (itemID) {var selector = "#mov" + itemID; Var replaceValue = "& lt; select class = ddl id =" + + itemID + "& gt;" + $ ("Input: text"). Map (function () {return '& lt; option & gt;' + $ (this) .val () || null;}). (). Meet ("& lt; / option & gt;"); Replace = "& lt; / select & gt;"; $ (Selector) .html (replaceValue); } Any ideas why such? Thks people Tie it to change the event. Such as $ ("#id"). Tie ("Change", Move Itam (this)); I think it will do this. :)

svn - Can't checkout sources using TortoiseSVN -

There is a project repository but I can not checkout with my Toroise SVN This error is The repository permanently '/ view civis / pokerource / trunk / poker-aval /'; have been moved permanently? Can anyone help me with this problem? The URL you provided is for human contact only with a webbrover, SVN client tools Not for SVN Repository URL (see GNAR Project page)!

android - Display ImageView in SurfaceView -

I am currently trying to animate some images in my SurfaceView. Right now, I'm displaying my images as a bitmap though, I think it would be better to apply these bitmaps as image visuals. I am not able to create multiple images on my SurfaceView (I am trying to not do this in XML because I want to work first things and then change things later so that it is more portable). Is there a tutorial anywhere on this, or how do I want to remove it and will I leave bitmaps? You typically see the view object and SurfaceView Should not try to mix. SurfaceView is a special approach that provides direct drawing by essentially punching a hole in the current window. It is better to be on a bitmap.

android - picture isn't saved properly into the database (as BLOB) -

I try to save a photo as a blob in the database, but it is not properly stored in the database . Byte [] that is passed is correct and has 4300 characters and the database contains only 12 characters, this is what is stored in DB: [B @ 43E7B 068] Here is the code for my SQLandSERT: Public Bullion SQL_INSERT_PICTURE (PictureDype Type) {try.d = OpenHelper.getWritableDatabase (); Log D. (Tag, "insert picture"); System.out.println ("Insert Image"); Db.execSQL ("Remove from the picture" + "where" + LinkPic + "= '" + type.getLink () + "'"); "+" Value ('+' type.getName () + "',' ',' ','" + Type.getLink () + "','" + type.getPicture () + "')"); System.out.println ("Picture size (BitairAir):" Type. Zant Picture (Length);); System.out.println ("Picture:" + type.getPicture ()); System.out.println ("Insert");...

qt - QNetworkAccessManager read outgoingData and keep it in QIODevice -

I am trying to save all outgoing POST data in QtWebKit. I use the override QNetworkReply * QNetworkAccessManager :: createRequest (Operation session, Constant QN Network, Universal and Request, QIODevice Outgoing Data) and go out Read outgoing data with postal data. The problem is that after reading this, the data is not available in QIODevice. How can save an outgoing (PUT, POST) data and keep it available for future internal QT operations? If I need to use another approach to save PUT / POST data - please, let me know. Code example: QNetworkReply * MyNetworkAccessManager :: createRequest (Operation session, Constant QN NetworkVerified and Request, QIODevice * Outgoing Data) {QByteArray bAray = Outgoing Data-> ReadAll (); // Save hairs (which includes posting outgoing data) do somewhere / other things, and outgoing data no longer has any data, because it was already read by Barre} I have tried QByteArray bAray = outgoing data-> ReadAll (); OutgoingData...

php - Accessing a user details from a page application -

I have seen examples of access to user data in the canvas application with the Oeth and Graph API. But what do I want is that the user has access to tabs such as applications, names, email addresses, and photos tabs within the app. I have looked around and have not seen any examples. I am thinking that this is possible and how I will get user data and yes I want to do it via audio (asking for data). Best regards This is an exact method for canvas apps: / P> & lt ;? Php $ app_id = YOUR_APP_ID; $ Canvas_page = YOUR_CANVAS_PAGE_URL; $ Auth_url = "http://www.facebook.com/dialog/oauth?client_id=" $ App_id "& amp; redirect_uri =" urlencode ($ canvas_page); $ Sign_request = $ _REQUEST ["signed_required"]; List ($ encoded_sig, $ payload) = explosion ('.', $ Sign_request, 2); $ Data = json_decode (base64_decode (str ($ payload, '-_', '+ /')), true); If (empty ($ data ["user_id"]) {echo ("& lt; scrip...

jquery - How to stop all animation in this image slider carousel UNLESS the arrow is clicked? -

is located on the carousel what the site owner wants to do, until it has the image slider Do not click on any green arrow, and then it will move only once. Alternatively, he wants to slog it very slowly, maybe once every 5 minutes. The code for this slider is below ... Please note that I have no clue about any of this code, I'm a newbie with JS. Thanks a lot! :) $ (document) .ready (function () {$ ('# sliderGallery'). Slider ();}); (Function ($) {$ .fn.Slider = function (params) {var defaults = {moveLeft: true, onItem: false, isAnimating is: incorrect, timer: empty), intialize = function (id) {//// ///////////////////////////////////////////////// /////////// Bowers' Howers Events on the left and right buttons ////////////////////////////// //////////////////////////////// $ ('div # leftButton'). Hover (function ($) (this) .addClass ('leftImageHov'); Clear interval (defaults.timer);}, function () {$ (this) .removeClass ('leftImageHov'); ...

jquery - Loop on ID and each function -

I use JQUERY for each dynamically 12 text box values ​​with a "txt" class with this code I do: & lt; Script & gt; $ (Document) .ready (function () {// repeat through each text box and adding the keypad / handler, which turns on Yoga Event $ (".txt"). $ (This) .keyup (function () {CalculateSum ();});});}); Function calculation () {var sum = 0; // Repeat through each text box and add values ​​to $ (".txt"). Each (function () {// only add if the value is the number (if! (Nan (this.value)) and amp; this.value length! = 0) {sum + = parseFloat (this.value) ;}}}. $ ("# Yoga") HTML (zodiac); I use dynamically using only 3 text box values I want to create 4 subtotals calculated. I added 4 different IDs for each of my forms, for dynamically subscribing sub-totals for the current ID, I How can I use the given function? Spence ID is the result of which the name "ID_SUM" is kept (the text box should be dynamic according to the ID v...

unit testing - Android Test Case - how to view output? -

I'm using AndroidTestCase for unit testing. I have a unit test that is failing, but I Do not know how to display the output. For example, I think I do not see printed values ​​using LogDP or system.out.println in the console nor the logcat output. How do I view the unit test console? send the message to log (D) message logcat Unless your trial is crashing long ago (i.e. constructor).

Write a text file with a defined maximum lines count in java -

Hi all Is it possible to write a .txt file in Java with lines? Gorgeously I have to write a file in embedded mode, for example there are up to 4 lines: file .txt 1 item1 item2 item3 item4 When the files reach the 4 line, it can not be allowed to be written on it and a new file is generated file .txt 2 item5 item6 ... . Thanks I do not know that one for it The library is API, but it's not very difficult to write 'yourself'. When you open the file to write, you can read the number of lines and then they can be written, rolling it as it is necessary using YOu RandomAccessFile to read and write a pass

jquery - Save Images from a webpage using Javascript or PHP -

I wrote a slightly javascript application with jquery that brings an RSS feed through the Google Feed API and it's grid of images Displays as. The code then appears: & lt; Ul & gt; ... & lt; Li & gt; & Lt; A class = "entry" href = "LINK_TO_BIG_IMAGE" title = "TITLE_OF_ENTRY" & gt; & Lt; Img class = "entry-img" src = "THUMB_IMG" alt = "" /> & Lt; / A & gt; & Lt; / Li & gt; ... & lt; / Ul & gt; What I have to do, is to be able to save the images in the folder to the server at one time. If this happens on page load then I will be happy now. Is it possible through javascript? Do you have to pay attention to some points? Thanks in advance! Your comment about submitting a path to a PHP script on the server will work (I like it Does not recommend, but it works). Your php can then download images such as (untested and you need to parse the file name from $...

c# - Reading from XML file into a DataSet -

I try to fill a DataSet with the value from an XML file like this So that I can fill again with a DataGridView : dataset DS = new dataset (); ;: Ds.ReadXml ("\ aaa.xml c" @) DataGridView1.DataSource = DS; DataGridView1.DataSource = "Products"; But I did not find anything. Are you wrong Are you sure your loaded data will be called product In your data set ?? After verifying the data, try verifying by examining the table in the dataset: DataSet ds = new DataSet (); DS ;: ReadXml ("\ aaa.xml c" @) Foreach (DataTable in ds.Tables) {string tableName = t.TableName; // Apply a breakpoint here - Inspect table names) If you just want to keep the first table shown, try this snippet: DataSet DS = new dataset (); DS ;: ReadXml ("\ aaa.xmlc" @) DataGridView1.DataSource = DS; DataGridView1.databar = DTTables [0] .tablename;

iPhone: SQLite store data is not working -

I am trying to store data in the created SQLite database. Here the code is below, I am storing urlStr in a database. Later, I am planning to store several URL strings in the database. I'm trying this as a sample now the problem is, after this code executed, no text is binding in the database. - (zero) readMediaListFromDatabase {NSString * urlStr = @ "Property-Library: // Property / Asset? JPG ID = 1000000001 & amp; ext = JPG"; // Setup database object sqlite3 * database; // Set some globals database name = @ "MediaList.sqlite"; // Find the path of the document directory and add the database name NSArray * documentPaths = NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, YES); NSString * DocumentsDIR = [DocumentPath ObjectAntIndex: 0]; Databasepath = [document drink stringpacecpaint: database name]; // Users open database from filesetite (sqlite3_open ([databasePath UTF8String], & database) == SQLITE_OK) {// Set SQL statem...

Adjacency Matrix in prolog -

I need to create a matrix with the article, with the linear headings as shown in the facts: for example Article (a, b). Graph (c, c). Graph (b, c). I have to output the matrix: 0 0 0 0 1 0 0 1 I know That I should make a list for each line, but the problems arise when they are not symbols, numbers, so I have no idea how to know the size of that list (for example if there is an article ( E, F). The list should be six digits so that f can fit). I do not want the full answer, if you do what I have to do, then I think I am fine. "Itemprop =" text "> I have not written more code recently, but I almost think I will write (not tested): printedge (X , Y): - Graph (x, y), write ("1"). Printed (x, y): - \ + graph (x, y), write ("0"). Printmatics: - list = [A , B, C, D], Member (Y, List), NL, Member (X, List), Printed (X, Y), Failed. Need to get a list of .

Sitecore SelectItems on Inherited Template -

I am trying to bind an ASP: dropdown list to some cyclicormic items based on queries. Along with the query, I want to return the contents that the template wants to inherit 'Site Route'. When I use: Sitecore.Context.Database.SelectItems ("/ sitecore / content / * [@@ templatename = 'site root']" ); This returns only those items which have a 'site root' template, not a template that is the heir to this template. How do I get a query to return items to the successor of this template? You can not query on any malformed template

c# - Url routing problem with IIS7 -

यूआरएल रूटिंग और IIS7 03-24-2011 04:24 PM हाय, मेरे पास एक asp.net 4.0 और IIS7 में यूआरएल रूटिंग के बारे में कोई क्वेरी है I नीचे मैंने बताया है कि मेरी वेबसाइट संरचना क्या है और इसे IIS7 में कैसे कॉन्फ़िगर किया गया है। डायरेक्ट्री स्ट्रक्चर: 1.मेय वेबसाईट> Index.aspx 2.MyWebsite & gt; AboutUs & gt; Index.aspx 3.मेरे वेब साइट & gt; संपर्क यूज & gt; ContactUs.aspx II7 कॉन्फ़िगरेशन: मैंने अपने आवेदन के डिफ़ॉल्ट दस्तावेज़ को Index.aspx के रूप में कॉन्फ़िगर किया है अब, जब मैं यूआरएल के नीचे का उपयोग करता हूं, IIS7 कुछ राउटिंग स्वचालित रूप से करता है (ध्यान दें कि अब तक मैं global.asax में किसी भी रूट को जोड़ दिया है) 1.लोकलहोस्ट / माइवसाइट को स्थानीयहोस्ट / माइवसाइट / इंडेक्स.स्पैक के लिए अग्रेषित किया जाएगा। 2.localhost / MyWebsite / aboutus को स्थानीयहोस्ट / के बारे में यूज़ / इंडेक्स.एस्पक्स पर अग्रेषित किया जाएगा (यह रीडायरेक्शन पैरेंट स्तरीय डिफॉल्ट डॉक्यूमेंट के रूप में किया जाता है जो लगभग यूट्यूब फ़ोल्डर से प्राप्त होता है) ओके !! 3....

serialization - XmlSerialize directly to GZipStream throws magic number exception on Decompression -

I am trying to sequence an object sequence to XML though my object is a normal list containing many records and is very consumable to either the causes serializer memory I tried to order directly to a GZipStream with the following code: dim formatter XmlSerializer = XmlSerializerFactory.GetSerializerForType (_type) _ms New MemoryStream As using (as) gzstream U Use as GZipStream (_ms, CompressionMode.Compress, it is true) _ms.Position = 0 FormatterkSerialize (GzStream, Obj) _ms.Position = 0 GzStreamkFlush () GzStreamkClose () End _ms.Position = 0 dim DecompressData (using byte (as the new GZipStream use as gzStream) _ms, CompressionMode.Decompress) ReDim decompressData (9000 - 1) 'the number does not matter, the data in your test sample small slow lane integer = gzStream.Read (decompressData, 0, decompressData.Length) to use in the end as the end although I run a InvalidDataException The front GZip magic number in the header is not correct. Make sure that you are passing...

shell - How do I parse a file and substitute the environment variables with values in Python -

I have a text file (this is called file 1.txt), it has the following lines: "Read the model $ path_1 " How do I change the value of path 1 in this text file and write it in another file (it says file 2.txt) with the same content but expanded $ path_1 variable. There should be something like the following in my file2.txt: "Read Model / Home / Aero / Test" Is there a parser available for this job? I was seen in the Conferpers module, but I think it needs a config file with the variable = value pair. Regards, Evening string. Template gt; & Gt; String import template & gt; & Gt; & Gt; S = template ('$ which likes $') & gt; & Gt; & Gt; S.substitute (Joe = 'Tim', what = 'Kung Pao') 'Tim Choice Kung Pao'

java - How can I read an XML file from an SD card? -

I want to parse an XML file from an SD card on Android, and I'll have to show the result in the view list. I tried to do this with this code: for (int i = 0; i & lt; obj_nod_list.getLength (); i ++) {node list = obj_nod_list.item (I); String string = list.getFirstChild (). GetNodeValue (); But the result is in the org.apache.harmony.xml.dom.ElementImpl exception. What am i doing check here,

firefox - "Server method 'x' failed" when leaving the page during an ajax.net request -

When I'm in the middle of an AJAX, I'm getting "Server Method 'X' unsuccessful 'in Firefox Net request And I leave the current page. This is generated by MicrosoftAjax.debug.js, line 5475: Result = New Sys.Net.WebServiceError (incorrect, string .format (Sys.Res.webServiceFailedNoMsg, methodName), "", ""); But I did not know why it shows, and why this happens only in Firefox. Example: Search Results You are still loading, while navigating to a different page and navigating. You should get the error. Could it be that the search button is a 'post' and an Asyn call back?

asp.net - Breadcrumbs Design Pattern -

I was reading on the Yahoo Design Pattern website. They say that we do not show a breadcrumb on top page of the site whether they are talking about the site's default page (landing page) in the root directory Are you Is this top page just 1 page, or is it for every default page (if there is a directory structure)? Please provide samples :) They can be found on the highest page Talking about Pages that users would have thought that "home page" is located where it is addressed or physically located is not relevant, although in most cases it will be root. Many websites can be treated as a tree, with the same root node as the "home page". The top-level categories / navigational points (the "directory" in your question) can be the first level of branches, in this case they will have breadcrumbs in the root.

External referenced DTD in XML -

test.xml: & lt;? Xml संस्करण = '1.0' एन्कोडिंग = ' UTF-8 '& gt; & Lt;! DOCTYPE ईमेल सिस्टम "test.dtd" & gt; & LT; ईमेल & gt; & LT; वॉन & gt; test@test.com< / वॉन & gt; & LT; zu & gt; xxx@example.com< / zu & gt; & LT; titel & gt; हैलो & lt; / titel & gt; & Lt; text & gt; प्रिय जॉन ....; -)। & Lt; / text & gt; & Lt; पूर्व प्रकार = "schnell" / & gt; & Lt; / ईमेल & gt; test.dtd: & lt;? Xml संस्करण = '1.0' एन्कोडिंग = 'UTF-8'? & Gt; & Lt;! DOCTYPE ईमेल [& lt;! ELEMENT ईमेल (वॉन, ज़ू, शीर्षक, पाठ, पूर्व) & gt; & Lt;! ELEMENT von (#PCDATA) & gt; & Lt;! तत्व zu (#PCDATA) & gt; & Lt;! एलिमेंट टाइटल (# पीसीडीएटीए) & gt; & Lt;! ELEMENT टेक्स्ट (#PCDATA) & gt; & Lt;! ATTLIST पूर्व प्रकार सीडीएटीए #REQUIRED & gt; ] & Gt; त्रुटि कोड test.dtd में दस्तावेज़ प्रकार की घ...

Extension tag in xsd not working for mono 1.9 -

I am using an extension tag in my xsd to validate XML, this is the net framework in my windows local machine Works fine in . But the extension tag in the mono 1.9 machine does not work, it does not valid XML. I have some R & amp; amp; D and this issue was given as a bug in a site on this issue and it was referred to setting up some patch for mono. Here's the link I can not fully understand how to solve this problem and help me out the links above. p> Mono 1.9 ~ 3 years old patch already has more modern mono Versions included. Upgrading is probably your best bet.

sql - How to get the stored procedure result set value -

I create a stored proc that calls another proc b, which gives the list of result sets. How can I use these results in my Set A set value as I use this result to use one value one one next to the other part of the proc. You can insert the result of the stored procedure in a (temporary) table by INSERT INTO . You can then use a select statement to process these results. Certain tableThatMatchesTheSproc excel your excel in Process; Choose from your table;

Custom Environment in Grails for Hudson/Jenkins -

I am using the Grails plugin for Jenkins (formerly Hudson) and there is no way to specify a custom environment for it A goal. I tried in -Dgrails.env = myEnvironment war in target input and -Dgrails.env = integration any You can only Grails.env = integration should be able to put Grails Build Build in the Build Properties panel. Have you tried?

regex - PHP: Filter all codes except scripts and images from MY site? -

Image
Let's say a member has left a comment. Hi! Look at these cars & lt; Img src = "http://www.mysite.com/possiblefolder/possiblesub/image.jpg" & gt; & Lt; / Img & gt; & Lt; Img src = "http://othersite.com/possiblefolder/possiblesub/image.jpg" & gt; & Lt; / Img & gt; & Lt; Img src = "http://www.mysite.otherside.com/possiblefolder/image.jpg" & gt; & Lt; / Img & gt; Which is your favorite? I should come as a result: Hi! Look at these cars & lt; Img src = "http://www.mysite.com/possiblefolder/possiblesub/image.jpg" & gt; & Lt; / Img & gt; Http://www.mysite.otherside.com/possiblefolder/possiblesub/image.jpg Which is your favorite? I want to filter all the code except the images and scripts from my site. Anyone got any ideas? Hope this helps is the tag used by Group 1 and the Group 2 is the "src" value, so that you can replace it.

shell - How to only get file name with linux `find`? -

I am using all the files in the directory to find, so I get a list of paths. However, I only need a filename i.e. I get ./ dir1 / dir2 / file.txt and give me the file.txt Find in GNU You can use the -printf parameter for this, for example To: find / dir1 -type fprintf "% f \ n"

conditional - Syntax for if/else condition in SCSS mixin -

Hello I am trying to learn SASS / SCSS and I am trying to refactor my own pixel clearfix What I want for a mixine should be based on whether I pass the mixine wide. So far (pseudo-code only as I would have with other mixes) @Mixin Clearfix ($ width) {@if! $ Width {// if the width is not passed, or clear} @else {display: inline-block; Width: $ width; }} Here I thought I could call it, but it is not working. @include clearfix (); or @include clearfix (100%) or @include clearfix (960px) I appreciate any help to do this either the best or the right way! You can try it: $ width: auto ; @Mixen Clearfix ($ width) {@if $ width == 'auto' {// if the width is not passed, or empty} @else {display: inline-block; Width: $ width; }} I'm not sure of the result you want, but setting a default value should be wrong.

io - What is meant with a buffer in python -

/ P> struct.unpack_from (fmt, buffer [, offset = 0]) Open the buffer according to the given format. The result is a tube, even if it contains an item in it. The amount of data required for the least format in the buffer (lane (buffer [offset:]) should be at least casacquis (FMT).) This means buffer with here. Is there a string buffer or file descriptor? This is a memory buffer: In Python 2, a string (which is in a buffer) str ), in Python 3, a Binary string ( bytes ), or alternatively an object has been created.

android - How to open AlertDialog from preference screen? -

I am developing an application in Android, if I prefer the user to the checkbox from the preferences screen, then show the alert dialog. So how can I do this ..? override onSharedPreferenceChanged your priority category: / P> public class MyPreferences increases priority tools OnSharedPreferenceChangeListener {... shared sharing shared on public (shared shared references, string key) {if (key.equals ("MyCheckboxPreferenceKey") ) {// Show your AlertDialog here! }}

mysql select ordernumber by group -

I'm trying to do something like 'Select the group max', but I'm looking for a group-wise order number. Then with a table like this short description ---------- id_brief | Id_case | Date 1 | 1 | 06/07/2010 2 | 1 | 04/07/2010 3 1 | 03/07/2010 4 2 | 18/05/2010 5 2 | 17/05/2010 6 2 | 19/05/2010 I want a result like this breifs results ---------- id_brief | Id_case | Date order 1 1 | 3 2 1 | 2 3 | 1 | 1 4 | 2 | 2 5 | 2 | 1 6 | 2 | 3 I think I want to do something as described here, but I do not know how I will reset the variable for each id_case. This will give you id_case with how many records and this A date of equal or less than the date value. SELECT t1.id_brief, t1.id_case, COUNT (T2 *) AS yourtable AS t1 LEFT T2 ON T2 ON T2 ON T2 ON T2 ON T2 ON and T2 DOT & LT; = T1 Detet Group by T.Id_Briff It is acceptable about Mykkil column that Group BY With one more stick DBMS you may need the GROUP BY t1.id_brief, t1.id_case . I recommend...

wpf - Binding view with model (view doesn't update) -

I am implementing something, that if I select something in my list box, some text boxes are visible so I select I can fill some details of the item I have already applied a visibility converter and this is my code xaml and viewodal: There are questions about the item class in the list box Public questions selected Q & A drop list {Get {return selectedQuestionDrop; } Set {selectedQuestionDrop = value; OnPropertyChanged ("SelectedQuestionDropList"); Visible = true; }} This is my visibility property: Public Boolean Visible {Get {return view; } Set {visible = value; }} My xaml looks like this: & lt; List box selected item = "{binding path = selected question control, updateunderstraggers = changing property, mode = two}" DisplayMemberPath = "description" /> & Lt; Text box height = "23" visibility = "{binding path = visible, converter = {static resource balltovis}, updates resource resetter = property changes, ...

coldfusion - Sorting values by property from cfoutput -

This question for cold fusion programmer, and possibly I will be asked incorrectly because it is an open question and in fact Can not be answered, Cause u and I will be in the abs of inf about it :) But still I have only one point or guess, so that I can understand my goal and move on. So here's the question: I have a cold production production script Where some products are displayed, and all they need is sorting them by property, for example is_purchase whose value is 0 or 1, plus my Has a checkbox beside it: & lt; Input type = "checkbox" name = "is_purchase_stock" value = "1" & lt; Cfif isdefined ("attributes.is_purchase_stock") & gt; Check & lt; / Cfif> OnClick = "sayfalama.submit ();" & Gt; In fact, there are such functions (is_saleable_stock), you can see it with products from all the pages of the whole page: Thank you all! You want to: & lt; Cfquery data source = "...

iphone - Issues with UITableViewCell contenView width on iPad -

मेरे पास कस्टम शीर्ष लेख, पाद लेख और सामग्री दृश्य के साथ एक UITableViewCell है आईफोन पर (उपकरण और सिम्युलेटर) ठीक बनाता है, और सामग्री की चौड़ाई पूरी तरह से सेल को समायोजित करें। लेकिन आईपैड (बूथ डिवाइस / सिम्युलेटर) पर सामग्री दृश्य UITableViewCell से छोटा है और एक बाएं और दाएँ हाशिए दिखाता है हेडरव्यू और पाद लेख, स्क्रीन पर सही और यूआईटीबल दृश्यकेल को समायोजित करें, केवल सामग्री दृश्य में यह समस्या है, मैं हेडर और पाद लेख के बराबर समायोजित करने के लिए contentView कैसे बदल सकता हूँ? मैंने किसी भी परिणाम के बिना लचीला चौड़ाई के लिए मुखौटा autoresizing के साथ कोशिश की है ... पहले से धन्यवाद, क्या आपने contentView के फ्रेम को सेट करने की कोशिश की UITableViewCell की मैन्युअल रूप से? contentView.frame = CGRectMake (0, 0, सेल.फ्रेम.size.width, contentView.frame.size.height);

How to use logging-channel-adapter in Spring Integration to log a message header value -

I need to log the value of the message header with the key "foo_bar" so that the log message will appear something like that header The value is "baz": The value of the header foo_bar: baz Is it wire-tapping and logging-channel-adapter? Use the logging-channel-adapter expression feature and set the wire-tapping and logging-channel - Adapter something like this: & lt; Integration: Channel ID = "Channel 1" & gt; & Lt; Integration: Interceptor & gt; & Lt; Integration: Wire-Channel = "Logging Channel 1" /> & Lt; / Integration: Interceptor & gt; & Lt; / Integration: Channels & gt; & Lt; Integration: Logging-Channel-Adapter ID = "Logging Channel 1" expression = "Header value foo_bar: '.concat (headers.foo_bar)" level = "debug" /> When using the expression attribute, the root object is the spring integration message. So in the expression "Header...

mysql - Delete row from table with conditions uniqueField = 1 -

तालिका से हटाएं WHERE uniqueField = 1 जब MySQL को पंक्ति मिलती है uniqueField = 1 के साथ, यह इसे हटा देगा। फिर अन्य पंक्तियों को रोकना बंद कर देता है, क्योंकि एक विशिष्ट फ़ील्ड में केवल > UniqueField = 1 ? यदि uniqueField घोषित किया गया है अनोखा , अनन्य बाध्यता को पुलिस के लिए एक निहित सूचकांक बनाया जाता है। MySQL सबसे अधिक संभवतः रिकॉर्ड को हटाने के लिए इस अनुक्रमणिका का उपयोग करेगा। यह सूचकांक UNIQUE होगा, इंजन केवल एक रिकॉर्ड को स्कैन करेगा। यदि फ़ील्ड को अनन्य घोषित नहीं किया गया है और अनुक्रमित नहीं किया गया है, तो MySQL इस फ़ील्ड के मूल्य की जांच के लिए सभी अभिलेखों को स्कैन करना होगा।

spring mvc - MVC Controller and Web Flow Controller - Request handling priorities -

मैं स्प्रिंग एमवीसी वेब अनुप्रयोग में एकीकरण स्प्रिंग वेब फ्लो के साथ काम कर रहा हूं। मैं मैप किए गए स्प्रिंग डिस्पैचरसर्वलेट से * html नीचे की तरह। & lt; सर्वलेट-मैपिंग & gt; & LT; सर्वलेट-नाम & gt; वसंत & lt; / सर्वलेट-नाम & gt; & LT; यूआरएल पैटर्न & gt; * html। & Lt; / url पैटर्न & gt; & Lt; / सर्वलेट-मैपिंग & gt; मैंने सरल प्रवाह पंजीकृत किया है ( /WEB-INF/flows/simple/simple-flow.xml , / वेब-आईएनएफ / प्रवाह / सरल /simple.jsp ) जो कि सरल id को कॉन्फ़िगरेशन के अनुसार मिलती है। & lt; webflow: flow-registry id = "flowRegistry" base-path = "/ वेब-INF / बहती है" & gt; & Lt; webflow: प्रवाह-स्थान-पैटर्न मान = "/ ** / * - flow.xml" / & gt; & Lt; / webflow: प्रवाह रजिस्ट्री & gt; मेरे मैसेज नियंत्रक के लिए मैप किया /simple.html ( /WEB-INF/pages/simple.jsp )। @ नियंत्रक सार्वजनिक वर्ग सरल नियंत्रक {@RequestMapping ("/ simple.html") सार्वजनिक स्ट्रिं...

flex - Error when extending AdvancedDataGridRenderer -

I have set up this type of itemorder package: PackageMerenders {import mx.controls. AdvancedDataGridClassesEasibleDataGrid itamenderer; Public class header reader provides the Advanced Data Grid Eaterser {public function theHeaderRenderer () {super (); SetStyle ("verticalAlign", "Medium"); }} } However, when I include the following lines in my advanced data grid column tag, & lt; Fx: Component & gt; & Lt; Myrenderers: theHeaderRenderer "/> & Lt; fx: Component & gt; & lt; renderers: someotherrenderer /> & lt; / fx: component & gt; & lt; / mx: itemRenderer & gt; the following error: TypeError: error # 1034: type statement failed: mx.controls.dataGridClasses :: mx.controls.advancedDataGrid classes. Advensdetagrit Listdeta from DataGridListData @ ac84f81. Mx.controls Can not be changed on .advancedDataGridClasses: AdvancedDataGridItemRenderer / set listData () [E: \ dev \ 4.x \ Frameworks...

jquery jscrollpane hijackInternalLinks with 2 srollables -

Hi Jake work with inline links merely a Sironbl per page it up when I use the 2 scroll back then The scrollbar is going away, when they kill the Mooshell, it jumps back in the beginning. You can see here that the code below has been used for more sources of links here, thanks for watching! $ (function () {// $ scrollable ("scrollable" start).);}); JQuery (document) .ready (function ($) {var resize_handler = function () {$ ( '. Item'). Css ( 'width', string. Width ((parseInt ($ ( 'body')))) + 'Px');}; $ (window). Resize (resize_handler); resize_handler ();}); $ (Function () ($ ( 'fuses') (jscrollPane) ({showArrows: true, hideFocus: true, horizontal gutter 30, vertical gutter 30, vertical Dragmainhit: 66, vertical Dragmakshait: 66, horizontal Dragminvinvidth: 50, horizontal Dragmaksvidth 50, Aphrnaantrik link: true, the mouse wheel Speepeed 5, Arobtnspeed: 5});}); $ (function () {$ ( '(right)'. JScrollPane ({showArrows: tru...

.net - Ninject conditional binding based on property value -

I'm having trouble defining binding using the ninja. I am in a standard ASP.NET WebForms application. I have defined an HIL handler to inject dependencies into pages and control (property injection). Here's what I'm trying to do: Based on the value of ANUm on that combo box I am creating a custom combobox user control, I have a different object in a property I want to be able to inject (what I am trying to do is a little more involved than that, but the answer should be sufficient to go to me). A conditional binding based on property value is not a good design and is not possible (at least Constructor injection) As the dependency is usually made before the received object. What will happen if the property changes later? The best way is to inject a factory or factory method, which requests an example from Niggs and internally exchange exchanges between the initial and asset value changes strategy. Public Anman Entity Type {A, B} Public Class Microlrol: User...

php - How do i add data to a database, am trying to test -

& lt ;? require_once ( '/ inc_auth2.php शामिल'); require_once ( '/ config.php शामिल'); AuthRegister ($ Tawanda, $ Mukoko, $ dob, $ लिंग, $ ईमेल, $ पासवर्ड); // डेटाबेस से अनुरोध / /require_once('includes/db.php '); (AuthRegister ($ forename, $ surname, $ dob, $ gender, $ email, $ password) ',' $ Dob ',' $ लिंग ',' $ ईमेल) "; // mysql क्वेरी निष्पादित करें और इसे '$ परिणाम' नामक एक चर में संचय करें $ result = mysql_query ($ addUser); } * /? & Gt; ओली ने क्या कहा: हमें थोड़ा अधिक जानकारी की आवश्यकता है। हालांकि, कोशिश करने के कुछ पहले चरण नमूने क्वेरी प्राप्त करने के लिए (एक एन्कोड करें $ addUser; और जब आप php चलाते हैं तो उसे प्रतिलिपि बनाएं) और अपने डीबी इनपुट (phpMyAdmin, कमांड लाइन, या सीधे डेटाबेस को प्रबंधित करने के लिए अन्य समान उपकरण) देखें और देखें कि क्या आपको कोई त्रुटि मिल रही है (कभी-कभी PHP चुपचाप में विफल हो जाता है अगर क्वेरी डीबी के साथ एक त्रुटि उत्पन्न कर रही है, खासकर यदि आप $ result ...

java - How to wait several objects -

I have a thread that many objects have to wait from different threads. @Override Public Zero run () {while (true) {for (background task tasks: actions) {synchronize (work) {if (task.isReady ()) {task.doTask (); }}}}} But this is the stupid use of CPU time how many objects wait for Please use notifyaAll () to notify () because the notification awakens a thread, as all inform () all Waiting threads arise.

Jquery: How to show the number of contents we want -

मेरे पास HTML कोड है & lt; div class = "content" & gt; प्रश्न: & lt; इनपुट प्रकार = "टेक्स्ट" आकार = "30" / & gt; & lt; br / & gt; उत्तर ए: & lt; इनपुट प्रकार = "टेक्स्ट" आकार = "30" /> gt; & lt; br / & gt; उत्तर बी: & lt; इनपुट प्रकार = "टेक्स्ट" आकार = "30" /> gt; & lt; br / & gt; उत्तर सी: & lt; इनपुट प्रकार = "टेक्स्ट" आकार = "30" /> gt; & lt; br / & gt; उत्तर डी: & lt; इनपुट प्रकार = "टेक्स्ट" आकार = "30" /> gt; & lt; br / & gt; सही उत्तर: & lt; इनपुट प्रकार = "रेडियो" नाम = "ए" / & gt; ए & lt; इनपुट प्रकार = "रेडियो" नाम = "बी" / & gt; बी & lt; इनपुट प्रकार = "रेडियो" नाम = "सी" / & gt; सी & lt; इनपुट प्रकार = "रेडियो" नाम = "d" / & gt; डी & lt; / div & gt; कृपया उ...

sql join problem -

hy! मेरे पास 2 टेबल हैं संरचना ऊपर है: छात्र आईडी छात्र नाम आयु जॉब कोड 1 जॉन 18 छात्र 1 2 जॉन 1 9 प्रोग्रामर 1 3 जॉन 18 डेवलपर 2 4 अंक 18 छात्र 3 5 मार्क 1 9 प्रोग्रामर 1 इनफ़ोस आईडी पता टेलीफोन कोड 1 fdsf 00232 1 2 gffdfd 322 1 3 dsdd 1833 2 4 gffg 43333 3 5 एफएफएफ 1 9 33 1 मैं संरचना के साथ एक तालिका प्राप्त करना चाहता हूं: idStudent नाम आयु पता टेलीफोन कोड 1 जॉन 18 1 3 जॉन 18 2 4 अंक 18 3 तो मैं क्या करना चाहता हूँ, अद्वितीय कोड और सभी अन्य फ़ील्ड के साथ तालिका को प्राप्त करना है जो पहले या आखिरी (इसके लिए मेरे लिए कोई महत्व नहीं है) डेटा भरना है तालिका। मुझे कोड फ़ील्ड डुप्लिकेट नहीं करना है, यह मेरे लिए महत्वपूर्ण है चुनें एसआईडीस्ट्यूडेंट, मिन (नाम) नाम, मिन (आयु) आयु, MIN (एसडीआईडस्ट्यूडेंट = आईआईडी ग्रुप पर एसआईडी स्टूडेंट ) के बारे में जानकारी प्राप्त करें (पता) पता, मिन (दूरभाष) टेलीफोन, मिन (कोड) कोड से छात्र एस इनर सम्मिलित हों I एचटीएमएल>

jsf 2 - JSF 2 composite component, passing attributes to backing bean -

मैं साधारण JSF2 प्रश्न पर फँस गया हूँ: एक्सएचटीएमएल: & lt; xvf: सरलऑट पहचानकर्ता = "12345" / & gt; संमिश्र घटक को बीन का समर्थन करने के लिए "12345" पास करना और कुछ आउटपुट करना है: & lt; composite: interface & gt; & Lt; composite: विशेषता नाम = "पहचानकर्ता" आवश्यक = "सच" प्रकार = "java.lang.String" / & gt; & Lt; / मिश्रित: इंटरफ़ेस & gt; & LT; समग्र: कार्यान्वयन & gt; & Lt;! - @ elvariable id = "arg" प्रकार = "java.lang.String" - & gt; & Lt; ui: परम नाम = "आर्ग" मान = "# {cc.attrs.identifier}" / & gt; & Lt; h: आउटपुटटेक्स्ट मान = "# {myBean.getTestOutput ('???????')}" / & gt; & Lt; / मिश्रित: कार्यान्वयन & gt; मैं बीन के getTestOutput (स्ट्रिंग एजीआर) विधि के लिए कैसे पहचानकर्ता मान, मेरे मामले में '12345' पास कर सकता हूँ? आपको & lt; ui: param & gt; टैग पर सभी की आव...

java - Specify Generics in interface extends -

Should I specify solid type for normal type when extending an interface with an interface? Do I mean, if I have any interface: public interface repo & lt; T & gt; {Collection & lt; T & gt; Search (string parameter); T obtained (string id); } and then a full bunch of specific repositories, such as ClientRepo , Customer Rippo , etc ... to specify this type Appropriate when this interface is extended, for example: Public Interface Client Rippo Repo & lt; Client & gt; {} Public Interface Expands Customer Rippo Repo & lt; Customers & gt; {} Where customers and customers are only a few classes. Does anyone have any such problem? I mean I can: public interface client repo & lt; T & gt; Appendix : I should make my intention more clear to be a special repository (such as a client repo). There is another interface called RepoFactory that gives a proper repo to the customer, e.g.: Public Interface RepoFactory {ClientRepo cr...

asp.net mvc - Strongly typed MVC update action and jquery serialize problem -

I have an updated action that I post to use jquery serialize public verb update ([bind (remove = "id")] person) {// content return material ("some results"); } The problem is that jquery generates a string in my format with the following format: IsMale = on & amp; Name = joe ... etc (where there is a checkbox on the IsMale website and bool in the model) But ASP.NET does not recognize valid hair as MVC "b", and then every time I am lying Get in the form of false. Wanted solution: Either get Jquery to give me true / false values ​​when serializing or somehow understand MVC = true .. Any suggestions on how to ? Did you set the "value" property on your checkbox input manually to "true" have tried? In addition to HTML By using the checkbox correctly, you can use the version which you are using MVC?

Calculating Grades in SQL -

Very simply, I need to find a student grade using SQL I, for example, I have the following The table that defines the grade marks (in) grade (four) and data like this: icon | Grade __90 | A + __80 | A __70 | A- __60 | B __50 | C __40 | D. Well, on saying, if I have a student who gets points 73, how can I use the above grading in SQL? lot ... You value your value at or below the highest value 73 options for your price ... Select the top 1 grade from the table name, where Mark & ​​lt; = 1 mark command

castle windsor - NServiceBus: Messages handled multiple times -

I am experiencing this problem, so I am completely harming. I am new to NServiceBus and so far has a dead simple 'server' installed which listens for messages sent by a web application. The server asks for custom initialization (IWantCustomInitialization) and uses one. This custom builder is basically a copy of the one that comes with the NServiceBus source code, with two minor changes to move away from deprecated methods in Windsor 2.5. Note uses my code, container example with NServiceBus. The problem I have is that every message sent by the web application is processed by the server five (5) times. The log file contains five entries for every attempt, in this way with the fifth try: 2011-03-28 16: 04: 10,326 [worker 8] DEBUG NServiceBus.Unicast.UnicastBus [] - calling NServiceBus.SagaPersisters.NHibernate.NHibernateMessageModule 2011-03- on 28 'HandleEndMessage' 16: 04: 10,327 [Worker.8] debug NServiceBus.Unicast.UnicastBus [] - on Server.NHibernateSession...

ruby on rails - `rspec --configure autotest` throws "uninitialized constant Class::FileUtils" -

I am trying to decide with RSPC itself. There was never a problem, but when I run rspec --configure autotest , I get the following error / trace: Autopest loads Autopest subclass of RSPEC When the .rspec file in a project's root directory / Users / Barranon /. RVM / Games / Ruby19.2-P @ Timekeeper / Games / RSPC -core-2.5.1 / Leib / RSPC / Core / Backward_compitability. RB20: In 'CON_MISSION': Uninified continuous class :: FileUtils (NameError) /Users/brennon/.rvm/gems/ruby-1.9.2-p0@timekeepa/gems/rspec-core-2.5.1/lib/rspec `Create_dot_rspec_file'/Users/brennon/.rvm/gems/ruby-1.9.2-p0@timekeepa/gems/rspec-core-2.5.1/lib/rspec/core/ from /core/command_line_configuration.rb:38:in Command_line_configuration.rb29: In 'generated' by / user / barranon /. RVM / GIMS / RB 1-1.2.2-p0 @ Timekeeper / Games / RSPC-COR-2.5.1 / LIB / RSPC / Core / CommodityLine_RB configuration 12: From 'run' / to user /brennon/.rvm/ Gems/ruby-1.9.2-p0@timekeepa/gems/rspec-cor...

iphone - UIWebView loadRequest causing a crash in simulator -

So I'm trying to load a web URL (http://www.google.com) in the web view I am I had this application in which I was working, but it was boiled in an original application to remove other variables. I have at least one app setup, a view controller with the webwalk as its primary view, for the code I have - (zero) viewDidoad {[Super Viewedload]; UIWebView * webView = (UIWebView *) self.view; NSMutableString * urlString = [[NSMutableString alloc] initWithString: @ "http://www.google.com"]; NSDRL * URL = [[NSRL Alok] InitwithString: URL String]; NSURLRequest * urlRequest = [[NSURLRequest alloc] initWithURL: url]; NSLog (sending web request to @@ @ urlString); [WebView loadRequest: urlRequest]; [UrlRequest release]; [Url delok]; [UrlString dealloc]; } And when it loads, I get an EXC_BAD_ACCESS crash inside the web thread. I am unsure if this is a problem related to the fact that I am working in a simulator, or something that I've messed with setup. call deal...

Error with new ASP.NET MVC 3 Project -

मैंने एक नया एएसपी.नेट एमवीसी 3 प्रोजेक्ट बनाया और परियोजना टेम्पलेट व्यवहार को देखने के लिए कोई भी बदलाव किए बिना इसे चलाया, और मुझे एक "विधि नहीं मिला त्रुटि" - पूर्ण स्टैक ट्रेस नीचे है। जब मैं ऑब्जेक्ट ब्राउज़र में वेबपेज कॉन्टैक्ट ऑब्जेक्ट को देखता हूं, तो मुझे लगता है कि वास्तव में कोई भी तरीका हस्ताक्षर नहीं है जो कन्स्ट्रक्टर के लिए कॉल करता है । System.Web.WebPages संदर्भ C: \ Program Files (x86) \ Microsoft ASP.NET \ ASP.NET वेब पेज \ v1.0 \ Assemblies \ System.Web.WebPages.dll को हल करता है। मैंने एएसपी.नेट एमवीसी 3 आरटीएम और वीएस 2010 एसपी 1 को फिर से स्थापित करने की कोशिश की लेकिन कोई भाग्य नहीं के साथ। कृपया मदद करें। त्रुटि संदेश: विधि नहीं मिली: 'शून्य सिस्टम। वेब। वेब पेज। वेबपेज कंटेंटेक्स्ट। .कैक्टर (सिस्टम। वेब। एचटीपीटीटीईटीबेसबेस, सिस्टम। ऑब्जेक्ट, सिस्टम। कोलेक्शन। जीनरिक.आईडीआईसीआईसीआईडीसी 2) '।। वर्णन: मौजूदा वेब अनुरोध के निष्पादन के दौरान एक अनियंत्रित अपवाद उत्पन्न हुआ। कृपया त्रुटि के बारे में अधिक जानकारी के लिए स्टैक ट...

java - Stubbing a method that takes Class as parameter with Mockito -

The problem is a simple method that takes as Class parameter and it irritating me with Mokito I method the Looks like: public & lt; You Enum & lt; U & gt; & Amp; Error, T ServiceResponse extended & lt; U & gt; & Gt; T valid (object target, validator verifier, class response class, class U & gt; errorNyan); It is at least dangerous to God for me ... I could imagine living without it, but the rest of the code base used it with joy ... I was going into my unit test, was stopping this method to return a new empty object. But how can I do this with mokitias? I tried: When (serviceValidatorStub.validate (none), ISA (UserCommentRequestValidator.class), UserCommentResponse.class, UserCommentError.class) .thenReturn (new UserCommentResponse ()); But when I'm in Milan Milankrtaon and would introduce the raw values, I get an invalid use of "org.mockito.exceptions.misusing.InvalidUseOfMatchers exception argument matchers!" The probl...

javascript - jquery dialog box -

I have jquery code given below which I have customized it according to my requirement but there are some problems with it. First of all, the user clicks on "click", the dialog is not displayed. And when the user clicks on "off" the dialog disappears. All of you appreciate it. & lt ;! DOCTYPE html & gt; & Lt; Html lang = "en" & gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" & gt; & Lt; Title & gt; JQuery UI Dialog - Basic Model & lt; / Title & gt; & Lt; Link rel = "stylesheet" href = "../../ themes / base / jquery.ui.all.css" & gt; & Lt; Script src = "../../jquery-1.5.1.js" & gt; & Lt; / Script & gt; & Lt; Script src = "../../external / jquery.bgiframe-2.1.2.js" & gt; & Lt; / Script & gt; & Lt; Script src = "../../ui / jquery.ui.core.js" & gt; & Lt; / Script & gt; & Lt; Script src = ...

iphone - ALAssetsLibrary doesn't retrieve image URL's in physical iOS 4.1 iPod device? -

I am trying to reach photo photo photo images of the iPhone through the Elassette Library. I can access all the photo albums and get the Asset URL of each images on the simulator through the following code: - (zero) viewDidoadload [[Super Viewedload]; Zero (^ Asset Enrator) (Structure Elassette *, NSUINTER, BOL *) = ^ (Elassette * result, NSUntengar index, BOL * stop) {if (result! = Null) {NSLog (@ "Asset View:% @", result ); // property is an NSMutableArray. [Property addObject: result]; // Here the image URL of the property is kept in the NSMUtable URL URL StoreRR NS URL * URL = [[Default Refereration URL]; [UrlStoreArr addObject: url]; }}; Zero (^ Asset Group Emulator) (Structure ALSSet Group *, BOLD *) = ^ (ALSSet Group * Group, BOLD * stop) {if (Group! = Zero) {[Group Enumerate Asset Using Blocks: Assignment]; } [Self. Stop the activity]; [Self. Activation sethead: yes]; }; Property = [[NSMUTABELARRAOL] INIT]; Library = [[elasette library alloc] init]; [Library En...

javascript - How to edit element created in CSS with :after using jQuery? -

I have created an element in CSS with a pseudo-class: after that there is no way to change its CSS properties with jQuery is? I think you want $ ('# Object_id: after '). CSS ({color: blue});

jquery - keypress on iframe document gets whole html as target (not exact node) -

I have an IFrame with designMode = "on" (yes - I know this is a bad thing) Let me click on it and do the quiking and echo the node name of the target element. $ (function () {var editor = $ ("# editor") [0] .contentWindow; var doc = editor.document; editor.document.designMode = "on"; doc .open (); doc.write ('& lt; div id = "dummy"> test ;); doc.close (); // iframe body var $ body = $ ( Find the content (). ('# Dummy'). After removing $ body, parent (); // clear html (' gt; hello & lt; / div & gt; '); Var report = function (e) {$ ("# result"). Html ($ ("# result"). Html () + "+ + e Target.nodeName.toLowerCase ());} $ body $ (Doc) .keypress (report); / Pre> When I "Hello" I click on - I get "div" - that's right, but when I press it - I get "html" instead of "div". How to fix it? I've done a little bit Google. It can he...

c++11 - Extension methods in c++ -

I was searching for the implementation of extension methods in c ++ and it is mentioned that polymorphic_map can be used for methods associated with a class, but, provided the link is considered dead, does anyone know what its answer was referencing, or if in a way Extension methods (possibly through some use of a mixine) Other way? I know that canonical C ++ solution is to use free functions; It's more of curiosity than anything else. Development of different languages ​​in different ways, especially in C # and Java There is an approach of strong perspective in relation to the OO, due to which everything is something mentality (C # is a bit diminished). In that approach, extension methods provide an easy way to add an existing object or interface to new features. There are no extension methods in C ++, nor are they required when developing C ++, everything forgets an object pattern - by the way, Java / C # [*] is also wrong. A different mindset is taken in C ++,...