Posts

Showing posts from May, 2014

C# Puzzle : Reachable goto pointing to an unreachable label -

Here is Eric Lipert's comment: Now when you know the answer, you This puzzle can be solved: I have to write a program that has got an accessible accessory that goes to an accessible label. - Eric Lipper on July 17 at 7:17 I'm not able to create a code that would be a pointing point to an accessible label. Is this also possible? If so, what does the C # code look like? Note: Do not discuss about how bad 'Goto' is. This is a theoretical practice. My basic answer: try { Geto ilikecheese; } Finally {new invalid operation expiry ("you only have cheese"); } ILE Chase: Console.light line ("MMM cheese is tasty."); Here the compiler is without warning. bool jumping = false; Try {if (DateTime.Now & date; DateTime.MaxValue) {Jump = (Environmental NewLine! = "\ T"); Goto ilike chasse; } Return; } Finally {if (jumping) throwing a new invalid operation exception ("You only have cheese"); } ILE Chase: Console.light li...

winapi - How to reserve bottom 4GB VM in an x64 C++ app -

Working on 32 bit Windows C ++ apps porting Unfortunately, between code DWORD and pointer values Uses continuous casting in both directions. One of the first 4 GB virtual process space is to reserve as soon as possible during the process startup so that all subsequent call reserved memory will be more than 4 GB of virtual address. This will return any unsafe dots to the Ford Ford and then Pointer from any unsafe trap and will help in catching errors before that. When I see the memory map of a very simple one-line C ++ program, there are many libraries that are filled inside 4 GB below? Is there any way to ensure that all the libraries, etc., only load up to 4 GB? Thanks

ruby on rails - Show textfield data and also change value in database -

मेरे डेटाबेस में यह है & lt; input type = "text" value = "& Lt;% = खाता [" खाता नाम "]% & gt;" / & gt; यह फ़ील्ड में खातानाम का मूल्य दिखाएगा जो मुझे इसकी भी इच्छा है। हालांकि, अगर मैं चाहता हूं कि उपयोगकर्ता उस वैल्यू को कुछ और करने के लिए बदल लेता है जो यह करता है अगर मैं इसे ऊपर दिए गए कोड नमूने के स्थान पर रखता हूं & lt;% = text_field_tag: accountname, params [: accoutname]% & gt; ; यह मुझे मूल्य बदलने और डेटाबेस अपडेट करने देता है। हालांकि, फ़ील्ड उपयोगकर्ताओं को विचारों में रिक्त रहता है। मैं सोच रहा हूं कि मेरे लिए डेटाबेस बदलने के साथ ही खातानाम को दृश्य में प्रदर्शित करने का एक तरीका है क्या आपने इस कोड को काट और चिपकाया है? यदि ऐसा है, तो आपके पास एक टाइपो है। पैराम्स [: accoutname] : accountname

ruby - DRYing my has_many's in Rails -

I have an ideal class in which, among other things: class group & Lt; ActiveRecord :: Base has has_many: membership has_many: users ,: through = & gt; : Membership has_many: admins ,: through = & gt; : Membership ,: Source = & gt; : User, terms => "Subscriptions.role = # {ROLES [: Admin}}" is_main: Subscriber, via = & gt; : Membership ,: Source = & gt; : User, terms => "Subscriptions.role & gt; = # {Rolls [: Customer]}" is: Medium: Writer, via = & gt; : Membership ,: Source = & gt; : User, terms => "Subscriptions.role & gt; = # {Rolls [: Author]}" is_maya: Pending_assists ,: By & gt; : Membership ,: Source = & gt; : User, terms => "Subscription.pending = true" end Number of times : through = & gt; : Membership ,: Source = & gt; : Users repeatedly bother me. I know the route files, you can do map.with_options . Is there something like this for my model associations? ...

c# - How to subString a block of user generated HTML while preserving formatting? -

I want to make general preview paragraphs with a [read more] link. The problem is, the content I would like to sub-string (), is the text and html written by a user with the WYSIWYG editor. Of course, I check to ensure that the string is not zero or empty, substrings (), the problem is that I can completely break the HTML tag, the presentation of the whole site is off I can do The WYSIWYG editor does not seem to make completely formatted HTML, and many times & lt; P & gt; & Lt; / P & gt; Instead of & lt; Br / & gt; The use of tags seems ... basically, I can not rely well on the formatted tags, etc. My operation was to remove all the HTML and replace the remaining text, it works, but loses any formatting existing in HTML. What is the best way to sub-string () Non-site rendering to maintain HTML? While extracting a list that is not a search for any closing tag via the substrings, Goes off? You can then add the closing tag for any opened tags f...

iphone - What do they mean by "the timespace of the animation's layer" and "in the local active time"? -

They say: Time Protocol animation has a fixed number second duration of two properties Using: beginTime and timeoffset beginning time animation indicates the number of seconds in the starting period, and the animation layer grays on the timepace. The time offset specifies an additional offset, but is said in the local active time. Both prices are mixed to determine the final values ​​offset. I know about time and place but I find it difficult to sweat their words here. "The animation layer is scaled at the timepace." Animated visual speed = 2.0 Superlar Speed ​​= 2.0 Beginners = 1.0 So this is real Will start after 0.25 seconds in time? (Double superlair speed, which is twice as superlevel speed, so we have a traffic speed and local speed of Animator 1. Still is quad speed.) More time offset "local active time" Does he mean distorted time in motion? That is, if the motion of the Animator object is property 1.0, then is it the local active time...

java - Is using AD credentials entered into form fields as opposed to the browser integrated auth window bad practice? -

I'm looking for some feedback about the practice of authenticating an intranet based web app to request users I use the domain \ username and password fields in opposition to using native browser-based challenge windows for integrated certification, for example, ad credentials directly in the form field. In the form-based example, the credential in the Sadiq text is passed to the application and it is essential that the data relies on the integrity of the application to handle it properly. I think this is equivalent to entering my open ID credentials directly into a host app on the Internet. So my questions are: Is there any best practice guide on considering a custom web app (mainly Net / Java stack) in Eddie's environment? Can you think of any legitimate circumstances where it is really necessary? Is this a legitimate concern or am I just being mad ?! In a highly secure environment safe focus sequence CTRL- When using ALT-DEL, users are encouraged to ent...

java - Ruby code to JAR -

