Saturday, November 30, 2013

Re: [android-developers] testing app from PC on attached phone

I finally got the adb to recognize my old Experia, after I made sure the USB debugging was turned on.  The new Experia doesn't seem to have that option available or any other Development options.  I will have to talk to Sony support about that.


On Fri, Nov 29, 2013 at 9:46 AM, Kostya Vasilyev <kmansoft@gmail.com> wrote:
Not in any particular order:

- You need drivers.

Sony Ericsson makes their adb drivers available in the Windows Driver Download center (or whatever it's called), but not every manufacturer does this. For those, you'll need to either install their own (manufacturer specific, and potentially device specific) drivers, or get the generic Google's adb driver and hack its UPNP IDs before installing.

- The adb debugging setting should be enabled (checked) on your non-virtual devices (system settings -> developer options).

- Some manufacturers / devices seem to require an entry in adb_usb.ini, or you'll get "permission denied".

-  Android 4.2 and higher requires an on-device confirmation before it allows adb connections.

- I'd recommend trying to get "adb devices" to work first, before jumping into Eclipse.

-- K

On Friday, November 29, 2013 8:27:44 PM UTC+4, peter gottlieb wrote:
I'm not sure what you mean by a response from ADB.  I can debug from Eclipse on the virtual device, but Eclipse android plug in won't even recognize the hardware phone.


On Fri, Nov 29, 2013 at 8:11 AM, Kristopher Micinski <krismi...@gmail.com> wrote:
Can you get any response from ADB?

Kris



On Fri, Nov 29, 2013 at 10:52 AM, peter gottlieb <gottl...@gmail.com> wrote:
Bad guess.  I clearly stated that the windows 7 setup had already worked with the Sony Erickson, but now doesn't.  For all PC-phone interactions (browse files on the phone from the PC, update phone software from the PC, etc) the connections work perfectly fine.  Only the Eclipse connection from the PC has the problem.  My only thought is a virus, but I have run Norton, and everything seems fine.  It could be some new virus that only effects certain software.   As a last resort I will try to get Norton assistance.


On Fri, Nov 29, 2013 at 1:05 AM, TreKing <treki...@gmail.com> wrote:

On Fri, Nov 29, 2013 at 12:45 AM, peter gottlieb <gottl...@gmail.com> wrote:

The windows 7 has worked in the past, but doesn't work now.  The windows 8 setup hasn't been used for this purpose before.  I have made sure to set debug = "true" in the manifest, and that the phones (a new Sony Xperia, and an old Sony-Erickson Xperia) are set to accept apps from non-verified sources.  I cannot get either phone to show up as a connected Android device chooser.


Does anyone have any idea what could be wrong?  


First guess would be you haven't installed the proper drivers.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-d...@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Android Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/ESKcfB1nTiU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-developers+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-d...@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-d...@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Android Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/ESKcfB1nTiU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Android Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/ESKcfB1nTiU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

[android-developers] Re: Immersive mode instructions reappear randomly

I'm able to consistently reproduce the issue and I've filed a bug here: https://code.google.com/p/android/issues/detail?id=63065

A sample app that demonstrates the bug is available here: https://github.com/niko001/com.greatbytes.immersivebug/


Am Montag, 25. November 2013 18:04:18 UTC+1 schrieb niko001:
Thanks, Bob! I've tried using a different View and calling setSystemUiVisibility() in onWindowFocusChanged(), but the problem stays the same :-/!


On Monday, November 25, 2013 4:43:13 PM UTC+1, b0b wrote:
I use immersive mode and doesn't have the problem you describe.

But I'm not calling setSystemUiVisibility() on the decor View but on a subclassed View (a ViewPager in my case) pretty much following
the "System UI Visibility" Kitkat API Demo  sample.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

[android-developers] Assets folder location

Eclipse generates an assets folder in the project structure.  Where is (or how do I create one that is recognized by the build) is this folder supposed to go?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

[android-developers] Suggestion for next release of Android Studio

Double clicking on a class (and everything else) brings the class into the edit area but does not bring it into the active edit screen.  The tab needs to be clicked to bring it into focus.  Please bring it into focus using the double-click - like Eclipse allows.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Re: python virtual environment

you need to activate the virtualenv before using:
on windows:
env\Scripts\activate
on linux:
source env/bin/activate


On Fri, Nov 29, 2013 at 7:44 PM, tino <tino85@gmail.com> wrote:


Hello

I am trying to run a project that was setup in another server, but getting the following error. I am using python 2.7, django, virtualenv. So I am running the project inside a python virtual environment


(virtualenv)[web.srv1 daily# python manage.py runserver 0.0.0.0:8000
Traceback (most recent call last):
  File "manage.py", line 2, in <module>
    from django.core.management import execute_manager
ImportError: cannot import name execute_manager


I used the method mentioned in the below link to setup the virtual environment.

http://toic.org/blog/2011/wsgi-on-cpanel-improved/

This project was setup inside a cpanel server. But the current server I using is not a cpanel server. It is normal centos server.

Can somebody help me to track down the issue.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7181ba64-d2d6-4926-b35d-5b4a2a7792a4%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFWa6tLdD23_Tzyy8QfLbCH8ysxVzkukq_5_ORW5VvbTLRBOLA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Difference between signals and celery

No, you can run celery from the same server, the problem is you won't be able to do that on many cheap shared hostings


On Sat, Nov 30, 2013 at 7:35 PM, Robin Lery <robinlery@gmail.com> wrote:
Thank all so much for you replies. Just one more question though. Does this means Celery needs a different server?


On Sat, Nov 30, 2013 at 12:41 AM, Carlos Daniel Ruvalcaba Valenzuela <clsdaniel@gmail.com> wrote:
Signals are like events, for example, when the ORM has done an update. Celery is more like a Task queue, you define code to execute certain task, load it on celery task server which is running separately from your django process, then when you need to execute it in the background you tell it, which usually means sending a message through a broker such as redis or rabbitmq to the task server, then it gets executed.

Celery is for background tasks, such as processing images, doing updates without blocking the main function return, etc. Also celery task can run in another machine, while signals are executed locally.

Regards,
Carlos Ruvalcaba


On Fri, Nov 29, 2013 at 11:52 AM, Robin Lery <robinlery@gmail.com> wrote:

This may be a lame question, but I am really confused with these two. I know signals are used to do some task when something has happened. But what about celery? In the documentation it says:

Celery is an asynchronous task queue/job queue based on distributed message passing.

Will someone please explain to me of what celery is? What's the difference between these two and when to use them? Will be much appreciated! Thank you.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/62298d12-02ab-4d34-b8f7-2c4c9bace561%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEF3qbkT2tzvHUcqLsTbg_gxY-%2BtdFinn%2BER5F-PdEf_QV-zHg%40mail.gmail.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2B4-nGqoCrLoc7BY0Le-7izz7w0qO9-LWWzMZixjWPt5_ZGqCw%40mail.gmail.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFWa6tL29fSivUpzoT-cYL2qQDFj%2Bv5gmepEN%3DWF0du8SJaJSA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Re: NPAPI

I'm not familiar with Windows 8, but I believe you have to run Chrome outside "metro mode" to get plugins to work.

http://blog.chromium.org/2012/07/npapi-plug-ins-in-windows-8-metro-mode.html

On Friday, November 29, 2013 10:24:24 AM UTC-8, Joshua Zeidner wrote:
Hi Millie,

 I'm experiencing the same problem.  I'm on Windows 8.  Did you find a solution?

-jmz


On Saturday, November 9, 2013 2:48:53 PM UTC-8, Millie Smith wrote:
When I try to install the Chrome plugin for GWT, I get the following text in a popup: "NPAPI plugin is required by this app". All of the NPAPI installs look complicated. Is there an easy way to get this installed?
Also, when I installed the Firefox plugin, Firefox refused to start again without a complete "factory" reset. 

The Internet Explorer plugin works, so I'm developing in IE. 
I don't like IE.
Please stop the torture.

Any suggestions? :)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

3akarat.com - شقة ثلاث غرف وريسبشن للايجار بطنطا

إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .

عقارات دوت كوم
----------------------------------------------------------------------------------------

3akarat.com -

إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .

عقارات دوت كوم
----------------------------------------------------------------------------------------

3akarat.com -

إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .

عقارات دوت كوم
----------------------------------------------------------------------------------------

3akarat.com -

إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .

عقارات دوت كوم
----------------------------------------------------------------------------------------

3akarat.com -

إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .

عقارات دوت كوم
----------------------------------------------------------------------------------------

3akarat.com -

إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .

عقارات دوت كوم
----------------------------------------------------------------------------------------

3akarat.com -

إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .

عقارات دوت كوم
----------------------------------------------------------------------------------------

3akarat.com -

إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .

عقارات دوت كوم
----------------------------------------------------------------------------------------

3akarat.com -

إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .

عقارات دوت كوم
----------------------------------------------------------------------------------------

3akarat.com -

إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .

عقارات دوت كوم
----------------------------------------------------------------------------------------

3akarat.com -

إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .

عقارات دوت كوم
----------------------------------------------------------------------------------------

3akarat.com -

إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .

عقارات دوت كوم
----------------------------------------------------------------------------------------

3akarat.com -

إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .

عقارات دوت كوم
----------------------------------------------------------------------------------------

3akarat.com -

إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .

عقارات دوت كوم
----------------------------------------------------------------------------------------

3akarat.com -

إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .

عقارات دوت كوم
----------------------------------------------------------------------------------------

3akarat.com -

إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .

عقارات دوت كوم
----------------------------------------------------------------------------------------

3akarat.com -

إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .

عقارات دوت كوم
----------------------------------------------------------------------------------------

Re: JsonpRequestBuilder only works across domains?



On Friday, November 29, 2013 9:17:18 PM UTC+1, Magier Marantis wrote:

Am Dienstag, 26. Januar 2010 18:54:43 UTC+1 schrieb Thomas Broyer:

On Jan 26, 12:43 pm, "m.mil...@newelements.de"
<m.mil...@newelements.de> wrote:
> once again, i have to answer the question myself!
> at first: would anyone PLEASE write an guide for using the
> jsonprequestbuilder!!!! it´s damn annoing the find out everything by
> try and error.
>
> about my problem:
> the name of the callback method for the jsonp request changes whith
> every request.
> when you do the first request the name is: __gwt_jsonp__.I0.onSuccess
> for the second request: __gwt_jsonp__.I1.onSuccess
> for the third: __gwt_jsonp__.I2.onSuccess
> ...
>
> that definetly make sense, BUT is nowhere noted in the
> documentation!!!!!
> and - belive it or not - you can see this little change from one
> request to another very hard when you look at a couple of requests.

The javadoc for JsonpRequestBuilder starts with:
"""The server will receive a request including a callback url
parameter, which should be used to return the response as following:

<callback>(<json>);

where <callback> is the url parameter (see setCallbackParam
(String)),"""

It's clear to me that the URL will contain a query string with a
parameter like "callback=fnName" (where 'callback' is the value you
passed to setCallbackParam, and 'fnName' is the <callback>, i.e. the
function name to "call").
It even comes with an example of calling a GData API (with a link to
the GData API documentation that explains what "?alt=json-in-script"
means)

Maybe you should first read some doc about JSON-P, such as
http://en.wikipedia.org/wiki/JSON#JSONP

@Thomas Broyer

Learn2Read!

I'll try, I promise.
 
--------------------------------------------------------------------------------------------

The javadoc for JsonpRequestBuilder starts with:
"""The server will receive a request including a callback url
parameter, which should be used to return the response as following:

<callback>(<json>);

where <callback> is the url parameter (see setCallbackParam
(String)),"""

--------------------------------------------------------------------------------------------

is here anything written, the callback function name has to start with "__gwt_jsonp__.I0.onSuccess"?!


There's nothing about it because there shouldn't be anything about it; it's an implementation detail that you don't need to know as a user of JsonpRequestBuilder, and the server doesn't need to bother about: it should just take the name passed in the URL, whichever it is.

 

In facts, the GWT functions "JsonRequestBuilder" and "RequestBuilder" does only work correctly if u'll use callback function names with the GOOGLE names/patterns!

Or in other words, everybody will say this both functions are incredible buggy just google means this is normal and a feature!


This BUG is described on www.inter-net.de (german), inclusive a gwt jsonp solution for all who dont like to use google function names!

I don't read German so I relied on Google Translate, but nowhere in this article is it explained why this is a problem.

They talk about "standard JSONP", so let's go read what Wikipedia has to say about it: http://en.wikipedia.org/wiki/JSONP

 By convention, the browser provides the name of the callback function as a named query parameter value, typically using the name jsonp or callback as the named query parameter field name, in its request to the server, e.g.,

<script type="application/javascript"          src="http://server2.example.com/Users/1234?jsonp=parseResponse">  </script>  

In this example, the received payload would be:

parseResponse({"Name": "Foo", "Id": 1234, "Rank": 7});

This is exactly what the javadoc says: using setCallbackParam you configure the name of the parameter ("callback", "jsonp" or whatever the server expects), GWT then chooses the value of that parameter and the server si expected to just take that value and use it in the response (when Wikipedia says "the browser provides", it means the JavaScript code; with JsonpRequestBuilder, GWT provides the value and you don't have to care about it).

Now explain to me how this is specific to Google and why this is a bug.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

3akarat.com -

إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .

عقارات دوت كوم
----------------------------------------------------------------------------------------

Twitterboyz, you have 3 pokes and 27 friend requests

facebook
You have new notifications.
A lot has happened on Facebook since you last logged in. Here are some notifications you've missed from your friends.
3 pokes
27 friend requests
View Notifications
Go to Facebook
This message was sent to twitterboyz@gmail.com. If you don't want to receive these emails from Facebook in the future, please unsubscribe.
Facebook, Inc., Attention: Department 415, PO Box 10005, Palo Alto, CA 94303

Finished and Published Tango with Rango Tutorials

Hello, 

I finished the Tango with Rango Tutorials and published the app at amimobenja.pythonanywhere.com/rango/ however it is not working as expected.

Check out the site and review the whole whole code at https://github.com/amimobenja/tango_with_django and recommend any necessary changes. 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4c9c4d03-f868-4d3b-abc7-0fecddd7dd90%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Email Templates and the full website URL

I had the same problem.  Wrote this:

def get_web_server_base_url(request, settings_override_name=None):
    # Allow the value in the settings file to override any computed value.
    url = None
    if settings_override_name:
        url = getattr(settings, settings_override_name, None)
    if not url:
        protocol = request.is_secure() and 'https' or 'http'
        host = request.get_host()
        url = "{0}://{1}".format(protocol, host)
    return url

I didn't know about Site or RequestSite at the time.  Perhaps I could
have used them, but:

1. I wanted the protocol (http, or https) to be correct also.  Would
    RequestSite have done that for me?

2. I wanted to be able to override the hostname with the primary
    name of the server (via an entry in settings.py) even if the request
    was sent to a secondary name or the IP address of the server.
    I suppose Site would have allowed this, via storing the name in
    the DB, but that seems like more work than a settings.py file,
    especially since I already have convenient mechanism to manage
    different settings.py files when deployed on different servers.

Thoughts?

--Fred
Fred Stluka -- mailto:fred@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.

On 11/29/13 6:09 AM, Vibhu Rishi wrote:
Thanks for the links. I had done the google searches and gone through them, but they seemed to me a lot of work to get something simple.

I finally did the following. Any comments welcome if this is not a good way to do.

In my view, I pass a context object of the request to the email template. I need the request as i also want to put in the user's name.

in the email template now I changed it to :
<A href="http://{{request.get_get_host}}{% url "project.views.details" project.id %}">{{ project }}</a>

This seems to be working and quite simple too !

Regards,
Vibhu




On Fri, Nov 29, 2013 at 4:26 PM, Rafael E. Ferrero <rafael.ferrero@gmail.com> wrote:


2013/11/29 Vibhu Rishi <vibhu.rishi@gmail.com>
hi,

I have a setup where I have a project details page, and I can do a "send email" which should send the email with the URL.

Email is working fine.

The problem is that i am getting a relative url in the tempalte

I have the following in the html email template :
<A href="{% url "project.views.details" project.id %}">{{ project }}</a>

This give me a URL in the email as /projects/1 ( 1 being the project id)

How do i prepend the url of the server here ? e.g. I want this to be http://localhost:8000/projects/1

Vibhu

--
Simplicity is the ultimate sophistication. - Leonardo da Vinci
Life is really simple, but we insist on making it complicated. - Confucius
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPiONwn6cHwi51fJ63oFUOLof2QmFqsSeqz2VeOM_Jxk%2BaUYGQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Rafael E. Ferrero
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJJc_8WWUyfwYd1cjxNzvm0xe5LjUTNDjPGDnYaaxE9w3B1C-g%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Simplicity is the ultimate sophistication. - Leonardo da Vinci
Life is really simple, but we insist on making it complicated. - Confucius
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPiONw%3D7Uh9uReNyCCzhGb%3D09WHCzY9rSPp9mYn_eJRsHwmNpw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

3akarat.com - شقة مفروشة حدائق حلوان

إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .

عقارات دوت كوم
----------------------------------------------------------------------------------------

3akarat.com - شقة بحدائق حلوان للايجارعيادة دكتور أو بيوتى سنتر

إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .

عقارات دوت كوم
----------------------------------------------------------------------------------------

Re: [Rails] Form data not uploading to sqlite database

On 29 November 2013 22:18, Ankur Kumar <specialankur@gmail.com> wrote:
>
> Hi,
>
> I created a simple form using form_for and partials. When I enter a value in
> text field and click on add button, the data doesn't get uploaded in
> database table.

Can I suggest that you work right through a good tutorial such as
railstutorial.org (which is free to use online). That will show you
the basics of rails so that you will be able to answer simple
questions yourself.

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLu_UQSRoeVopJA%3DF8m%2B%3DJDc8O2RRbGY93DS9G43AucqEw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

3akarat.com - لعشاق الاسكندرية

إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .

عقارات دوت كوم
----------------------------------------------------------------------------------------

Re: [Rails] Re: Form data not uploading to sqlite database


Hi Frederick,

If I change the path to tasks_path, I get the following error while navigating on to the page which has this form. If I keep task_path, navigation works fine. 

    undefined local variable or method `tasks_path' for #<#<Class:0xa3de690>:0xb550f644>
I don't see any error in development.log when I click on the Add button. the page re-loads as expected because of "task_path" url but data doesn't persist. 

Trace:

    Started POST "/task" for 127.0.0.1 at 2013-11-30 15:11:15 +0530
    Processing by HomeLoginController#task as HTML
      Parameters: {"utf8"=>"✓", "authenticity_token"=>"wXpiPiPabBjOBN1iqF/Hj4z81y3RCcSj/gRSpWFuIC0=", "task"=>{"name"=>"eeff"}, "commit"=>"Add"}
      ^[[1m^[[36mUser Load (0.2ms)^[[0m  ^[[1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1^[[0m
      ^[[1m^[[35mTask Load (0.2ms)^[[0m  SELECT "tasks".* FROM "tasks"
      Rendered home_login/_job_form.html.erb (1.2ms)
      Rendered home_login/task.html.erb within layouts/application (67.2ms)
    Completed 200 OK in 97.6ms (Views: 93.5ms | ActiveRecord: 0.4ms)

Also, I missed adding create action in controller earlier, have added it now:

        def create
Task.create params[:task]
redirect_to :back
end

Thanks. 

--
Regards,
Ankur 



On Sat, Nov 30, 2013 at 3:09 PM, Frederick Cheung <frederick.cheung@gmail.com> wrote:


On Friday, November 29, 2013 10:18:26 PM UTC, Ankur wrote:

I have done db migration and db schema exists for table but "select * from tasks" doesn't return any rows and therefore UI doesn't show any form data. Can someone please help me debug this issue? 


So what does happen when you click on the form's button ? Did you look at your application logs / server output? At first glance you're posting to the wrong url - to create a new task you post to tasks_path where you have forced the url to task_path (which would be appropriate for updating an existing task).

Fred

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/46cf8fba-f24b-4eec-896c-b87e5ee4bca8%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CALSL1eNC5VxTzMzRH8B7yM98LaMWekRaSJmK36g_5uq0e4-NzQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

3akarat.com - فرصة استثمار بمدينة هليوبليس الجديدة

إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .

عقارات دوت كوم
----------------------------------------------------------------------------------------

[Rails] Re: Form data not uploading to sqlite database



On Friday, November 29, 2013 10:18:26 PM UTC, Ankur wrote:

I have done db migration and db schema exists for table but "select * from tasks" doesn't return any rows and therefore UI doesn't show any form data. Can someone please help me debug this issue? 


So what does happen when you click on the form's button ? Did you look at your application logs / server output? At first glance you're posting to the wrong url - to create a new task you post to tasks_path where you have forced the url to task_path (which would be appropriate for updating an existing task).

Fred

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/46cf8fba-f24b-4eec-896c-b87e5ee4bca8%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

(GugukluhayaT) 05-Ankara; sağır, kör ve dilsizi oynuyor..


Ankara; sağır, kör ve dilsizi oynuyor..

29/11/2013 - 11:12:18

Terör örgütü PKK’nın kuruluşunun 35.yıldönümünde sokağa çıkan bölücüler molotof bombalarıyla ortalığı adeta cehenneme çevirirken, yolları kesip, araçları ararken, kimlik kontrolü yapıp, slogan atarken, güvenlik güçleri ortalarda yoktu!

İstanbul, Diyarbakır, Mardin...

İmralI canisinin taraftarları, sadece Doğu ve Güneydoğu Anadolu’da değil, başta İstanbul ve Ankara olmak üzere Türkiye’nin birçok kentinde, bölücü terör örgütü PKK’nın 35.kuruluş yıldönümünü törenlerle(!) kutladı.
Bebek katili Apo’nun ve Mehmetçikle girdikleri çatışmalarda ölen teröristlerin posterleri taşındı.
Örgütün paçavraları bayrak diye direklere çekildi, molotof bombalarıyla ortalık cehenneme çevrildi.

İhanet yuvası müze olacak

DİYARBAKIR’ın Lice ilçesine bağlı Fis köyünde PKK’nın kuruluş yıldönümü kutlamalarına(!) katılan BDP Diyarbakır Milletvekili Nursel Aydoğan, örgütün kuruluşunun ilan edildiği evi barış süreci olumlu bittikten sonra müzeye çevireceklerini söyledi.
Kürt halkının diriliş bayramını kutladığını ilan eden Aydoğan, "Bu bayramı Kürt halkına yaşatan PKK lideri Abdullah Öcalan’a da binlerce selam olsun" diye haykırdı.

Bu ara, birlik ruhunu teminle meşgullermiş!

Yüksek Askeri Şura toplantıları başladı.
Başbakan Tayyip Erdoğan ve Genelkurmay Başkanı Necdet Özel, Anıtkabir’i ziyaret etti.
Erdoğan, Anıtkabir Özel Defteri’ne şunları yazdı: 81 vilayetimiz ve 76 milyon insanımızın tamamını içine alacak huzur, kardeşlik ve birlik ruhunu tesis etmenin, güçlendirmenin çabası içindeyiz.
Türk Silahlı Kuvvetlerimize her zaman olduğu gibi bu süreçte de çok önemli görevler düşmektedir.

Meydanı boş bulan hainler gösteri yaptı

Kuruluşunun 35’inci yılını BDP’li milletvekili ve yöneticilerin de katılımıyla kutlayan PKK, yol kesip araçları aradı, kimlik kontrolü yaptı.

PKK’nın kuruluş yıldönümü bahanesiyle sokaklara dökülen terör örgütü yandaşları, güvenlik güçlerinin hiçbir müdahalesiyle karşılaşmadan gövde gösterisi yaptı.
Şırnak’ta, terör örgütü PKK’nın kuruluş yıldönümünü kutlamak isteyen yüzleri kapalı grup, araçları durdurup kimlik kontrolü yaptı ardından molotof bombalarıyla çevreye zarar verdiler.
Bir TOMA’nın da olaylar sırasında atılan bir molotof nedeniyle tutuştuğu belirtildi.
Terör örgütü yandaşları ve ABD’nin desteğiyle önceki akşam saatlerinde Ankara Tuzluçayır’da ‘Gençlik Meclisi Konseri’ adı altında bir tür etkinlik gerçekleştirildi.
Bu arada 100 kişilik bir grubun da yolu trafiğe kapattığı ifade edildi.
Ateş yakarak halaylar çeken grup Türkçe ve Kürtçe yasadışı dövizler açtığı belirtildi.
Gösteri yapan bir grubun, molotof bombalarıyla banka ve otobüs duraklarına zarar verdiği kaydedildi.
BDP Diyarbakır İl Başkanlığı da terör örgütünün 35’inci kuruluş yıldönümü bahanesiyle örgütün Lice İlçesi Fis Köyü’nde kurulduğu ve Abdullah Öcalan’ın da katıldığı sözde ilk kongresini yaptığı evde, kuruluş yıldönü mü kutlaması düzenledi.
Fis Köyü’nde PKK’nın kurulduğu ev önünde toplanan kalabalık, bebek katili Abdullah Öcalan ve PKK lehine sloganlar atılırken, eve Öcalan, Mazlum Doğan ile Paris’te öldürülen Sakine Cansız, Fidan Doğan ve Leyla Şaylemez’in fotoğrafları asıldı.
Evin önünde müzik grupları şarkılar söyledi.

Güvenlik güçleri yoktu

PKK’nın kurulduğu belirtilen Fis Ovası’nda terör örgütü KCK bünyesinde yer alan bütün oluşumların paçavraları yıllardan sonra bir arada açıldı.
Miting bölgesinde polis ve jandarmanın, güvenlik gücünün olmaması dikkat çekti.
Lice’de PKK’nın kuruluş yıldönümü kutlamalarına katılan BDP Diyarbakır Milletvekili Nursel Aydoğan da örgütün kuruluşunun ilan edildiği evi barış süreci olumlu bittikten sonra müzeye çevireceklerini söyledi.
Kürt halkının diriliş bayramını kutladığını iddia eden Aydoğan, "Bu bayramı Kürt halkına yaşatan PKK lideri Abdullah Öcalan’a da binlerce selam olsun" dedi.
İstanbul ve Mardin’de de benzer görüntüler yaşandı.
Bu arada Bingöl-Diyarbakır yolunu trafiğe kapatan yüzü kapalı bazı örgüt mensupları, Diyarbakır’a odun taşıyan bir kamyonu gasp etti.
Örgüt mensupları şoförü indirdikten sonra kamyona yüküyle birlikte el koydu.
Kamyonu tali yoldan mitinge yakın bir bölgeye getiren örgüt mensupları şoförü indirip uzaklaştırdı.
Gasp edilen odunların PKK kutlamasında yakıldığı öğrenildi.

Müzeyi Öcalan’la birlikte açsınlar

CHP Grup Başkanvekili Muharrem İnce, PKK’nın kurulduğu evde yapılan gösterilerde ve söylenen sözlere tepki gösterdi.
İnce, "Diyarbakır’ın Lice ilçesinin Fis Köyü’nde PKK’nın kurulduğu evde gösteriler yaptılar.
BDP Diyarbakır Milletvekili Nursel Aydoğan, ’Barış süreci olumlu bittikten sonra müzeye çevireceğiz’dedi.
Bence bu müzenin açılışını da Abdullah Öcalan, Mesud Barzani ve Tayyip Erdoğan beraber yapsınlar"
dedi.

Karayılan: Direniş başarıya ulaşacak

Kandil’de yuvalanan terör örgütünün elebaşılarından Murat Karayılan, PKK’nın kuruluş yıl dönümü nedeniyle düzenlenen törende konuştu.
Karayılan, "Demokratik, barışçıl yol ve yöntemlerle, direnişçi yöntemlerle PKK’nin kutsal direnişi başarıya ulaşacaktır" dedi.
Törer örgütü elebaşılarından Karayılan, "Özgür Kürdistan sağlanana kadar mücadeleniz sahipsiz kalmayacak ve mutlaka kazanacaktır" ifadelerini kullandı.
Karayılan, şöyle devam etti: "Şimdi PKK’nin 36’ncı yılına giriyoruz.
PKK’nin 36’ncı yılı çok önemli bir aşamadır.
Bugün Kürdistan’da, Rojava Kürdistanı’nda savaş var.
Orta Doğu’da savaş var.
Önder Apo’nun demokratik çözüm amacıyla başlattığı süreç tıkanma aşamasına gelmiş bulunsa da Doğu ve Batı Kürdistan’da, Kuzey ve Güney Kürdistan’da Kürt halkı büyük bir umutla geleceğe bakıyor.
Bunun örneği Rojava Kürdistanı’nda sergilenen direnişte gösterilmektedir.
Bugün her zamankinden daha fazla halkımızın ve bölge halklarının savunmaya ve özgürlük gerillalarına duyduğu ihtiyaç açığa çıkmıştır"

General ve amiralleri "gençleştirme" şurası

Yüksek Askeri Şura (YAŞ) toplantısı Başbakan Tayyip Erdoğan başkanlığında Genelkurmay Başkanlığı Karargahı’nda başladı.
Şura üyelerinin, üzerinde "YAŞ üyeleri" yazan kırmızı ve beyaz karanfillerden oluşan çelengi Atatürk’ün mozolesine bırakmasının ardından saygı duruşunda bulunuldu.
Heyet, Misak-ı Milli Kulesi’ne geçerek burada Anıtkabir Özel Defteri’ni imzaladı.
Erdoğan, deftere şu ifadeleri yazdı:

"Kardeşlik" vurgusu!

"2013 yılı YAŞ Kış Dönemi çalışmaları vesilesiyle, Kurtuluş Savaşımızın Başkomutanı, Cumhuriyetimizin kurucusu Gazi Mustafa Kemal’i bir kez daha minnetle anıyoruz.
Bir yandan maddi kalkınmamızın temel unsuru olan altyapıyı oluştururken, bir yandan da 81 vilayetimiz ve 76 milyon insanımızın tamamını içine alacak huzur, kardeşlik ve birlik ruhunu tesis etmenin, güçlendirmenin çabası içindeyiz.
2023 yılına her bakımdan güçlü bir ülke olarak ulaşacağımıza, çocuklarımıza büyük Türkiye’yi miras bırakacağımıza yürekten inanıyoruz.
Binlerce yıllık bir geleneğin bugünkü temsilcisi olan Silahlı Kuvvetlerimizi, donanımı, insan gücü ve moraliyle en ileri seviyelere ulaştırmak için üzerimize düşen her şeyi yapıyoruz, yapmaya devam edeceğiz.
Şura’nın ülkemize, milletimize, Türk Silahlı Kuvvetlerimize hayırlı olmasını diliyor, şehitlerimizi rahmetle, kahraman gazilerimizi şükranla anıyoruz"

Toplantıda, TSK’daki "gençleşme operasyonu" konusu da gündeme gelecek.
Yapılması düşünülen yasal değişiklik ile albay, general ve amirallerin rütbe bekleme sürelerinin birer yıl azalması planlanıyor.
Böylece general ve amiraller 5 yıl gençleşecek, 56 yaşında Genelkurmay Başkanı olunabilecek.
Taslağa göre, general ve amirallerin 4 yıl olan rütbe bekleme süreleri 3’e, 5 yıl olan albay bekleme süresi de 4 yıla inecek.
Böylece tuğ, tüm, kor ve orgeneralliğe 5 yıl erken terfi edilecek.

Terör kurbanı toprağa verildi

17 Kasım’da Adana’da belediye otobüsüne yönelik taşlı saldırı sonucu yaralanan ve tedavi gördüğü hastanede hayatını kaybeden şoför Ali Köse için Büyükşehir Belediyesi Otobüs İşletme Müdürlüğü’nde düzenlenen törene, Köse’nin nişanlısı Tansuğ Sır, babası Mahmut Köse ve yakınları ile Büyükşehir Belediye Başkan Vekili Zihni Aldırmaz ve mesai arkadaşları katıldı.
Belediye otobüs şoförü Sevim Kaya’nın, "Hoşça kal Ali’m.
Ben anne oldum, yüreğimi alıp gittin.
Ben kardeş oldum, yüreğime köz koyup gittin.
Ben sevgili oldum, hayallerimi alıp gittin.
Ben arkadaş oldum, gözümde yaş koyup gittin"
dizeleriyle Köse için yazdığı şiiri okuması, törendekileri duygulandırdı.
Daha sonra Kürkçüler Mezarlığı’na götürülen Köse’nin cenazesi, burada kılınan cenaze namazının ardından toprağa verildi.

 

http://www.yg.yenicaggazetesi.com.tr/habergoster.php?haber=91629

 


a45UyF587661-201307301451-05

  ^^^^^ - vvvvv

 

zaryop:jaro
Yakinlarina yardimi birakan, dusmanlarina yardim etmis olur.

Hz.Ali
- - - - - - - - - - - - - - - - - - - - - - - -
Kurmus oldugum gruba uye olun
Moderasyonsuz, sansursuz ve ozgur bir gruptur:
Ozgur_Gundem-subscribe@yahoogroups.com
Ayrilmak isterseniz de :
Ozgur_Gundem-unsubscribe@yahoogroups.com
Grup Sayfamız :
http://groups.yahoo.com/group/Ozgur_Gundem/
Arzu ederseniz bloguma da goz atabilirsiniz.
http://orajpoyraz.blogspot.com/



Real Estate