Posts

http - Server side redirect vs Javascript redirect in terms of SEO -

I am making my own short URL website 9o9.in A visitor to a small URL Generates by my site, it will essentially hit your server first but I know that there may be many links to potentially harmful or inappropriate sites which will be reduced by using the service of my site. To make sure that I am not setting the negative reputation of my site, referring to SEO, links to the eyes of the search engines, or the sites rejected by HTTP, do I have the php header () function Like using a server should go for redirection, or should I redirect a JavaScript-based client side? Ok, I know that sensible solution is to prevent users from generating small links to unacceptable sites. But right now I might not be able to apply it because it requires a detailed amount of data analysis or using expensive word filtering API ... Any help is highly appetized. Thank you. A server-side redirect will be less latency, because the browser can start receiving new ones immediately. While with th...

ios - Error "expression is not assignable" on timerBar.bounds.size.width assignment -

I am trying to create a timer bar, but I am getting an error "expression is not assigned" on Timerbar.bound. size.width = 0 (zero) viewDidoadload {[Super Viewedload]; // Setup an additional after loading the view, usually from a nib Self.view.backgroundColor = [UIColor blueColor]; TimerBar = [[UIView alloc] initWithFrame: CGRectMake (0, 0, SCREEN_WIDTH, 5)]; Timerbar Background color = [UIColor whiteColor]; [Self.view addSubview: timer bar]; [UIView CheatVirtuality: 2 Delay: 0 Option: UIViewAnimationOptionCurveLinear Animation: ^ {timerBar.bounds.size.width = 0; } Closing: ^ (BOOL Finish) {}]; } What am I doing wrong? Why can not the value be assigned? You can not set the width of the boundaries to zero!

CSS to keep two DIVs left and right? -

स्रोत है: & lt; आलेख & gt; & Lt; div वर्ग = "फ़ील्ड फ़ील्ड-नेम-बॉडी फ़ील्ड-प्रकार-पाठ-के-साथ-फ़ील्ड-लेबल-छिपा हुआ" & gt; & Lt; div वर्ग = "फ़ील्ड-आइटम" & gt; & Lt; div class = "field-item even" property = "content: एन्कोडेड" & gt; LEFT पर पाठ & lt; / div & gt; & Lt; / div & gt; & Lt; / div & gt; & Lt; div वर्ग = "फ़ील्ड क्षेत्र-नाम-फ़ील्ड-छवि फ़ील्ड-प्रकार-छवि फ़ील्ड-लेबल-छिपा हुआ" & gt; & Lt; div वर्ग = "फ़ील्ड-आइटम" & gt; & Lt; div class = "field-item even" & gt; & Lt; img src = "right.jpg" alt = "दाएं पर" / & gt; & Lt; / div & gt; & Lt; / div & gt; & Lt; / div & gt; & Lt; / लेख & gt; दो डीआईवी को देखने के लिए सीएसएस कैसे बदल सकता हूँ? + ------------- - + -------- + | पाठ पर LEFT | #### | | | #### | | | #### | | | | | | | + -------------- + -------- + i.e। अद्...

How do I protect static files with ASP.NET form authentication on IIS 7.5? -

I have running on a shared host on ASP.NET 4.0 on IIS 7.5 server, but in full confidence. The site is an original "file browser" that allows visitors to login and display a list of available files for them, and of course, download files static files (mostly PDF files) Are located in a sub folder on a site called, e.g. ... The site uses ASP.NET form authentication. My question is: How do I obtain the ASP.NET engine to handle requests for static files in the data folder, so that requests for files can be authenticated by ASP.NET, and users Not able to have a file and grab links to grab files from them? Regards, Egil. Text after "div class =" itemprop = "text"> If you are running the application pool in integrated mode, you can do the following. Add the following to your top-level web.config. & lt; System.webServer & gt; & Lt; Module & gt; & Lt; Add name = "FormsAuthenticationModule" type = "System.We...

ruby on rails - Wicked PDF RuntimeError -

I have installed malicious PDF rail 4, and now I have this problem: runtime error clients controller # show [show] error: failed to execute: [ "C: / Program Files / wkhtmltopdf / bin / wkhtmltopdf.exe", "--footer-center", "Center", "footer-left", "left", "-pakr-right", "right", "file: // C: / users / Rasheed / Aepdata / local / theme / Viwadit_peedif20l4l0l7-9664-l8 xoryq. Html "," c: / user / rashid / appadata / local / theme / disputed_pdf _Janetted_file20141017-9664-zo89le.pdf "] Error: PDF could not be generated! Command Error: Page Loading (1/6) [>] 0% [======>] 10% Error: Failed to load page file: // c / Users / Rashid / AppData / Local / Temp / wicked_pdf20141017-9664 -18xoryq.html (sometimes to ignore the error with error - will work to avoid load-error-management) network error Exit reason code 1: ContentNotFoundError def Show Response_to do | Format | Format.html forma...

java - Update data to file each amount of bytes -

Image
I want to write my content data in every 10kb file in a file. It looks like: Whatever I tried: The file is intestust; FileOutputStream Out; File input = new file (file path); Int fileLength = input.length (); Int len ​​= 0; While (Lennon & lt; fileLength) {len + = Reed (bref); // Write out your data. Write (data, 0, data length); // How to proceed Next 10kb is to read ??? } I wonder if there is no way to move the cursor to the next volume of the bytes? Update : Thank you for @hhought , here's my implementation: file input = new file ( file path); Long file length = input.length (); Byte [] data; Byte [] buff = new byte [data.line]; Long JUMP_LENGTH = 10 * 1024; RandomAccessFile RF = New RandomAccessFile (Input, "RW"); Long step = JUMP_LENGTH + data Length; For (long I = 0; i & lt; file length; i + = phase) {// read in Buffer RF.Sec (i); Raf.read (fond); Raf.seek (i); // Make sure that it is moved to correct the location after writing RF. Write ...

database migration - grails dbm-gorm-diff is updating db -

I am using grails database-migration to update my production db, but it offers a strange behavior is. I went to dbm-gorm-diff and it seems to work fine, but for some reason I'm updating without using 'dbm-update' or updating my file db or if it is deployed in war file is applied. That which I have felt so far, it seems that there is something to trigger an update on any Operation DB on the Prod environment. And I did not know what to do. Have you set up data-> db-create to?