Posts

Showing posts from March, 2011

- Where Developers Learn, Share, & Build Careers

Will a webpage be affected with CSS / Javascript / jquery etc? Let's show the letters of the text and each individual letter at a time, it would be good to create a 'zoom-up' effect, ideally it would be nice to display a little differentiation on each letter, but it would not be important. What I am trying to achieve is changing the style of each individual letter, as you are the mouse on them, this text is not a link, it is also not dynamic which means There is a static paragraph of the text and I want to apply this effect to each letter. Any help is appreciated. Thank you. / P> You can try the plugin. Alternatively, you span each letter and then enliven it: $ ("selector"). ({FontSize: "22"}, 300);}, function () {$ (this) .mate ({fontSize: "16"}, 300);})

- Where Developers Learn, Share, & Build Careers

I am working on oyoth authentication for my app and I'm planning to use Oauth2. Someone can tell if Gmail supports the attracting inbox by Oauth2 access-token. I have noticed that it is possible by Oauth1 token but I found that OAuth1 support is now excluded by Google. No, just now OAuth 1.0.

python - Combining multiple regex substitutions -

I am trying to remove some things from a block of text using regex. I have all my patterns ready, but I think the overlapping can not be able to remove two (or more). For example: import r1 = r'i am 'r2 = r'am foo' text = 'I am foo' re.sub (r1, '', Text) # Returns' foo 're.sub (r2,' ', text) # Returns' How do I change both records together and end with an empty string? I have finished using a slightly modified version: def clean (self, text): pattern Mask for Pattern = Baitier (LAN): To match in the Rifidator (pattern, text): r = Category (match, start), match.and () Mask [R] = 'X' * Lane (R) returns ''. (Character for character, bit in bit (text, mask) in zip) You can always call it re.sub Shown can not form. You can use re.finditer to find them all. Each match will give you a match object, in which .start and .end indicate their posts. You can collect them all together, and then finally...

- Where Developers Learn, Share, & Build Careers

The IOS noob question is here, though I hope that it is not a repetition of iOS 4+ targeting to develop on XCode 4.3 I I am struggling to get guidance on how to get a list of Bluetooth devices. It seems that there are many Bluetooth interfaces but please correct me if I got the following error for the dedicated purposes: Core Bluetooth: Bluetooth LE (Bluetooth 4.0) gamekit: Peer-peer based on session ID EAAccessory: MFI Bluetooth device in XCode 3.0 There is also the useless "Bluetooth Manager" API. Can someone share with me how to get a list of Bluetooth devices with the current device running on my app? I am only interested in make, model, identifier (or serial number), I really do not need to communicate with the devices, just to be sure. thank you in advanced. Try downloading these examples and try to resolve your needs: Hope will be a helper

spring - "HTTP Status 405 - Request method 'POST' not supported" on form submit -

Trying to make a very simple form in Spring / Hibernate, it should add the entry to the database. This is an example that has worked for me, so it is weird that I am getting this error. But this is what it is that is it. The page is with this form: prefix @ taglib uri = "http://java.sun.com/jsp/Jstl/ core" = "C"%> & Lt;% @ taglib uri = "http://www.springframework.org/tags/form" prefix = "form"% & gt; & Lt; Html & gt; & Lt; Head & gt; & Lt; Title & gt; Add Ownership Game & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; H1 & gt; Add ownership game & lt; / H1> & Lt; Br / & gt; & Lt; Br / & gt; & Lt; C: url var = "saveGameeUrl" value = "/ games / save.html" / & gt; & Lt; Form: Form Model Attribute = "Game" method = "Post" action = "$ {saveGameUrl}" & gt; & Lt; Form: label...

- Where Developers Learn, Share, & Build Careers

I am setting up celery to run using variables from your virtual environment, Demunik. But when I run $ sudo /etc/init.d/celeryd , I start unknown order. Use 'celeryd_multi' type 'manage.py help' I have set up the following: CELERYD_CHDIR = "/ home / MyUser / projects / MyProject "ENV_PYTHON =" / home / MyUser / .virtualenvs / MyProject / bin / python "cELERYD_MULTI =" $ ENV_PYTHON $ CELERYD_CHDIR / manage.py celeryd_multi " when I run from $ /home/myuser/.virtualenvs/myproject/bin/python / home / MyUser / projects /myproject/manage.py celeryd_multi command line, it works fine. Any thoughts? I'll gladly post any other code to you :) Thank you! > the operating proper environment and it pulls packages from /home/myuser/.virtualenvs/myproject /... when you start sudo /etc/init.d/celeryd as you root Cereal which is probably not active in virtualenv /root/.virtualenvs/, then such a thing is also present and thus it...

sql - How can I return unique rows when using an INNER JOIN in MySQL? -

