Posts

Showing posts from June, 2011

css3 - How do I submit suggestions to the CSS spec? -

Recently I just wanted to do a lot of things to use CSS, to know that the best solution is Javascript It has surprised me, anyone here knows how to know about implementing development suggestions in CSS3 space? If we have some kind of feature / vote based system that w3 boys can look at least in the know, as a programmer, I often ignore the obvious things when I would have something deeper I am You should probably subscribe to W3C This mailing list cascading For technical discussions on Style Sheets (CSS) and its specifications All posts in this list will be about the development of the CSS specification. This list is also a favorite place to discuss work drafts published by W3C's CSS Working Group.

javascript - Break long text -

I have a div that has a width of 200px. I is not showing the horizontal scroll bar now if any 200 pixel value If you type more any type, it is just hidden, I am thinking that if each word can reach a 200 pixel length automatically it can put a new tag? Thank you for your time. You can use it on WORD-BREAK: break-all By using simple CSS you can get it. & Lt; Div style = "width: 200px; word-break: break-all" & gt; The content goes here & lt; / Div & gt; Hope you wanted this ...

ruby on rails - Dynamic Paths in Helper -

I am trying to create an assist method for my admin link in some views I have code & lt;% if current_user% & gt; & Lt;% = link_to "edit", edit_model_path (model)%> & Lt;% = link_to "new", new_model_path%> & gt; & Lt;% = link_to "Delete", model ,: confirmation => "You are a Noble" ,: Method = & gt; :% & Gt; Remove & lt;% end% & gt; Displays only when it's logged in. I would like to do something like this at their place <% = admin_link (model)%> and pass the current item into auxiliary instrument def admin_links (m) if current_user a = "# {link_to" edit "edit_m_path ( M)} "a & lt; & Lt; "# {Link_to" new "new_m_path}" a & lt; & Lt; "## {link_to" delete ", m,: confirmation =>" Your Noble ",: Method = & gt ;: Delete}" Expiration or something like that Basically you have to

javascript - Fading image inside a div -

I'm trying to get it when mouse moves on the div then fades the image in it function clickimage ($ imageid) {$ ("# image_" + imageid) .hor (function () {$ (this) .FadeTo ("slow", 1.0);}, function () { $ (This). Fedora ("slow", 0.6);}); } & Lt; Div id = 'images_ $ imageid' & gt; & Lt; A href = '? Tg = Photo & amp; Photo = $ imageid 'onmouseover = \ "javascript: clickimage (' $ imageid ') \" & gt; & Lt; Img src = 'user / $ ptgid / image / $ iimg' width = '100' height = '100' / & gt; & Lt; / A & gt; & Lt; / Div & gt; You want to set binding, when the document is loaded, do not mouse every time Also, I will create a square so that you can initialize the hover on each item $ (document) .ready (function () {$ (".- Image-hover- Fadeo ("slow", 1.0);}, function () {$ (this) fund ('img') .Fedato ("slow", 0.6);});}

php - What good software or scripts are available for managing users and subscriptions on our website? -

OK, this is not really a programming question, but a system for any user to manage users on a website Looking for experience or experience we are building? Good feature What is the shortlist of rich secure solutions? We need PHP and MySQL integration and payment support for main credit cards. We want to be able to track consumers and create reports about usage, membership etc., create and send batch emails etc. It will also be great for having the ability to integrate customer support with it so that we Cheers we are running PHP, mysql on an IIS server

persistence - Is there a way to change the JPA fetch type on a method? -

