Posts

Convert Python List to JSON Separate Objects -

मेरे पास Python में एक स्ट्रिंग है [वॉल्यूम: वॉल-XXXXXXXX, वॉल्यूम: Vol-YYYYYYYY] कि मैं JSON में परिवर्तित करना चाहता हूँ। अंतिम परिणाम होना चाहिए {वॉल्यूम: ["वॉल्यूम: वॉल- XXXXXXXX", "वॉल्यूम: वॉल- YYYYYYYY"]}; मैंने कोशिश की इसे बदलने के बाद json.dumps का प्रयोग करें, लेकिन किसी कारण से यह काम नहीं करता है। मैं इस तरह कुछ कैसे करूँ? हूप्स! "सूची" मैं वास्तव में एक स्ट्रिंग के बारे में बात कर रहा था: | लगता है मैं एक डाउनवॉटी तूफान के साथ अपने सबक सीखा! इसे आज़माएं: मात्रा = ["वॉल्यूम: वॉल- XXXXXXXX "," वॉल्यूम: वॉल- YYYYYYYY "] json.dumps ({" वॉल्यूम ": संस्करण})

sql - How to delete rows from 3 tables based on a specific value in one table -

इस सवाल का पहले से ही एक उत्तर है: 5 जवाब हेलो लोग, मेरे पास 3 तालिकाओं हैं ए , बी , सी । मेरे पास तालिका ए पंक्तियाँ जिनकी कॉलम ' दिनांक 'का मूल्य' 2000-1-1 'है। मैं पर आधारित 3 तालिकाओं की पंक्तियों को हटाना चाहता हूं जहां A.date = '2000-1-1' । एआईडी = बीआईडी ​​ पर कुछ भी तालिकाओं के बीच जुड़ने का प्रकार। आप 3 टेबल के विरूद्ध एकल हटाएं कथन जारी नहीं कर सकते, लेकिन आप 3 एक लेन-देन में 3 विभिन्न तालिकाओं के विरूद्ध वक्तव्य हटाएं टैब में से प्रस्थान हटाएं जहां मौजूद है (तालिका 1 एक्स से तालिका 1 जहां टैबिल_ए.आईडी = X.ID) टेबलाब से हटा दिया गया है (जहां से तालिका 1 एक्स से तालिका 1 = X. आईडी) TABLE_C से हटाएं जहां मौजूद है (तालिका 1 एक्स से कहाँ चुनें TABLE_C.ID = X.ID) COMMIT हस्तांतरण;

html - Java: Reading from a URL produces gibberish -

Image
So I'm trying to read html code from kickass.to (it works fine on other sites), But all I got is some weird gossip my code: BufferedReader = new BufferedReader (New InputStreamReader (New URL ("http://kickass.to/") .openstream ())); String s = ""; While ((s = in.readLine ()) = null) System.out.println (s); In.close (); For example: Does anyone know Why does that make it? Thanks! The problem here is a server that is probably not correctly configured, because it's its The response gives gzip compressed, even if the client does not send a approved-encoding: gzip header. So what you see is the compressed version of the page. To decompress it, pass it through one: BufferedReader = new BufferedReader (new InputStreamReader (new GZIPInputStream (new URL ("http://kickass.to/"). Openstream ())));

html - Position divs as follow without float -

Image
मेरे पास एक वेब पेज है जो इस तरह दिखता है: मैं जानना चाहूंगा कि क्या 2 बाह्य divs के लिए अलग मार्जिन-टॉप मान संभव है। फिलहाल, मैं मार्जिन सेट करता हूं: एक्स% या मार्जिन: [वैल्यू] पीएक्स दोनों बाहरी डिवा को मार्जिन से मान मिलेगा। मैं इसे केवल एक ही सेट को प्रभावित करने के लिए चाहूंगा। मैं फ्लोट के बिना उल्लेख करता हूं क्योंकि मुझे फ़्लोट और मार्जिन / चौड़ाई वाली संपत्तियों में समस्या थी, लेकिन अगर आप फ्लोट का उपयोग करते हुए उचित समाधान के साथ आ सकते हैं, तो 'मेरी नाव फ्लोट करूँगा :) बहुत बहुत धन्यवाद मैं जिस तरह से एक सीएसएस नौसिखिया हूँ तो मुझ पर आसान हो क्या आप ऐसा कुछ मतलब है? html & lt; div class = "container" & gt; & Lt; div वर्ग = "एएए" & gt; पहला & lt; / div & gt; & Lt; div वर्ग = "बीबीबी" & gt; दूसरा & lt; / div & gt; & Lt; div वर्ग = "सीसीसी" & gt; तीसरा & lt; / div & gt; & Lt; / div & gt; & Lt; div वर्ग = "कंटेनर" & gt; ...

google apps script - How can a calendar refresh/reload after a event was changed? -

I'm changing an event using the Calendar app script, but it seems that only after a random time on the calendar UI Appears, from seconds to minutes setHidden ( right); Cal.setHidden (wrong); Cal.setSelected (incorrect); Cal.setSelected (true); CalendarApp.setHidden (true); CalendarApp.setHidden (wrong); CalendarApp.setSelected (incorrect); CalendarApp.setSelected (true); But I still have inconsistent results Calendar service And the Calendar Browser Ui are two different things, they have no relation except to be connected to their same source (calendar itself), there is no script to interact with the Calendar UI ... You can see the "More" menu under You can use the Fresh Button in the upper right corner of the Calendar u, but all you can do.

smtp - how to pass folder that contains whitesapce to RCTP to -

मैंने आरसीटीपी जैसे एलएमटीपी आदेश का प्रयोग किया: "uid + folder @ domain"। डिलीवर सफलतापूर्वक सफल होता है जब मैं बिना फ़ोल्डर के किसी भी सफेद स्थान के उपयोग करता हूं आरसीटीपी को: & lt; test+test@test.com "& gt; लेकिन मुझे" प्राप्तकर्ता पते में 500 5.5.2 सिंटैक्स त्रुटि मिलती है " जब मैं फ़ोल्डर का परीक्षण करता हूं (टेस्ट टेस्ट) में सफेद स्थान होता है। आरसीटीपी को: & lt; test + test test@test.com "& gt; कृपया मदद करें।

python - Django - urls.py in project, and url.py in app -

I'm trying to redirect the form action to another page, however, I'm not familiar with the Django framework Am I went through the election tutorial The current urls.py: django.conf.urls import pattern in my project includes, include, django.contrib Import Admin from WebApp Import View URL StripCal import ideas from admin.autodiscover () Urlpatterns = Pattern (', URL (r' ^ admin / ', (admin.site.urls)), are included in the URL (r' ^ webapp / 'included (' WebApp.urls', namespace = "WebApp") ), URL (r '^ stripcal /' is included ('StripCal.urls', name space = "StripCal")),) my url.py is in stripcal application: from django.conf. URL import patterns include, StripCal import ideas urlpatterns = patterns from django.contrib import admin ('URL' ('r' ^ ', views.index, name =' url from index '), url (r' ^ run ' , Views.detail, name = 'detail'),) when I type http://127.0...