Posts

Showing posts from July, 2014

php - Get timestamps of current week -

I have the date time of the present day. I need to get two Unix timestamps for the start and end of the current week. How can I use the dateperiod or dateinterval class? $ Start_of_week = strtotime ('last Monday', $ now); // week BEGINNING finally gives you $ end_of_week = strtotime ('next Sunday', $ now) + 86400; // gives you time at the end of the last day of the week

c# - Entity Framework Code First - Cannot insert duplicate key in object 'db' -

I'm using the new EF code in my project first, and I'm getting a weird error, my mode is : abstract class members {public virtual member of public; ... some other stuff} Class users: Members {public virtual string name; ... some other props are not defined by a new key} Category MyDbContext {public DbSet The result of deployment on SQL Server is fine, I have a member table and a user table (TPC). Now in my main I have the following code: Fixed main () {User X, Y; (MyDbContext ctx = new MyDbContext ()) using {x = ctx.Users.Create (); Y = ctx.Users.Create (); X.Name = "SomeUser"; Y.Name = "SomeUser2"; Ctx.SaveChanges (); }} I save changes: "Unchecked exception: System.Data.Entity.Infrastructure.DbUpdateException: An error occurred while updating the entries See Internal Exceptions for Hui De Tuq. ---> System.Data.UpdateException: An error occurred while updating the entries. See internal exceptions for details. ---> System.Data.Sq...

java - How to get the original request url from a servlet/jsp after multiple servlet forwards -

I'm working on the Cruise Booking app using strokes / tiles which multiple Uses the servlet / jsp to display the right jsp for further performance. But, once you are used to present the page, after reaching the final JSP, call $ {pageContext.request.requestURL} in the JSP it Returns the path of JSP For example Original request: forwarded to / booking / getCruiseDetails Is done: / booking / validateCruiseDeteails.jsp is forwarded to: / booking / validate user. JSP Finally it is forwarded: / Booking / Show Cruises Jsp Then, when I call on $ {pageContext.request.requestURL} / bookmark / showcruiseDetails.jsp me / booking / ShowCruiseDetails.jsp How can you get the original (client created) request URL from JSP that has reached through multiple forward I got the following post on stack overflow Used to indicate that solution, but they do not know how to find the original request URL after a number of requests. You can use a filter to request the a...

javascript - What's the significant use of unary plus and minus operators? -

यदि unary + / - ऑपरेटर्स को रूपांतरण के रूप में प्रयोग किया जाता है संख्या () कास्टिंग फ़ंक्शन, तो हमें एकरी ऑपरेटरों की आवश्यकता क्यों है? इन unary ऑपरेटरों की विशेष आवश्यकता क्या है? यूनरी + ऑपरेटर नंबर ऑपरेटर को अपने ऑपरैंड को परिवर्तित करता है। यूनरी - ऑपरेटर नंबर ऑपरेटर को अपने ऑपरेंड को रूपांतरित करता है, और फिर इसे नकार देता है (प्रति) व्यवहार में, यूनरी - को सामान्य अभिव्यक्तियों में केवल नकारात्मक संख्या डालकर उपयोग किया जाता है, उदाहरण: var x = y * -2.0; यह काम पर एक कम मासिक ऑपरेटर है यूनरी + नंबर () कन्स्ट्रक्टर के समतुल्य है, जिसे फ़ंक्शन के रूप में बुलाया जाता है, जैसा कि नमूना द्वारा निहित है। मैं केवल इतिहास पर अनुमान लगा सकता हूं, लेकिन unary +/- ऑपरेटर कई सी-व्युत्पन्न भाषाओं में इसी तरह व्यवहार करते हैं। मुझे संदेह है कि संख्या () व्यवहार यहां भाषा के अलावा है।

css - CodeIgniter - Simple base_url question -

I'm a little confused. I have a simple controller that loads a view. There is a form in the view and links to some CSS files. I really do not want to do ../../ css / global.css in my link tag. I want to use the base_url () method and then go / css / I know that a friend uses the following: & lt; Link href = "{base_url} css / style.css" rel = "stylesheet" type = "text / css" /> However, I can not get it to work, that uses CodeIgniter 1.7, however, I am using the latest (2.something) version. I'm new to CodeIgniter and I was roaming with it, but I can not even add a simple CSS file: ( My view is in /logic/views/index.php , my CSS files / css / . I think your problem is that base_url is a function in ci 2+, so try it instead link href =" & lt; ? Php echo base_url ()? & Gt; css / style.css "rel =" stylesheet "type =" text / css "/> How do you define base_url If you had other...

Using jquery to get all checked checkboxes with a certain class name -

I know that I can get all the checkboxes on the page on this checkbox: $ ('Input [type = checkbox]'). Each (function () {var sThisVal = (this.checked? $ (This) .val (): "");}); But now I'm using it on a page that has some other checkboxes I do not want to include. How can I change the checked-up check box only to the above code on which there is a certain category on them? $ ('theClass: checkbox: check') To class theClass .

visual studio 2010 - #include -

What's wrong with the code snippet below that VS2010 will not compile it? int m = sqrt (n); (I am trying to ensure that there is a prime prime ...) You have to pass a specific floating point type on sqrt - there is no integer overload. Use eg: long double mi = sqrt (static_cast & lt; long double & gt; (n)); As you include cmath not math.h , I'm assuming that you want C ++ For C, you will need to use eg: double M = sqrt ((double) n); You just error means that the compiler can not automatically select a sqrt function for you - you converted the integer passed to a floating point type And the compiler does not know which floating point type and the sqrt function should be selected.

c# - GridView row editing -

I have a gridview with five bound fields. When inserting values ​​into the grid, I get the textbox field in the cells and it is working fine. An issue when I need to edit my line, I just need to make 3 cells editable and the other two The cells should only be left to read. How can I get this? Gridview = "none" backender = "Whaitsmok" CssClass = "grid View" AlternatingRowStyle-CssClass = "alt" PageSize = "8" onrowcancelingedit = "GridView1_RowCancelingEdit" onrowdeleting = "GridView1_RowDeleting" onrowediting = "GridView1_RowEditing" onrowupdating = "GridView1_RowUpdating" onrowdatabound = "GridView1_RowDataBound" onrowcommand = "GridView1_RowCommand "Onrowcreated =" GridView1_RowCreated "& gt; & Lt; RowStyle BackColor = "#EFF3FB" /> & Lt; PageSets pageBitton = "5" /> & Lt; Columns & gt; & Lt; ASP: TemplateField ...

html - semantic markup for stretchable header and footer -

Actually I want something like github headers and footers, different color from headers and footer body and Both go for forever My center (main) lamp is fixed width, so that means I need a container divis. I have something like this: I would like to align headers, footers and containers, but if the container was only a fixed width, then it would be aligned without aligning it Is hard for The background and main body for the headline I thought was different, but the footer looks different, but it looks like a dirty hack and it seems like it does not make sense. Is this structure adequate semantic? Container header main-content footer Or I should be living with my original plan Container header main Content Footer Edit I think the StackHowarflow actually uses the Gitb style where the headers with fodder are separated from the container. And main content. Is this the normal way to do this layout? (Please provide some articles / links that support it) You d...

how to run winforms app in debug mode outside of Visual Studio -

When I launch a Winform application from Visual Studio, additional runtime checks are checked to check for errors It throws an exception from if I use a form element outside the thread that it was created, then the text "cross-thread operation is not valid". When I run my integration test, which initiates the process outside of Visual Studio, this check is not enabled. I'm running the executable build result, besides launching it with the process. Start () and maybe custom command-line arguments. How can I enable that run-time check when I'm executable outside Visual Studio? It is controlled by control. Checkfill ILLealCrossHoldCall property It is started with the value of the debugger. If ISAcredited is not debuging its program, then set it to true to check. For example: Private Zero Button 1_Click (Object Sender, EventArgs e) {Control.CheckForIllegalCrossThreadCalls = true; Var t = new system.Threading.Thread ((= =) {{..Text = "kaboom"}} ho...

c# - Programatically setting Horizontal alignment of Dock Panel -

अभी तक मेरे पास है: myDockPanel.SetValue (क्षैतिज एलाइनामेंटप्रॉपर्टी, टेक्स्टएलिंमेंट। केंद्र); मुझे पता है TextAlignment.Center सही नहीं है क्या किसी को पता है कि यह क्या होना चाहिए? myDockPanel.HorizontalAlignment = HorizontalAlignment.Center;

symfony1 - Console dql join syntax? -

मुझे कंसोल में dql स्टेटमेंट लिखना काफी आसान है I उदाहरण के लिए, ./ symfony सिद्धांत: dql "sfGuardUser से जहां id = 8" लेकिन, मैं कोशिश करता हूं कि मैं बस नहीं देख सकता एक जुड़ने क्वेरी को ठीक से लिखें। मुझे यह काम करने के लिए अच्छा लगेगा: । / Symfony सिद्धांत: dql "से sfGuardUser s छोड़ा s.Profile" लेकिन यह नहीं है । सही सिंटैक्स क्या है? मैंने अभी इसे करने की कोशिश की है, एक बाएं शामिल नहीं है)। इस मामले में एक सामान्य सम्मिलन काफी अच्छा है। (एक उपयोगकर्ता के पास एक प्रोफ़ाइल है) ./ symfony सिद्धांत: dql "sfGuardUser से s.Profile में शामिल है"

c++ - Generating unique ID in postgres -

Is there any way to generate a unique ID in postgres? Suppose I have two files: File 1: a, b, c, d, e, f file2: h, i, j a, f, h and I want to include them in the same table (which should be possible because they have the same data type elements) but still able to obtain them, Separately later, can I get postgrescale for generating a unique ID for me? You can definitely do it! You can create a loaded_files table and you can store the name of the file you are loading ID from loaded_files and Insert that data into your file_items table. What you are asking is a solution that is usually solved during data loading in the application code or with other SQL statements.

Rails get all items from all orders -

@ orders.closed_today is an array of all orders closed for today. How can I get all the items for this? i.e. @Itms = @order.closed_tayday.itms update reports html & lt; % @items = Item.in_orders (@ Orders.closed_today)%> item model scope: in_orders, lambda {| Order | Where ('in order_id (?)', Orders.map (& id) .join (','))} Simple: Map items. @items = @order.closed_tod.l (: include = & gt;: item) .map (& amp;; item) This will give you: = & gt; [[Item 1, Item 2], [Item 2, Item 3]] To get exclusive items: @order.close_toded. L (: included =>: items) .map (and: items). Flaten.Yinek It is not a permanent way of bringing related items; N + 1 Performance Problems Be Careful More generally, you should do something like this: area of ​​square item: closed_tode, joins (: order) & amp; And just call: Item.closed_today

cocoa - Restart/Refresh Dock - killall Dock - cache -

I created an app that changes the OSX garbage icon. However after this icon. Png files have been replaced ... / CoreServices / Dock.app / resources will not show new icons before this trash changed state (fx empty -> full or full -> empty). . I have tried to see the change using the killer dock, the killer finder, but it is not working .. I have a library / cash / com. I've read about removing the doc cache file in Adling Dock ... but I do not think to find this file? Can you help me? I find the by using the bass command that was actually finished -name com.apple.dock .iconcache . Then I removed all the matches, it works perfectly!

qt - switch/case statement in C++ with a QString type -

I want to use switch-case in my program but the compiler generates an error. How can I use the switch statement with QString ? The compiler gives me this error: The expression of the switch type 'QString' is invalid My code is as follows : boolStopWord (the word QString) {bool flag = false; Switch (word) {case "the": flag = true; break ; "On" case: flag = true; break ; Case "in": flag = true; break ; Case "your": flag = true; break ; Case "near": flag = true; break ; Case "all": flag = true; break ; Case "this": flag = true; break ; } Return flag; } How do I use the switch statement with a Caststring ? You can not use the switch statement in C ++ language with integral or enum types. You can formally enter the square type of object in the switch statement, but this means that the compiler will look for a user-defined conversion to convert it to an integral or enum type.

Ruby SMPP with RabbitMQ and Eventmachine, problems after AMQP.stop -

I have a small problem with the rabbit that I do not understand. I am using: Ruby version 1.8.7 AMQP GEM version 0.7.0 RabbitMQ v2.3.1 Ruby-smpp v0.4.0 My code looks like this: Loop AMQP Start Event MacKina :: Run @@ tx = EventMachine:: Connect (Config [: Host], Config [: Port], SMPP :: Transceiver, Config, Self # Representative, Callback on MO and DRS and other events EM.add_timer (10) does "AMQP New" amq = MQ.new amq.queue ("# {provider}"). Subscribe (: ack => true). Header, msg | "Provider # {Provider} Customer # Process {# Process.pid} Processed # {msg}" header.ack End End EM.add_timer (30) {EventMachine :: stop_event_loop} End and AMQP.stop "# {config [ : Host]} disconnected .. reconnecting in 35 seconds. "Sleep 35 End I added this line for testing EM.add_timer (30) {event McKine :: Stop_Avent_Loop} So after 30 seconds I stop the event loop, it sleeps for 35 seconds and restarts everything. The problem is that amq ...

operating system - Why isn't every OS real-time? -

I have not heard anything about RTOS, but they give the programmer more control over the scheduler so that the priority is inversely Avoid, their time is more consistent, better multitasking but all standard desktop setup uses OS which are not real time. There should be some tradeoffs for using RTOS, what are they? RTOS typically features general definition of "real-time" people for business performance and forecasting and traceability "Deterministic"; You can not make a fate without paying for it. In the general purpose OS, we are inspired by "common-case" behaviors - we really want very good performance and much more flexibility. At RTOs, we want a reliable roof over the "worst condition" behavior, and we pay in throughput or normal-type behavior (often referred to as). Yes, it is possible to make hybrids, such as Windows or Linux real-time threads but somewhere you are usually finishing because only a limited set of available resour...

java - Null Pointer Exception calling String[] from another class -

My problem is just that. I have tried to declare the string as a specific shape, I sort and do everything, but the only thing that works is putting the string in the main method in the main method that I use I am This is disappointing, because I have tried all those things which I can think of. When I import them from another class, then why do the elements become zero? I added a main method for the trick class and also moved it there to do it, but there is no benefit. Here's the first program: import java.util.Arrays; Public square tricks square {public string [] getMoves () {return moves; } String [] moves; Public stable string [] useMove (string [] moves) {moves [0] = "punch"; Moves [1] = "kick"; Moves [2] = "rescue"; Moves [3] = "run"; Moves [4] = "inventory"; Moves [5] = "Rickel"; Moves [6] = "heal"; Arrays.sort (move); Return moves; }} And body of the main one: import java.io. *; Import java.util. *;...

javascript - Integrating Calendar Function into Static .html Site -

I need to create a calendar function in an HTML function. I'm looking for some ways to capture a snippet of some code like a Google calendar to put in a division on my website. The goal is that my client can manage their own calendars. I am a professional SEO who glows as a web designer. I am quite normal with HTML and CSS, but it's about - I usually create small sites with static content. If I can catch a Facebook or Twitter feed, then I think I should be able to do this with the calendar function. Do you see the calendar implemented in JavaScript? If so, you can put directly in the page Another good option is , but there is dependency on its jQuery JavaScript library.

c#.net parsing HTML -

I am creating a webpage that will retrieve some form data from several other pages. For example, hidden Form Field: & lt; Input type = "hidden" id = "thefield" value = "thegoods" /> Now there is always one ID in this area, but sometimes written with double quotes ("), sometimes a single (') and sometimes none. Therefore, it is difficult to do just that, to recover the necessary information, an "index". Do not in any way return the value of form elements in C # .net in a jquery way Unwin Any help appreciated . Example: The easiest way is probably using. code> HtmlAgilityPack. HtmlDocument Doc = New HtmlAgilityPack.HtmlDocument (); doc.Load ("test.html"); HtmlNode node = doc.DocumentNode.SelectSingleNode ("// input [@ id = 'thefield']"); var value = node. Properties ["Value"]. Value; // "thegoods" Edit: Local to load an HTML page Instead of usin...

java - Convert binary string to ascii text? -

I was wondering if it is possible to enter a binary number and translate them back into text. For example, 01101000 01100101 01101100 01101100 01101111 "and will make it secret in the word" hello ". Just a few logical corrections: Here are three steps Change the binary set to an integer then the integer in a character then insert the string you are creating Fortunately a radix takes for the parseInt basis. Therefore, once you cut an array of substrings necessary to reach string up (perhaps) length 8, or , then you only need to do this (char) Integer .parseInt (S, 2) and concatenate. string s2 = ""; For the next four (int i = 0; i & lt; = s.length () - 8; i + = 9) // It is a bit tricky that we want [0, 7], [9, 16] e.t.c. (If the bytes are delimited by increment index 9) {nextChar = (char) Integer.parseInt (s.sstring (i, i + 8), 2); S2 + = nextChar; }

java - Good data structure to represent a 2D map/grid that you can zoom in and out of? -

I have created a 2D grid in Java, where each cell can have a certain attribute, the color is called . At every frequency of the main loop, that color may possibly change What I want to be able to do is: - When zoomed in, this small subset of the grid and the grid of each grid Will show the actual color. - As you zoom out and look at more cells at a time, seeing the cells individually will start to become very small, so I will be able to use that area (a collection of single cells) as a color I want to be able to present (say that one of the most frequent occurrences in that collection) I thought to do that one thing would be to use hierarchical tree / pyramid structure, Where on the leaves you have each room. Each parent is given information of each child in its node, so to draw a map at a high zoom level, instead of seeing each room individually, only a few levels will go down, however, changing the parents from the leaves And later, the changes occurring at every high level...

c - How to create socket via socket() on MSVC? -

I am porting the Linux app under Win32 (msvc 9.0) and after finishing it, I'm experiencing the default behavior as simple as socket () . #include & lt; Winsock2.h & gt; # Include & lt; Ws2tcpip.h & gt; Int main (int argc, char ** argv) {int subsock; If ((subsock = socket (PF_INET, SOCK_STREAM, 0)) & lt; 0) {printf ("failed to open socket (rate value =% d) \ n", subsock); }} It prints failed to open socket (rate value = -1) What is wrong every time and how to open socket on win32? You need to start winsock before starting WSAS socket calls will be successful. WORD wVersionRequested; WSADATA wsaData; Intel mistake; / * Use the MacDayDard (Kambyte, Hibiite) macro declared in the WifiHeAs. * / WVersionRequested = MAKEWORD (2, 2); Err = wsasartartup (wVersionRequested, and wsaData) if (error! = 0) {yourError! For more information: Just request the 2.2 version and be done with it.

python - Create a tuple from a string and a list of strings -

I need to combine a string with a list of strings so that I can use it as a dictionary key Can I This list will be small (typically 1, but sometimes 2 or 3 items). What is the fastest way to do this? ago: my_string == "foo" my_list == ["bar", "falcon", "quax", "etc."] After: my_tuple == ("foo", "bar", "baz", "qux", "etc") (Note: my_list should not change itself). I can not talk for performance, but this is definitely the simplest, I can think I: my_tuple = tuple ([my_string] + my_list)

Rails: Search method breaks PostgreSQL, alternatives? -

मेरे पास मेरे ऐप में निम्नलिखित विधि है: def self.tagged_with (string) सरणी = string.split (',')। Map {| s | | S.lstrip} joins (: tags) .where ('tags.name' = & gt; सरणी) .group ('photos.id') समाप्ति यह फ़ोटो खोज रहा है, जिनके पास टैग्स के माध्यम से कई टैग। इस पद्धति से टैग्स की अल्पविराम से अलग सूची ली जाती है और कोई भी फ़ोटो देता है, जो दिए गए नामों के साथ टैग से संबंधित हैं। समस्या यह है कि यह PostgreSQL को निम्नलिखित त्रुटि संदेश: ActionView :: Template :: त्रुटि (PGError: त्रुटि: कॉलम "photos.custom_title" GROUP BY खंड में प्रकट होना चाहिए या एक समग्र फ़ंक्शन में उपयोग किया जाना चाहिए: SELECT "photos "।" से "।" फोटो "इनर जॉइन" टैगगिंग्स "ऑन" फ़ोटो "।" Id "=" टैगगिंग "।" फोटो_आईड "इनर जॉइन" टैग "ऑन" टैग "।" Id "=" टैगिंग "।" Tag_id "WHERE "टैग"। "नाम" में ('गांव') और (...

performance - How efficient is Python's max function -

Function Maximum () which gives maximum elements to the list. . . What's its time to run (in Python 3)? Since this is O (n), since it should examine each element if you have maximum For better performance, you can use the module. However, you have to do, because happers provides a minimum stack. It is log (log n) to put one element into a heap.

How set .bat file to C++ -

Can anyone help, I've created a bit file, now I want to convert to C ++ In my Bat file, I need to make another file call name.bat, so now I want to use C ++ to execute all these commands. My sample here: set / p CID = Curr_ID = set / p CIP = Curr_IP = set / p CIS = Curr_SUBNET = counter set to Curr_POrt hex from December / P CIPR = Currror = Set / P NID = New_ID = Echo CD \ & gt; & Gt; If.bat echo CLS & gt; & Gt; If.bat echo if exists del.bat goto: label1 & gt; & Gt; If.bat Echo: Label 1 & gt; & Gt; If.bat echo CD \ & gt; & Gt; If.bat echo c: & gt; & Gt; If.bat echo CLS & gt; & Gt; If.bat echo @echo off echo echo setup has ended !!! & Gt; & Gt; If.bat echo pauses & gt; & Gt; If.bat echo del del.bat & gt; & Gt; If.bat echo del name.bat & gt; & Gt; If.bat echo del if.bat & gt; & Gt; If.bat echo output & gt; & Gt; If.bat echo del name.bat & gt; & Gt; Del.bat echo ...

ruby on rails - Cache Money vs DB-level indices? -

What cache money mani eliminates the requirement of DB level indexes (usually used to improve query retrieval is done)? caching = Your query is obtained from the query cache (RAM) if they are Indexing = With the help of the database, a few questions (very) have been answered fast (a simplified definition, but enough here for my purpose). Therefore, the speed of questions increases without having to kill the database in the cache, whereas the data going through the cache in the index is accelerated and the database is pressed. The benefit you get from caching depends on the specifications of your application. If most questions ask for the same data, or you have fewer updates than read, then using the caching layer should prove to be a good idea. However, I have seen that even in the best scenarios, 15-20% of questions still reach the database. This means that you can not trust caching alone. But most importantly - the database index is simple to define and usually requi...

Android: Tilting mobile makes ImageView content disappear / URI refreshed -

Thanks in advance for any feedback I am facing a trivial problem. Hardware: Motorola (Android Phone) I'm displaying in an image view. The image itself has been caught through the ContentResolver. The problem is that whenever I tilt my mobile, the image is empty, by logging out the logs and variables, I came to know that the relevant URI is back to its default (i.e. zero ) Goes back to the value whenever I bend the mobile. Of course there is an alternative solution for this. Using stable variables. But I am wondering if there is another solution because I really want to work around the URI, whatever I want to do with my actions. Do anyone know what's going on? Regards. Your activity automatically restarts, whenever orientation changes between the picture and the landscape Look for ways to handle it.

c# - Using the JSON Library in Mono -

मैं VisualStudio 2010 का उपयोग करते हुए मोनोड्रोड्रोड में JSON लाइब्रेरी का उपयोग कैसे करूं। मुझे इसे कहीं भी नहीं मिल सकता है, यद्यपि मोनो असेंब्ली पेज ने कहा है होना चाहिए। कोई बात नहीं मिल गया। संदर्भ प्रणाली के लिए भूल गया। जेसन

iphone - synchronization for audio and video -

Here I need to make video the number of images but I includes an audio, which I also Ayrpleks code included is I think you want to make an animated images audio plays or button in the background (series of images) Try to click and animated images: - Animeshndrishy [[UIImageView Alok] Initvitःfrme: Kgrektmke (157 354, 45, 100)]; Animeshnwyuenimeshnijheshn = [Ansaararaaraar Vithobjekts [Uaimej Image Nominated: @ "Image Lkjepiji"], [Uaimej Image Nominated: @ "Image 2kjepiji"], [Uaimej enrolled Image: @ "Image 3kjepiji"], [Uaimej Image nominated: @ "Image4.jpg"], [UIImage imageNamed: @ "image7.jpg"], [UIImage imageNamed: @ "image5.jpg"], [UIImage imageNamed: @ "image6.jpg"], nil]; AnimationView Animation = .65; Animation View.animationRepeatCount = 0; [AnimationView Beginning]; [Self.view addSubview: animation view]; [AnimationView release];

Disable Selection for GWT CellList -

I am trying to create a website similar to kayak dot com, at least how it displays and filter results Does. I am using GWT and building a composite widget that uses cellists to display results. I am not happy with how I am selecting cells. I have tried to set the selection model of celllist as an example of a no selection model, but it does not appear to be working Actually, I just want to show some text and some hyperlinks in each cell and only give the user the visual feedback (change mouse pointer, etc.) on keeping the mouse on a hyperlink. Is not there. Check that it works for you:

wysiwyg - how to disable tinymce editor -

I want to disable the tinymce editor by using javascript. In fact, I have two radio buttons: 1) on & amp; 2) Off . When the user selects the Off radio button, then my tinnitus editor is readable / disabled & amp; should be there ; When the user selects the radio button on , then my tinnitus editor should be enabled . How can I get it? edited: - (As it is not working in IE8) tinyMCE.init ({force_p_newlines: false, force_br_newlines: false, forced_root_block: false , convert_newlines_to_brs: false, // br not add elements "560" height: "15", Thym_adytnit button 1: "Fontselekt, Fontaijhakshn, separator, bold, italic, underline, separator, Forclor, Baklcolr, Justifylft, Justifycenter, Justifyright, Justifyfull "Theme_advanced_buttons2:" ", Thym_awarvnt_bitenns 3:" ", Thym_ Adwnsd_tolbar_ location" TOP ", Thym_ Adwnsd_tolbar_a Ain: "left", expand_valid_elements: "a [name | href | target |...

wcf security - WCF UserName clientCredentialType -

मेरे पास निम्न कॉन्फ़िगरेशन के साथ एक WCF सेवा है: & lt; सेवा व्यवहारसंवेदन = "MyServiceBehavior "नाम =" सेवा 1 "& gt; & Lt; endpoint address = "" बाध्यकारी = "wsHttpBinding" बाध्यकारी कॉन्फ़िगरेशन = "सदस्यताबैडिंग" नाम = "एएसपीएममेबरयूसरनाम" अनुबंध = "टेस्टवॉक्सेसेवा। आईएससी 1 1 / /" gt; & Lt; / सेवा & gt; । । । । । & LT; wsHttpBinding & gt; & Lt; बंधन नाम = "सदस्यताबैडिंग" & gt; & Lt; सुरक्षा मोड = "संदेश" & gt; & Lt; संदेश क्लाइंट CredentialType = "UserName" / & gt; & Lt; / सुरक्षा & gt; & Lt; / बाध्यकारी & gt; & Lt; / wsHttpBinding & gt; मैं ग्राहक पर सेवा प्रॉक्सी में उपयोगकर्ता नाम पास करना चाहता हूं और इसे सर्वर साइड पर पुनर्प्राप्त करना चाहता हूं। प्रॉक्सी क्लास में यूज़र नेम पास करने के लिए मैं बीयर कोड का उपयोग करता हूं: Service1Client sc = new Service1Client (); Sc.ClientCredentials.User...

.net - Is the new feature of C# 4.0 - "Optional Parameters" CLS-Compliant? -

This new feature is really convenient. Recently I have "Microsoft serv-in" - a code framework ", and it has been mentioned that" optional parameter "is not CLS-compliant. In the public API, using the "Alternate Parameters" test, and started FxCop, then I compiled and Fxcop did not complain anything.In the meantime, when I added an alert when FXCOP had reported a warning, Use The type of C is UIT. So now I am confused, "alternative parameter" is CLS-compliant or not? And what is the best way to find out that someone Whether the new language feature is CLS-compliant? Optional logic "sort of" CLS-contract is optional The laws with the arguments are legal and the CLSCompliant attribute of these methods, but It can not be taken, it does not need to take the original parameter values ​​or the account's account. Optional attribute (in that case, those methods will behave in the same manner as the standard method, fo...

android - How to remove ImageButton's standard background image? -

in ImageButton I want to remove the standard button background image It is said that anyone Define your background image or set the background color to be transparent. I tried to set a black background, but it had no effect ... you do Use your ImageButton for android: background = "@ null" .

jQuery UI datepicker check format -

I have to restrict users so that they can only enter dates in these formats: 010611 01062011 01-06-2011 01/06/2011 01jun11 01jun2011 Is there an API function for this, or should I use regular expressions? I had the only need I solved using it for jQuery. Here you can define the proper format through a regular expression.

file - Catching system default editor closing event in java -

मेरे पास एक विंडोज प्रोग्राम है जिसमें निम्नलिखित प्रवाह होता है: जनरेट किया गया फ़ाईल - & gt; उपयोगकर्ता कॉन्फ़िग फ़ाइल संपादन - & gt; कॉन्फ़िग फ़ाइल का उपयोग करें आदर्श रूप में मैं दिए गए फ़ाइल प्रकार / एक्सटेंशन (.cfg, .ini, .txt) के लिए सिस्टम डिफ़ॉल्ट संपादक को लॉन्च करना चाहता हूं, जिसे साथ किया जा सकता है। लेकिन जब संपादक को एक बार शुरू करने के बाद कार्यक्रम चालू होता है, तो मुझे पता नहीं है कि उपयोगकर्ता वास्तव में संपादक को फिर से बंद कैसे कर रहा है : \ मैंने देखा है यद्यपि लिनक्स और संभवत: गैर-जावा पर सबसे अधिक यौगिक अनुप्रयोगों में किया जाता है। इसके अलावा, चूंकि उपयोगकर्ता "बेवकूफ" हैं, मेरे ऐप के भीतर से एक डिफ़ॉल्ट एडिटर को कॉन्फ़िगर करने का तरीका बहुत जटिल है। यह मानक प्रोग्राम का उपयोग करने के लिए स्वीकार्य हो सकता है, उदा। नोटपैड को सुनिश्चित किया जाता है कि लगभग हमेशा विंडोज कंप्यूटरों पर स्थापित हो। बस नोटपैड समाधान बाहर लगा - doh! यह काफी स्पष्ट था:) का प्रयोग करें और: प्रक्रिया p ​​= रनटाइम .getRuntime.exec ("नोटप...

iphone - Error while calling another view -

I am calling the main menu view: main menu * obj = [[ Menu view controller alloc] in this]; [Self current model view controller: obj animated: no]; but it shows the following error. * End the application due to the exception of 'NSInternalInconsistencyException', Reason: '- [UIViewController _loadViewFromNib Named : Bundle:] "menu view controller" was loaded but view outlet was not set. ' text "> You have to open your nib in the interface builder And your view will be seen in the file's owner .

Visual studio with mvvm-light toolkit crash -

I am creating a Silverlight 4 application using MVVM Lite (latest version), and VS 2010 is reduced every 5 minutes. That is why it is impossible to work. I believe this is because I am doing or there is something wrong with my MVV implementation. I get this error on the designer occasionally. is an unhandled exception: is an unhandled exception: [Xml_CannotFindFileInXapPackage] argument: ServiceReferences.ClientConfig resource string debugging unavailable. Often keys and logic provide enough information to diagnose the problem. System.Xml.XmlXapResolver.GetEntity (System.Xml.XmlReader.Create on String Inputuri, XmlParserContext Inputconteks) (Uri Puarnuarai string role on System.Xml.XmlReaderSettings.CetateReader, type Objekttotrn) view. String Inputuri, Aksmelarder settings settings, Aksmelpirs Cambodia InputCodext) on System.ServiceModel.Configuration.ServiceModelSectionGroup.GetSectionGroup) () is not related to the accident to me. ..and this error was found in the event vie...

Use System Images in C# -

मैं एक कस्टम संदेशबॉक्स बना रहा हूँ मैं त्रुटि , सूचना , चेतावनी और आदि जैसे सिस्टम चित्रों का उपयोग कैसे कर सकता हूं, जो मैं खिड़कियों में देखता हूं MessageBox ? मैं उन्हें सीधे पहुँचना चाहता हूं! सिस्टम। ड्रॉइंग। सिस्टम Icons । आपको उन्हें वहां ढूंढना चाहिए। फिर अपने पिक्चरबॉक्से सेट करें (यहां Winforms मानिए): PictureBox1.Image = System.Drawing.SystemIcons.Warning.ToBitmap () ;

How to interpret this assembly? -

ली (% edx,% eax, 1),% eax कोई भी (% edx,% eax, 1) ? (% edx,% eax, 1) edx + eax * 1 से संबंधित एक ऑपरैड एड्रेस है, दूसरे शब्दों में, निर्देश lea , यह केवल eax + = edx के बराबर एक ऐड स्टेटमेंट है

html - :before pseudo-class does't works with images -

मेरे पास HTML का पालन है: & lt;! DOCTYPE html & gt; & LT; html & gt; & Lt; शीर्ष & gt; & Lt; मेटा वर्णसेट = "यूटीएफ -8" & gt; & Lt; title & gt ;: छद्म-वर्ग और छवियों से पहले & lt; / title & gt; & Lt; शैली प्रकार = "टेक्स्ट / सीएसएस" मीडिया = "स्क्रीन" & gt; आईएमजी {डिस्प्ले: ब्लॉक; चौड़ाई: 640pt; } Img: {content: "test" से पहले; } & Lt; / style & gt; & Lt; / head & gt; & LT; बॉडी & gt; & Lt; img src = "http://andreygromov.name/picture/flower/flower4.jpg" alt = "Ð ?? Ð ° Ð · Ð ° Ñ ?? ± ?? вÐμÑÑ ?? Ð ° Ð ¼ ¸¸¸¸ /" और ; & Lt; / body & gt; & Lt; / html & gt; : इससे पहले कि छवि के लिए नहीं दिखाई देगा, लेकिन यह किसी भी div के लिए करता है। क्यों? अपडेट: मुझे यह मिला W3C में स्पष्टीकरण: नोट यह विनिर्देश पूरी तरह से निम्नलिखित के अंतःक्रिया को परिभाषित नहीं करता है: प्रतिस्थापित तत्वों (जैसे कि एचएमटी में आईएमजी) के बाद...

android - Not getting the response after adding debug proxy -

I have an Android application, where I am connected to the server and the data is sung. To show the map I have added ' -http-proxy IP: port -debug-proxy ' to 'Extra emulator command line option' in Eclipse. I have added it since I responded properly I'm unable to get I am using an HTTP connection to connect to the server and receive feedback. I am using the following code: HTTPRSpace response = httpclient.execute (httppost); Log.v ("feedback", "+ response.toString ()); ResponseBody = EntityUtils.toString (response.getEntity ()); Log.v ("ResponseBody", "+ responseBody); The first log statement is executing but the second log statement is not being executed. I have been following the following in the console: = 0 data = 0 n = 0 = 0 reset (received) by peer The body is closed (13908 bytes) I am not getting the full response and the connection is lost. If I remove '-http-proxy IP: port -debug-proxy' then all i...

jquery - Integrate fullcalendar with extjs -

I am trying to display excellent fullcalendar in an extjs window loaded in response to a button click. I can get the calendar displayed in the window as follows: // .. grid config .. // element Bar Turb: [{Text: 'Calendar', Tooltip: 'View Holiday Calendar', Disabled: False, IconCLS: 'icon-yr', // create icon: work () {var win; // Create a holiday calendar window on the first click and then reuse it again on click if (! Win) {win = new Ext.Window ({layout: 'fit', width: 750, height: 750, close action: ' Hide ', plain: false, // left: 150, // heading: 10, item: [// set the div id in default.ctp when jquery fullcalendar is displayed.Calendar], button: [{text : 'Close', handler: function () {win.hide ()}}}]}} win.show ();}}}] etc etc grid and my In the default .ctp view: & lt;! - which is called jquery fullcalendar with Event Grid Tbar Button - & Gt; & lt;! - I think - 'item' property set on 'calendar...

Find the next month for given date in mysql -

Find the date for the table (next month between next month + 2DAYS next month) (December according to the year, How to do this Mysql Query Query Data Need for both date and datetime If you only want MONTH, then use SELECT MONTH ('2011-03-28' + INTERVAL 1 MONTH) DATE and DATETIME It works for the actual date i have your SQL and columns Quoted by name). You can refer to for more information

c++ - std::map::iterator references non-existing object? -

निम्न कोड को ध्यान में रखते हुए: वर्ग MyClass {सार्वजनिक: int someInt; मायक्लास (): कुछ इंट (666) {}}; Int main () {std :: map & lt; int, MyClass & gt; myMap; Std :: map & lt; int, MyClass & gt; :: iterator = myMap.end (); कॉन्स्ट मायक्लास & amp; रेफरी = यह- & gt; दूसरा; Std :: cout & lt; & lt; Ref.someInt & lt; & lt; std :: endl; } चूंकि नक्शा खाली है और यह = myMap.end () , क्या वस्तु it-> second संदर्भ करता है? क्या यह एक अमान्य संदर्भ है क्योंकि यह = myMap.end () ? मानचित्र & lt; int, MyClass & gt; का एक उदाहरण नहीं बनाता है MyClass । वस्तु क्या it-> दूसरा संदर्भ? क्या यह एक अमान्य संदर्भ है क्योंकि यह = myMap.end () ? वास्तव में myMap.end () एक वैध इटरेटर है लेकिन यह dereferenced नहीं होना चाहिए। यह-> दूसरा सही ढंग से करने का प्रयास करता है और अपरिभाषित व्यवहार का कारण बनता है। मानचित्र & lt; int, MyClass & gt; एक उदाहरण MyClass का। यह सच है, लेकिन अप्रासंगिक myMap.end () ह...

git - open-source mini-heroku? -

I started playing with Sinatra and deployed on Heroes, which I find really enjoyable. I do not need Scalability to provide Heroku, but I really like the ability to deploy an app with their CLI and a simple push. Is there an open source project that releases a VM image which I can slap, I say on an EC2 example and that's the same service (web server, postgraze, GIT push-to-deployment, maintenance mode ... ) Will provide 'small'? Check out they are releasing their platform as open source.

perl - How to make an object into an array reference? -

मेरे पास यह फ़ंक्शन है array_diff (\ @ DNs, \ @prev_DNs); को सरणी संदर्भों को तर्क के रूप में रखना चाहिए। समस्या यह है कि मुझे prev_ns से ऑब्जेक्ट के रूप में मेरे $ prev_Ns = YAML :: Syck :: LoadFile ('temp-previous_DNs.yaml'); प्रिंट डम्पर $ prev_DNs; जो आउटपुट करता है $ VAR1 = ['abcdef']; मैंने कोशिश की है array_diff (\ @ DNs, \ $ prev_ns); लेकिन वह काम नहीं कर रहा है। कोई भी सुझाव देता है कि कैसे $ prev_Ns एक सरणी संदर्भ को पास करें? यह पहले से ही एक सरणी संदर्भ है, वास्तव में तो आप वास्तव में संदर्भ के संदर्भ को एक और के साथ prefixing करके पास कर रहे थे। आपको बस इसे $ prev_dns के रूप में देना होगा और इसे कार्य करना चाहिए।

iphone - Application network reachability and resumption of streaming audio after phone call -

I'm going to submit my app, it plays some radio streams. And displays some information from my web server 1) It performs an investigation when the app starts for accessibility and informs the user that no connection is available. Do I need to do more here, as if the user is trying to play the radio even when there is no connection, continues to pop up the alerts? Or once the app starts enough? Maybe I check on every button pressed button which tries to play a radio station or who tries to download some data from the web server? When the app starts but is lost later, then is web connectivity? 2) The app can run the radio stream in the background Is there something special about this that I expect to handle? If the app is interrupted by the phone call, do I expect the auto radio to resume after the call or is it OK to leave the user? It's okay to control the volume control volume on the edge of the phone. I have not added any other button in the app to the phone. Is this ...

unix - Check running processes in C -

Can anyone tell me how a Unix process is running inside a C program with an investigation process ID? I know that I can call the system () and use the ps command, but I do not want to call the system (). Use of : if (kill (pid, 0) == 0) To process the process is running or zombie, and if (error == ESRCH) {/ * / P> report (" ... ") or use scratches (error). / Div>

.net - how to support multiple third-party dll versions? -

My .NET app referenced com object My task is to be able to make my app by changing my code with different DLLs , On which it has been referenced. How can I get reference to 2 versions of the same com reference? Can the configuration manager help here? Thank you If other versions are backward compatible, you are present in the new context Can change the context. If this is not backward compatible, then you may need to change some of your code if you want to use some functions in the new version, you may also need to change some code.

database - MySQL Join on 3 Tables -

I have a problem and do not have to decide any clue or starting point at that point: My Near three fields with the following fields (I am limited to the important fields): Table 1 Table 2 Table 3 IDPP has subscribed What do I do The most is the field of Table 1 and Table 3, the table 1 field is linked with Table 3 on table3 field through idsp and table2. As I said, I do not have any starting point ... any help? Thank you, Saska select t1 *, T3 Table1 t1 included in internal table 2 t2 on t1.idsp = t2.idsp Internal incoming table 3 T3 T2DD = T3DD Just one after the other use to be.

android - cant find files written to device -

मैं आउटस्ट्रीम = ctext.openFileOutput ("demo.jpg", 0) का उपयोग कर रहा हूं; outStream.write (डेटा); यदि मैं इम्यूलेटर का उपयोग करता हूं तो फाइल सिम्युलेटेड एसडी कार्ड पर डाटा हाइरेक्रिची पर लिखी जाती है। जब मैं अपने सैमसंग 15500 पर चलाता हूं तो मुझे पता नहीं है डेटा को लिखा गया है। अगर मैं मायफाइल पर क्लिक करता हूं तो मैं एक डाटा उप-डिब्बे के साथ एंड्रॉइड के अंतर्गत निर्देशिका देख सकता हूं, लेकिन फ़ाइल का कोई संकेत नहीं। क्या मैं फाइल को लिखने की विधि या तो इसे खोजने के तरीके में कुछ याद कर रहा हूं डिवाइस। आपको इसे context.getFileList () के द्वारा ढूंढने में सक्षम होना चाहिए; । context.openFileOutput () लिखने के लिए इस प्रसंग के अनुप्रयोग पैकेज से संबद्ध एक निजी फ़ाइल खोलें मुझे लगता है कि कोई "गारंटी" नहीं है कि आप इसे फ़ाइल पथ या यूआरएल या ऐसे माध्यम से अनियंत्रित पहुंच सकते हैं।

sql server - Reference where clause in instead of update trigger -

Is there a way to reference the clause instead of triggering the update? ** More information ** I am trying to get this issue:. This amazing product will try to update those rows that have changed or who are not present. Since I do not need any care about existing data / if I can modify it that due to being more normal the update will be going on and I can move forward. The well-deleted table shows the data that you selected with the clause, so if You know where the pen is at 1, then you know the values ​​you ask? But know exactly where it is, no one. The only data available in the trigger is data in the table before and after the update statement. It may be that if you have expressed that it is easy to help you, then the intrigue you want to trigger is easy.

c# - How to dispose File.OpenRead() -

How do I settle the file. Open read () correctly I am currently using the code below using (BinaryReader br = new BinaryReader (File.OpenRead (path)) {myByte = br .ReadByte (); } While analyzing the code I get the following Visual Studio: WARNING 1 CA2000: Microsoft. Reliability: The program 'in the program' Main (string []), 'Object' file. Open Reed (path) 'is not disposed of with all exception routes before calling' System.IDisposable.Dispose on the file. OpenRead (path) 'object before all references are doing it out of the field. Text after "itemprop =" text "> At first glance, it seems like a false positive, because BinaryReader will also be FileStream returned from the file. From OpenRed : From: When the display parameter is correct, this method releases all the resources organized by any managed object that this BinaryReader Reference. This method invokes the disposal method of each referenced object. Ho...

perl - When should I make a Moose class immutable when I'm actually using ->meta? -

Normally i __ package __-> Meta-> I can finalize a class in the compilation through the make_imurable end of class. However, when I make an orbit unchanged, which plays a role on the runtime? Should I do the same to get better performance or is it incompatible with make_immutable ? make_immutable starts accelerating the acceleration of the object, but does this once when the object is installed? For example, something on the lines of this: build {my $ self = shift; Module :: Load Use; ### Use the passed logic to determine the roles applied to this example ### of objects. Load and apply roles {$ load for $ my role ($ self-> _determine_roles ()); $ Role- & gt; Meta & gt; Applicable ($ self); } ### $ Self now a class :: Mop :: class :: __ ANON __... anonymous class ### Should I say then that I want to change it with something like this? Can ### create _imetubeable also run on an object instance and not a package? $ Self & gt; Meta & gt; Make_immutabl...

java - How to add CDATA section to SOAPMessage using SAAJ? -

I'm trying to add a CDAT section using a soap message (axis2-saaj-1.5.4) I am I have an XML document that I want to define as a CDAT section and want to put it inside a element inside a soap document ... something like that (though it causes compiler errors) : element cdataElem = doc.createElement ("cdata"); CDATATION CDATA = Doc.Creative CDATxation (XMLDCestestString); CdataElem.appendChild (cdata); SOAPMessage Message = Factory. Message Sentence (); . SoapMessage.getSOAPBody () addChildElement (cdataElem); I can not find a way to do this properly and I'm sure it should be simple ... can anyone help? Thanks I had a similar problem. Finally I found a solution using the decoration: SOAPMessage message = factory.createMessage (); . Message.getSOAPBody () addChildElement (message.getSOAPpart () createCDATASection (xmlDocAsString).); Apparently SOAPPart acts as a DOM doctor.

Convert decimal/hexdecimal number to timestamp in C -

I can read the values ​​of the seconds passed after some reference time which is 1301330553 (decimal) / 4D90BA79 (Format) hex appears in . I would like to convert these seconds in some date / time format to C . There is a function that has been described as the elapsed second u32 data type Which is called CTIT, which takes UNIX as long as the parameter, which gives time in ascii. / P>

c++ - Visual Studio 2010 very slow, unusable -

I have searched for this topic but can not find the posts I have experienced that I really do I am here. I have a visual studio solution that I need to work on, it is quite large and has 16 projects. Everything is so slow and choppy (except for the introduction which is really fast). On clicking a line in the text editor, the cursor takes approximately 5 seconds to move. Switching between files ~ 1-2 mins (if I'm lucky) Clicking on 'Tools' for the drop down menu to display ~ 2 minutes . If I click on one of the projects correctly, drop down menu 5-10 minutes before. During this time my whole PC is locked. Video studio off (in anger) ~ 10-20 amin For debugging and building ... Well I have never managed to get it far away. Task Manager (it takes a long time to open with explorer Visual Studio) is seeing that there is not much memory / CPU consumption. I know Microsoft's products are not famous for being faster but it's ridiculous, there is no w...

I need a Qt Runtime Installer or help with building one (WiX) -

I am trying to create an installer for a suite of products for which I work. The suite of products that were made on the Qt software will be distributed simultaneously and hence I do not want to copy / copy / copy the DTL's QT to each application folder. I would like to search either an installer for Qt 4.7 runtime (hopefully as a merge module), or create your own right now, I am making my own YX merge module, but when I'm compiling the merge module If I try, I get the following error: Error LGHT0104: Not a valid MANIFEST file; Extension: Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed before it to appear. Line1, position 4. I'm new to hell of DLS, so I'm not sure what's wrong in the manifest file or if I'm doing something wrong, it has been revealed here Manifest I'm not sure that this is complete (18 DLS in 1 Manifield 1): & Lt; File name = "QtScript4.d...

How to read a binary file using c#? -

I have a binary file, I have no clue how to read this binary file using C #. The definition of the record in the binary file described in C ++ is: #define SIZEOF_FILE (10 * 1024) // 1234.dat file size is: 10480 + 32 bytes (32 = file header size) Typing file file record {WCHR ID [56]; WCHAR's name [56]; Int Gender; Float height; WCHH telephhen [56]; And ........} How do I read the binary file with those records in C # and edit it after I edit it? In fact this is a struct type and StructLayout A good way to do this is to map the structure of the data in the binary file (I did not test the actual mapping, but seeing it and reading the file is about getting back to you): [Layout layout (layout kickind.Security, Charset = Charset.unicode, pack = 1)] Public structure file Reca [Marshall AS (Unequal type, Bevely, Size = 56)] Public four [] ID; [Marshall (UnmanagedType.ByValArray, SizeConst = 56)] Public four [] name; Public int gender; Public float height; // ...} ...

php - Calling session_write_close() before Zend_Session::start() in the bootstrap causes an error -

So I need access to the current session from the Zend Do not ask why, I do not like to talk about it. Anyway, I've discovered that I can access it from bootstrap before starting my session. To try dragging it down and moving it I have the following code: Secure function _initSession () {session_start (); $ Value = $ _SESSION; Session_write_close (); $ Db = Zend_Db :: Factory ('Pdo_Mysql', array ('host' = & gt; 'localhost', 'username' = & gt; 'uname', 'password' = & gt; '***** * ',' Dbname '= & gt;' dbname ')); Zend_Db_Table_Abstract :: setDefaultAdapter ($ Database); $ SessionConfig = array ('name' = & gt; 'session', 'primary' = & gt; 'sessionID', 'modified column' = & gt; 'end time', 'data column' = & gt; ',' Lifetime column '= & gt;' life span '); $ Savehandler = New Zend_Session_SaveHandler_...

android - What does getExternalStorageDirectory() return on the Xoom? -

Motorola XOOM has an SD card slot from what I've read, but currently slot is disabled in shipping devices. Developing apps that store data on SD card, whose path is (as 2.2) / mnt / sdcard / . What does getExternalStorageDirectory () come back to XOOM? Will this change occur if the SD card is enabled? What is the External Directory () on XOOM? Indeed, it returns / mnt / sdcard . However, it indicates some on-board storage, like many other Android devices. My guess is that they have chosen / mnt / sdcard for greater compatibility with developers, which are valuable in their apps. Will this change occur if the SD card is enabled? You are asking better than that question.

CSS question about em? -

I am trying to convert the margin values ​​of all my sites to pixels, but in a difficult fact I know what it really is I thought it was a fixed distance based on the browser setting (default font-size), but a standard 1em is different when applied for example h1 or ul. Any help? a em font size ( See results: div style = "font-size: 14px"> 2em

osx - How can I display a website (e.g. apple) in a cocoa app using WebKit? -

OK, so far I've coded the whole thing following the responses of other people, but when I I create and run the website or HTML files specified in the code I do not display on the screen; No more than a white screen is displayed. It is that I have done so on my header file: // My header file (.h): #import & lt; Cocoa / Cocoa H & gt; #important & lt; WebKit / WebKit.h> @interface project_exealelegate: NSBKed & lt; NSApplicationDelegate & gt; {NSWindow * window; IBotlet webview * webview; } @ Property (assign) IBOutlet NSWindow * window; @protecti (nontomic, retten) IBotlet webview * webview; @end Implementation: // My receipt file (.m): #import "Project_XAppDelegate.h" #import "WebKit / WebKit.h "@Explementation Project_XAppDelegate @ synthesis window; @Sub-synthesize webview; - (zero) applicationDefinitional launching: (NSNetification *) A notification {} - (zero) Jagracombinb {NSSTING * Resources path = [[NSBindel Mainbundle...

In SQL Server, why is it that NULL does not equal empty string AND doesn't not equal empty string? -

This is not clearly a line back ... of 1 Select where zero = '' but why does not it also return one line? Select 1 where zero & lt; & Gt; '' Where can both of them be "wrong"? " How can both of those WHERE be" false "? " Not so! The answer is not "true" either! The answer is "we do not know" Think of NULL which you do not know yet Can you bet that this is '' is? Can you bet that this is not '' ? So, you still do not know that you do not have any information yet. Therefore the answer to both questions is not false, but I do not know , e.g. In NULL SQL

sql - How to use MySQL's COUNT() correctly? -

I am trying to get a list of User IDs (UIDs) that have posted more than 3 articles. Here's my SQL: Select COUNT from n.uid by node group (n.type = 'article') & gt; 3 After reading something, I am guessing my mistake that I am with the use of COUNT, but I do not know what I am doing wrong. Any sign? Thanks Stack! more like ... SEID UID FROM node WHERE Type = 'Articles' Group by UID Hoving COUNT (UID) & gt; 3 Edit : I WHERE vs. I'll add a bit more information on HAVING . As far as I can remember, the use of hoisting is done to implement the group BY conditions after the aggregation. WHERE is usually used to apply the conditions in the table.

math - Landau Notation -

हा मैं निम्न कैसे दिखाऊं: f (n) & lt; = f (n- 1) + एफ (एन -2) + .. + एफ (1) का अर्थ है एफ (एन) = ओ (2 ^ एन) मुझे लगता है कि हम मान सकते हैं कि एफ monotonically बढ़ रही है = & gt; f (n) & lt; = n * f (n-1) आप सही रास्ते पर थे f (1) & lt; = f (0) f (2) & lt; = f (0) + f (1) | च (2) | & Lt; = f (0) | 2 ^ 2 | | f (1) | & Lt; = f (0) | 2 ^ 1 | | f (0) | & Lt; = f (0) | 2 ^ 0 | जहां एफ (0) एक स्थिर है चलो एक स्थिर (एफ (0) के बराबर) मान लें कि | f (i) | & Lt; = x | 2 ^ i | I & lt; = n के सभी मानों के लिए फिर एफ (एन + 1) & lt; = f (n) + (f (n-1) + f (n-2) + ... + f (0) ) == & gt; | F (n + 1) | & Lt; = | f (n) | + | (एफ (एन -1) + एफ (एन -2) + ... + एफ (0)) | == & gt; | F (n + 1) | & Lt; = x | 2 ^ n | + X | 2 ^ एन -1 | + X | 2 ^ एन -2 | + .. + x == & gt; | F (n + 1) | & Lt; = x | 2 ^ (n + 1) | ऐसा मामला n का अर्थ है n + 1 और प्रेरण द्वारा दावे में सभी एन के लिए धारण किया जाता है और बिग-ओ नोटेशन...

Java method call on type object -

I want a method that takes an object as a parameter, and adds it to a simple list later , I want to call a method on this object, but the time of the hole, I do not want to define the object as a specific type, just type the object I know that the object in the object that I want to call I'm sure because of this To do that I pass the object with only that method. Something like this: Public Zero addElement (object obj) {elementlist.add (obj); }. . Elementlist.get (i) .SomeMethodIknowItHas (); However, it is not working, is there any way that I can force him to call that method? If you do not really want to insert the object as a specific type, you can use the reflection Have to do. However, this is generally considered bad behavior, and you should see if there is any way you can use that instead of generic with interface or base class. The fact is that you know that this kind of method is that it should implement an interface that tells the compiler that there ...

vector - Is it possible to store floating point numbers using perl's vec() function? -

I have a Perl script that processes millions of performance data, so I need to store metric information efficiently. I searched the function of Pearl, which allows you to manipulate the bits of the string directly, it can be used to simulate a array memory efficiently. And it works very well to store integer values. But for floating point values, it does not work very well. Here's an example: #! / Usr / bin / perl my ($ s) = ''; Vec ($ s, 0, 32) = 1234; Vec ($ s, 1, 32) = 12.34; Vec ($ s, 2, 32) = pack ('f', 12.34); Print "First vec:". Vec ($ s, 0, 32) "(must be '1234') \ n"; Print "2 VCC:" Vec ($ s, 1, 32) "('12 .34 ') \ n"; Print "3 vc:" unpack ('f', vce ($ s, 2, 32)) "(must be '.34') \ n"; To run this code, on my machine (Mac OS X 10.6.7, Pearl 5.8.9) gives the following: First vec : 1234 (must be '1234') second vec: 12 ('12 .34 ') 3 VC: (must ...