I want to be able to compile a Ruby program for a Java Jar program. I have seen in Djerobi and have seen many examples of Java applications which might be able to evabulate Ruby code, but is there a more elegant solution, which allows to process everything in Ruby And then it compiles it directly into the JAR file? / P> The overall goal behind it is to be able to expand the protection device called Burap Proxy, so I want to be able to use all my Ruby Penestexting scripts (obviously they are arranging them so that they ) And compile my plugins in a JR file that can be executed by the device. If you Thank you for your time. JRuby you Allows class compiling files, which you can normally issue. You just have to include jruby.jar too. jrubyc & lt; Script name & gt; Script name & gt; This command is in the current directory with a directory of Paris. And match the package where the file resides. Then the following command jrubyc foo / bar /...

How can I get the Visual Studio 2008 built-in installer to overwrite an install? -

Before installing a new version, I installed the pre-installed version of my app without disturbing the user to uninstall I want to remove The deployment project properties that I have set: AddRemovePrograms icon (icon) Author Justin Tanner Details DetectNewerInstalledVersion False InstallAllUsers True keywords localization English (United States) producer name ManufacturerUrl PostBuildEvent PreBuildEvent ProductCode {3F401BEF-4A95-48AE-A79F-FBB60E90E26A} to Nikalenpradrshit productivity utility app True RunPostBuildEvent successful making SearchPath subject Smrthnfon Smrthnuplbd Lcshyplait x86 Title utility app upgraded Dkod {B2DC1E38-5605-4CC7-A815-2E1F9D7EDE 41} version 1.0 after your code version to change the installer setup project the changes, visual Studio will it is recommended that if you change the version ProductCode will change . Do you want to do this? Select Yes . built above installer and Utpadkod updated version update will automatically upgrade...

c# - WM_KEYDOWN : how to use it? -