Is there a way to bring JPA on a method without editing the unit object? I have a shared ORM layer that includes JPA unit class. This ORM layer is used by two DAO layers. A DAO needs a sluggish embrace, because it is for my web application, to bring curiosity to other needs, as I need it to be threshed. Here is an example method from my Threseceph DAO, @Paristance CONTACT (unit name = "persistence unit", type = persistence contact text. Public Errorsearch SearchAircodebid (short ID) {return (error code) em.createNamedQuery ("ErrorCode.findById"). SetParameter ("id", id) .getSingleResult (); } How do I use this method (or whole class) to take curiosity? query q = HibernateUtil.getSessionFactory (). GetCurrentSession () .createQuery ("C Select C from the range in "; left include c categorized as ci" + "i as ci. B. One unit used to use hibernate inlet (entity) For the lazy relationships to load the curiosity (like thr

How to / Is it possible to monitor remote WMI scripting? -

Did you know that an example (via script or program) knows what the example is from a WMI script Remote PC 1 And when I am sitting in a third PC then some works in some other PC 2: PC 3 Assume that all PCs are from the same network and domain and Windows XP is installed is. The reason for this is that I operate a small network and I think that a student closes the PC where other students work, through WMI scripting . Without such a wmi remote access, such a script (via script or program) is such a thing. Thank you to everyone You can shutdown by viewing Verbose WMI logs Can get the credentials used. 1) Enable Verbose WMI logging 'Wmimgmt.msc' (Also available under 'My Computer' 'Manage' ' Select 'Logging' tab, set 'Logging level' to Verbose, and select 'WMI Control'), select 'WMI Control', then select 'Logging' tab. Select 'WMI Control' Right click -> select 'Properties'

Asp.Net MVC - Odd Form / Controller issue -

I have a very strange problem with ASP.Net MVC. I have a form, which is to post 3 text value in an action method that has been created (for the sake of simplicity, to say this); Public Action Result CntUuser (String First Name, String Lastlamem, String Email) {var s = First Name + Last Name + Email; Return Redirect Action ("Index"); } Also say that using my form & lt;% (HTML.biz form ("Continuoso", "user")) {%> & Lt;% = Html.TextBox (("first name"))% & gt; & Lt;% = Html.TextBox (("LastName"))% & gt; & Lt;% = Html.TextBox (("Email"))% & gt; & Lt; Div & gt; & Lt; Input type = "submit" value = "submit" /> & Lt; / Div & gt; & Lt;%}% & gt; Now in my verb method, on user control, first name, last name and email are all empty! However, if I copy the same method in the second controller (game), and update the form to post there, the v

MySQL Full-text search in Ruby on Rails -

I am trying to implement basic full text search with MySQL. I have written this migration: def self.up execute 'ALTER TABLE PHOTOS ENGINE = MyISAM' execute 'photo to create integer fulltext_photos (location, info)' End df self.down execute 'optional table photos engine = execute InnoDB' drop index flicktest_photos end photo and my model is here: Def self.search (* args) options = args.extract_options! Find_by_sql ["SELECT * photos from WHERE MATCH (against place, information)" (?) ", Option [: query]] termination The problem is that this code is always Empty array . For example: % Photo.find (: first) => Photo ID: 1, place: "backenone", info: "Euro VISCARAN ERBA ALTA." ..% Photo.search (: all ,: query => 'bacano') => [] I have created a project (Rails 2.3.2, Ruby 1.9.1 MySQL 5.0) to simulate this. With a record in the database, I have achieved the same results that you have made. When

wcf client - Web application reference to WCF does not generate proxy classes? -

We currently have a website that should use the WCF service because we have x64 web servers and 32-bit thirds Code dependency is party enclosures which are not x64 compatible then the WCF service is a cover. When I add "service reference", many files are generated but no .cs file is present. I thought that the consumer code was estimated to be a reference.cs file containing proxy stubs. What am I missing here? Look at the error and output window to see if there is a problem adding the web context. Besides, what files actually arise? Have you seen them? There may be clues.

asp.net mvc - How to alter the value of a span or div using MVC? -

For some strange reasons, I can not communicate w / my span or div in the scene using MVC as I Below is shown - what am I missing here? (For the moment please ignore the magic string example) ?: & lt; Span id = "UserFeedback" & gt; & Lt;% = ViewData ("User Feedback")% & gt; & Lt; / Span & gt;

wpf - Serialize an image in XAML using XamlWriter -

I am using XamlWriter to serial a group of WPF objects. One of these objects is an image control whose source is set to the file on disk. When XamlWriter serializes objects, then it sets the source image in a URI, which points to the file on the file system. Is there a way to include that data in Xaml, so instead of referencing the file, the information is stored in xaml? Thanks from MSDN: "Images are also sorted as an object reference to the image because they are present in the project, instead of the original source references, whatever the file name or URI was originally referenced was lost." < / Div>

.net - XML file interpretation and manipulations -

& lt;? Xml संस्करण = "1.0" एन्कोडिंग = "यूटीएफ -8"? & Gt; & LT; जड़ & gt; & LT; MyData & gt; & LT; MyField & gt; SomeValueHere1 & lt; / MyField & gt; & LT; MyComplexData & gt; & Lt; MyComplexDataField1 प्रॉपर्टी = "1" & gt; & lt; / MyComplexDataField1 & gt; & Lt; MyComplexDataField2 someproperty "value1" & gt; मान 1 & lt; / MyComplexDataField1 & gt; & Lt; / MyComplexData & gt; & Lt; / MyData & gt; & LT; MyData & gt; & LT; MyField & gt; SomeValueHere11 & lt; / MyField & gt; & LT; MyComplexData & gt; & Lt; MyComplexDataField1 प्रॉपर्टी = "4" & gt; & lt; / MyComplexDataField1 & gt; & Lt; MyComplexDataField2 someproperty = "value1" & gt; मान 2 & lt; / MyComplexDataField1 & gt; & Lt; / MyComplexData & gt; & Lt; / MyData & gt; & LT; MyData & gt; &

java - Best way to grab website content externally -

is a search site whose search result is dynamically generated by JavaScript. The user enters a query, and the site displays without refreshing content on the page I need to catch those search results programmatically (a Java program or a Pearl / Python From script). So ideally, I can launch my program with 100 queries as user input, and then the program will hit that website with every query and given by the website on my screen Removes all search results. / P> The obvious problem is that the site is in Javascript instead of ordinary HTML, so the resultant output for sending a URL request and parsing (this page is not going to work as the source code is always going Is a group of different JS files). Looking at the above conditions, what are my options? Javascript makes HTTP request almost like a browser, once you find out what you do , You can try to recreate them in perl / python / etc. With Firefox + Firebug you can see the request in the 'net' panel. Th

.NET assembly binding failure (different versions with a redirect), weird! -

I tried to troubleshoot an application created against Version 9.1 of a vendor's libraries on the machine installed on version 9.3 I am here. The vendor provided a publisher policy file which redirects all versions from 9.0 to 9.3 DLL, and is installed in the GAC. With the new version of our application built with Version 9.2, the publisher policy file has been found and everything just works 9.1 with the linked version, the Publisher Policy file has never received Fusogview results Has never been mentioned in Here is an example of a successful load from fuslogvw: LOG: This constrains the default load starts in context log: Using the application configuration file: c: \ wINDOWS \ Microsoft.NET \ framework \ v2.0.50727 \ RegAsm.exe.Config log: c: using \ wINDOWS \ Microsoft.NET \ framework \ v2.0.50727 \ config machine configuration file \ machine.config. LOG: Publisher policy file C: \ WINDOWS is \ Assembly meets on \ GAC_MSIL \ policy.9.2.ESRI.ArcGIS.System \ 9.3.0.1770

wpf - In a horizontal listbox how do I align items to the top? -

How can I align objects on top in a horizontal listbox? I have participated out of ideas to touch the vertical alignment = "top". & lt; Window Resource & gt; & Lt; DataTimeplate DataType = "{x: Type l: MyType}" & gt; & Lt; Grid Vertical Alignment = "Top" & gt; & Lt; Text Block Vertical Element = "Top" Text = "{Binding MyView}" Background = "Yellow" /> & Lt; / Grid & gt; & Lt; / DataTemplate & gt; & Lt; /Window.Resources> & Lt; Grid & gt; & Lt; List Box Name = "List Box" Item Source = "{Binding}" Vertical Alignment = "Top" & gt; & Lt; ListBox.ItemsPanel & gt; & Lt; ItemsPanelTemplate & gt; & Lt; StackPanel Orientation = "Horizontal" vertical alignment = "top" /> & Lt; / ItemsPanelTemplate & gt; & Lt; /ListBox.ItemsPanel> & Lt; ListBox.ItemTemplate & gt;

c++ - Rethrowing from caught -

अगर मैं एक अपवाद डालता हूं: बिल्ली को फेंको ("मिनू"); तब मैं कॉल स्टैक में कुछ निचले स्तर पर ... को पकड़ और पुनः स्थापित करता हूं: पकड़ (...) {throw; } फिर कॉल स्टैक में किसी अन्य निचले स्तर पर मैं इसे पकड़ने की कोशिश करता हूं: पकड़ (कॉन्स्ट बिल्ली & amp; c) {// क्या यह यहां दर्ज करें, और यदि ऐसा होगा तो क्या मान्य डेटा होगा? } पकड़ (...) {} हां, यह सही है इसे C ++ अकसर किये गए सवाल के अनुभाग में संबोधित किया गया है जिसे मैंने आपको आपके पिछले प्रश्न पर लिंक किया था।

How to Implement an OpenGL Zoom Extents Function -

After I open an application that navigates to a 3D environment, navigates actions such as orbit Let's go, pan, rotate, etc. It all works losslessly and significantly gluPerspective and gluLookAt . > > > > > > > > > > > > M_Focus.Y, m_Focus.Z, m_ViewUP.X, M_VIPUP, M_VUUP Junklistlist DisplayPlanner Index Similar to a ZoomExtents or ZoomToFit command in CAD software, any arbitrary approach (See direction), I want to be able to zoom so that (1) the entire 3D environment is visible, and (2) the 3D environment fills the entire viewport (given the current size of the viewport) Is as big as possible. I know the demarcation box (expansion) of the environment (minimum XYZ, max XYZ) However, what I need to do is remove the eyes and the positions given focus should be done for ViewAngle and AspectRatio and environmental expansion Are there. Perhaps there is an easy way to accomplish this, compared with gluLookAt . Any help is appreciat

Is it possible to both play a sound and record from the microphone at the same time on the iPhone? -

I want both sound and record sound at the same time on the iPhone. All apps that record sound disables before playing any music, though the music will disrupt its purpose because I do not know whether it is deliberately or whether the iPhone automatically records the microphone Does. Does anyone have experience with it? See best wishes!

c# - How to Get Corresponding datafile path if i pass datafile name -

How to obtain the enumfiles method in SMO in SMO This means that if I pass the master data I am; Es to one method will return the corresponding datafile path and logfile path. Is there any such method in SMO ?? For East: In DMO Enumphile (Master), then it will return the Coal Core Filpatra. You can use the Server Database FileGroups Files Storage like this: Public Zero GetFileNames (string servername, string databasename) {server s = new server (servername); Foreign exchange (file database in SG database [database] .filegroup) {foreach (fg.files in datafile df) console WrightLine (df.FileName); }}

.net - Restyling just part of a wpf control. Is it possible? -

I just want to restyle part of a WPF control. (Especially, I scrollbar big scroll button) Now I can not make any problems with this. I created default tweaks to remove the default style and my application included modified style. The problem is that I include the entire control template in the replacement style, when I am changing the value is 2. & lt; Setter Property = "Control. Template" & gt; & Lt; Setter.Value & gt; & Lt; ControlTemplate TargetType = "ScrollBar" & gt; & Lt; Grid Background = "{TemplateBinding Panel.Background}" SnapsToDevicePixels = "True" & gt; & Lt; Grid.ColumnDefinitions & gt; & Lt; Column definition MaxWide = "{dynamic resource {x: static system parameter horizontal scarler button button}}" /> & Lt; Column define width = "1E05 *" /> & Lt; Column definition MaxWide = "{dynamic resource {x: static system parameter horizontal scar

java - How to run an external tool in Eclipse in debug mode -

For several reasons my project can only be run as a finished and packed jar (in some magic assembly) So I run it in Eclipse as an external device. Whatever I am missing is debugging functionality Is there any way to run an external device in debug mode in Eclipse? You can connect to remote JVM, if it is started in debug mode. That is, during the remote application startup, you should argue the following JVM: -Xdebug -Xnoagent -Xrunjdwp: transport = dt_socket, address = 6079, server = y, suspend = n Then you can attach to the application in Eclipse, by using the "Debug Configuration" window, selecting "Remote Java Application". Nothing more than really necessary in connection properties with host name and port number (6079 in my case) is really necessary.

php - How to Conditionally Load Configuration Files Within CodeIgniter? -

I need to create something similar to the following in my CodeIgniter project: - < Code> my_config.php config_production.php config_development.php Now, my_config.php will be automatically loaded. From there, if this is a production server, then config_production.php will be loaded; config_development.php will be loaded. How should I go about executing it? I have tried to my_config in the following PHP : & lt ;? Php if (gethostbyaddr ("127.0.0.1") == 'Hello soba') {$ this-> Config- & gt; Load ('config_production'); } And {$ this- & gt; Config- & gt; Load ('config_development'); }? & Gt; It is not working as It has not been initiated as $ this-> config . How can I get it? Two options: You can try referencing the object instead of "$ CI" "$ This "of: $ CI = & amp; get Instance(); // Do this once in this file $ CI- & gt; Config- & gt; Load (); $ CI

c++ - Which is best for a repeating piece of code? -

I have a class with two member functions that share a part of the code: Code> Zero A :: first () {first function epilog (); SharedPart (); } Zero A: second () {secondfunction epigl (); SharedPart (); } Currently First Function Epilog () , secondFunctionEpilogue () and Shared Part () calls But not just code fragments, shared part () code is being repeated. I want to get rid of duplication. The shared piece of code does not require access to any member of the class. Therefore, I can apply it in any of three ways: A stable member function, a CONST non-static member function or < Li> A Local Function Which version is better and why? If your function reaches the state but it does not change, then use the consonant member function. Your case: If this does not require your function 1) access to any member of the code, and 2) that belongs to that class , Then make it a stable work of your class. In this way it is clear that it is not modifying the

postgresql - Slony-I replication CPU usage -

I recently had to install slony (version 2.0.2) at work, all is well, though my owner During copying, want to reduce CPU usage on slave nodes, searching on the net does not provide any clear answer. Any suggestions that will help in reducing CPU usage (or long-term updates will spread) will be greatly appreciated! Have you seen the general postgresqual tuning? If there is not enough resources available to work with the server, then the server can work in many CPU cycles, and default configurations are very low. Here is a useful guide, shared_buffers and checkpoints_segment are two criteria, which you can use on slave Can achieve some significant improvements (many others only help in improving query time only)

iis 6 - How can I use PowerShell to set the default document in IIS? -

I am configuring a web site using PowerShell and I want to set the default document. How do i do this This is a method: $ MetabasePath = "IIS: // localhost / w3svc "$ iisNumber =" 12345 "$ site = new-object system Directory Service Directory Enter ("$ Metabase Path / $ iisNumber / Route") $ site.psbase.Properties ["DefaultDoc"]. Value = "newdefdoc.htm," + $ site.psbase.Properties ["DefaultDoc"]. The value $ site.psbase.CommitChanges () returned to the value $ Site.psbase.Properties ["DefaultDoc"]. Price is a comma separated list of documents, so you may have to revive the order in accordance with your case. The above example adds a new default document ( newdefdoc.htm ) at the top of the list.

osx - how to view different file extension in different color ib terminal of mac leopard -

I'm trying to get a colored list of directories and colors according to their extension after the ls command. Recently I replaced Mac Leopard with Linux. There is no .bashrc file in my home directory, so I have made one of the following content. It's doing just a bit that I want (colorful directories only). I also want to see files with different extensions in different colors. What else to add? Already thanx :) # Definitions of how the Bash prompt looks like: # # user @ host - working Dior #export PS1 = '\ u @ \ h \ w $ 'Export PS1 =' \ u @ \ h \ w: '# Clay Colors Export Clickolor = 1 # Use Blue for export of Dior LSCLORS = XFCCDDDBXAgabackCaked # Alias ​​# # LIS LS =' LS-L ' comes with OS X LS BSD Is, and the lack of some features of the GNU brother. To get the results you want, you need to install coreutils (assuming that you have installed MacPortes, then sudo port install coreutils play), which will give you GNU version, althou

loading formatted data in VBA from a text file -

I am looking for the best way to load formatted data in VBA. I've spent some time trying to find something like C-like or Fortran such as the fscanf type function, but without success Actually I have many (100,000) rows in 10 Want to read millions of numbers from a text file with numbers (excluding the last line, maybe 1-10 numbers). Numbers are different from the spaces, but I do not know the width of each field already (and this width change between the data block). E.g. 397143.1 396743.1 396343.1 395943.1 395543.1 394343.1 394743.1 394343.1393943.1393543.1 -0.11 -0.10 -0.10 -0.10 -0.10 -0.09 -0.09 -0.09 -0.09 -0.09 0.171 0.165 0.164 0.162 0.158 0.154 0.151 0.145 0.157 0.20 9 First I used the middle function but in this situation I can not do it, because I do not already know the breadth of each area, besides it There are many lines to load in Excel Sheet. I can think of the method of a cruel force in which I look at the character continuously and determine whethe

java - How to get full path of the selected node in the package explorer from an Eclipse plugin? -

I am trying to get the full path of a selected node in the package explorer that is a folder or package I have tried the Ganymede plug-in the way I mentioned that page, but whenever I use the following line in my code, IFile file = (IFile) structured .getFirstElement (); (This one) ipath path = file.Tele Causes (); The plugin does not work and does not even respond. It also does not give an exception warning when it changes the IFile declaration into an object declaration. But I have to get the file or folder to get the full path for my operation. Any help would be appreciated ... You should debug your selection and select the code and check what the actual element is before the selection. You should also start your second Eclipse Frequency while testing with the -consolelog option to redirect the error log to the console. (For information about error logs, if you are running your app from SDK Eclipse using Eclase Launch Configuration, you will have to look at the erro

iphone - Testing for the class type -

When I send an object NSLog, I get a string with three attributes. The first thing is the square of the object, the other is the frame of the object, and the third item is a claire. The title of the second and third attributes (such as layer =), so I can call them by the title (like myObject.layer). Not the first. How do I test for class type? Thank you! Class of an object to get [myObject class] If ([myObject class] == [some class squares]) {/ * ... * /} If ([myObject class] == [NSString class]) {/ * ... * /} If you are looking for the name of the class only as a string, then you NSStringFromClass The function can be used as follows: NSString * className = NSStringFromClass ([myObject class]);

reporting services - SSRS adding a footer row to a table - CSV output -

I have a simple table in SSRS that I am using to create CSV reports. The output looks like this: a, b, c 1,2,3 4,5,6 where a, b, c are column headers. Now my client needs a footer line that says how many records are in the file. However, if I add a line to the required field in my table, then output is done: a, b, c , Instead of 1,2,3,2 4,5,6,2 : a, b, c 1,2,3 4,5,6 record, 2 Know how can I get the desired effect? In SSRS 2005, there are three rows, in table control, by default. The top header is for a header, below for a footer, and for a data between, looking at your example, it seems that you drag the record value into a new column in the middle row, and it will automatically Adds a header for you Instead, drag it to the bottom line You can type "Record" in the left column of the footer, and count any data set you have for the record in two columns. In SSRS 2008, you have the Tablix control, it's the default for a header row and a data row, right-clic

asp.net mvc - Subsonic 3 Union Possible? -

I have a schema like Menu-> Page-> PageRoll-> ASPNitrols In the menu The range is id. I want to return items of all items with a class ID of 6. Some menu items have a franchisee key for pageID. Pages can do 1 or more roles against them. I can see the roles of currently logged in users and make sure they are in the result of joining the tables. I want to create a union with all item items of 6 with category ID and for those users of page ID the only way I think, but when I If I do this in subsonic, then it fails. The following tasks var dd = (from menu in menu (all.) Where (x => x.PageID == zero and x.CategoryID == 6) select menu); Var ss = From menu 2 to menu Include pages in all () webpages. All (on menu 2) PageId equals page. ID pages include in pagerol On all pages () Pages. The IDs are equal to the PageRoll. Pages add roles in aspnet_role.All () on PagesRoles. Rolled roles are equal. Roll Where Roles Petrolforce user () This includes (roles.rollname) &a

database - Access 2007, Textbox search box like the Facebook name search box on the top right -

So basically I have an AddCompany form, where there is a textbox [CompanyName], I have a new company name there In the meantime, check whether there exists one already, for example, for example, I have to type Microsoft, when I type M, the text box shows the whole group of names with M, And then until I type typing microsoft Moves. In fact, how the Facebook search box works. How do I apply it to Microsoft Access 2007? Please highlight me !! Thank you very much! / div> A very simple version of the same thing, access wizards Can be done if you turn on form wizards in form design and click the combo box button and point to the location in the header of your form, you will get the option to automatically create a combo box Which will see a record which lists some drop In Aun list. However, keep these things in mind: It only works when you divide your form into the entire table (which is large Not Recommended for RecordSets) The built-in code is very bad. R

sql - Creating a quicker MySQL Query -

I am trying to create a quick query, now I have large databases, my table size 5 col, 530k rows, And 300 col, 4k rows (Unfortunately I have more control than architecture 0, otherwise I would not be getting this silly problem with a poor db). As the date > cast (as table2.foo_1 date), select table1. *, Table2.foo_2, foo_3, foo_4, foo_5, foo_6, foo_7, foo_8, foo_9, foo_10, foo_11, foo_12, foo_13, foo_14, foo_15, foo_16, foo_17, foo_18, foo_19, foo_20, table1 to foo_21, table2 ou table2 Foo_0 = table1.foo_0 and table1.bar1 & gt; = NOW () and foo_20 = "Tada" by date LIMIT in Order 0,10 I hope that it will be allowed to be quickly queryed in table2.foo_0 and table1 .foo_0 is indexed with foo_20 .. I'm still doing load time less than 7 seconds .. There is something else I can do CHEES I think there is an index key on bar 1 I always go with dates in execution issues Nki he has to compare each 530K rows.

c++ - Can this checksum algorithm be improved? -

We have a very old, unsupported program that copies the files in SMB shares. There is a checksum algorithm for determining whether the file content has changed before copying. Algorithms are easily fooled - we have just found an example where two files change from one '1' to a '2', the same checksum returns here, there is an algorithm: Unsigned long GetFileCheckSum (CString PathFilename) {FILE * File; Unsigned long checksum = 0; Unsigned long data = 0; Unsigned long calculation = 0; = () (If the (feeds (and data, 1, size (unsigned long), file) = FALSE = {checkme ^ = data +++ calculation; data = (= file = FOPN (path = FOPN (pathfilename, "RB") = 0;} Fclose (file);} returns checksum;} I'm not a programmer (I am a cesammin), but I know that XOR-based checksum is going to be very crude Are the probabilities of this algorithm returning the same checksum for two files of the same size with different materials? I'm not expecting an accurate answer,

How do you create an incremental ID in a Python Class -

I would like to create a unique ID for each object I created - here's the class: class resource_cl: def __init __ (self, name, status, type, active): self.Name = name self.Position = position self.Type = type self Active = Active I should be on my own. The ID is that automatic increments every time I create a new reference for the class, such as: resources = [] resource .append (resource_cl ('Sam Sneed' , 'Programmer', 'full time', True)) I know I can reference resource_cl, but I'm not sure how to proceed from there ... Are you aware of Python, and can you use it in your counter Instead of the idea? class C (): pass x = C () y = C () print (id (x), id (y) # (4400352, 16982704)

jsp - jsessionid is occurred in all urls which are generated by jstl <c:url..> tag -

I've found some strange bugs: when I open the page for the first time in some browsers, all the references in the jsessionid parameter (such as & lt; a href = "/ article? Name = art and jsessionid = 5as45df4as5df" .. & gt; ). When I press F5 or refresh the page with any other means disappears and I do not close my browser (and all tabs also turn off) everything works fine When I open it again, I see this strange Jessica parameter. I use jstl and lt; C: url .. & gt; tag. I have read some time ago that cookies are disabled if jsessionid is the option of cookies but cookies are enabled and I do not really use cookies. This is not a bug, it is by design when a new session is created, then ensure the server Not that the client supports cookies or not, and therefore makes jsessionid along with the cookie on the URL. When the customer comes back a second time, and presents a cookie, the server knows that jsessionid is not necessary, and leaves it fo

Paradox: Query a Date column + a Time column as a DateTime -

First, I am a contradictor novice - Secondly, I am inquiring into the database of a third-party software package. Can not change the schema I have two fields that have been named "date" and "time" question (from my MS SQL experience). Is this possible? I have tried many questions and, when the command is valid, then I am "in data type mismatch criteria expression." In addition to this, about 1999-2000 A contradiction will happen from the database, if there will be a difference. Edit: Even a simple string containment of the field will be very helpful because I can handle it in code. Edit: I get this message in response to Aibreveleri's answer: Error [42000] [Microsoft] [ODB Paradox Driver] Syntax Error (missing operator) 'Cast (M.Date Complex AS Timestamp) in the query expression - CAST ([1 / 1/3000] AS timestamp) + Cast (Timestamp in the form of MTE timecompelt)'. When I run this query: select a different CAST select

authentication - ASP.NET Authenticaion and Security with Session -

I am creating intranet ASP.NET web application which unfortunately can not use built-in subscription features because all users And the login company is stored on the database, it will use Windows authentication and will match it. I plan to create my own "User" table in a separate database which will handle the right to access within normal application with the application. On the first visit, this application will certify with the company database and then check the local to see if they are in legitimate users (only a few employees will be able to access). There is a "login" form copy. Security is very important, but the application is small. Can I keep a boolean "laser" and string "username" in AOP.NET session object without fear of hijacking, etc.? Are there other solutions, or should I be valid on every page? You can easily use form authentication An implementation of subscription and role providers that are available from you

image - How to use RewriteBase in .htaccess to rewrite img tags? -

I think I do not understand riverbasebase. I have a (drupal) site on my (Daewoo) server and everything works perfectly. I have created a fake URL in my own Apache and host file for this, so I have come to my local version with "local-examplesite.com". Eventually, it will remain on www.examplesite.com, but I want to create a draft with a template URL like my hosting company: 123.45.67.89/~ Xpeltite I / Examples have set RewriteBase in .htaccess. All pages work fine, and all navigation links go to the right places. But none of my images works! These formats are of src = "/ sites / default / images / blah.png", and therefore the tag is being provided as src = "http://123.45.67.89/sites/default/images/blah.png" Instead, instead of "Src =" http://123.45.67.89/ ~examplesite /sites/default/images/blah.png " Is there any way I can get the site to point to the correct images? I thought what was to be re-written, but after reading a bit, I t

sql - Database Programming Concepts -

So I have read some books on SQL and I have used SQL and created a database, but in fact anything upgraded There is no pair tables, one pair, this kind of thing. So now I am working on a project which is very big. There are several tables in the database and we will process 40 to 1000 to 80'000 rows of data. Now I lack a few basic SQL concepts myself, for example: I have a dataset with datasets and file descriptions. The files are listed in a table and file details are listed in the other. We also have a build table and a fourth table that comes together in the build table, file table and file description table. Like the problems, "How do I work on files and the correct file descriptions are associated with associated files and build? Even my university has I did not cover and now I feel that I am out of my depth. We take another example, file table. In my application, I have 40'000 files, add me those files Which are not already present in the file table.

SSIS with Sql Server 2005 express -

Can we use the database with SSIS server (2005) Express? SQL Server Express Edition does not come with SSIS package. Please check it One way to go around it is to create and copy the SSIS package on the standard version. Here, it can be easy Cheers

c - (-1 >> 1) == -1 - Why? -

Why (- 1>> 1) result -1 < / Code>? I am working in C, although I do not think this matter should be the case. I do not know what I'm missing ... Here's an example: a program that casts: # Include & lt; Stdio.h & gt; Int main () {int num1 = -1; Int num2 = (num1 & gt; & gt; 1); Printf ("num1 =% d", num1); Printf ("\ nnum2 =% d", num2); Return 0; } Because the signed integers are represented in the notation. -1 would 11111111 (if it was an 8 bit number). -1> gt; & Gt; 1 clearly signatures so that it remains 11111111 . This behavior depends on the compiler, but when transferring a signed number to correct ( & gt; & gt; ), the sign bit is copied, whereas the correct to move an unsigned number Reason 0 to be located on the left.

javascript - Set iFrame Checkbox that is Hidden from the User -

Can anyone tell me if I have a web page that has the checkbox (parent) and this web Page, I also have an IFrame that comes from another page which displays many records, in which each record also has a checkbox (children), if I stick to the parent checkbox and believe that iframe user Show hidden / hidden IFrame Feature), can I set the checkboxes for all children inside this hidden iframe or do I need to render the iframe? I hope this can be given without the iframe content. Thank you, Tony. Yes, this is possible; Regardless of the status of IFrame's performance, it is still part of DOM. (I think you're hiding it using CSS "Visibility: hidden" or - more likely - "Display: None".) & Lt; / Body & gt; & Lt; / Html & gt;

php - What would be a good sample project to ask a prospective programmer to code during the hiring process? -

My understanding is that seeking a work sample is a good way to determine whether you have the skills to As some people just interview well, I want to write some sample code for me from potential developers. I am looking for ideas on what kind of small project they can do in an hour or two, and will show that they have a good understanding of OOP, good coding practices etc. and What to do - how to evaluate it in a fairly useful way. For reference, I am the owner of a small business, Interpreter developers, I can code PHP for developing PHP on internal projects, but I am not an expert (some work is refactoring code Which I have written to be better structured and consistent), and so what I want to see when evaluating the samples, Especially for those people who, before recruiting like this The method is used. I was thinking that I can give them some code, reactor, and see how they do it on it. Has anyone ever given a computation test as part of the recruitment process? Exp

java - how to create customized marshalled output from JAXB? -

I do not want to use the XML file created by JAXB marshaller, I can customize it, Format for objects? You can take XML output of JASB and process it on the way you like it can do. XSLT, DOM, or anything else ... The XML is perfect for converting even more!

.net - Event-log messages gets expanded when unhandled exceptions are handled by ASP.NET -

"itemprop =" text "> If I throw an exception from ASP.NET without exception, a warning is added to eventlog (as expected) . But if the message is a% in the exception, the message is properly displayed in the eventlog: If the message was could not be found Foo% 20bar will read eventlog foohttp could not be found: //localhost/testpage.aspxbar The value after the other numeric% will be converted to another string. It seems that the message is delivered somewhere on the way through a print statement. Is this a copy design? Is there a way to avoid this (apart from making sure that exceptions are handled)? Edit: If I am in XML-Eventlog, I see: & Lt; EventID Qualifiers = "32768" & gt; 130 9 & lt; / EventID & gt; & Lt; Levels & gt; 3 & lt; / Level & gt; & Lt; Tasks & gt; 3 & lt; / Tasks & gt; & Lt; Keyword & gt; 0x80000000000000 & lt; / Keyword & gt; & Lt; Time Crea

sql - Why do I get a duplicate key error and what is this unique index []$[]$[]$? -

When I tried to do a SQL query, I ended up with the following message: < P> [] [] $ [] $ [] $ ' What does it mean? [] $ [] $ [] With unique index [] can not insert duplicate key line in item []? And what's made of '' [] $ [] $ [] $ '"? You enter Can there be anything with the same primary key? It would be nice if you show us the code that executes it ... '[] $ [] $ [] $' -> I think it is your code Try it Choose yourtable * where your_primary_key = '[] $ [] $ [] $'; I'm just guessing because you have not provided the source code.

flex - Array not iterable if associatively used -

हाय जब मेरे पास actionscript में एक सरणी है var arr: Array = new Array ); Arr ["fsad"] = 1; ट्रेस (arr.length); और अब एक प्रविष्टि स्ट्रिंग के साथ एक प्रविष्टि डाल दी है और बाद में उस लंबाई की गणना करते हैं जो मुझे 0 की लंबाई मिलता है लेकिन क्यों? सेबैस्टियन खैर, उद्धृत करने के लिए: एसोसिएटिव एरेज़ (जिसे हैश भी कहा जाता है) बनाने के लिए ऐरे क्लास का उपयोग न करें, जो डेटा स्ट्रक्चर्स होते हैं, जिनमें गिने तत्वों के बजाय नामित तत्व होते हैं। साहचर्य सरणियों को बनाने के लिए, ऑब्जेक्ट क्लास का उपयोग करें। हालांकि एक्शन स्क्रिप्ट आपको ऐरे क्लास का उपयोग करने वाली एसोसिएटिव एरेज़ बनाने की अनुमति देता है, आप किसी भी अर्रे क्लास विधियों या एसोसिएटिव एरे के साथ गुणों का उपयोग नहीं कर सकते हैं। मुझे यकीन नहीं है क्यों AS3 अभी भी एरेज़ को अनुमति देता है सहयोगी रूप से इस्तेमाल किया जा सकता है - शायद वे एएस 2 प्रवासन के बारे में चिंतित थे - लेकिन यह सबसे अच्छा बचा है। जहाँ तक मुझे पता है, अंतर्निहित ऐरे फ़िक्स्चर जैसे लंबाई और pop () एई कुंजी के साथ जोड़े गए कुछ

Visual Studio change date & time format -

Image
दृश्य स्टूडियो 2005/2008/2010/1012/2013 में काम करते समय दिनांक और समय मिमी / डीडी / य्याय में दिखाया गया है Hh: MM: ss प्रारूप। क्या कंप्यूटर को उसी सेटिंग में बदलने का कोई तरीका है ?? मुझे दिखाई देने वाली प्रदर्शित दिनांक वॉच विंडो में है। मेरा सिस्टम गैर अंग्रेजी में है लेकिन विजुअल स्टूडियो 2005 स्थापना अंग्रेजी में है इसलिए जब मेरे पास कोई भिन्न दिनांक स्वरूप होता है, तो यह सेटिंग VS को प्रभावित नहीं करती है। < Img src = "https://i.stack.imgur.com/YTJAK.png" alt = "कंप्यूटर सेटिंग्स"> यह व्यवहार डीबगर के लिए बनाया गया है, विशिष्ट मामले में कि वह VB.NET में लिखा गया प्रोग्राम डिबग कर रहा है। स्क्रीनशॉट में # की उपस्थिति से दृश्यमान बहुत ही असाधारण कुछ नहीं, कई मामलों में डिबगर अपने आउटपुट को एक प्रोग्राम में लिखने के तरीके के समान बनाने की कोशिश करता है। उदाहरण के लिए सी # लें, एम्बेडेड डबल-उद्धरण वाले स्ट्रिंग को उनके सामने बैकस्लैश के साथ प्रदर्शित किया जाएगा। वास्तव में स्ट्रिंग में मौजूद नहीं है, लेकिन आवश्यक है जब आप स्रोत कोड म

How to precompile stored procedures in SQL server? -

Good morning! Is there a way to compile procedures stored in SQL Server? My requirement is like this .. I have some stored procedures, which take more time to compile compared to execution. So I want to precompile all the stored procedures. DB server will be good to precompile them when starting and running. Any ideas on this would be very helpful! Thanks & amp; Regards, Pawan. You can force compile again, but it will not be until the next time you run Force it to be reconstituted every time: Make your process name PROCOM NOMINATION RECOMPILE .... . Apply this to recompile this time: EXEC with your processing name Edit : based on Op's comments Why not run it manually with the fake data (outside of the app) (It is not that the execution plan is bad, though, Google: SQL Server parameter spoofing and sniffing) make a compile, then run some SQL which put it I went. When users run it for the first time, it will already be played and compiled.

regex - .hgignore syntax for ignoring only files, not directories? -

I have a problem that I can not understand. I am using TortoiseHg (version 0.7.5) on Windows, but I have the same problem on Linux. Here it is: My .hgignore file: syntax: regexp ^ [^ \\ /] + $ < / Pre> What I am trying to achieve is to add files that are in the root of the HG repository, to the ignore list. For example if I like this: .hg + mydir1 + mydir2 -myfile1 -myfile2 -otherfile1 -otherfile2 .hgignore let me myfile1 (2 ) And other file 1 (2) should be ignored (names are for the purpose of this example only - they do not have a simple rule which can easily be inserted in the hgignore file) Something is missing because I'm pretty sure that the regexp is good (I also test it)? idea? Is there an easy way to get this? [Rare lists to add files which are in the root of the Mercurial repository] I relayed it irc In the question on .freenode.net #mersial and the response was that you can not differentiate between files and directories - the director

wpf - My databinding with value converter does not work -

I have a simple item-square that looks like this: public Class item: dependency object {public at not {received} return (gate) gateway (no property); } Set {set value (no property, value); }} Public string name {get {return (string) GetValue (NameProperty); } Set {set value (nameproperty, value); }} Dependent Property No Property = Dependency Property for public static reading. Registration ("no", typef, typef (item)); Public static read-only dependency Property Name: Representative = Dependency Property Registration ("name", typef (string), typef (item)); } and a ValueConverter, which looks like this: [value conversion (typef (item), typef (string)) internal class ItemToStringConverter: IValueConverter {convert public object (type object value, type type, object parameter, culture info culture) {if (value == null) {return null; } Var items = ((item) value); Var sb = new stringbilder (); Sb.AppendFormat ("item # {0}", item number); If (string.

javascript - What is the meaning of symbol $ in jQuery? -

jQuery में '$' चिह्न में क्या खड़ा है? यह है। यह केवल jQuery के लिए विशिष्ट नहीं है; अन्य लाइब्रेरीज इसका प्रयोग भी करते हैं आप डॉलर के साइन इन JavaScript के उपयोग के बारे में पूर्ण-विवरण लेख देख सकते हैं।

java - Auth (digest) request from Servlet -

I am creating a small servlet that is hosted on the root, "/", and whatever comes " / "Is a resource, such as" /myanim.swf "Most files are public, but for some public files, they are only served, but for private files, I submit the browser to an authentication box I want to send it back to a digest certification servicelet, which then May Ushti and can serve content. If (! File.isPublic ()) How do I apply the part? Because I want to authenticate the browser, I do not want to use the j_security_check mechanism Cheers Supports details of servlet outside the box. As you refer to it, " j_security_check mechanism is used only during the form-based authentication method, while you will use digest here is a related chapter And here's how to configure basic authentication for servlet (replacing it with digest-based method is straightforward).

user interface - Cocoa focus ring color animation -

I want to use Focus Ring animation as an indicator of incorrect data in the field. So I'm sending first Respect First to Field and want Focus Ring to fade the default color from red. I am wrestling with the core animation, but still have not found any way to do it. Is this possible? I'm not sure that this strategy is in pursuance of HIV, it is often more common to have an area Displaying a constant sign shown is something that is not valid next to the field, but achieving the effect should not be very difficult, which you want. It may be easy to use, instead of using the core animation, to attract simple focus rings, standard code normally goes something like the following: [nsGraphicsContactedSave GraphicsState]; NSSetFocusRingStyle (NSFocusRingOnly); [[Enkolar clear collar] set]; [[NSBZearpath Beziorated: Focused] Filled]; [NSGraphicsContext ReplaceGraphicsState]; This code will be implemented in the drawRect: method of the custom sub-section of your contro

grails - Add methods to controllers -

In a Grails application, I would like to add a foo () method for all of my control classes I know that I I can do this with the help of Code: application.controllerClasses.toList () *. MetaClass * .foo = {println 'foo called'} However, I just do not want to create a plugin for this purpose. Is there anything else I can do this I suspect that this is possible within the closing of init bootstrap.groovy , but I do not know that GrailsApplication How to reach this stop in the example Thank you, Don def grails application = org. Codehaus.groovy.grails.commons.ApplicationHolder.application

Inputing characters into arrays in C- follow up -

This is a follow-up question to a previous question which I asked about calculating a straight hand ... not the same. .. This is the way to read in the card - it works - but this is a better way - to use console input in C. ... zero read_cards (int num_in_rank [], Int num_in_suit []) {bool card_exists [NUM_RANKS] [NUM_SUITS]; Four f, rank_text, suit_tech; Int rank, suit; Bull badcard; Int card_read = 0; {Num_in_rank [rank] = 0; for (rank = 0; rank & lt; NUM_RANKS; rank ++); (Suite = 0; Suit & lt; NUM_SUITS; Suit ++) [ranks] [suit] = Wrong for card_exists; } (Suite = 0; Suit & Lt; NUM_SUITS; Suit ++) num_in_suit [Suite] = 0; While (card_read and lt; NUM_CARDS) {bad_card = false; Printf ("Enter a Card:"); Rank_click = by (); Switch (rank_ch) {case '0': exit (EXIT_SUCCESS); Case '2': Rank = 0; break; Case '3': Rank = 1; break; Case '4': Rank = 2; break; Case '5': Rank = 3; break; Case '6': Rank = 4; break; Case &

jquery - loading external file with css intact? -

I am working on a project where the client wants to load the current page in a single page dynamically. This is not a problem, but the style is not working when this page loads into standalone files on the existing site. Is there a way to remove the CSS link from each page and it has been dynamically applied to the viewer's page? Here I have a copy of the function that I wrote to place the external page in the viewer's page: $ (function () {$ ('a. Dock-item2 '). Click on an anchor (function () {// dock-item 2 square $ ("# page") .remove (); // already has var href = $ (this ) .attr ('href'); // External file path and name $ (press "& lt; div id =" page "/>;). Load (href, function () {// create a new div And load // page content $ (this) .away () // stuff just to make a good transition ... .app EndTo ('# viewer'). FadeIn (1000);}); return false;}}}); I want to strictly implement the div in the question ... but m

svn - return subversion working copy to an old revision -

I had some problems with my Subversion server and I had to restore it from backup, but this is an old example for me There is a server on 400 revisions but my work is at 405. How can I get a copy of my work with an old amendment, open up my work and recommend changes. Thank you very much If I understand what I 100% Not sure I'm ! Checkout 400 Copy from 405 to 400 checkout (zero .svn meta) files Li> 401 Commit yourself. Thanks Dave - To copy the work directory from 405 to 405: [Aiden @ devbox ~] $ Svn export --help Export: Make a replica copy of a tree. Make sure you have 400's. Can not delete the SYN directory, make sure that everything is added to you [aiden @ devbox ~ / my400co] $ svn status If you want to return to server 405 (but the new 405: S) ... make a few small commitments and then a big dirty on 404-> 405 I think your checkout There are entire trunks in the copy and it is consistent to have a trunk; otherwise, you have a dat

Why is the iPhone Simulator 3.0 not showing up in Xcode? -

I have installed a new 3.0 SDK, but when I start the xodod, I need "Device - iPhone OS 3.0" or "Simulator - iPhone OS 3.0" The box about the encode says that I am running: 3.1.2 Do I have to do something else? I think you need to upgrade to Xcode 3.1.3. I have the latest version and it reads about me box. If you are sure that you download the latest version, maybe you are in a different place?

accessibility - Is my form laid out in a table accessible? -

I am making a form of discovery of colleges based on the division of athletic programs and games. I have excluded the form in a table "All Divisions" checkbox selects all the checkboxes for that game I know that screen readers are both forms and table modes. Is my existing design accessible or should I add labels to each individual checkbox and remain in the status of off-screen for view users? It is also necessary to meet at least Section 508 requirements. The current code for tables looks like this: & lt; Table & gt; & Lt; Tr & gt; & Lt; Th scope = "colonel" colspan = "2" & gt; All Divisions & lt; / Th & gt; & Lt; Th scope = "colonel" & gt; Div i & lt; / Th & gt; & Lt; Th scope = "colonel" & gt; Part II & lt; / Th & gt; & Lt; Th scope = "colonel" & gt; Div III & lt; / Th & gt; & Lt; Th scope = "colonel" & gt; Other &a

asp.net mvc - Handle View permissions in BaseController -

I have a page table that stores all of my URLs and this table contains the permissions associated with the user's role. My controllers are the heirs of a base controller, so I was wondering where I stop the request and then return an invalidPermissions view. Maybe you want to override or, what is available and what you need from the request / controller reference Based on this You can think of using a custom or get through it to make it more convenient for each action / controller.