Django मीडिया के साथ मैं निम्न कर सकता हूँ: भाषा <%> LANGUAGES% } & Lt; script type = "text / javascript" src = "{{MEDIA_URL}} ऐप / जेएस / jquery.ui.datepicker। {{Language.0}}। जे एस" & gt; & lt; / script & gt; {% Endfor%} अब, मैं स्थिर फ़ाइलों पर स्विच करना चाहता हूं हालांकि यह स्पष्ट रूप से काम नहीं करता है: भाषा <% l भाषा में%} क्या मैं हासिल करने की कोशिश कर रहा हूं?
[मैं निरंतरता के लिए स्विच करना चाहता हूं, क्योंकि व्यवस्थापक और मैं उपयोग कर रहा हूँ कई तीसरे पक्ष के क्षुधा स्विच है इसके अलावा, मैं चिंतित हूं कि भविष्य में कुछ समय से डीजेंगो मीडिया को हटा दिया जाएगा। ]
आपके पास दो विकल्प हैं सबसे पहले एक, जैसा कि सुझाव दिया गया है, {{STATIC_URL}} : भाषा में% भाषा में%} का उपयोग करें
I am working on something with a database and with PHP to manage my finances. From my homepage I want to select one month and execute a query so that only records can be displayed in this month's database.
Now I have this:
if (isset ($ _gET ['january2013'])) // // Select the earnings {$ sql = 'SELECT Id, type, date, amount, statement, class from `transaction ', where type =" income "and month (date) ='. $ Month selection 'order by `transaction`.` ID` DESC limit 0,50'; $ Result2 = $ pdo- & gt; Query ($ sql); } //error handling. Hold (PDOException $ e) {$ output3 = 'Error getting record:'. $ E & gt; GetMessage (); Include '/errors/output.html.php'; Go out(); } // Display Record Foreach ($ result2 as $ row) {$ inJan2013 [] = Array ('id' = & gt; $ row ['id'], 'type' = & gt; $ row ['type' $ Line ['date'], 'zodiac' = & gt; $ line ['zodiac'], 'description' = & gt; $ line ['description'], 'category' = & Gt; $ line ['category']); } Instead of making this code every month, how can I make it more universal? I want to use the $ monthselect variable, but I do not know where to start from
on your webpage,
& lt; Form action = "where_you_handle_your_requests.php" method = "post" & gt; & Lt; Select name = "mo" & gt; & Lt; Option value = "Jan" & gt; January & lt; / Options & gt; & Lt; Option value = "February" & gt; February & lt; / Options & gt; & Lt; Option value = "march" & gt; March & lt; / Options & gt; & Lt; / Select & gt; & Lt; Select name = "yr" & gt; & Lt; Option value = "2010" & gt; 2010 & lt; / Options & gt; & Lt; Option value = "2011" & gt; 2011 & lt; / Options & gt; & Lt; / Select & gt; & Lt; / Form & gt; even further.
Next, on your PHP script,
if (isset ($ _ POST ['yr']) & Amp; isset ($ _ POST ['mo'] )) {$ Monthselect = $ _ POST ['mo']. $ _ POST ['yr']; } Else {// has not passed for an input script} If the user has selected January 2013, then the month's selection is january2013
There are a lot of differences between the rows in my tables for some reasons and I'm not sure why I have the padding and spacing 0. Is set to ...
table cells = "0" cellpadding = "0" width = "460" range = "0"
. ..but there is a lot of difference between the lines of text, why should there be any idea? Here's a sample of the table ...
& lt; Table cellpassing = "0" cellpadding = "0" width = "460" range = "0" & gt; & Lt; TR & gt; & Lt; Td width = "12" rowspan = "17" & gt; & Lt; Img src = "picture / z_spacer.gif" width = "10" height = "10" /> gt; & Lt; / Td> & Lt; Td height = "30" colspan = "2" align = "left" valign = "top" & gt; & Lt; P class = "title" & gt; With date ... & lt; Br / & gt; & Lt; / P & gt; & Lt; / TD & gt; & Lt; Td width = "20" rowspan = "17" & gt; & Lt; Img src = "images / z_spacer.gif" width = "10" height = "10" /> gt; & Lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td width = "106" height = "20" align = "left" valign = "top" & gt; & Lt; P class = "bodybold" & gt; what? & Lt; / P & gt; & Lt; / Td> & Lt; Td width = "322" height = "20" align = "left" valign = "top" & gt; & Lt; P class = "body" & gt; Monday morning meeting & lt; Img src = "images / z_spacer.gif" alt = "width =" 10 "height =" 10 "/> gt; & Lt; / P & gt; & Lt; / Td> & Lt; / TR & gt; & Lt; / Table & gt; And I also have some CSS code ...
table {border: 0 solid #fffff; Margin: 0; Padding: 0; Degradation: collapse; } Tr, td {border: 0 solid #FFFFFF; Margin: 0; Padding: 0; }
There are margins on extra spaces material attempts to add the following style to the style sheet
td * {margin: 0px; } This will erase the margins of the content. If necessary, adjust the price to make more space.
OK Everyone,
In advance, apologies for the length. It's really fun, though.
I have written to a SQL script that I was proud of yesterday because I thought that it is very clever. It is extinguished, performance issues are wasted, and I can not even test it because of it, so it can not be that which I feel sigh This problem is best illustrated with the example:
column A | Column B | Column C | Column D heart | K | 2/1/2013 | 3/1/2013 heart | K | 2/1/2013 | 3/1/2013 heart | K | 1/1/2013 | 3/1/2013 heart | K | 2/1/2013 | 4/1/2013 spade | 4 | 2/1/2013 | 3/1/2013 spade | 3 | 2/1/2013 | 3/1/2013 Club | 4 | 2/1/2013 | 3/1/2013 With this table, I need to: 1. Start with the first time, then update the row with the data, if in column A match Value, 2. Delete if there was a match, then the second line after the update, and 3. proceed to the next line, if there is no match and the same process starts again.
If there is a match, then the top row update column A: nothing
Column B.: If both values are the same, put the value in one, else type 'multiple'. Column C: Keep the first date between two, Column D: place the date between two, then I delete the lower line
My example should result in the following:
column A | Column B | Column C | Column D heart | K | 1/1/2013 | 4/1/2013 spade | Multiple | 2/1/2013 | 3/1/2013 Club | 4 | 2/1/2013 | 3/1/2013 To do all this I create two table variables, insert the same data into both, and then update the bicycle through the second (@ScheduleB) In the first table (@ScheduleA) in the search for the match, I was then removed from the row in @ A (because it is similar to B). In the end, when there were no matches, I went to start a process in AA in the front row. At least this is what the code should do - see below.
Displaying the problem is dangerous I have considered using a cursor, but I do not know what the display will help there.
Any suggestions? Announced @ScheduleA table (RowNumber integer, period nvarchar (max), program nvarchar (max), ControlAccount Nchar (50), WorkPackage Nchar (50), CAM Nchar (50), EVM Nchar (50), Duration of time, BLStart datetime, BLFinish datetime) declared @ScheduleB table (RowNumber integer, duration nvarchar (Max), program nvarchar (max), ControlAccount Nchar (50), WorkPackage nchar (50), CAM nchar (50) , EVM nchar (50), duration integer, BLStart datetime, BLFinish datetime) Include more than [ROW], Duration, Program, ControlAccount, WorkPackage, CAM, EVM as @ScheduleA ROW_NUMBER () , a Method, from which the Program = @Program and Period = @Period inserted probe @ScheduleB, ROW_NUMBER (greater than the order by workpackage desc) [ROW], period, program, ControlAccount, WorkPackage, CAM, Become a BLFinish from EVM, Duration, BLstent, Scheduled Data, where Program = @ Programs and Duration = @ Announcement @IntIt = 1, declare @JyInte = 2 - Create a loop, another variable which is counted as the last line of B table While @J.L.L.; (Select Max (ROWNUMBER) + 1 @ ScheduleB) - Match table by WorkPackage - If start (if you select WorkPackage from @ScheduleA (where RowNumber = @i) = (@ScheduleB, select workpackage where RowNumber = @ J) Begin updating @ScheduleA --Update Schedule CAM, BLStart, set a table (if necessary) of BLFinish = Episode of CAM - Case = ScheduleA @ScheduleA column B is based on the argument argument, in BLStart = Case - -set values based on logic and column C, BLFinish = case - based on rationality @ schedule A column D value Define where to remove Rowenber = @ I @Schedule A where the rouenumber = @e + 1 set @ j = @ j + 1 - in the newest b end ELSE set in line @ i = @ e + 1 end
EDIT: To clarify, Column B. is not an integer column, I was just using it as an example because the cards are pretty easy to understand. Since then, I am KK Updated columns to include.
Based on your needs, I think such a solution will work:
select [column A], in case when MAX ([column B]) & lt; & Gt; Minimum ([column B]) then 'multiple' ELSE cast (max [[column B]) NVHAR (10)) end, min ([column C]), max ([column D]) by table group [column A ] Edit
offensive:
I am new to overflow stack, and I say hello!
on topic:
I am creating 5 UUID for a version which requires creating and deleting random folders through a timestamp. Is time () via my $ md5_UUID = create_uuid_as_string (UUID_MD5, time. "$ Job"); These folders are created per run on each task, and are deleted after running. If the same UUID is generated in some way, then + -1000 can stop the jobs.
Is there any information that I would like to have or any the possibility of conflict (different data generating the same UUID)? Are they really unique? Also, which version of UUID should be used between SHA1 and MD5?
Use the OS tool
Perhaps there is a pure Pearl solution, but it Can be overkill. If you are on a Linux system, you can capture the results of mktemp or uuidgen and use them in your Perl script. For example: $ perl-e 'print' mktemp - directory '' /tmp/tmp.vx4Fo1Ifh0 $ perl -e '$ folder = `uuidgen`; Print $ folder '113754e1-fae4-4685-851d-fb346365c9f0 The mktemp utility is good because it will create an atomic directory for you, returning additional directory name of the. You have the ability to modify the template in more meaningful names (see man 1 mktemp ); On the contrary, the UUID is not really good in the message of useful semantics.
I have followed some of the questions I asked earlier. Before that I asked how to use a method to determine whether the elements of a list are present in the other or not. Because of this I have done this because I want to define that a list has drawings of others - using user input and a dictionary list. I am having difficulty in determining this, I want to pass the lists in a list to determine whether one contains the elements of another, or not. Right now it only gives false false when I know that the actual anagram is present.
Can anyone see my code and help me? Besides, how do I determine that the user input has many-word anagrams?
My algorithm works by taking two lists and by describing the letters in each word, I read about this method in another post and decided to go with it - this work is in progress is. This is my code:
Public class AnagramSolver1 {Public static zero main (string [] args) IOException throws {// scanner / reader scanner scan = new scanner (System.in); BufferedReader = In the new BufferedReader (New FileReader ("src / dictionary.txt")); // lists containing unordered dictionaries and inputs, and after the alphabetical order list & lt; String & gt; Dictionary = New Arrestist & lt; String & gt; (); & Lt; Four []> Dictionary: Source = New Arrestist & lt; Char [] & gt; (); & Lt; String & gt; Input List = New Arrestist & lt; String & gt; (); & Lt; Four []> InputSort = New Arrestist & lt; Char [] & gt; (); String line = null; // Read in the dictionary and then in the alphabetical order //// while (zero! = (Line = in.readline ())) {dictionary.add (line); } In.close (); Dictionary sort = sortlist (dictionary); // print statement / * for (int i = 0; i & lt; dictionary structure; i ++) {System.out.println (dictionary:} * / // user input, then sort alphabetically // // System.out.println ("Enter the word:"); string input = scan.next (); inputList.add (input); InputSort = sortlist (input list); // for print statement * = 0; I & lt; Input Asiose (); I ++} {System.out.println (inputSort.get (i));} * / // Define that user input is the fingerprint of any dictionary word boolean =Anagram (dictionaryResearch, InputSort); Println (isAnagram);} // Sort a string in four letters; Public static list & lt; char [] & gt; sortlist (list & lt; string & gt; sort) { List & lt; char [] SortList = new arreelist & lt; char [] & gt; (); for four [] letterSort; (int i = 0; i & lt; sort.size (); i ++) {letterSort = sort.get (i) .to Character (); Arrays.sort (letterSort); sortList.add (letterSort);} Return SorList;} // Determine if the user input is an anagram or not Public stable boolean isagraag (list & lt; four []> dictionaryartort, list & lt; four []> inputSort) {for (four [] c: dictionarySort) {if (inputSort.contains (c)) { Return true; } } return false; }}
Here's a big problem:
(Four [] c: dictionary sort) {if (inputSort.contains (c)) // // bug! It will not work as you think it will be. This test is included in the exact four [] item list; It does not test if a letter contains the same character. The way you intend to do it, char [] , store strings to do it. To convert a char [] to a string , do this: four [] ; String s = new string (s); Once you solve your characters in an array, change the four arrays into a string and place it in your lists. This means that in all lists list & lt; String & gt; should be in the list.
I need help for my grid There is no scrolling in it Anybody can help me add scrolling to the Wijmo grid
The jquery grid table is as follows:
& lt; Div id = "tabs-1" & gt; & Lt; Table id = "all_grid" data-bind = "wijgrid: {data: allow edit: correct, allow paging: correct, allowcrolling: true, permission denting: true, showfilter: true, page size: 20, // Column: [Header Text: 'Title'}, {Header Text: 'Pub Date'}, {Header Text: 'Sent'}, {Header Text: 'Link'}],} "& gt; & Lt; / Table & gt; & Lt; / Div & gt;
To enable scrolling, you need to set Wijgrid's scrollMode property According to your requirement "auto" or horizontal etc. By default, this is none, for more information about this, you can specify these links:
Sample:
Dock link: < / Div>
I want to execute this question with Criterias but it seems that it is not working as expected: / P>
Select different details, ID, Family_Id, number-by-volume family details WHERE familia_id by group; I have tried this
public list getFamiliasPadre () {criteria cri = getSession (). CreateCriteria (Familia.class); Cri.add (Ban.InslL ("familia.id")). Setprogress (project names (projects "properties") .setProjection (Projections.groupProperty ("descripcion"); return cri.list ();} but this is a result As I was executing this query
select different details from the family WHERE familia_id by descriptor by IS NULL GROUP; This only gives the column descripcion
My question is, how can I say in hibernation that I want all the columns in my table But I do not want to repeat voices from the desaulpcion column?
You do not do this in just plain SQL queries I mean, how can you possibly merge 2 rows that only share one column? For example, imagine this in your table:
I tried to follow it, because it was cited as an example in many places:
< P>
) {MenuDBContext db = new menu dbctext (); ViewData ["AllMenu"] = DB. Menu .Oolist (); See refund (db.Menus.ToList (). Where (C => c. PID == faucet)); }
View category:
@ {ViewBag.Title = "index"; } @model iInmerebel & lt; Geo.Models.Menu & gt; & Lt; H2 & gt; Index & lt; / H2 & gt; @ Varic (Miscellaneous items in the model) {& lt; Li & gt; @item @ {var kids = watchdata ["allmenu"]. Where (C => C.PID == item.ID);} if (kids.count ()> gt; { ul & gt; @ {Html.RenderPartial ("ItemControl", children) ;} gt;} I can not work for my life because I can not use it. Where children About "View" ["AllMenu"] or any device, where I am going wrong, it will be fantastic. "post-text" itemprop = "text">
IEnumera as "videadata [" allmenu "] as IEnumerable & lt;
var kids = (ViewData [" AllMenu "]) Ble & gt; GeomantApp.Models.Menu & gt;) where (C => C .... data dictionary & lt; string, object & gt; , so when you try and obtain a property from that dictionary, then there is no way to know that ASP.NET is what it is before hand if you do not put your object first Compiler errors.
In addition, I really appreciate the explanation, sorry but I have never used regedx in my life And it can barely read.
D {4} / \ d {2} / \ d {2} \s + \ D {2}: \ d {2}: \ d {2} - <
\ d is a number < Li> {4} is the amount of digits (just before the regexp part) -
/ is just a slash - < Code>: just one colon
-
\ s is any white spot -
+ one or more whitespace (The regexp part in front of it is correct) Note that this will be used for an early preliminary inquiry, but you will need to complete the date format such as SimpleDateFo Rmat Advertised Rohit Jain or John Skeet should use other ways to advertise.