Image
I am trying to send a major stroke in an application through postmasses. I am also trying to understand the message using Spy ++ because I can not fully understand its inner workings. In this picture, the first item (selected The item was created with a real key stroke made by me. Around it was made with one of the red slippers (below) the following code: WinApi.PostMessage (InsideLobbyHandle, WinApi.WM_KEYDOWN, (int) WinApi.VK_UP, 1); I think this will have to do with the previous post message (parameter), but I do not know how it really works. I can see ScanCode = 48 in the original key stroke, and in my own 0, the other is faxed and my 0 is. How can I see it? I can not understand the last parameter is working. By using the keyboard input, not PostMessage. You can not do The keyboard is still in relation to state / async-state: The SendInput function does not reset the current state of the keyboard. Therefore, if a user's keys are pressed while callin...

MySQL create function won't return sets -

I can not get this work done with MySQL 5.x This function should return all the relevant rows to the selection-statement: create build getuids (root INT) Set as INT $ $ INST Select Return Date WHERE removed from pages = 0 END $$ language 'SQL'; Any thoughts that I have done wrong? A MySQL function can not return a set of lines or rows in MySQL to only one stored procedure rows Can return This is true for MySQL 5.4 and the use of stored procedures in the form of page view tables or where segment values ​​in the questions are also unavailable. If you want to use a function, you can do the best so that GROUP_CONCAT can be used to get values ​​in comma separated list: Create getuids function () Return VARCHAR (1024) Select Start GROUP_CONCAT (UID SEPARATOR ',') IU.Out_list pages of WHERE Destroy = 0; Return @uid_list; END Then you need to check the UIDs in your selection statement, you can use the FIND_IN_SET function like this: SELECT. .. WHERE FIN...

linux - debuginfo-install using a local file -

I am trying to debug a program that I wrote but GDB tells me an error: Use different debuginfo, use: debuginfo-istall glibc-2.9-2.i686 When im trying to use that command, it gives me an error because my fadra Disconnected from internet. However, I have glibc-2.9-2.i686 in the Fadora CD. How can I use debugino-installation with my local file? Or is there any other solution? Thank you! I think you can call debuginfo-install - enablerepo option, so that you can use your fedora CD as a repository for installation.

Tips for debugging latex errors in Doxygen -

I'm getting an error message now: no file _ formula. ...! The missing $ insert ... I tried the code and tried the single @f $ tag, but I was not able to find the culprit like this Has happened. How can I go about solving this specific problem? In addition to this, what are some common tips for debugging latex errors? Is there any log file anywhere? I use both dosage and latex while compiling sources, the dosage is the content of your latex equation Will copy them, which are not specified in the html / _formulas.tex ( OUTPUT_DIRECTORY related to the docsfile), the tex file is compiled , And then copies the result to PNG files. If you see \ f $ a + b \ f $ , the formula will appear inline; And if you use \ f [a + b \ f] then there will be formulas in the "display" style. It seems that one of your firefoxes is error, if the command line is displaying error, you can edit the _formulas.tex file, you can probably track an error The "missing ...

iphone - Cocoa Touch - UISearchBar Keyboard - Hide 'Search' Button -

On my iPhone app, I am using a UISearchBar (without search display control). As UIButton I have my 'Search' button and so when the editing on the UISActbarbar starts, which pops up, I would like to hide the 'Search' button on it as it is unusable, because it is unusable. How can I go about doing this without the search display controller? Or instead - is it possible to use my UIScumber and UIButton 'Search', as well as a keyboard 'search' button to work with? I have tried - (zero) searchBarSearchButtonClicked: (UISearchBar *) searchBar However my UISearchBar is called 'searchbar' and so its answer Not giving up (turning search bar into search bar does not work either) when I use a UISearchBar with a search display controller instead of it works perfectly - however, I do not want the new table view that it Opens on editing - or is there any way to stop it? Thanks in advance! Benji - Edit: Hull I used a text file on searchbar, so ...

mod rewrite - Remove .php with mod_rewrite -

मैं इस यूआरएल को कैसे बदल सकता हूँ: इसे एक: धन्यवाद । इस नियम की कोशिश करें: पुनर्लेखन नियम ^ अनुक्रमणिका / (। *) Index.php / $ 1 और अगर आप index / को भी पट्टी करना चाहते हैं, तो इसे आज़माएं: RewriteCond % {REQUEST_FILENAME}! -f पुनर्लेखन नियम! ^ Index \ .php $ index.php% {REQUEST_URI}

Can I use DLL written in C++ in my C# project? -

itemprop = "text"> The problem is - I want to write a template class in C ++, call it in DLL and call it C # project Is this possible? Can you please provide any reference or article about doing so? Edit I uncompressed C ++ The template class could not be exported. It does not exist until someone does not instantiate it. You should instantly clear it and then export it as a normal class.

Ajax in Asp.net mvc -

I am using AJAX in mvc to refresh the partial page. I call a partial view (i.e., a different user control) for each page and then using Html.RenderPartial () partial view. I just want to confirm that I need to create a separate user control for every page or any other You should make a different user control for each logical unit that you want to partially render. For more precise control, I would rather use jquery to manipulate domes rather than partially render.

.net - (Setup & Deployment) Create a folder & rename destination folder -

I am using the setup of Visual Studio; To create an installer for a service provider, deployment project and what I want, when the installer is running, then make a folder inside the folder. How would I go about doing this? I tried to add a folder to the application folder in the file system on the target machine bar, but it is not working. There is also a way to specify what the name of the application folder will be? Right now I have a solution called the tracker.Import.Service and the output folder that installs the Tracker. Import Service. Thanks

Can a .NET object actually have no constructors, according to reflection? -

I'm actually writing simple IoC / DI containers, and I got the following code: ConstructorInfo [] ctors = concreteType.GetConstructors (); If (ctors.Length == 0) returns the catalyst. Create the intensity (solid type); // More code goes here ... I can not come in the case of a test that results in a type of zero constructor, along with: class lonely type {} Is it possible for a .net type no constructor, or does CLR always provide a vest? - Static classes are not a constructor: Fixed class too lonelytype {} Normal Paraslabel Constructor C # compiler , provided by CLR no. Note that as far as CLR is concerned, the strokes generated from C # are not either the parameterized constructor. For example: struct foo {} will not be a non-parameter creator, you can do it in IL, which can ...

ios - How to implement scale-9 (9-slice) for custom background art created for UIButton -

What do I need to do in order to use a similar background image for UIButton? (Usually known as 9-piece scaling or scale-9) check out : > - Left capavid with (UIImage *) stretch: (NSInteger) leftCapWidth topCapHyight: (NSInteger) topCapHyight In the UIImage class. If I understand what you are searching for correctly, it allows you to use a PNG to define a button, and it can be used in any size vertical or horizontal form Will spread from.

F# Lambdas in records -

मेरे पास एक साधारण प्रकार है: टाइप करें p = {desc: string; Desc2: string} मैं एक मान के पास एक उचित स्ट्रिंग के बजाय एक स्ट्रिंग लौटने के एक अनाम समारोह को कैसे पारित कर सकता हूँ? निम्नलिखित संकलन नहीं है धन्यवाद दो ओओ = {desc = "ठीक"; ठीक है, I 'मी,' '' '' '' '' ' एफ # में कुल न्यूबैंड, लेकिन मेरा अनुमान यह है कि आप किसी स्ट्रिंग के लिए एक समारोह निर्दिष्ट कर रहे हैं, जो संपूर्ण अर्थ का पूरा नहीं करता है आप या तो संशोधित कर सकते हैं desc2 एक फ़ंक्शन, जैसे desc2: unit - & gt; desc2 = (मजेदार () -> gt; ") () उस मामले पर निर्भर करता है जिसे आपको वास्तव में आवश्यकता है।

terminology - Meaning of "Tertiary level" In New Zealand programmer job listings -

What is the phrase "Qualify at tertiary level" in terms of New Zealand's list of programming jobs? New Zealand can have tertiary university or polytechnic education. In other words, after the secondary school, there is no formal education, which is 12 years in New Zealand, 5 years of age 17-19. Qualifications will include a degree or diploma, so basically, to fit your non-New Zealand qualification in job description, it is necessary to fit into the above definition. As a person who has hired software engineers from abroad, I would be happy to hear what qualifications you have received, non-official assessment whether it will qualify under the above criteria. .

.net - Loading a DataSet with table definitions & relations (but not data) from SQL Server -

I'm not an expert with either system. To Store System.Data.SqlClient.SqlBulkCopyright results, neither data nor SQL Server, but need to generate a large dataset. Datasets will contain approximately 10 related tables when SqlBulkCopy transfers datasets to SQL Server, so my understanding is that the rows of different data tables will be integrated with the existing SQL table, creating relationships and constraints have to keep. Rather than creating an XML schema definition, is there an easier way to load barriers and more than one table definitions, barriers and foreign key definitions from the SQL table? If not, what approach would you recommend you can use Are there.

c# - Replacing <p>, <div> tags within <td> tags? -

I am working on a special HTML stripper. In place of current stripper & lt; Td> Tag with tag and then & lt; P & gt; And & lt; Div & gt; Tag with double carriage-tags However, when stripping the code like this: First lesson & lt; / Td> & Lt; Td style = "background: # 330000" & gt; & Lt; P style = "color: # 660000; text-line: center" & gt; Some text & lt; / P & gt; & Lt; / Td> This creates (obviously) the first lesson some text us & lt; P & gt; Nothing in this case will change, so it produces: First text (tab) some text However, we want to keep a double cart Substitution replacement for other code where & lt; P & gt; Tag & lt; Td> The tags are not surrounded by. Actually, we & lt; Td> \ T always tag and & lt; P & gt; And & lt; Div & gt; With tags \ r \ r only when they & lt; Td> Tag Current code: (C #) In of // (the stripp...

Ruby: how do I calculate a duration given 2 datetimes from a CSV file? -

I have many CSV files, including initial and end time. I use fast CSVV to parse files I can, but I do not know the best way to get this period in Ruby. Values ​​are given in my hash for each line of CSV files. Start time: Mon Jul 20 18:25:17 -0400 2009 Expiry time: Mon 20 July 18:49: 43 -0400 2009 You can find a duration to reduce the datetime from the second. If you are included in it, then you will find Destime objects for long as Fasters CSG: date_time converter for example: Fasters C Veerach (Some_file ,: converters = & gt; [: date_time]). Line | #blah end Or, you can only change yourself using Datetime # Parse. From there, you can use to get an array containing [hours], minutes, seconds, fraction_of_a_second] , which I think only part of the day It's easy to work with. Depending on what you want them to display, there is probably information that will help you in those north rails, but you can always include the necessary parts from the rail, or only...

c# - How do I ignore event subscribers when serializing an object? -

जब निम्न वर्ग को BinaryFormatter के साथ क्रमबद्ध किया जाता है, तो Roar ईवेंट को भी सीरियल कर दिया जाएगा, क्योंकि उन ऑब्जेक्ट्स के संदर्भ EventHandler प्रतिनिधि द्वारा आयोजित किए जाते हैं। [Serializable] सार्वजनिक वर्ग शेर {सार्वजनिक घटना EventHandler Roar; सार्वजनिक स्ट्रिंग नाम {get; सेट; } सार्वजनिक नाव फ्लफ़ीनेस {प्राप्त; सेट; } सार्वजनिक शेर (स्ट्रिंग का नाम, फ्लोट फ्लोरीनेस) {name = name; फ़ुलफ़ेनेस = फ्लुफेनेस; } सार्वजनिक शून्य प्रहार () {रोअर (); // शून्य हो सकता है, आदि ..}} शेर के साथ शुरू होने वाले ऑब्जेक्ट ग्राफ़ के भाग के रूप में आप ईवेंट सब्सक्राइबर को सीरियल कर सकते हैं? [कोड रहित] विशेषता को ईवेंट पर डाल देना नहीं होगा। नोट: मैं खुद का जवाब दे रहा हूं प्रश्न के बाद से मुझे लगता है कि यह साइट पर जानकारी रखने के लिए उपयोगी हो सकता है! अकसर किये गए सवाल: यह पूछने और अपने खुद के सवाल का जवाब देने के लिए भी पूरी तरह से ठीक है, लेकिन आप का आह्वान करते हैं कि आप खतरे में हैं: वाक्यांश एक प्रश्न के रूप में। आपको " क्षेत्र शामिल करना होगा...

cruisecontrol.net - Is it possible to get ccnet 1.4 to use svn 1.6? -

I think my version of ccnet has a directory named svn-win32-1.4.6 (which I think It is used to pull the SVN, which is on any other server ..) Is it possible to get CCNET to use the new version of SCN Client Tools? Also, if so, do the new customer tools pull right from SVN 1.4? I had a CCINet 1.4.3 implementation that used to point to SVN 1.4. 6. When we upgraded the SVN to 1.6, everything continued to work. So yes

CSS - child font-size using em -

What is the most effective way to make all nested inventory items the same size, which is not equal to 1. For example, I want all Li to UL's parents to be size up to 0.85EM in this list. Do I have to make a separate class for every "level" depth? & lt; Html & gt; & Lt; Top & gt; & Lt; Style type = "text / css" & gt; Lee (font size: 0.85em; } & Lt; / Style & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Ul & gt; & Lt; Li & gt; Level 1 item & lt; Ul & gt; & Lt; Li & gt; Level 2 item & lt; Ul & gt; & Lt; Li & gt; Level 3 item & lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Body & gt; & Lt; / Html & gt; should work. li li {font-size: 100%;}

sql server - Delete SQL looping -

I want to put only 1000 entries for each customer. I want the code given below, but does not take a loop through the client, instead of having 1000 subscribers. Is there a way to do this in SQL? I was told that I need a cursor, but I'm not expecting. Select the ID ID (id int) DECLARE @ Client Table (Client varchar (20)) in @clients (clientid) Select SELECT Select the INSERT @ ID from tRealtyTrac TRealtyTrac with the top 1000 id from where in the client (select client from client) DELETE trealtytrac where id is not (select ID from ID) Is it SQL Server 2005 or later? About something like INSERT @ID (id) from SELECT id (SELECT id, RANK), (according to the client order based on ID) from TRILTTC) T WHERE. Rank & Lt; = 1000

perl - Quality guide to automake + autoconf and the other intricacies of a build process? -

I am a fairly recent developer, and therefore build processes and there is no such complicated experience of the subject of Automake and autoconf But most of the guides are hard to understand or implement unnecessary complexity. I have several Pearl scripts that I need to deploy in the form of CGI scripts on remote boxes (a mixture of BSD and Ubuntu servers), and I can use a guide that clearly builds a manufacturing process. Does, which will work on many environments without reading more than 100- long documentation for registration. Anyone know of one? The personal creation and deployment system, though it comes with a release script which can be used in various dimensions Checks and uploads them to CPAN, but it is easy to change what you need. My intention was that people will use the original idea but they will fulfill their needs. I gave it to Nordic Pearl Workshop 2006. Almost everyone has spoken to me, though, seems to make their own release software, so no one is ...

DatagridView loses current edit on Background update -

Here's my problem: I have a datagrid view for custom gates binary list. A background thread is continuously updating the value of these items. Udpates are displaying correctly, and everything is fine except for one thing - if you try to edit a different field, while the background-updating field Updating, this loses the registered value. Here is a code sample that reflects this behavior: (For a new form, drop a new DataGrid view :) Using the system; Using System.Collections.Generic; Using System.ComponentModel; Using System.Data; Using System.Drawing; Using System.Linq; Using System.Text; Using System.Windows.Forms; Using System.Threading; Namespace WindowsFormsApplication2 {Public Partial Category Form 1: Form {Private Binding List & lt; Foo & gt; Flist; Personal thrud thrd; Private Binding Source B; Public Form 1 () {Initialization (); Flist = new binding list & lt; Foo & gt; New Foo () {a = 1, b = 1, c = 1}, new foo () {a = 1, b = 1, c = 1}, new foo () {a ...

c# - Cut a string to fit the width of a div and add three dots at the end of the string -

How can I fit a string into a div's width? Assume that I have a long string like "Anyone can help me solve this problem" A div 80px wide I want a string To fit the width of the divi and add "..." at the end of one word, as "someone can help me ..." You use CSS to convert strings to string using methods with elliptic You can try to do Basically, for this cross-browser to work, you have to use a combination of standard CSS, browser-specific CSS and some XML. The full script can be read on the link above, but the final product is: .lispicious {white-space: nowrap; Hidden flurry; Text-overflow: oval; -o-text-overflow: oval; -MOZ-Binding: URL ('Assets / XML / Elysis. XML # Alpicis'); } combined & lt ;? XML version = "1.0"? & Gt; & Lt; Binding xmlns = "http://www.mozilla.org/xbl" xmlns: xbl = "http://www.mozilla.org/xbl" xmlns: xul = "http://www.mozilla.org/ Keymaster / Gatekeep...

windows - Protecting an ASX file in PHP -

I only have a member on my site where users can log in and view windows media streaming content. I have created a PHP script to serve the ASX file, but I can not validate it with session information. I think this is because the WMP is requesting and there is no php page. Can anyone recommend a great way to protect ASX files? What should I do. PHP session ID is included in ASX request. Generally this identifier is stored in a cookie, and every page goes to PHP on the request. In this case, WMP is not sending a cookie, so you have no way of knowing whether the request is authenticated or not. When you download the link out of the ASX file, the nail on the session identifies as a GET variable: $ download_link = "http: // myserver. Com / download_asx_file.php? " $ Download_link = "F = $ file_id"; $ Download_link = Htmlspecialchars (SID); Now when you call session_start () at the top of download_asx_file.php You should find and load it as you nor...

Unknown file type MIME? -

Is there no extension in the uploaded file, do I have to specify a MIME type? In other words, what is a common normal mime type? You application / octet- stream for unknown types . In Section 4.5.1: The "octet-stream" subtype indicates that one body has arbitrary binary data.

javascript - How to apply a class to all button? -

In one of my projects I have used the input [type = "button"] all the buttons But the style works fine in all browsers except Internet Explorer 6. This does not style the button. Is there a solution for this, like creating a few squares for buttons and applying it to all buttons? I want to apply that square to all buttons, but not manually. I think it is possible to use jQuery for this, can you please help me on this? I usually prefer not to use javascript for this, so i class = "Text" Input & gt; Text type for elements, class = "" button > type code for gt; elements of type, and so on. I can match them with input.text and so on. When you do not want to do it manually, I consider it a better practice if you still want to add it to jQuery , Then you do it like this: $ ('Input: button'). AddClass ('button'); // to include & lt; Button & gt; Element: $ ('Button, Input : 'Button'). AddClas...

asp.net - File uploading : What should be the name of the file to save to? -

I am going to add file upload control to my ASP.NET 2.0 web page so that users can upload files. The files will be stored in the folder in the name of the server as the user. I want to know what is the best option for nameing files while saving the server. Security, execution, flexibility etc need to be considered to handle files. If I miss something, please direct me The options which I am now considering: Upload an input filename with the same name Add User ID + Random Number + Name of File as Input File Name Create the current time in random number + seconds and save the file with that number. Will there be a table with users who upload this number Anything else? What is the best way? Thank you in advance Username for user names Do not use user ID instead (I believe your users have a unique ID). Never use the original file name. Use your solution number 3, instead of user name, user id For your information, PHP was a vulnerability a few years ago: can make a...

python - Return files only from specific folder -

I wrote a function in Python, which would have to return the file from a specific folder and all subfolders. File name taken from function parameter: def ReturnFile (fileName) returns open ("C: \\ folder \\" + fileName, "r") But as the filename you can pass for example: ".. \\ Windows \\ passwords.txt " or some unicode symbols for dots . How to fix it? Maybe some RegExp might be? The function resolves a given path such as ".." after that you can check The resultant path is in the expected directory: def ReturnFile (fileName) norm = os.path.abspath ("C: \\ folder \\" + fileName) if no

java - Can we update a jar / war file in a deployed server and then reload the new jar / war file? -

Can we update a jar / war file to a deployed server and then reload the new jar / war file Can you? If so, how can we get it, and if possible, the potential list web server that supports this feature. Yes. All major Java EE Servlet containers support this. Whatever I have worked with, it includes glassfish, tomcat, webspreader, web logic and jeron. I have not used other Oracle containers, but I think it also does this. He said, none of them support it in a reliable way (they will find out the most changes, but there are some types of class changes that will always need to be restarted), when Unless you are using below.

f# - Struct for depth-curves in sea-maps -

I am trying to make a straight in #F to represent deep curves in the sea map. It should contain a list of coordinates and float in which the depth is represented (i.e. "4.5 m"). I have made it like this: type coord = straight val x: float val y: float new (x, y) = {x = x; Y = y} End type DepthCurve = struct Val dorms: List & lt; Coord & gt; Val depth: Float new (list_of_Coords, Depths) = {Coords = list_of_Coords; Depth = depth} finally give myCoord1 = new COORD (1., 2.) myCoord2 = new Coord (3., 4.) MyDepthCurve = new DepthCurve ([myCoord1; myCoord2], 5.) My problem is that it does not allow me to create polygon and its cord at once: myDepthCurve = {coords = [[1 .; 2 .]; [3 .; 4.]], 5} A solution exists for this: type coord = {x: float; Y: float} type 'a deep crawl = {cosures:' a list;} let my depipment = {cos = [[1 .; 2.]; [3 .; 4.]]} ;; But this does not even give me a float in depth indicating straight, and it does not allow me to rest...

c++ - question on the use of libmemcached -

This may be a trivial "yes or no" question but still can be useful in the distributed file system in C / C ++ Library Can Be Used? I am asking this because in all the documents on the net I came across the memcache most of the web service applications with caching powerfully An example: Server A, B and Client C are client C. Connects to server A and asks to open a file. If the file is on the F server, then the server A cache files it and then brings it back to the client. C What libmemcached library should be used in the above situation? Is there any alternative C framework proposal? Yes, but with serious limitations. You will be able to cache only the entire cache block, because the maximum limit of the lambchach can be stored behind 1MB of each key. The second thing to consider is that you are taking 1-2 ms for each block for each file, which you want to collect for the final file. Your own implementation in memory cache or existing clustered file system su...

printing - Print WPF ItemsControl Across Multiple Pages -

I have been hosted in ItemsCollection a ScrollViewer Enough enough to span multiple pages on I have been able to print a page using the PrintVisual (itemsControl) yet, but I need to print the same control over many pages from what I have read. Can show the path in the right direction? Thank you! What you need to do is clipping let you calculate the clip size and According to the size of your page, the required quantity of the parts must be clamped to the image of the control and those clip images will be kept in the list and sent to their prestost logic. P> Process: You must convert the view to a render-targeted blistmap with the expected encoding. Then, using the Cropbeatmap, you can clip the bitmap image into the required dimension. Then, call those clips to a list & lt; Image & gt; Keep After, repeat them using your printing logic and print them. If you want a sample I will try to provide I hope that is a very old post, it will be useful for an...

java - Why is my Tomcat server restarting and what is org.apache.catalina.core.AprLifecycleListener? -

I am trying to understand why my web app is (I did not write it, but I should debug it ) Continuing to restart the Tomcat Web server. I see in the log before the server restarts: July 24, 2009 7:52:15 AM. Org.apache.catalina.core.AprLifecycleListener Lifecycle Information: Apache Portable Runtime which allows optimal performance in production environment was not found on java.library.path: /usr/local/jdk1.5.0_09/jre/lib/i386 /server:/usr/local/jdk1.5.0_09/jre/lib/i386: /usr/local/jdk1.5.0_09/jre/../lib/i386 July 24, 2009 7:52:15 AM org.apache .coyote.http11.Http11BaseProtocol init i can do the same processing on other groups of files and it works fine, but by restarting the server by doing a special group Causes. Mostly I am hoping someone can tell me that this may just be an end of time, or if there are any other log files, tell me why this is dying. Update : I have tried to start the server with the bin / catalina.sh run , and if it is time-out, then increase it There i...

Why does C++ allow an integer to be assigned to a string? -

I had an interesting situation today in such a program where I unknowingly provided an unsigned integer for a std :: string Specified. The VisualStudio C ++ compiler did not make any warnings or errors about it, but I noted the bug when I started the project and it gave me junk characters for my string. This is a code like this: std :: string my_string (""); Unsigned int my_number = 1234; My_string = my_number; The following code also compiles exactly: std :: string my_string (""); Unsigned int my_number = 1234; My_string.operator = (my_number); The following results in an error: unsigned int my_number = 1234; Std :: string my_string (my_number); What's going on? How the compiler will stop the build with the previous code block, but let's create the first 2 code blocks? Because the string is assigned from char , and Int is variable over variable on char .

parsing - console/command prompt app .net/c# -

Any starting point / idea for a custom console app that mimics DOS command prompt? Originally to start looking for the best practices and ideas, maybe using PowerShell which I have not seen clearly yet! I know that this is a little retro but I have found some limitations in the web app, ASP.NET Using MVC etc. (Some of them, such as network files etc, allow problems to read and other downstream issues from there) Essentially I want to make it a pluggable app where this app will be Ideally, it will support hyperlink , where the command related to clicking on the hyperlink will be executed Here is a project that you may be interested in:

c++ - What is a good book to learn STL? -

संभव डुप्लिकेट (s): मुझे टेम्पलेट्स और एसटीएल पर बहुत कम ज्ञान है तो एसटीएल के लिए एक अच्छी तलाश है। के साथ आरंभ करें। तब पढ़ें स्कॉट मेयेर्स। टेम्पलेट्स के लिए, यह वाकई अच्छी किताब है (विशेषकर भाग 1):।

objective c - Returning other objects on init -

I've read in many places, you should always start Object-Object Objects like this: - (id) init {if (self = [super init]) {....} self-back; } Because super init can return a different object from the existing self . Now I'm trying to do something like this, and I'm not sure that I have the right, it should be seen how to maintain and release: - (id) init: (Int) idx {id obj = [find the cache itself: idx]; If (obj) {[self release]; Self-sustaining [obj]; } And {self} [self-doLoad]; } Healthy return; } I am mostly curious if this is the right way to maintain and issue self and obj . Is there a better way? You are correct about [self init] because partly Cocaça class returns a different object than actually allocated. However, this is an exception rather than a rule, and it is extremely rare or should not be done in its own code. Although it may be tempting to block the -init call, you are going against the grains of the established conference an...

c# - Sql Server 2005 localhost System DSN not working -

I have a C # .NET 3.5 executable which runs on the local machine and the database server to run SQL Server In 2005, I used System DSN (using a driver with SQL Server on the server) using the Data Source Manager on a local machine named "LocalServer". When I make DSN, I can successfully test the connection to the server. I added the local connection to my connection string in my executable, and I get an error "An error occurred while establishing connection to a network related or example-specific SQL Server. Was not found or was not accessible. Verify that the example name is correct and SQL Server is configured to allow remote connection. (Provider: Nami The Pipes provider, Error: 40 - does not open any connection to the SQL Server) " The server connecting that allows the remote connection when I change the local names to the server name, this fix , But this program will be in multiple locations with multiple server names, so I need to make the data source ...

bash - How do you use shell script variables as arguments to sed? -

What I would like to do, is as follows: #! / Bin / Sh EMAIL = "- E / s / Something // g" "some orders | But" $ EMAIL " But I get the following: sed: -e expression # 1, char 2: unknown command: `'' I have tried many forms I know that the string is correctly cited The reason for doing this is because I want to break the long-term command up for readability. Do I use a script-file instead (with the -f option) instead UPDATE: My actual script is a bit more complicated: #! / Bin / sh EMAIL = "- es / some things // gee / some things // live ..." some orders | but "$ EMAIL" after removing the same quotation marks : sed: -e expression # 1, character 18: unknown option `` For this type of quoted problem, eval is almost always solution. #! / Bin / sh SED_ARG = "- e / s / something something // g" "echo something. For example, "$ SED_ARG" It is happening that in your edition, Shell...

varargs - Wrap a variable parameter function in C++ -

I would like to wrap xmlrpc "call" function (which takes a variable number of parameters) with another function of the parameters A variable number) I just want to extend the variable number of parameters passed in my wrapper function on xmlrpc "call" function I know how to use va_start and va_arg, but in fact I do not care about those values Those who have passed in, I just wrapped them up I want to move forward with the function. Is this possible? I would like to wrap it for the function call (const char * url, const char * function, const char * paramspec, zero * result, ...) ; My cover takes care of the first three parameters and according to the reference result, it needs to forward the addition parameters to the call function Unfortunately, there is no way to provide the correct forwarding of a function that is ... syntax. This is the reason that it is the best practice to implement all public variable logic function functions in a case of t...

sql - how to use a variable in oracle script for the table name -

I have a pl \ sql script, where I want to set the table name used in the script in a variable Am So, some examples that I found on the web, I wrote the code below, the first section works, so I think my normal syntax is correct, but the second segment, where I try to use a variable for the table name I am the errors (" SQL error: ORA-00903: invalid table name "). Nobody knows what I'm doing wrong ... I do not have too many PL SQLs, so maybe I'm just missing something clearly. - Variable numOfrecords numbers work; Exec: numOfrecords: = 10; Choose 2008 from customers * Choose where rownum & lt; : NumOfrecords; - Work table nm CHAR does not work; Exec: tableNm: = 'customers2008'; Print table nm; Choose * from: tableNm; If you are running this script from sqlplus (which appears in the case), then You want to use the DEFINE command, which allows you to create SQLLS substation variables which are just string string replacements, like: define t...

How to trigger a SharePoint workflow by updating ONLY a value in a list item (approved, not approved)? -

I'm new to SharePoint but I learn quickly. I want to trigger a workflow only, it is updated in the price list item, but not every item is changed, for example I have a column to approve / approve and I want to This item does not trigger other values. So if something else changes, the workflow will not start until the 'acceptance' is assumed. All help is appreciated! Thanks, If you want to complete this program ... Create an event handler updating an item and attach it to your target list. I will create a feature and feature receiver for activating. In the item updating handler, there are two values ​​that you want to see: properties.ListItem ["Approval"] This will give you the original value properties. Later ["approval"] this update value is Check whether the two values ​​are not equal to one another, and if the update value is equal to "approval" If both are true, then start the workflow on the list item - there are ...

c# - What is the point of a static method in a non-static class? -

I have a problem understanding the underlying errors with the following code: class I can never think of a reason because no one will declare a static method in non-stable class, why not put an exception error in .NET. In addition, moc.print ("vhhhat?"); It says that I can not access the static method in non-static context, but the test and main are stable, what is the context? myOtherClass.print ("vhhhat?"); This is not static, as you created an acceleration of a square named moc : myOtherClass moc = new myOtherClass ();

WIX MSBuild automation help - solution best practices -

I know that there are so many questions about this one information I have read them all, but my mind is all Has changed around and I do not know how to go, besides the lack of documentation actually hurts. This is my scenerio We are trying to use WIX to create an installer for our application to our dealers for our product information. App contains approximately 2,000 images and documents of our products and a SQL CE database that are updated through the Microsoft Sync Framework. The data changes so often that it is very undesirable to keep these 2000s as content files in the app's project, depending on the app, NAT Framework 3.5 SP1, SQL Server CE 3.5, Microsoft Sync Framework 1.0 and ADOnet Sync Service 2.0. The app has these requirements: Dealers will be given an app on a CD every year for any updates (app or data updates). The app needs to update itself from the Internet to get any new pictures, documents or data. / Li> If they are not present on the client mac...

iphone - Up/down arrows in nav bar of detail view to page through objects in parent table -

I have created an up / down arrow Segment control button on the right side of the navigation bar in the I table based application, How can I use these up / down arrows, which can be taken through cells in the feet table? Apple "Navbar" is an example of sample code but the controls are not functional. The iBird program also has this functionality and it is very good. Thank you! I had to work with some small problems. Here's my current code. It is not very beautiful It is working. SegmentActionPress is an NSInteger set .h file which I used to specify if the volume control was used to move in the next scene. - (IBAction) Section Action: (ID) Sender {NSIndexPath * selectedRow = CurrentIndexPath; // Current indexpath is a nsidxpace object that holds the current indexpath. NSIndexPath * scrollIndexPath; Self.segmentActionPress = 1; Self.tableView.delegate = self; If ([sender selected segment index] == 0) {[self. Navigation controllerpwuControllerUnmitted: no]; ...

Making php includes work in a sub-directory -

OK, I'm creating an admin interface for my custom blog on url / admin. Is it possible that I be able to use the same (as autoload) root directory? If possible, I would like to be able to automatically correct the link in navigation so that they thank you, nico Example Define ("ABS_PATH", $ _SERVER ['DOCUMENT_ROOT']); Or defined ("ABS_PATH", dirname (__ FILE__)); // This defines the path as the directory in the directory. Then at any point you can do this to include a file Include (ABS_PATH. "/ Path / copy / file" );

asp.net - Loadtesting vs Threading in IIS 7 & .NET 3.5 SP1 -

I am running IIS 7. 3.5 SP1 Can someone tell me that this thread is safe because it keeps users unsuccessful under high loads: Private static zero addQueryStringParameters ( Excelment Input) {NameValueCollection qs = HttpContext.Current.Request.QueryString; XElement queryStringParameters = New XElement ("QueryStringParameters"); (Some string key.) {Try (if string (.nnlacti (key)) - some code qs [key]} cache (exception exception) {- some code}}} If this thread is safe then why it fail ...? By the way, the exception I get is: the item reference is not set .

osx - Installing mod_mono for ASP.NET on MacOSX Leopard -

I am trying to build and install mod_mono so that I can learn and work with ASP.NET on my Mac Can do My machine is running Mac OSX Leopard 10.5.7. The mono site () says that I have to install XSP, Mono and Mode_mono. Mono is installed and working. xsp is manufactured and fine. The configured output for my mod_mono is: Configuration summary for mod_mono Apache version = 2.2 Apache Module directory = / usr / libexec / apache2 apxs installation prefix = / usr / local = / Usr / sbin / apxs AP-config = / usr / bin / APR-1-config APU-config = / usr / bin / APU-1-config Sifelaji = -64 -ai / Usr / included / apache-2-i / usr / included / apr-1-i / usr / included / apr-1 Solid, logging (debug) = not Use GCOV options is = not Profiling enabled = No mono prefix = /Library/Frameworks/Mono.framework /Versions/2.4.2.2 Default MonoApplicationsConfigDir = / private / etc / apache2 / mod-mono-application ... that looks fine, as far as I can tell when I try to ...

Practical point of view: Why would I want to use Python with C++? -

I have used some examples of Python with C ++, and I am trying to understand that Why do anybody What are the benefits of calling C ++ code like external language like Python? I appreciate a simple example - Boost :: Python will P> When you usually want to do this Demonstration is an issue like the highly dynamic language of Python is usually somewhat slow, allowing native code such as C ++ C ++, such as "manual memory management" facilities to develop libraries very fast, To achieve the performance Can be called the new dragon. Another reason is that most libraries have both windows and * Neo written in C or C ++, and this is a big advantage to provide existing code base. Python Code Calling from the C ++ Application Complicated applications sometimes require the ability to define additional capabilities. Adding behavior to a compiled application is messy, requires original source code and takes time. Therefore it is often strategic to embed ...

database query's from class object with php -

My question is: Do I still query this from within an object Can I: $ result = mysql_query ($ q, $ dbc) or trigger_error ("query: $ q \ n MySQL fut:". Mysql_error ($ Dbc)); $ dbc or Create a singleton class for the database connection , but I think people are writing about it looking away quite negatively. I am new to creating an object, so I do not know if I want to completely separate it with DB. Thanks, Richard If you are looking for a database inspection Why not consider using the DB sections provided by the Zend Framework. These include a way to set the adapter, by default, it creates a snap to operate. Add to the fact that by default, Zend_Db adds security and peace of mind to use parameterized queries instead of those who are basically quoted. P> Global use is a very bad idea, by mistake it is very easy to overwrite one! Together with all other reasons you will find them to not be used with a quick Google. Creating a DB connect...

javascript - Making the YUI TestLogger show only tests that fail? -

I will show I am using YUI Test framework to TDD with JavaScript but default TestLogger all kinds of messages, not only failed the people it scans the log for the failures of a failure Tediam, or you have to play whack-a-mole on the filter box. Is there any way to create toggle switches on logger windows, can remain the same between page refresh? Or does the logger show only those tests that have failed? You can see that when you dominate PASS and INFO, you have many tests and it is very easy to remember FAIL messages. I have seen, that indicates that there are some options, sorry that the options are not mentioned at all, I only use YUI for this feature, I am not an expert in, can anyone give me hands? YUI 2.7 and prior to filtering a category, logger that category before hiding the request Will receive a message from. This means that you can YAHOO.log ('', 'pass', 'testrunner'); Var Loger = New Yahoo With Logarider (el, conif); Logger.hideCat...

sql - Records visible but not accessible in MySQL - why? -

This is a strange issue, I am using Navicat for MySQL using my online database premium. Some records are behaving very strange - give me an example. I have the following table column ID, name, address, short name, contact. Now when I run a SQL query, to say that the entry in 'A' is entered zero, but such entry already exists in the database. Am I also seeing in the table Navicat - I think that in the area of ​​summarity is empty for that tubule, which has the necessary value, but when I cross it or highlight it - I can see the price. Its there but it is unavailable and in the same way it has a problem with many other tuples in the table. The problem can be here - I tried to delete and rebuild the table by executing a dump file, but no good came out of it please help: ( Check that there are no invisible characters at the beginning of the string (like a carriage return or something else).

Why shouldn't I use shell tools in Perl code? -

It is generally recommended that they do not use additional Linux tools in the Perl code; For example, if someone intends to print the last line of a text file, then they can: $ last_line = 'tail -1 $ file`; Or else, open the file and read the line by line open (info, $ file); While (& lt; INFO & gt;) {$ last_line = $ _ if eof; } What are the disadvantages of using the last and why do not I use shell tools in my code? thanx, Efficiency - giving you a new process Do not need Portability - You do not have to worry about the current executable, accept different switches, or get different outputs Ease of use - You do not have to purge the output, the results are already in useable form error handling - you have errors Ehtr-controlled control and what to do about them in Perl.

Firefox - all form buttons blank -

Debug an extension, which I was creating, all the Forms buttons have been blank on one page. How to solve any idea? I've cleared my cache and everything. I also tried to disable all addons and plugins but it is of no avail. Have you tried to restore Firefox?

java - Reading MIDI Files -

What is the best way to read a MIDI file (chronological) with multiple tracks? (Java) Note: I do not want to play MIDI file, just read the message. Couple thoughts: Is it safe to believe there are no notes events less than 1/64 notes? Or should I go on every track and go on the next tick after all other tickix tracks Assume that there is no small event smaller than the 1 / 64th note, and the current situation Tick ​​count > one MIDI You can read the file and arrange messages in chronological order. The result can be read as JFugue MusicStrings (for example, C-Fast, 5th October, Full Note = "C # 5W"), or you can write your own Parser Listener And you can attach it to the MidParser. You can output your own text.

CMS or template system for one-person micro-ISV? -

There is no programming question, I'm scared, so what the intermediaries will do, but this is especially a question for yourself Programmers will run their own ISV sites. If you publish your own shareware or freeware, do you use the CMS or templates system to maintain the website? Will you recommend anyway? I see two most important features that I could not find in any popular CMS / blogging engine, from my favorite textpress to WordPress, Joomla and Drop: A template type system for maintaining the structural stability of the XHTML page layout User-defined values ​​have a hash table that works with templates for replacement identifiers These prices for Explanation: If you publish more than one app, then there are several square pages in the site that are almost identical to each product: "Facilities", "Screenshots", "What's New", "Downloads", etc. These pages are the same layout and are mainly different in product-specific ...

ASP.NET MVC membership doesn't seem to work if user know direct url -

I'm expanding the default asp.net mvc example. I am using asp.net subscription provider Comes with it. . The issue is that if I reach directly without entering one of my URLs then the entire page shows the full page with the link "Logon" at the top. I want to redirect this clear to the login page, if any specific action enters the URL and is not logged in. Do I "login in" for every action of every controller? You need to decorate your administrator tasks "[Authorize"] and the correct login in web config Install the page, so whenever a decoration is punished, it checks that the user is logged on and does not redirect to the appropriate login page. Edit: Here's an example on how to configure: in web.config ... add: & lt ; Authentication mode = "form" & gt; & Lt; Forms loginUrl = "~ / account / logon. Espx" timeout = "30" /> & Lt; / Authentication & gt; This will indicate th...

c - Why weren't new (bit width specific) printf() format option strings adoped as part of C99? -

How to format string in cross-platform printf () C (research, the number of bits Keeping in mind, I hope every integer argument should be printf () ) The article I ran across discusses non-standard options that are printf () Format string, such as (which seems to be a Microsoft-specific extension) can be passed: printf ("% I32d \ n", my32bitInt ); It states that: The ISO 99 99 contains inttypes.h header file that contains several macros for use in platform-independent printfaces. Coding ... and then lists a set of macros that can be said in the header. By looking at the header file, I must write to use them: printf ("%" PRId32 "\ n", my32bitInt); My question is: Am I forgetting something? Is this really the standard C99 method? If so, why? (Although I am not surprised that I have never seen a code which uses the format string in this way, because it looks very cumbersome ...) The argument is that & lt; Inttypes.h & g...

What is a More Effective Title Seperator for SEO purposes? | or - -

What is the best separator for the title tag for SEO? This & lt; Title & gt; This is a sample title - mysite.com & lt; / Title & gt; or & lt; Title & gt; This is a sample title. Mysite.com & lt; / Title & gt; The SEO pack is the default in Wordpress. What is the best separator related to SEO? Why? Honestly, these types of small things are not very big factor in the SE algorithm. The real factor in your content is, make sure it is accessible and relevant to the user, make sure the crawler can get it.

iphone - How to add a tabController to another tabController -

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

sql server - Query too long in .NET 3.5 and SQL Compact 3.5 -

यह एक दयनीय समस्या है: SQL Server कॉम्पैक्ट 3.5 और Visual Basic 2008 एक्सप्रेस में सामान्य डाटासेट / टेबल एडैप्टर्स, मेरी क्वेरी बहुत लंबी है: नाम बदलना, यह एक प्रश्न है: SELECT Table1। *, तालिका 3। * से तालिका 1 INNER तालिका 1.आईडी में टेबल 2 में शामिल करें। तालिका = 2 तालिका 1.T1ID तालिका 3 पर तालिका 3 में जुड़ें। टीआईआईडी = तालिका 3.पीके समस्या है, तालिका 1 और तालिका 3 में लगभग 10 और 5 कॉलम हैं, बल्कि उनके साथ वर्णनात्मक नाम , और टेबल एडेप्टर सभी कॉलमों को लिखने के लिए आग्रह है और इसलिए मेरे आदेश को बंद करता है। (यह * नहीं ले जाएगा, यह हमेशा कहता है कि वह कॉलम तालिका 1 नहीं पा सकता। *) क्या इस पर एक रास्ता है? यदि आप तालिकाओं के लिए एक उपनाम जोड़ते हैं, तो क्या तालिका एडेप्टर इसे ले लेगा? SELECT t1। *, T3। * से 1 टेबल 1 टी 1 इन्नेर से जुड़ें तालिका 2 टी 2 ऑन टी 1.आईडी = टी 2। टीआईआईडी इनर में टेबल 3 पर टी 2। टीआईआईडी = टी 3.पीके