Posts

.htaccess - htaccess rewriteRule restrict access to one particular folder problem -

I have a problem preventing Folder Ink. This is only the Ink folder in the root directory and the encoded folders are not higher than Problems: IE will start a download / open dialog and FF displays a included file I do not have this problem with the images folder which is also in the root directory. Please use what logic can I use to prevent this? Please type option + follow link rewriteInnineOnOnOption All-index indexIgnore * #Revrett Raul ^ Inc ($ | /) - [R = 403, L] Revoked% {HTTP_REFERER}! ^ Http: // ([-a-z0- 9] + \.)? Taxi-Bell \ .NL [NC] Rewriter \. (Gif | png | jpg | css | js) $ - [F, NC, L] # rewrite cnd% {REQUEST_FILENAME}! -d Recovery code% {REQUEST_FILENAME}! -f Rev. Raul ^ (. *) $ Index.php? Url = $ 1 [QSA, L] # rewrite% {HTTP_HOST} ^ www. (. *) [NC] River Ite Rule ^ (. *) $ Http: //% 1 / $ 1 [R = 301, NC, L] Edit Because I have solved this problem by adding this rule to Directory Index index.php and , In which an index.php ...

jpa - EJB3/DB2 Transactions not rolling back -

I have a situation where I have a tree of Entities , and a Sessions Bean . Sessions Bean is present in the institutions or dissolves, and the question is marked as the method Attribution Attribute (TransactionAttributeType.REQUIRES_NEW) . Now in such a case that the institution of a child fails to be continuous / merged due to a foreign key violation (for example), or the non-fictitious field is missing, the transaction is returned Rolled in to the log and marked a EJBException I was hoping to return the full transaction but in spite of the failure of the child institution, EJB session Databases after bean call I'm looking to see that the basic unit of power. Anyone else seen this behavior? Additional information: Server: Glassfish Persistence Manager: Toplink Connection Pool: DB2 Universal Driver XA Compliant Driver. thanks It seems that there was a connection pool in the glassfish Setting with the flag "non-transactional connection" enabled it ...

mime magic php enable -

I understand that mime-type has been deprecated and should instead use fileinfo. My question is, do I still need to enable mime magic on php? According to available, some more documentation, no: Take a look:

performance - Efficiency of C vs Assembler -

निम्नलिखित कोडांतरक कोड कितना तेज़ है: shl ax, 1 निम्न सी कोड बनाम: num = num * 2; मैं कैसे पता भी कर सकता हूं? आपका असेंबली संस्करण तेज़ हो सकता है, धीमा हो सकता है क्या आपको लगता है कि यह जरूरी है तेजी से? मंच पर, 2 से कुछ गुणा करने के लिए बहुत कुछ तरीके हैं। मैं एक संकलक को जोड़ कुल्हाड़ी, कुल्हाड़ी करने की अपेक्षा करता हूं, जो कि आपके shl क्योंकि इसमें संभावित रूप से संग्रहीत स्थिर (आपके मामले में '1') शामिल नहीं है। इसके अलावा, एक लंबे समय के लिए, एक्स 86 प्लेटफार्म पर स्थिरांक द्वारा चीजों को गुणा करने का पसंदीदा तरीका बदलाव नहीं था, बल्कि एक ली ऑपरेशन (जब संभव हो) था। उपरोक्त उदाहरण में यह होगा कि लीआ ईएक्स, [ईएक्स * 2] । (गुणा करके 3 को lea eax के माध्यम से किया जाएगा, [eax * 2 + eax] ) शिफ्ट आपरेशनों में विश्वास किसी भी तरह से "तेज" नए लोगों के लिए एक अच्छी पुरानी कहानी है , जो आज लगभग कोई प्रासंगिकता नहीं है और, हमेशा की तरह, आपके कंपाइलर (यदि यह अद्यतित है) के अधिकांश समय में, अंतर्निहित हार्डवेयर प्लेटफ़ॉर्म के बारे में ब...

Bulk insert into SQL Server a CSV with line breaks in fields -

I have a CSV that looks like this: "blah", " Blah, Is it possible to import? Is it directly in SQL Server? Every line in your file ends with the new line (\ n), but you want to end the actual lines with the quotation marks and the new line. Set the ROWTERMINATOR in the bulk INSERT command : ROWTERMINATOR = '"\ n' Edit: I think the big problem will be with comma in the text. SQL Server does not use text inclusion. Therefore, the row will be divided into commas without checking if commas are in quotes or not. You can do this: with bulk INSERT from FROM 'c: \ file.txt' (FIELDTERMINATOR = '",', ROWTERMINATOR = '" \ N ') This will give you the following results: col1 | Col2 | Col3 ---------------------------- --------------------- --------------- "Blast |" Blah, Blah, Blah Act, Act. "Column 3" Foo | "Foo, Bar, More Than One More Line." Another Column 3 You just ha...

How would you solve this math equation for x in C++/C -

Resolve this equation for X, (1 + x) ^ 4 = 34.5 . I think you are interested in the math libraries used. Equation Very Separator (1 + x) ^ 4 = 34.5 Thanks predicted x * (x + a) ^ b = c for more complex polynomials A strong solution will be required, but it will be enough to finish your homework. This algorithm is written in Ruby and written you can verify that the derivative and answer is correct by using. (X, A, B, C) X * (X + A) ** BC End DEF DF (X, A, B, C) Return (X + A) Return FF (X, A, B, C) * * B + B * x * (x + a) ** (b -1) and def newton (a, b, c) xn = 0 # The initial seed for the method of newton while correct xn2 = xn-f (xn, A, B, C) / DF (XN, A, B, C) # Newton's method print "F (% .5F) =% .5F \ n"% [xn, f (xn, a, b, C) break if (xn2 * 10000) .to_i == (xn * 10000) .to_i #set desired exact here xn = xn2 end print "root% 5f"% [xn2] end newton (1,4,34.5) this pA Receives: f (0.00000) = - 34.50000 f (34.50000) = 54793902.65625 f (27...

c# - WPF DataGrid - row for new entry not visible -

The problem is that the empty row is not visible in the datagram, so the user can not add data here the code is: System. Collection.object.log.obbsClubClocking & lt; Corvobularyentry & gt; Data List = New System.Collection.AbjectModel.ebusWebWallClip & lt; Corvobulary Entry & gt; (); Public Glossary Toolwind () {Initial Group (); DataList.Add (new corebulary entry {foreign = "j", original = "ano"}); Select List View View = New List Compilation View (Data List); Word datagrid ITSource = Data List; WordDataGrid.Can UserArrose = True; MessageBox.Show (view.CanAddNew.ToString ()); } I do not understand why see why. CANAD is equal to the wrong. It looks like a beautiful standstate scenario, so maybe I'm missing some time. Can anyone tell me what is wrong with the code? CoreVocabularyEntry is just the following: Public Structure Core Vocabulary Entry: Evoculatory Entry {#region IVCabularyEntry Member Receives Public String External { Set; ...