Posts

php - Redirect only one page to http htaccess -

I use codeigniter and I use redirection for all URLs on https. Now I only have one page () I want to redirect to http I have got so many answers. But I could not implement it properly. Every time I get an error, "this webpage has a redirect loop" my htaccess & lt; IfModule mod_rewrite.c & gt; RewriteBase / RewriteCond% {HTTPS} on RewriteEngine # First to rewrite the HTTPS: #RuleReightCond% {SERVER_PORT} 80 RewriteRule ^ $ https (*.): //% {HTTP_HOST}% {REQUEST_URI} [L, R = 301] # Now, use www to rewrite any request for the wrong domain. RewriteCond% {SERVER_PORT} 443 RewriteCond $ 1 (Web / Surf | Surf) RewriteRule ^ $ http (*.): //% {HTTP_HOST}% {REQUEST_URI} [R = 301, L] RewriteCond% {HTTP_HOST} world Wide Web \. RewriteRule ^ $ https (*.): //www.% {HTTP_HOST}% {REQUEST_URI} [L, R = 301] RewriteRule ^ About-us / [L, R = 301] Option -Inexes RewriteCond% {REQUEST_FILENAME }! -f RewriteConnect% {REQUEST_FILENAME}! -D Rivroitium ^ (. *) $ / INDEX.FPT / 19 [L] &...

css - Update Embedded Resource at runtime -

In my asp.net MVC application, I want to update CSS file or JS file content that dynamically inside DLL Are embedded runtime without restarting the application The reason for this is that my application is a huge one which will take more time to restart. So for the change in JS or CSS in the development phase, I do not want to run the application again and do not want to wait for minutes. Please provide the solution ASAP. Embedded resources are compiled into your assembly items and can not be modified at run time at all can. It is the same as you can not modify the bytes (compiled from your source code) in your assembly in the runway. You may need to think about a separate architecture for your application so that you do not need to update your embedded resource at runtime. Anyway, you can find this link useful:

Splitting Comma separated values in columns to multiple rows in Sql Server -

There are three columns in my table, one of the columns [ Col3 ] has multiple values, therefore, When I make a specific order on the table: call 1 with my call, cola 2, select colle 3 this gives me the following results : Col1 Col2 Col3 ------------------------------ Line 1 430 A319 N1160 N1336 If there is a way to get the output: Col1 Col2 Col3 -------- ---- ------------------ Line 1 430a 319 Columns such as N-1160 line 2 430A319N336 line 3 ABC FEG G3489 Row 4 ABCEFF M 5678 RO 5 ABC NFEF N 5643 , then in columns A new line is displayed according to each value and the other column should have duplicated data. I hope I am very clear from the problem. select col1, col2, split.a.value ('.', 'Varchar ( 100) 'from 3 to (SELECT col1, col2, cast (' & lt; m & gt; '+ Change (col3,' ',' & lt; m & gt; ') + '& Lt; / m & gt; AS XML] from the data [table]] as a cross application data. Node (' / m ...

php - Httpful post with urlencode -

I have a slightly larval app and I used to work with an external API - httpful REST customer added - I was able to "speak" with the mailstore API Here is an example: Public Function GetEnvironmentInfo () {$ uri = 'https://bla.com:8474 / Api / invoke / GetEnvironmentInfo '; $ Response = Httpful :: post ($ uri) - & gt; With certification ('admin', 'password') - & gt; Send (); $ Errors = $ response- & gt; Body- & gt; Error; $ Version = $ response- & gt; Body- & gt; Results-> Edition; $ License = $ response- & gt; Body- & gt; Results-> License holder; DD ($ version. $ License. $ Errors); } that function works You can find the following sentences in the API manual. "When a function requires additional data, this data must be sent urlencoded.HTT header content-type: application / x-www-form-urlxode should be set." For example, I want to set user password with the help of user password. SetUs...

how to display Notificaion on android api level 19 -

सार्वजनिक शून्य onClick (v देखें) {आशय notificationIntent = नए आशय (यह, MainActivity.class); लंबित सामग्री सामग्रीइंटेंट = लंबित आईटीएक्टिवटिविटी (यह, 1, अधिसूचना सूचना, लंबित प्रदाता। FLAG_CANCEL_CURRENT); NotificationManager nm = (अधिसूचना प्रबंधक) यह .getSystemService (संदर्भ। NETIFICATION_SERVICE); संसाधन res = this.getResources (); अधिसूचना.बिल्डर बिल्डर = नया अधिसूचना.बिल्डर (यह); builder.setContentIntent (contentIntent) .setSmallIcon (R.drawable.ic_launcher) .setLargeIcon (BitmapFactory.decodeResource (रेस, R.drawable.ic_launcher))। setTicker ( "Helllo") .setWhen (System.currentTimeMillis ())। setAutoCancel ( True) .setContentTitle ("मेस्गेस")। SetContentText ("मैसेज 22"); अधिसूचना n = बिल्डर। बिल्ड (); Nm.notify (5, n); } मैं संदेश notifcation बटन पर क्लिक करने पर के लिए इस कोड का उपयोग करने की कोशिश कर रहा हूं, लेकिन कोड यह दिखाने त्रुटि कॉल में आ रहा है त्रुटि है एपीआई स्तर 11 की आवश्यकता है (वर्तमान मिनट है 8): android.app .Notification....

Getting all records from JQuery Jtable in client side -

How to get all the records in Jason Jettbie from JQuery JTable in the client side. I need information that I have a project information to include in the DB with a list of authors related to the project. I'm keeping this list in JQuery Jtable. Click the Save button, I am sending all form data information in the servlet I also want the author list in the JSON format so that I can send it to the servlet. Is it possible? See my JQuery jtable below $ ('# AuthorTableContainer'). Enable jibbles ({title: 'authors', select: true, edit: true, choose: true, // multiselect to enable: true, // allow multiple selection checkboxes: true, // first column actions Show the checkboxes at: {Delete: action} {$ ('# authorTableContainer'). Jtable ('deleteRecord', {key: data.authorId, clientOnly: true}}}}}, field: {authorId: {title: 'Title', '30%'}, name: {title: 'name', width: '30%'}, phone: {title: 'phone', width: ...

java - Want to create library project that contain all my (native) android application view adapter -

I'm trying to manage my native (native) Android application code. For this reason I am working and making a modular approach. I have already done DB, JSN Parser and My Library Projects of Data Model. But when I am trying to do it with the adapter to see it, then the idea of ​​getting an idea ID is to include an R file. Therefore, there is no other way that I can manage my Android list view adapter. Or is the way to complete the R file. Thank you in advance You can not pass a library to the app project, It's meaningless. You can pass only from Adapter ID Adapter.setViewIds (R.layout.item, R.id.textView, R.id.title) Or, you can do library projects Can create ID in