All Tickets

Priority
Status
Type
Category
Anonymous
asked 3 years, 6 months ago
Views 280
Views 280

Is it possible to call a constructor from another (within the same class, not from a subclass)? If yes how? …

Java
Low
Question
Closed
Anonymous
asked 3 years, 6 months ago
Views 245
Views 245

How can I find the number of cores available to my application from within Java code?

Java
Low
Question
Closed
Unknown
asked 3 years, 6 months ago
Views 241
Views 241

How do I remove an element from a list by index in Python?

I found the list.remove method, but say …

Python
Low
Question
Closed
Unknown
asked 3 years, 6 months ago
Views 223
Views 223

I have this program that calculates the time taken to answer a specific question, and quits out of the while …

Python
Low
Problem
Closed
Unknown
asked 3 years, 6 months ago
Views 233
Views 233
>>> a=[1,2,3]
>>> a.remove(2)
>>> a
[1, 3]
>>> a=[1,2,3]
>>> del a[1]
>>> a
[1, 3]
>>> a= [1,2,3] …
Python
Low
Question
Closed
Unknown
asked 3 years, 6 months ago
Views 226
Views 226

What's the difference between the list methods append() and extend()?

Python
Low
Question
Closed
Unknown
asked 3 years, 6 months ago
Views 295
Views 295

I  am using Django (version 3.1) and have forgotten both admin username and password. How to reset both?

And is it …

Django
Medium
Problem
Closed
Unknown
asked 3 years, 6 months ago
Views 259
Views 259

Is it possible to temporarily disable constraints in MySQL?

I have two Django models, each with a foreign key to …

MySQL
Low
Question
Closed
Unknown
asked 3 years, 6 months ago
Views 229
Views 229

I  would like to know what are all the possible values for the timezone argument in the Python library pytz. How …

Python
Low
Question
Closed
Unknown
asked 3 years, 6 months ago
Views 210
Views 210

A model change from

standard = models.ManyToManyField(Standard)

to

standard = models.ManyToManyField(Standard, blank=True, null=True)

South schemamigration for this app doesn't recognize …

Django
Medium
Problem
Closed
Unknown
asked 3 years, 6 months ago
Views 295
Views 295

using the Django REST Framework 2.0.

Here is my model class:

class Mission(models.Model):
  assigned_to = models.ForeignKey('auth.User',
                                   related_name='missions_assigned',
                                   blank = True) …
Django
Medium
Problem
Closed
Unknown
asked 3 years, 6 months ago
Views 232
Views 232

I have an array that is initialized like:

Element[] array = {new Element(1), new Element(2), new Element(3)};

I would like …

Java
Low
Question
Closed
Unknown
asked 3 years, 6 months ago
Views 253
Views 253
i += j;

Was just a shortcut for:

i = i + j;

But if we try this:

int i …
Java
Low
Question
Closed
Unknown
asked 3 years, 6 months ago
Views 212
Views 212

I use object != null a lot to avoid NullPointerException.

Is there a good alternative to this?

For example …

Java
Low
Problem
Closed
Unknown
asked 3 years, 6 months ago
Views 204
Views 204

If you have a java.io.InputStream object, how should you process that object and produce a String?

Suppose I have …

Java
Low
Question
Closed
ahmed.hisham87
asked 3 years, 6 months ago
Views 298
Views 298

I am trying to add CSS styling to my html email to be sent so I used `django-inlinecss 0.3.0` 

In …

Django
Medium
Problem
Closed
geekPro
asked 3 years, 6 months ago
Views 453
Views 453
function arrayFromValue(item) {
  return
    [item];
}

arrayFromValue(10); // => ???
Javascript
Low
Problem
Closed
alani25
asked 3 years, 6 months ago
Views 2887
$10
Views 2887

Hi ,

I want to build the multi choice form in Django template . I mean user should able to …

Django
Urgent
Task
Closed
ashutoshmishra333
asked 3 years, 6 months ago
Views 606
Views 606

Hello everyone hope you all doing well.

I need little guidance/help

I want to get all slots between the start …

Django
Medium
Task
Closed
Soudhamini
asked 3 years, 6 months ago
Views 195
Views 195

Hi guys ,

       I face a lot of confusion between margin and padding whem I am trying …

CSS
Low
Question
Closed
sai
asked 3 years, 6 months ago
Views 215
Views 215

Could you please tell me a way in python to open a file for both reading and writing......

Thanks in …

Python
Medium
Question
Closed
Unknown
asked 3 years, 6 months ago
Views 214
Views 214

How do I declare and initialize an array in Java?

Java
Low
Question
Closed
me
asked 3 years, 6 months ago
Views 244
Views 244

Hi,

Is there a video tutorial that is available to follow and do web notifications. I want people who are …

Django
Medium
Question
Closed
bhavanaswvarn
asked 3 years, 6 months ago
Views 632
$10
Views 632

Hi

Could you please provide some examples, script with details level steps ?

My requirement is, I am building an …

Django
Urgent
Question
Closed
sai
asked 3 years, 6 months ago
Views 230
Views 230

For example:

I have a list of tuples like:

data = [(1,2,3), (4,3,6), (7,0,9)]