I have 3 tables: links, keywords, and keyword_link can have many keywords in one link, and one in many links Can be the only keyword. Used to join keyword_link to link and keyword . When I run the following query, several lines of the same link are returned because multiple keywords match. How do I modify this query to return unique rows? SELECT links * Include link 'links' from keywords_links.link_id = Add keywords_completions on ID Add keywords to keywords. Keywords = _links.keyword_id where the keyword. Keyword IN ('php', 'sql', 'html', 'css') Select the easiest way DISTINCT after select : select different links. * ... ... But perhaps a more efficient solution would be to write to you that it does not need to make a difference in each column: SELECT a. * Join INNER from the link (SELECT a.link_id Inner Join keyword with keyword b on one) Keyword_id = b.id and b.keyword IN ('php', 'sql', 'html...

.htaccess - htaccess redirect url with space in it -

Unfortunately, I have sent the newsletter without checking the link, one of them is broken, so I handle it with HTACAC Want to do My URL is related to: Where the original page is: Space in New Zealand and additional www.domain.com Focus on .au How can I set it up in HTACEC? Thanks Because you do not need to manipulate URLs, You can make one simple use: Redirect /www.domain.com.au/campers-and-motorhomes/ne%20w-zealand/camper-rentals/ http: // www. Domain.com.au/campers-and-motorhomes/new-ejeland/computer hire/ edit if Apache is % 20 Un-unlocked location is not liked, so try the entire quote there is a real place Thats: Redirect / / www.domain.com.au/campers-and-motorhomes/ne w-zealand / camper-rentals / "http: // www .domain.com. If it is enclosing a query string, you will see a D. or a / c / cpc-and-motorhomes / new-zealand / camper-rentals / Edit2 To use mod_rewrite to get rid of the query string instead of normal redirect, I'm scared. ...

- Where Developers Learn, Share, & Build Careers

I want to make plain text such as "Accessibility" link just like "Welcome to my site" But it keeps taking the set properties for my tags. This is my first time creating a website, so if you have suggestions on how my code looks, then I am open to suggestions thanks !! How to bout using a class on your NAV link, and target them like this?

c++ static library dependencies, header including header -

So I'm working to upgrade the architecture of the application to a more modular design. This is a C ++ application that uses a built-in seamless C-library if we are building for a specific goal, otherwise it uses a separate library back-end current In the application front-end code, the GUI code is directly linked to the intact C-library, which works on only one goal. What has been done is that the monolithic C-library has been put into "module", which exposes the common C ++ interface to the GUI part of the application for consumption. In this way we can change the target and can not change the GUI code. The pre-existing GUI code uses structures defined within the C-library, which is common to all possible C-libraries. Inside the C ++ module I've defined the proxy type that looks like this: // ModuleTypes.hpp typedef CPP_TYPE C_LEGACY_TYPE; and the GUI code just uses the CPPTPEPE of the already existing C_LEGACY_TYPE. In the module project elsewhere, ...

firefox - clear up GM_log from error console -

Image
Is there a way to clean GM_log messages from the error console with the user code on a certain event? I do not want to clean manually. On the triggers of some events, you want to clear the old log from the error console and want to show the new logs. You can not clarify. If you can, bad websites can also clean it and erase the records of your crimes. You should not use GM_Log () Then, you can console.clear () . , note that to avoid conflict with the new console functions of Firefox, and to ensure that the output appears in the Firebug console, you will see unsecured wydov . So your script can do something like this: Unsecured Window.console.clear (); Unsafe Window.console.time ('ScriptRun'); Unsafe Window.console.log ("Start Script."); Unsafe Window.console.timeEnd ('ScriptRun'); What looks like in this firebug console: - - Div>

- Where Developers Learn, Share, & Build Careers

I am trying to install an APK (download from a site) in the ICS emulator through ADB Shell, but giving it the following error: / P> Failure [INSTALL_FAILED_UID_CHANGED] What could be the problem? Uninstall the previous version of the app from the first emulator, then try again. You can access this system setting & gt; Applications & gt; Manage applications and select the app. If the app still fails to install, then select the emulator with the wipe user data option.

php - Email address has app+gibberish when stored to database -

While inspecting my database today, I noticed that there are such Gibber formats in the email fields of some records App + 9276ti5j64.ir10bj.618106aa6d78af59ff4c7f79f1bf I found that these records are from Facebook Connect, though this is just a small percentage of other successful Facebook connectors. Email Record $ me = $ this- & gt; Facebook- & gt; The API ('/ m') is from; $ Email = $ me ['email'] If he fails to get it from Facebook, then why does it include the drone string instead of empty or empty space in e-mail ? (However for some reasons, fb_uid and other fields are passed normally) Has anyone suffered the same problem? Is this a Facebook Connect bug and what is the reason? This special proxy is Facebook email. Before the FB has changed with the window, what we do now - it was possible to decide whether you want to send back the real email or a proxy. If you had longer area length - then you should see the full proxy email, ev...

- Where Developers Learn, Share, & Build Careers

I am trying to show the selected value in the list if matched it is successfully populated but not selected value code Have run Code: $ employee name = 'Jimmy Chain'; & Lt; Select name = "employee" id = "employee" & gt; & Lt ;? Php $ data = array (); $ Data [0] = ''; Echo "& lt; option value = ''. $ Data [0]" '& gt; $. $ Data [0] "& lt; ($ No = $ DB- & gt; query) ('no first name, last name by staff'); foreign currency ($$$ data result) {$ SNo = $ data [' NO ']; $ SFN = $ data [' first name ']; $ SLN = $ data [' last name ']; $ SName = $ SFN.' '$ SLN. If ($ SName == $ employee name) {resonance "& Lt; Option value = '"$ sno."' Selected = \ "selected \" & gt; "$ Sname." & Lt; / Options & gt; \ N ";} Else {echo" & lt; Option value = '". $ SNo"' & gt; ". $ ...

MySQL export command -

I have a MySQL DB, which should be exported in the CSV file. Google told me about so many examples to do this, but all the examples are for exporting only one table. Can someone help export some data (given below) in a particular way? The album the artist Name Name Title ID artist_id Name There are FK fields in the title, which point to artist name and album name. P> Export How can so that the output CSV file looks like this: Column 1 (artist), column 2 (album), column 3 (title) John newest first song John, progress, best song John, California, oh SF - Luke, my Music, a song Luke, my songs, two Songs Luke, Archived Tom, My Works, Second Song - Tom, My Works, III Songs TIA You can create a view and export from there. Extending query Mahesh: View See as select name as visual editor artist_name, album.name as album_name, title.name AS title , Titled Artist, Album, Title WHERE artist.id = title.artist_id and album.id = title.al...

jquery - Rails 3.2.3 - twitter like pagination or endless pagination -

I am confused I think I did not even know what I was looking for. I have a web site, it shows photos and has a table layout & Lt; / TD & gt; & Lt;% If i% tdCount == (tdCount-1)%> & Lt; / TR & gt; & Lt;% end% & gt; & Lt;% i + = 1% & gt; & Lt;% end% & gt; & Lt; / Table & gt; As far as I am concerned that I have a table layout, since then any "pagalese" solution is difficult to use. If not, what should I use? Which one is more modern than others and works well? Never ending page is nothing, you do not link on the floor like normal endorsement , But you'll find at the bottom of your current page at the bottom of your next page when the scroll will reach below. Please see [end of rail] [1] [1]: To better understand. I created this in jazzery ajax, although this javascript is used in the link.

substring - r programming: multiple substr -

I have a text document that I would like to substrate. I'm doing substrings using the following code: substr (text, start + end start) The beginning is a vector of 60 elements. However, the above code only returns the value of substr (text, 110 9, 110 + 199) . I have all 60 elements, namely substr (text, 1109,1109 + 199) substr how to return (Text, 115 9, 115 + 9 199) .... Sample data Start [1] 11009 11590 11972 15674 16274 16659 19866 20541 20 9 63 24787 25376 [12] 25746 29458 30011 30363 34086 34702 35087 38643 39095 39416 42626 [23] 43188 43545 46731 47367 47757 51029 51673 52072 55444 56076 56470 [34] 59794 60445 60851 64267 64877 65276 68659 69200 69547 72747 73303 [45] 73657 76896 77648 78103 81541 82050 82391 85277 85848 86227 89128 [56] 89,656 90010 92,830 93,329 93,656 end 1 199 199 199 201 201 201 218 218 218 186 186 186 177 177 177 192 192 [18] 192 160 160 160 178 178 178 194 194 194 200 200 200 197 197 197 205 [35] 205 205 200 200 200 174 17 ...

- Where Developers Learn, Share, & Build Careers

I have tried to convert binary data into image here here is my code: Byte [] bytes = (byte []) (reader ["avatar"]); Fs1.Write (byte, 0, bytes lang); PictureBox1.Image = Image.FromFile ("image.jpg"); PictureBox1.SizeMode = PictureBox SizeMode.Stretch Image; PictureBox1.Refresh (); But the exception in the wrong line is out of memory: "pictureBox1.Image = Image.FromFile (" image.jpg ");" I do not know why this happens, please help me Try this method: public image image framebits (byte [] bytes) {(var ms = new memorystream (bytes)) {return Image.FromStream (ms); }}

compatibility - Subversion 1.7.5 and svn-ant 1.3 -

I have SVN version 1.7.1 in a SOLARIS version 10 server and Tortoise SVN 1.7.1 in the client. I would like to upgrade the server to SVN 1.7.5, but we have an ant script in the system using SVN-AT 1.3 Does anyone know that svn-ant 1.3 new subversion 1.7.5 Along with whether or not you get the documents about this interaction or any details? Thanks ... You can do the ant scripts of your inheritance working with sub-version 1.7.x and Make copies working with clients 1.7.x if you update your svnkit libraries. Support for the latest SVNKit 1.7.8 1.7.x supports copy format and subversion 1.7 servers. See for details Note that my answer is only for svnkit use. For the use of Javahl, if possible I will try to update this answer. Setup You need to update svnkit related libraries Svnant 1.3 with latest SVNnet release (1.7.8 or above) The svnkit library sent in .1 will not work with Subversion 1.7 from the svnant 1.3.1 Required Liberties: svnant.jar svnClientAdapter.jar ...

android - Show marker inside a resource drawable which obtained from url -

Image
मेरे पास नक्शा पृष्ठ है, जो मेरे ऐप के सभी उपयोगकर्ताओं को दिखाता है। इसके अलावा छवियों (मार्कर) मेरे सर्वर से दिए गए यूआरएल से प्राप्त की जाती हैं। इन मार्करों को एक ड्रॉएबल (एक सर्कल जैसे छवि दिखाया गया है) के अंदर रखना होगा। मैंने कैनवास का उपयोग करते हुए यूआरएल से बिटमैप की तरह सर्कल बनाया है। सार्वजनिक ड्रायव शो मे (स्ट्रिंग यूआरएल) {बिटमैप बिटमैप = नल; कोशिश {URL newurl = नया URL (url); बिटमैप = बिटमैपफ़ीन्टर। एकोडस्ट्रीम (newurl.openConnection ()। GetInputStream ()); } पकड़ (Malformedlexception ई) {// TODO स्वत: उत्पन्न होल्डिंग ब्लॉक e.printStackTrace (); } पकड़ (IOException ई) {// TODO ऑटो-जेनरेट कैच ब्लॉक e.printStackTrace (); } बिटमैप = getBitmap (url); पेंट पेंट = नया पेंट (); paint.setFilterBitmap (सही); Int targetWidth = 30; Int targetHeight = 30; बिटमैप लक्ष्यबिटकैप = बिटमैप.कुटिटइटमैप (लक्ष्यविंड, लक्ष्यहाइट, बिटमैप। कॉन्फ़िफ़.एआरजीबी_8888); रीक्टफ रीक्टीफ = नया रीक्टफ (0, 0, 30, 30); कैनवास कैनवास = नया कैनवास (लक्ष्यबिटकैप); पथ पथ = नया पथ (); Path.addRoundR...

Setting up a network between linux VirtualBox and Windows 7 -

I have a Windows 7 machine with the installation of Linux in the virtualbox. I need to set up a network connection between the two. Is there some tutorial on how can I get it? Try this manual: This is a dedicated manual written by Virtualbox, And you should clearly understand the virtual networking functionality.

- Where Developers Learn, Share, & Build Careers

निजी उप btn_ok_Click (ByVal इस System.Object के रूप में, ByVal ई System.EventArgs के रूप में) btn_ok.Click mysqlconn हैंडल .Open () cmd.CommandText = cmd.Connection = mysqlconn डॉ = cmd.ExecuteReader dr.Read () "लॉगिन से चयन *" txtuser.Text = "" और txt_password.Text = "" तो फिर MsgBox ( "उपयोगकर्ता डालें तो नाम और पासवर्ड ", MsgBoxStyle.Information," लॉग इन फार्म ") वरना तो txtuser.Text =" "तो फिर MsgBox (" लॉग इन फार्म "" कृपया उपयोगकर्ता नाम का चयन ", MsgBoxStyle.Information,) वरना तो txt_password.Text =" "तो फिर एमएसबीबॉक्स ("कृपया पासवर्ड दर्ज करें", एमएसबीबॉक्स शैली। सूचना, "प्रवेश प्रपत्र") 'यदि (डॉ। फ़िल्टकाउंट & gt; 0) तब' मैं 'के रूप में पूर्णांक = डीआर (1)' I = 1 के लिए 'dr.FieldCount' user = डॉ ( "उपयोगकर्ता") ToString 'पासवर्ड = डॉ ( "पासवर्ड") ToString elseif ((txtuser.Text =।'। "& amp; txt_usern...

salesforce - Force.com callout: Is there a way to get the full response from the target server -

While calling a web service from Force.com, I'm getting: System callout Exception: Web service callout failed: Unexpected element was expecting parser 'http://schemas.xmlsoap.org/soap/envelope/:Envelope' but found ': HTML' People with other people have asked to see it fully reacting that Salesforce is getting from their server. Is there any way to achieve this? I tried to run the debug level with an 'anonymous' executing anonymously, but with no further detail, the same low message is generated. The message you are receiving is because an error occurs because the sales force Is trying and it is unfortunately not logged. Parsing error is occurring because message response instead of SOAP You are receiving an HTML page This usually occurs when you are accessing a service that is safe behind the firewall. This means that you can see the service while browsing on your computer, but remember that Salesforce is out of your firewall and thus any ...

objective c - CGRectDivide with NULL pointer -

निम्नलिखित कोड में, nothing वेरिएबल से छुटकारा पाना संभव है? सीजीआरटीईटीटटेबलविव्हीफ्रेम; सीजीआरटीएक्ट कुछ नहीं; सीजीआरटीएक्टिविइड (टेबलव्यूफ्रेम, और कुछ नहीं, और स्टार्टटालेव्यूफ्रेम, खोजब्लॉइट - सामग्रीऑफ़ेस्ट, सीजीआरटीएमईएज); शून्य काम करने के लिए प्रतीत नहीं होता है कोई भी सुझाव? धन्यवाद! अच्छा, आप ऐसा कर सकते हैं सीजीआरटीएक्टिवेट (टेबलव्यूफ्रेम, & amp; (सीजीआरएक्ट) {}, और स्टार्टटायबल वीफ्रेम, खोजबार हाइट - कंटेंटऑफ़सेट, सीजीआरटीएमआईएजेड); या यहां तक ​​कि: माइक्रैक्ट डिवाइड (सीजीआरटी आर, सीजीआरएक्ट * टुकड़ा, सीजीआरएक्ट * शेष, सीजीफ्लॉट डी, सीजीआरएक्टएजेज एज) {स्लाइस = स्लाइस? टुकड़ा: & amp; (सीजीआरटीएक्ट) {}; शेष = शेष? शेष: & amp; (सीजीआरटीएक्ट) {}; सीजीआरसीटीडीवाइड (आर, टुकड़ा, शेष, डी, किनारे); }

java - change corner radius of drawable programmatically -

मुझे यह आकार एक XML में परिभाषित किया गया है: & lt;? Xml version = " 1.0 "एन्कोडिंग =" यूटीएफ -8 "? & Gt; & Lt; आकार xmlns: एंड्रॉइड = "http://schemas.android.com/apk/res/android" एंड्रॉइड: आकृति = "आयत" & gt; & Lt; ढाल एंड्रॉइड: startColor = "# FFFF0000" एंड्रॉइड: एंडColor = "# 80FF00FF" एंड्रॉइड: एंगल = "45" / & gt; & Lt; padding android: left = "7dp" android: top = "7dp" एंड्रॉइड: right = "7dp" एंड्रॉइड: bottom = "7dp" / & gt; & LT; कोनों एंड्रॉयड: bottomLeftRadius = "5dp" ## इस एंड्रॉयड बदलने की जरूरत: topLeftRadius = "5dp" ## इस एंड्रॉयड बदलने की जरूरत: bottomRightRadius = "5dp" ## इस एंड्रॉयड बदलने की जरूरत topRightRadius = "5dp" / & gt; ## इस जरूरत को बदलने & lt; / shape & gt; मैं निम्नलिखित वस्तु बनाने हूँ:। Drawable आकार = getResource () getDrawable (R.drawable.myshape)...

Android: Cannnot save data downladed from server using DownloadManager to internal memory -

I am downloading data from the server using the DownloadManager class in Android. Data saves external memory but I want to save them in internal memory. I did my research and what I found is that I tried the second solution of cyngus : public static final string PROVIDER_NAME = "com.provider.Downloads"; Public stable final URI CONTENT_URI = Uri.parse ("Content: //" + PROVIDER_NAME + "/ download") DownloadManager.Request req = New DownloadManager.Request (Uri.parse (LINK)); Req.setDestinationUri (CONTENT_URI); This did not work, he gave me an error: java.lang.IllegalArgumentException: a file URI no: content: //com.provider.downloads/downloads . Am i wrong It is clearly mentioned that the destination you set is setDestination * Methods should be on external storage and your app must have WRITE_EXTERNAL_STORAGE permission: Set local destination for downloaded file. There should be a file URI for a path on external storage, and WRITE_...

c# - crystal report failed -

I have created a crystal report with parameters, but this does not load the value. It only shows the title, I mean column name only. Please check your code and correct me. And I tried to load that report in PDF format, which shows an error like "Load report failed" Please correct me. Protected Zero Button 2_Click (Object Sender, EventArgs E) {Report Document Reports Document = New Report Document (); Reportdocument.Load (Server.MapPath ("CrystalReport.rpt")); Reportdocument.SetDatabaseLogon ("", "", "Arvind", "My ScamDDB"); Report document. Setpermator val ("mrno", textbox 1. text); CrystalReportViewer1.ReportSource = Report Document; } Secure Zero LinkButton1_Click (Object Sender, EventArgs E) {Exportport (); Private Zero Exports () {MemoriStream Ostream; Response.Clear (); reaction. Buffer = true; Report Document Report Document = New Report Document (); Reportdocument.Load (Server.MapPath ("CrystalReor...

- Where Developers Learn, Share, & Build Careers

I am using i.mx 287 EVK from freezesele for my application development. Let me run the Linux kernel and the routefows successfully. But the problem is that the USB stick does not detect when my hardware is connected. There is no change in the / dev directory and nothing is visible in the log (dmesg) Please help me fix it. The hardware has both USB host and device port. The basics that I check out: Check with other USB . Connect with a USB mouse or USB keyboard Check whether they are working. Check whether the device is getting power If you are not getting the power, then there is definitely a problem with the kernel configuration. Do menuconfig from USB driver block and work for USB pen drive Enable all required flags. The easiest way to get the configuration will be to get the Linux kernel file (ConfiG) working, copy it inside your kernel, compile it and run it. This should work IT was a time when I did the above things. But this should help you ...

linux - USB not detected by i.mx 287 EVK (FreeScale) board -

I am using i.mx 287 EVK from freezesele for my application development. Let me run the Linux kernel and the routefows successfully. But the problem is that the USB stick does not detect when my hardware is connected. There is no change in the / dev directory and nothing is visible in the log (dmesg) Please help me fix it. The hardware has both USB host and device port. The basics that I check out: Check with other USB . Connect with a USB mouse or USB keyboard Check whether they are working. Check whether the device is getting power If you are not getting the power, then there is definitely a problem with the kernel configuration. Do menuconfig from USB driver block and work for USB pen drive Enable all required flags. The easiest way to get the configuration will be to get the Linux kernel file (ConfiG) working, copy it inside your kernel, compile it and run it. This should work IT was a time when I did the above things. But this should help you ...

iphone - Change App Name If iPad Change Language Setting -

I am making a bilingual app in Thai English and Korean language. Now, whenever the user changes the language setting of the device, I I want to change my name for my app. This language is the app name English in English, and if the name of the app in Korean will be converted to Korean I know that this is possible, because I have seen some apps like this. How can I do this? Thank you! Go to info Strings file CFBundleDisplayName = "Specifically the name of your app"; Add localization of the property to the file

sql - Regarding combining queries into one -

I have queries and I have executed the query .. The first TXN_HEADER table is from TXN_HEADER select * where txhd_receipt_id = 'receipt_id_val' and while_short_desc = 'to_no_val' From the TXN_HEADER table, we get transaction_no values ​​(such as txhd_txn_nr) that use TXN_DETAIL The table is used to get the transaction details. Select * from TXN_DETAIL where txhd_txn_nr = 'transaction_no_val' and while_short_desc = 'till_no_val My question is that I write these questions illustrated Please, you guys can advise, through which I can add them to a single question in any way, I mean, through the medium of subcategories, through joining Please advise. Join version: select from TXN_HEADER inside TXN_HETER_desc .txt.htm_nr = TXN_HEADER.txhd_receipt_id = 'receipt_id_val' and TXN_HEADER.till_short_desc = 'to_no_val' at TXN_DETAIL.txhd_txn_nr and TXN_DETAIL.till_short_desc = 'to_no_val'

- Where Developers Learn, Share, & Build Careers

Believing that I have a table on which the column is "time", every five minute date ticket, such as : Time 20120701 00:00:00 20120701 00:05:00 20120701 00:10:00 20120701 00:15:00 .... But intervals are sometimes longer than 5 minites between rows, such as 20120703 00:00:00 20120703 00:15:00 Is it possible to combine the result with just one esquito sentence? Try it Select the time from the table, where is not the time (include T1 in the form of T1 in the time of T1. T1 on T2 as the title in the table. Time = t 2. time-interval 5 minutes)

Unity3D demo on iPhone cannot receive udp packets -

I wrote an udp and received the unity3d plugin dll in C #, but it received no udp packet from the server of iphone4 can not do. When the server sends an IWP packet to the demo running on the iPhone 4, then it can not get anything. When the server sends a UDP packet on the demo running on iPod Touch 4, then it works! a packet! When Unity submits the udp packet to the server running the demo in 3D editor, then it works fine! I used Wirehaarck to capture the packet between the client and the server Internal class RudpNetInteractor {Personal socket socket; Why? Why? Private endow server server; Internal Roodnet Interactor (IPEdpoint Server Address) {this.rudpClient = rudpClient; This.serverAddress = serverAddress; } Internal Zero Build Connection () {Socket = New Socket (Address Family.Inter Network, SocketType.Dgram, ProtocolType.Udp); Socket.Connect (serverAddress); BeginReceive (); } Send internal zero (byte [] buffer) {socket.Begin.Send (buffer, 0, buffer length, socketf...

vb.net - Combobox values from a textfile -

Hope people can help! I am trying to create a composite box filled with information from a text file that has been used as a break mark. IE Object, grade, N, word, 5, more text I need different areas between integers / booleans / strings .. but I am getting this Code to work it properly Ive searched the web, and found this code, but it is not working properly for me, maybe I was stupid but hope someone can help me Help me, oh guru of internet! The public sub-meritist () seems like Dim, as the new array list 'This call is required by the Windows Form Designer. I InitializeComponent () dim rdr IO.StreamReader = IO.File.OpenText (C: merits.txt ") while the rdr.EndOfStream dim line string = rdr.ReadLine () 'split the line by a comma as: dim array = row Get the right value: Breakdown is as follows: Merit name, type, shared, carthon, max, pre-rake dematname such as pus String = Arrest (0) Dim Martinep String = Array (1) Boolean = A dimension in the form of array l...

- Where Developers Learn, Share, & Build Careers

Image
I'm using that to detect blobs of a certain color. On that guide, it checks the orange blob and uses these values: int orange [3] = {200, 250, 10}; On the guide it says that this value represents orange in HSV. I do not know how they calculate these values ​​but I try to check the value of the blue color converted from RGB to HSV but it does not work. I want to find this color: How to fix HSV value to detect colors, any ideas? For blue , it can be used as HSV values: thanks! [120,255,255] I call it GIMP An open source image processing tool like Photoshop. Similarly you can use any tool to do this. But remember in OpenCV, Hu from 0-180, S = 0-255, V = 0-255 but in GIMP, Strong> This is H = 0-360, S = 0-100, V = 0-100 . So you have to implement scaling accordingly. Many interactive sites are available on Googling, you can try it. Check how to change these values ​​ Or you can see OpenCV docs to see how it works in OpenCV: I have affixed t...

- Where Developers Learn, Share, & Build Careers

Using the iText library, I can merge static PDF files, but not the dynamic ones. How do I complete this task? Edit : (Collected from the comments below): I have not been clearly understood the meaning of dynamic PDF. I'm writing now Dynamic PDF file is created by Adobe Livechison Designer. I call it " XFA pdf files ". Rvander's code works very well for static PDFs. But not for XFA PDF files. They are not readable on merge. I have used this dynamic PDF files. pdf -> turbobit.net/9rn2r3quw5gx.html pdf -> turbobit.net/4e6q7a1ts4jw.html How do I merge them into a single PDF file Can i do Updated answers : Your PDF Files are created using XFA (XML Form Architecture) . IText has only partial support for XFA but is complete for Acroform You have to level an XFA form and then use it as per the requirement. Demo: XFA for PDF (Bruno Logies online gadget) may be more ... your requirement The XfaMovie example would be ...

- Where Developers Learn, Share, & Build Careers

I used to work with MATLAB, and for the question I raised, I p = polyfit (x, y, 1) To estimate the best fit line for scatter data in the plate I can use, I was wondering which resources I can rely on to implement line fitting algorithm with C ++. I think there are so many algorithms for this topic, and for me, I hope the algorithm should be fast and during this time it can achieve comparative accuracy of the polyphonic function in MATLAB. I suggest coding it from scratch. This is a very simple implementation in C ++. You can code sources directly from your data for intercept and gradients (both code as polyfit ) for at least classes These forms close formulas, which you can easily use the loop. If you were using high degree then I would recommend a matrix library or a more sophisticated algorithm, but for simple linear regression, as you say above it requires you to have matrix and linear algebraic routine such problem (my opinion In) will end.

- Where Developers Learn, Share, & Build Careers

I would like to have 2 console windows in Eclipse: 1 only my process's error-stream and my process study with only 1- Stream I searched for an option or plugin to do this, but none found it. To do this, it should be easy to fail to implement in Eclipse. The eclipse that is familiar with PDE. Any idea how to do this or is there anybody ready to make this plugin?

javascript - Draw a canvas into another canvas not working -

I canvas another JavaScript canvas created through the canvas I am trying to attract But this is not working for me, this is my code, I think the problem was, when you attract the picture in the picture The canvas were trying, the image was not ready. So if you do this then it works perfectly: And you can adjust the height and width of the dynamic canvas. If you delete that window Open statement, correct it. But there is a problem with canvas.toDataURL () when you try to canvas.toDataURL () A local file, it returns a security error (if you inspect it via Google Chrome) that means wasted error: SECURITY_ERR: DOM exception 18 You can learn more about this error: (See if you are getting this error). Anyway, the root cause is solved, and a new problem is now completely: D. Otherwise better fortune!

c++ - File input separation -

Currently, I am writing a program for a class, and we must use file input and output. He gave us a file, which is 8 separate sets of 7 numbers (all integers) we have to enter the user who wants to read it, and then the highest number, the least number, the sum of the set of numbers and the set The average of is produced. I have a problem asking XCode to read a line of numbers. I do not have much practice with the getline () function, even if it is a solution too. Any suggestions? This is a homework assignment, it is the efficiency to sacrifice that you find a certain subject, But the code should give you a vague idea. Note ** This works only when you can enter the user only one line and exits the program cout & lt; & Lt; "Enter the row ..."; Cin & gt; & Gt; Line; // Error Check Line is within the limit / lines / Loop line (for loop) through 7 loops / loops through loops / // vars // end loop / // loop through array Array) for // loop) // sum ar...

c# - Interface reference -

I doubt, I have searched a lot about it and I have not found anything that can explain. I can have the property referenced to an interface inside my class, and could use DI to fill these properties. For example: public interface iTest {void DoSomething (); } Public Sector Exam {ITest _test; Public Test (Itte_ Test) {this._test = test; }} The problem is, if I have a generic interface, and my class does not use generic, when I make this property a compound error has increased Public Interface ITest & lt; T & gt; {Zero doSomething (T parameter); } Public Sector Exam {ITest & lt; T & gt; _testing; // Error (type can not be found) Public Test (Est T & gt; _test) {this._test = test; }} Is this possible? Your test class also needs to be generic - otherwise this thing There is no way to know what type of ITest & lt; T & gt; _test How do you know how to call _test.DoSomething () ? The type parameter of Test does not have to be T , of...

c - what kind of data structure should I use in this case? -

I have a function, it is said inside a loop, it generates a set of integers for each loop For example: Results for Loop: 1: {1 2} Result for loop 2: {1 1 1} Results for loop 3: {2 1 1 3} Results for loop 4: {3 1 3 2} And this Function can generate duplication results, for example, result 2 and result 3 are identical. I should put these results inside a data structure, but can not be repetitive, if the result 2 is the same result 3, then one of them should be kept, how to get it C ? If the limit of items is quite low, then you can use a bitmap as a mean of calculation As if you want to represent the set of integer in the range of 1 to 32, then all the 32-bit integers used as a bitmap are required: 00000001 00000001 00000000 00000000 - set {8, 16} ^ 8 16 etc. If the range is large, then use the array of bytes, where each bit indicates that the value in this condition is present in the set: # MAXVAL 1024 Typedf Unsigned four bitmap_t []; Byte bitmap [1 + ...

c# - Program I created does not run without DEP disabled -

I developed a program (in C # Winforms) and distributed it through the Google site I created. I have received a comment from someone that he is unable to work without disabling the DEP (he has Windows 7). I read something about DEP thing and I understand that it blocks any program which seems to save the windows system with RAM ... Did I do this when I developed the program? I have created a setup project for the program, so it creates an MSI file. Is there no way to stop my program from running those taboo pieces on Ram (if I think it's perfect)? Links to my site if it helps - all .net Programs, at least Since NET 2.0, possibly before a DEP compatible itself is done by a flag in the header of this executable. Dump on EXE from Visual Studio Command Prompt. Exe / headers can be seen by running: ... 2 subsystem (Windows GUI) 8540 DLL features Dynamic Base NX compatible // & lt; === Here is a structured exception handler terminal server aware 100000 sized stack...

Query performance in PostgreSQL using 'similar to' -

मुझे columnX उदाहरण में: से चयन करें, जहां columnX समान है ('% A% |% B% |% C% |% 1% |% 2% |% 3%') इसलिए यदि निर्दिष्ट में कम से कम एक मान (ए, बी, सी, 1, 2, 3) में कॉलम X है, तो मैं पंक्ति रखूंगा मुझे समान के उपयोग से बेहतर दृष्टिकोण नहीं मिल सकता है समस्या यह है कि क्वेरी को एक लाख से अधिक पंक्तियों के साथ तालिका के लिए बहुत अधिक समय लगता है। मैंने इसे अनुक्रमणित करने की कोशिश की है: तालिका बनाने के लिए सूचकांक तालिका Name_columnX_idxName (columnX ) जहां कॉलम X समान है ('% A% |% B% |% C% |% 1% |% 2% |% 3%') हालांकि, यदि स्थिति चर है (मूल्य ए, बी, सी, 1, 2, 3 के अलावा अन्य हो सकता है), मुझे प्रत्येक शर्त के लिए एक अलग सूचकांक की आवश्यकता होगी। क्या इस समस्या के लिए कोई बेहतर समाधान है? संपादित करें: प्रतिक्रिया के लिए सभी को धन्यवाद ऐसा लगता है कि मैंने इस बिंदु पर एक डिज़ाइन गलती के कारण (मैंने जो विषय पोस्ट किया है) के कारण प्राप्त किया है। मैं @Quassnoi से सहमत हूं, यह सबसे तेज़ और सरल है - जब तक कि प्रदर्शन या डिस्क स्थान नहीं लिखा ...

- Where Developers Learn, Share, & Build Careers

I have to hide two functions in jQuery and then show a header, and swap the button so that when The header is hidden, the "Show Title" button appears, and vice versa. They are as follows: $ ('# close_header'). Click (function () {$ ('# header'). Animate ({top: '- = 150px'}, 500); $ (this). Toggle (); $ ('# open_header'). Toggle () ;}); $ ('# Open_header') Click (function () {$ ('# header'). Animate ({top: '+ = 150px'}, 500); $ (this) .toggle (); $ ('# Close_header '). Toggle ();}); The markup to go together is as follows: & lt; Img src = "images / close.png" id = "close_header" class = "header_traced fidin button" & gt; & Lt; Img src = "picture / open page" id = "open_header" class = "header_control fadein button" & gt; & Lt; Div id = "header" & gt; * Header content. * & Lt; / Div & gt; Is there a...

- Where Developers Learn, Share, & Build Careers

In what socket does any kind of offer to limit the number of incoming connections on the socket based on the IP? For example, to prevent a customer from the spamming connection, is there a way to limit the number of IPs to connect to a socket? Or should such a thing be made custom? I think the real motive you are talking about is throttling, that is, someone For a particular client / connection, allows only a certain number of packets at a given time. There are some types of support available in most modern languages ​​such as Java or C # but not C However, here's a great approach to implementing it, I have used myself in the production code.

Recommended approach to using CSS in GWT -

Most projects include a reset-css and then start with scratch from my CSS styles. I imagine that GWT can be different, is there a recommended approach? Use one of the 3 offered themes and override as needed? Will I start with another topic? One of the most popular Twitter Bootstrap styles and widgets is a big fan of the harbor. If you want you can plug in your modified bootstrap theme. Some advantages: If you have a very strong technical in creating a beautiful user interface, but actually widgets / Li> A little bit .. but the developers are very sensitive and helpful.

- Where Developers Learn, Share, & Build Careers

I understand that JSLIIT is a great tool for JavaScript development, but in my global understanding of this There are some dark points. How to use it inside the environment of my development? In other words, how and how do you run JSLIT against your code? I have seen Aptana integration but it does not seem like this account details: / * jslint name: false * / How to work correctly in the client-side development environment? I want to feel good JSLint to parse the call, including items such as "console", "$" or "JQuery" How to use it with multiple files on the whole project (with no import I paste it on JSL to get proper sleep To answer the copy, we have read a lot of statements, so any answer that configures the online JSLINT form will be considered irrelevant. Someone uses the node.js automatically on your project Came up with a solution to get:

groovy - Grails error using HttpServletResponse to export file for download -

I am using the application in my Grails application to export CSV explains responsible to your individual domain class. I am getting the following error, however: for the servlet [default] in the reference with the path [/ MyApp] Servlet.service () threw the exception [request processing failed; Error in processing GroovyPageView: nested exception org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException getOutputStream () has already been called for this response] with the original reason message: getOutputStream () already This response has been called for From online search, I think the answer may be anywhere to apply a response to the HTTPSvette response. However, I'm not sure how to do this. any idea? Here is my code: def export = {df course = course.gate (params.id) if (course) {def persons = course? Person.findAllByCourse (Course): [] response.setHeader ("Content-Properties", "Attachment; File Name = People.csv") response.contentTyp...

android - Crash when calling AAssetManager_fromJava: "JNI WARNING: instance fieldID 0x571819bc not valid" -

It is full Warning: JNI warning example 0x571819bc not valid for fieldID class Ljava / Lang / Class; (Landroid / content / res / AssetManager;) V (GetIntField) and backtrace: # 00 PC 00045dd0 /system/lib/libdvm.so (dvmAbort + 75) # 01 pc 00,039,819 # 02 /system/lib/libdvm.so PC 0003e96b /system/lib/libdvm.so # 03 pc 000089b9 / system / lib /libandroid.so (AASSetManager_Fremazova + 88) # 04PC 00002f54 / DATA / DATA / COM. Broken Appoint Lloytmplat / Lib / Lib LiveWellPalm template. (Jawa_com_brokentapot_liftaplet_ Jeanai_krete + 128) The code because: Java provides public final class LiveWallpaperService Desktopasewa { Static asset manager assetManager; @ Override Public Zero () {assetManager = getAssets (); JNI.onCreate (assetManager); }} C ++ Zero Java_com_brokenteapot_lwtemplate_JNI_onCreate (JNIEnv * env, Job Asset Manager) {ASSAT Manager * pAssetManager = AAssetManager_fromJava (env, assetManager ); } I do not know what the warning means or why it is c...

- Where Developers Learn, Share, & Build Careers

I'm trying to set numpy under dragon 3.3.0 mac OS 10.7 Using the compilers coming up with .5 (Lion) and Xcode 4.5.1. I have installed homebrew without any hiccups using Python 3 and gfortran , but pip3 install numpy fails fails. By looking at other suggestions online, I tried to use Kleeng as a C compiler: export cc = clag export cfa = clag export fflgs = -f2c but received the same error report of the last line value error: the underlying buffer is separated , and I. So instead of trying to use it directly from the source, it seems to be successful; Build and install processes run on completion, although they are not shy about warning reporting. Full log is again, then I can run numpy.test ('full') from Python 3, and Although there are some warnings about those files I can not understand. Does anyone know why NumbPP fails when I can do it manually without any problems? It looks like Numpy now provides wheels on PP, which is localized to your mac...

google earth - links in kml balloons not working in GE 6 -

My KML Placemings have a description element population such as With Google Earth 5, when you click on the link in the balloon, the km is downloaded and displayed in the expected form. With Google Earth Pro 6, when you click on the link in the balloon, nothing happens, you have to right click on the link and then select "Open in new window" then KML downloads and Google Earth Is displayed in Does anyone know why there is a difference in behavior between GE5 and GE 6? How do I get a link to download without the need for the right click workaround in balloon in GL6 Updates to handle URL and ARS between some GE 5 and 6 GE5 allowed some sloppy URLs and 6.0 got better with some specs better than the specs. There were not many details on particular details, check the syntax of the URL and make sure it opens in your web browser. Note that if you want to fly to a target site mark in another KML file, then you specify the id of that location icon as an anchor aft...

c++ while loop doesn't exit on false condition -

I'm having a problem with my code which results in a run time error. To debug the code, I have thrown some seats in the statement so that it can be detected as to how the code runs correctly. Based on the output it looks like when the situation of the situation breaks down, when it evaluates the situation false, but I can not see how it is possible. Here's the code: var declarations: queue The stuff pops up the stack and the queue, then this code reaches: while (opstack.empty () == incorrect) {if (Opstack.top () [1]! = 'L') {cout & lt; & Lt; "Stack is empty ?:" & lt; & Lt; Opstack.empty () & lt; & Lt; Endl; Symbol = opstack.top () [0]; NewOrder.push (symbol); OpStack.pop (); Cout & lt; & Lt; "Popped stack;" & Lt; & Lt; Endl; Cout & lt; & Lt; "Stack is empty ?:" & lt; & Lt; Opstack.empty () & lt; & Lt; Endl; } And {break} }} Cout & lt; & Lt; "Made it ...

c# - My Windows forms application size is changing different notebooks -

Image
Coding My project was going well, but today I noticed a problem. My main notebook has full HD (1920x1080) resolution and I'm coding my projects here. When I changed the resolution of my main notebook to 1280x1024 or 1280x800 or 1024x768. there is no problem. The resolution of my application is 1024x768 and it does not collapse. This is the Princescreen. But my other notebook has 1366x768 resolutions and I am running this application to this notebook. Oh, is that so! It's a disappointment that my IATAtitan screw was transferred. This is a bad printer screen. I do not understand why you can help me, I would like to correct this error What can I do for Kind regards This is generated from various DPI settings, you can load it in the form: // dpi width float x go = it. Vector graphics (). DPIX; // If the screen width is, get a bigger image from (x == 120) // resources. Background image = properties Resources. Big Image; Get the small image from Else // resources. Bac...

trigger.io - Facebook UI dialog callback not fired -

I'm using forge.facebook.ui to send applications requesting applications. Dialog opens as expected and invites you to invite the right user. However this callback (success or error) appears when user clicks on 'Send' Example of the code given below: forge.facebook.ui ({title: 'Your friend Invite, Method: 'Greetings', From: 1234567, Message: 'Sign Up'}, Function (Response) {Forge.logging.info (Response); // Never Called}, Function (e) {forge .logging.info ('Facebook Failure:' + JSON.stringify (e)); // Never Called}}; In the past it was working correctly. This was done recently to exit the bug that was launched in Forge version, I just There is a fix that will be in the next Forge platform version, which we should deploy tomorrow (06/11/2012).

- Where Developers Learn, Share, & Build Careers

I am trying to convert this SBK statement to VB, but failed. Can anyone help? Announce the date as @ varchar as declare @factor as int (30) set @factor = (int (conversion as datetime, @date) 33 9 75) - (28 * ((as cast (diarity, date @)) (33975) / 28) First you need to parse the string value on a date time . Then, calculate the NR from 19 00-01-01 till date of that date. dim wire = "2005-11-14" date time value = date time. Paraaxact (str, "yyyy-MM-dd", CultureInfo.Instructure Culture, Datetime Style. A) Dim BassDet = New DateTime (1900, 1, 1) Dim Inteval = (Date Value - BaseDate). Total time You can expect to implement the operation of mathematics Factor = intValue - 33 9 75 - (28 * (Inquiry - 33 9 75) / 28)

How to append functions to current module from unrelated script in Python -

I have two dragon scripts in different places, I try to import another one in such a way That they first get integrated with one of the globals. It works fine, however when I call functions in other scripts which can get another one, so they find. Fukpi def run (): Globe = {} public = {Aksesfile ( "/ path / to / Barkpi" Globe, folk) Karrmodule = globals () currmodule [ "func_in_bar"] = Globe [ "func_in_bar"] func_in_bar () def func_in_foo_A (): print ( "fooA") Def func_in_foo_B (): print ( "fooB") If __name__ == "__main__": run () bar.py def func_in_bar (): Func_in_foo_A () func_in_foo_B () when If FU is triggered it fails with: NameError: global name 'func_in_foo_A' is not defined bar.py you need to add an import foo and then reference foo.func_in_foo () , e.t.c Use Alternatively, form: to func_in_foo

iphone - How to know when the device is charging? -

जब डिवाइस चार्ज हो रहा है, तो मैं अपने आईओएस एप को कैसे पहचानूं? इस बारे में कैसे। यूआईडीवाइस बैटरीटाइस्ट डिवाइसबॅटरीस्टेट = [यूआईडीईव्यूस वर्तमानडिवाइस]। बैटरएस्टेट; अगर (deviceBatteryState == UIDeviceBatteryStateCharging || deviceBatteryState == UIDeviceBatteryStateFull) {// यह चार्ज हो रहा है} से, UIDeviceBatteryState: डिवाइस की बैटरी पावर स्टेट। टाइपिंगफ़ enum {UIDeviceBatteryStateUnknown, UIDeviceBatteryStateUnplugged, UIDeviceBatteryStateCharging, UIDeviceBatteryStateFull,} UIDeviceBatteryState; UIDevice बैटरीटाइटअज्ञात: डिवाइस के लिए बैटरी स्थिति निर्धारित नहीं की जा सकती। UIDeviceBatteryStateUnplugged: डिवाइस को पावर में प्लग नहीं किया गया है; बैटरी पावर खो रही है। UIDevice बैटरीटेट चार्जिंग: डिवाइस को पावर में प्लग किया गया है और बैटरी 100% से कम चार्ज है। UIDeviceBatteryStateFull: डिवाइस को पावर में प्लग किया गया है और बैटरी 100% चार्ज है। अपडेट: बस पूरी तरह से अपने प्रश्न का उत्तर देने के लिए यहां बताया गया है कि जब चार...

Ruby on Rails: wrong number of arguments (3 for 2) -

For some reason I'm getting an error on this method when I'm trying to add a record. The wrong number of specific error arguments is (2 to 2) def addrecord res = multizoucord.jocode (param [: street], param [[city], params [: state]) latitude , Lng = res.ll.split (",") Bathroom.create (: name = & gt; Parameters [: Name] ,: Bathroom type => Parameters [: Bathroom type] [: Road],: City => Ultimate [: City],: State => Paraam [[State] ,: Country => Params [: Country],: Post => Params [ Post] ,: lat = & gt; Latitude parameter [: Comment] :: comment => LNG :: Access =: S Source = & gt; 'Skvet' ,: gain = & gt; Param [[Benefits:]) response_to do format | Format.json {Render: None = & gt; True} end end This is an example call ... & gt; Http :. .... / bathroom / addrecord name = Apple% 20Store & amp; Bathroomtype = 1 & amp; Road = one% 20Stockton% 20St & amp; City = San% 20Francisco & amp; State = CA &...

objective c - NSUserNotification - How open the app when clicked -

I am using NSUserNotification to display the notifications. It is working fine This problem is that when you Click on Notification: Application notifications are not deleted from the Notification Center. The app is not open (when at least). "Information." @ Implementation Notice - (zero) Notify: (NSString *) Message {NSLog (@ "Notification - Show It"); NSUserNotification * Notification = [[NSUserNotification alloc] init]; [Notification Situation: [Message Value Forekey: @ "Title"]]; [Notification Set Informative Text: [Message ValueForca: @ "Content"]]; [Notification set delivery date: [NSDT date with timer: 0 to date: [date of NSDT]]]; [Notification SetsNumber: NSUser notification DefaultSoundname]; NSUserNotificationCenter * center = [NSUserNotificationCenter defaultUserNotificationCenter]; [Center schedule notification: notification]; } - (Zero) User Notification Center: (NSUser Notification Center) Center was activated Note: (NSUAS...

expressionengine - Images not resizing in WYGWAM/Safecracker/Channel Images entry form -

I have a blog that uses channel images to upload and manage images. Content area is a WYGWAM fieldWhile adding images to the WYGWAM content area, I have some sizes set in channel images that allow the user to adjust the layout within their content (landscape left, right of scenario, picture left , Picture correct). After that I have two other sizes: thumbs and galleries are set for the image gallery that appears below this content, thumb is set as a small preview in the area settings, and the gallery is set as a larger preview in the field settings. This all works very well in CP publication form. However, things also do not work properly when using the Safecracker form. I can select existing images, but when I add a photo to the content field (WYGWAM), it does not change it properly. I have to choose the dialog box and the options that I want to choose, but this option is not being saved. What happens is the image is being added to the Wiwim content, which I have used in the l...