‏إظهار الرسائل ذات التسميات screen. إظهار كافة الرسائل
‏إظهار الرسائل ذات التسميات screen. إظهار كافة الرسائل

الأحد، 5 يناير 2014

Media screen query not working in iPhone

It looks like you simply have to put the iPhone-5 rule below the iPhone-4 one. Otherwise the css iPhone-4 rule with override the iPhone-5 one by your max-width definition. You have them backwards right now.

And don't use !important here, it will likely mess up the cascading styles. If you have !important on your iphone 4 rule that's overriding the one you have here even in the right 4 then 5 order.

And are you sure that you have your meta viewport set in the ?

To address the pixel density you need to make sure you have:


View the original article here

Is there a way to get a div to stretch to exactly the bottom of the screen?

We'r trying to get the top content of our website home page to fill the height of the screen, so that's all users see when they first pull up our site. Much like what Dropbox does. However, I've tried EVERYTHING, and can't seem to get it to work. You still see content below it.

Anyone have any advice? Our site is www.yourlifewall.com. Thank you!


View the original article here

الثلاثاء، 24 ديسمبر 2013

nohup vs screen -- which is better for long running process?

Background: I have a long running script that makes database schema changes that has output I would want to check after the migration. I would want to write this to a file.

I have been reading stack overflow about nohup and screen. I have tried both and have concerns about both.

IN: How to run process as background and never die?

They said they used nohup and putty killed the process. How is this possible? I have been unable to replicate using Mac OS X terminal.

With screen I am terrified of typing exit instead of ctrl + a, d

Also If I just quit the terminal app when using screen, it seems to preserve the state.

Screen seems to be the better solution because it is really nifty how you can have a bunch of them open and switch back to the state.

What would you recommend in my situation? I don't have the run the script for another month or so (When I have a release). Should I become more comfortable with screen and just stick with that?


View the original article here

Resume to SurfaceView shows black screen

The answer depends on how you change to the other activity.

Basically, you have to think about how to store the current state of the surface when the activity pauses, stops or destroys.

for example you can overload onSaveInstanceState in your activity to save degreUP and degreDOWN (by the way they are not defined in the current code snippet). and restore them in onRestoreInstanceState. see How do I save an Android application's state?


View the original article here