I want the output as:

[(7, …
Python
Medium
Problem
Closed
sai
asked 3 years, 6 months ago
Views 286
Views 286

I have a file and I want to add some lines to the file without overriding the lines that are …

Python
Medium
Question
Closed
Star
asked 3 years, 6 months ago
Views 203
Views 203

How to Create a Database SQLite , if anyone help , 

SQL
Low
Question
Closed
Jaanvi
asked 3 years, 6 months ago
Views 339
Views 339

What is the difference between these template tags truncate_words, truncatewords_html and truncatechars_html?

Django
Low
Question
Closed
Jaanvi
asked 3 years, 6 months ago
Views 247
Views 247

What is the key difference beween these CSS properties and when to use them?
Thanks in advance!

CSS
Low
Question
Closed
Jaanvi
asked 3 years, 6 months ago
Views 1099
Views 1099

Is there a way to push the footer to the bottom of the page? I don't want to make the …

CSS
Low
Question
Closed
Unknown
asked 3 years, 6 months ago
Views 199
Views 199

I've got a nested loop construct like this:

for (Type type : types) {
    for (Type t : types2) { …
Java
Low
Problem
Closed
Soudhamini
asked 3 years, 6 months ago
Views 232
Views 232

In java,

    I want to delay the execution of thread for 5 sec 

   Is it possible to …

Java
Medium
Task
Closed
sai
asked 3 years, 6 months ago
Views 228
Views 228

Suggest me a way to take list of numbers as input 

Help from anyone will make me solve it more …

Python
Medium
Question
Closed
p789ahm
asked 3 years, 6 months ago
Views 307
$5
Views 307

Hi Guys,

Please share detail level steps to push the django code from local to Heroku server?

As  I am …

Django
High
Task
Closed
Star
asked 3 years, 6 months ago
Views 360
Views 360
could any one explain clearly with examples
Python
Low
Question
Closed
Soudhamini
asked 3 years, 6 months ago
Views 249
Views 249
If I have a table with two columns, how do I specify any other css so that it is applied …
CSS
Low
Question
Closed
sai
asked 3 years, 6 months ago
Views 214
Views 214

I have a list of tuples like

data = [(1,2,3),('soni','ansh','shivika'),('female','male','female')]

Now I want to extract the 2nd element from the …

Python
Medium
Problem
Closed
Anonymous
asked 3 years, 6 months ago
Views 236
Views 236

What is the correct way to write the statement if ($a contains 'are') for below code ??

$a = 'How …
Html
Low
Question
Closed
moazamrana22
asked 3 years, 6 months ago
Views 537
Views 537

Hello! need to ask that, do you guys helps in odoo framework too?

I had created a module in odoo …

Other
Medium
Question
Closed
Anonymous
asked 3 years, 6 months ago
Views 251
Views 251

looking for a string.contains or string.indexof method in Python.

want to do:

if not somestring.contains("blah"):
   continue
Python
Low
Question
Closed
Anonymous
asked 3 years, 6 months ago
Views 218
Views 218

I have two Python dictionaries, and I want to write a single expression that returns these two dictionaries, merged (i.e. …

Python
Low
Question
Closed
Anonymous
asked 3 years, 6 months ago
Views 263
Views 263

problem with deleting empty directories. Here is the code:

for dirpath, dirnames, filenames in os.walk(dir_to_search):
    //other codes

    try:
        os.rmdir(dirpath)
    except …
Python
Medium
Problem
Closed
Anonymous
asked 3 years, 6 months ago
Views 229
Views 229

I am getting an 'access is denied' error when I attempt to delete a folder that is not empty. I …

Python
Low
Problem
Closed
Anonymous
asked 3 years, 6 months ago
Views 254
Views 254

For example, if passed the following:

a = []

How do I check to see if a is empty?

Python
Low
Question
Closed
Anonymous
asked 3 years, 6 months ago
Views 272
Views 272

Trying to build a shared library using a C extension file but first I have to generate the output file …

Python
Medium
Problem
Closed
Anonymous
asked 3 years, 6 months ago
Views 252
Views 252

Using the following filters in Postman to make a POST request in a Web API but I am unable to …

Python
Low
Problem
Closed
Anonymous
asked 3 years, 6 months ago
Views 368
Views 368

Tried to run command:

from django.urls import path

Getting error:

Traceback (most recent call last): File "< stdin >", line …

Django
Low
Problem
Closed
Anonymous
asked 3 years, 6 months ago
Views 3642
Views 3642
Model class django.contrib.contenttypes.models.ContentType doesn't declare an explicit app_label 

 Any advice would be tremendously appreciated.

I'm using Python 3.4 and Django …

Django
Low
Problem
Closed
Anonymous
asked 3 years, 6 months ago
Views 1017
Views 1017

My template cannot display the image coming from my model.

src attribute comes with proper field but it does not …

Django
Medium
Problem
Closed
Anonymous
asked 3 years, 6 months ago
Views 293
Views 293

Trying to define a constant with the value of model's class in the settings.py to provide a dynamically-defined FK for …

Django
Medium
Problem
Closed
First Previous 2 3 4 5 6 Next Last